writeDescriptor method

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

Writes the value of a Descriptor identified by descriptorUuid.

Implementation

Future<Descriptor> writeDescriptor(
  String descriptorUuid,
  Uint8List value, {
  String? transactionId,
}) =>
    _manager.writeDescriptorForCharacteristic(
      this,
      descriptorUuid,
      value,
      transactionId ?? TransactionIdGenerator.getNextId(),
    );