BleCharacteristicExtension extension
Extension methods for BleCharacteristic to simplify common operations.
Properties
- indications → CharacteristicSubscription
-
Available on BleCharacteristic, provided by the BleCharacteristicExtension extension
Subscribes to indications for this characteristic.no setter - notifications → CharacteristicSubscription
-
Available on BleCharacteristic, provided by the BleCharacteristicExtension extension
Subscribes to notifications for this characteristic.no setter -
onValueReceived
→ Stream<
Uint8List> -
Available on BleCharacteristic, provided by the BleCharacteristicExtension extension
A stream of Uint8List that emits values received from the characteristic.no setter
Methods
-
read(
{Duration? timeout}) → Future< Uint8List> -
Available on BleCharacteristic, provided by the BleCharacteristicExtension extension
Reads the current value of the characteristic. -
unsubscribe(
{Duration? timeout}) → Future< void> -
Available on BleCharacteristic, provided by the BleCharacteristicExtension extension
Unsubscribes notifications/indications from this characteristic. -
write(
List< int> value, {bool withResponse = true, Duration? timeout}) → Future<void> -
Available on BleCharacteristic, provided by the BleCharacteristicExtension extension
Writes a value to the characteristic.