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 - isSubscribed → bool
-
Available on BleCharacteristic, provided by the BleCharacteristicExtension extension
Returns whether this characteristic is currently subscribed to.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
-
descriptor(
String descriptorUuid) → BleDescriptor -
Available on BleCharacteristic, provided by the BleCharacteristicExtension extension
Get descriptor by uuid -
read(
{Duration? timeout, String? queueId}) → Future< Uint8List> -
Available on BleCharacteristic, provided by the BleCharacteristicExtension extension
Reads the current value of the characteristic. -
readDescriptor(
String descriptorUuid, {Duration? timeout, String? queueId}) → Future< Uint8List> -
Available on BleCharacteristic, provided by the BleCharacteristicExtension extension
Reads the value of a descriptor of this characteristic. -
unsubscribe(
{Duration? timeout, String? queueId}) → 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, String? queueId}) → Future<void> -
Available on BleCharacteristic, provided by the BleCharacteristicExtension extension
Writes a value to the characteristic. -
writeDescriptor(
String descriptorUuid, Uint8List value, {Duration? timeout, String? queueId}) → Future< void> -
Available on BleCharacteristic, provided by the BleCharacteristicExtension extension
Writes a value to a descriptor of this characteristic.