readDescriptor method

Future<DescriptorWithValue> readDescriptor(
  1. String descriptorUuid, {
  2. String? transactionId,
})

Reads the value of a Descriptor identified by descriptorUuid.

Implementation

Future<DescriptorWithValue> readDescriptor(
  String descriptorUuid, {
  String? transactionId,
}) =>
    _manager.readDescriptorForCharacteristic(
      this,
      descriptorUuid,
      transactionId ?? TransactionIdGenerator.getNextId(),
    );