C# Class BluetoothLE.iOS.Characteristic

Concrete implmentation of BluetoothLE.Core.ICharacteristic interface
Inheritance: ICharacteristic, IDisposable
Mostrar archivo Open project: tbrushwyler/Xamarin.BluetoothLE Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
UpdatedCharacteristicValue ( object sender, CBCharacteristicEventArgs e ) : void

Method Details

Characteristic() public method

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.
return System

Dispose() public method

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
return void

Read() public method

Read the characteristic's value
public Read ( ) : void
return void

StartUpdates() public method

Subscribe to the characteristic
public StartUpdates ( ) : void
return void

StopUpdates() public method

Unsubscribe from the characteristic
public StopUpdates ( ) : void
return void

Write() public method

Write the specified data to the characteristic
public Write ( byte data ) : void
data byte Data.
return void