writeDescriptor method
Writes the value
of a Descriptor identified by descriptorUuid
of a Characteristic identified by characteristicUuid
.
It returns a Future that completes with the Descriptor.
Implementation
Future<Descriptor> writeDescriptor(
String characteristicUuid,
String descriptorUuid,
Uint8List value, {
String? transactionId,
}) =>
_manager.writeDescriptorForService(
this,
characteristicUuid,
descriptorUuid,
value,
transactionId ?? TransactionIdGenerator.getNextId(),
);