readDescriptor method
Reads the value of a Descriptor identified by descriptorUuid
of
a Characteristic identified by characteristicUuid
.
It returns a Future that completes with DescriptorWithValue,
which is just a Descriptor but with an additonal value
property
of type Uint8List.
Implementation
Future<DescriptorWithValue> readDescriptor(
String characteristicUuid,
String descriptorUuid, {
String? transactionId,
}) =>
_manager.readDescriptorForService(
this,
characteristicUuid,
descriptorUuid,
transactionId ?? TransactionIdGenerator.getNextId(),
);