BleCharacteristic class

Available extensions

Constructors

BleCharacteristic(String uuid, List<CharacteristicProperty> properties)
BleCharacteristic.withMetaData({required String deviceId, required String serviceId, required String uuid, required List<CharacteristicProperty> properties})

Properties

hashCode int
The hash code for this object.
no setteroverride
indications CharacteristicSubscription

Available on BleCharacteristic, provided by the BleCharacteristicExtension extension

Subscribes to indications for this characteristic.
no setter
metaData ↔ ({String deviceId, String serviceId})?
getter/setter pair
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
properties List<CharacteristicProperty>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uuid String
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read({Duration? timeout}) Future<Uint8List>

Available on BleCharacteristic, provided by the BleCharacteristicExtension extension

Reads the current value of the characteristic.
toString() String
A string representation of this object.
override
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.

Operators

operator ==(Object other) bool
The equality operator.
override