C# Класс BluetoothLE.iOS.Characteristic

Concrete implmentation of BluetoothLE.Core.ICharacteristic interface
Наследование: ICharacteristic, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Characteristic ( CBPeripheral peripheral, CBCharacteristic nativeCharacteristic ) : System

Initializes a new instance of the BluetoothLE.iOS.Characteristic class.

Dispose ( ) : void

Releases all resource used by the BluetoothLE.iOS.Characteristic object.

Call Dispose when you are finished using the BluetoothLE.iOS.Characteristic. The Dispose method leaves the BluetoothLE.iOS.Characteristic in an unusable state. After calling Dispose, you must release all references to the BluetoothLE.iOS.Characteristic so the garbage collector can reclaim the memory that the BluetoothLE.iOS.Characteristic was occupying.

Read ( ) : void

Read the characteristic's value

StartUpdates ( ) : void

Subscribe to the characteristic

StopUpdates ( ) : void

Unsubscribe from the characteristic

Write ( byte data ) : void

Write the specified data to the characteristic

Приватные методы

Метод Описание
UpdatedCharacteristicValue ( object sender, CBCharacteristicEventArgs e ) : void

Описание методов

Characteristic() публичный Метод

Initializes a new instance of the BluetoothLE.iOS.Characteristic class.
public Characteristic ( CBPeripheral peripheral, CBCharacteristic nativeCharacteristic ) : System
peripheral CBPeripheral The native peripheral.
nativeCharacteristic CBCharacteristic The native characteristic.
Результат System

Dispose() публичный Метод

Releases all resource used by the BluetoothLE.iOS.Characteristic object.
Call Dispose when you are finished using the BluetoothLE.iOS.Characteristic. The Dispose method leaves the BluetoothLE.iOS.Characteristic in an unusable state. After calling Dispose, you must release all references to the BluetoothLE.iOS.Characteristic so the garbage collector can reclaim the memory that the BluetoothLE.iOS.Characteristic was occupying.
public Dispose ( ) : void
Результат void

Read() публичный Метод

Read the characteristic's value
public Read ( ) : void
Результат void

StartUpdates() публичный Метод

Subscribe to the characteristic
public StartUpdates ( ) : void
Результат void

StopUpdates() публичный Метод

Unsubscribe from the characteristic
public StopUpdates ( ) : void
Результат void

Write() публичный Метод

Write the specified data to the characteristic
public Write ( byte data ) : void
data byte Data.
Результат void