writeDescriptor method

Future<Descriptor> writeDescriptor(
  1. String characteristicUuid,
  2. String descriptorUuid,
  3. Uint8List value, {
  4. String? transactionId,
})

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(),
    );