C# Class BluetoothLE.Droid.Characteristic

Concrete implmentation of BluetoothLE.Core.ICharacteristic interface
Inheritance: ICharacteristic
Show file Open project: tbrushwyler/Xamarin.BluetoothLE Class Usage Examples

Public Methods

Method Description
Characteristic ( Android.Bluetooth.BluetoothGattCharacteristic characteristic, Android.Bluetooth.BluetoothGatt gatt, GattCallback gattCallback ) : System

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

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
CharacteristicValueUpdated ( object sender, CharacteristicReadEventArgs e ) : void
SetUpdateValue ( bool enable ) : void

Method Details

Characteristic() public method

Initializes a new instance of the BluetoothLE.Droid.Characteristic class.
public Characteristic ( Android.Bluetooth.BluetoothGattCharacteristic characteristic, Android.Bluetooth.BluetoothGatt gatt, GattCallback gattCallback ) : System
characteristic Android.Bluetooth.BluetoothGattCharacteristic Characteristic.
gatt Android.Bluetooth.BluetoothGatt Gatt.
gattCallback GattCallback Gatt callback.
return System

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