BleCharacteristic class

Available extensions

Constructors

BleCharacteristic(String uuid, List<CharacteristicProperty> properties, List<BleDescriptor> descriptors)
BleCharacteristic.fromJson(Map<String, dynamic> json)
factory
BleCharacteristic.withMetaData({required String deviceId, required String serviceId, required String uuid, required List<CharacteristicProperty> properties, required List<BleDescriptor> descriptors})

Properties

descriptors ↔ List<BleDescriptor>
getter/setter pair
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
isSubscribed → bool

Available on BleCharacteristic, provided by the BleCharacteristicExtension extension

Returns whether this characteristic is currently subscribed to.
no setter
metaData ↔ BleCharOperationMetadata?
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

descriptor(String descriptorUuid) → BleDescriptor

Available on BleCharacteristic, provided by the BleCharacteristicExtension extension

Get descriptor by uuid
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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.
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override
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.

Operators

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