writeDescriptor method

Future<void> writeDescriptor(
  1. String descriptorUuid,
  2. Uint8List value, {
  3. Duration? timeout,
  4. String? queueId,
})

Writes a value to a descriptor of this characteristic.

descriptorUuid is the UUID of the descriptor to write. value is the value to write. timeout is the timeout for the write operation. queueId is the ID of the queue to use for the write operation.

Implementation

Future<void> writeDescriptor(
  String descriptorUuid,
  Uint8List value, {
  Duration? timeout,
  String? queueId,
}) =>
    BleShieldNative.writeDescriptor(
      _metaData.deviceId,
      _metaData.serviceId,
      uuid,
      descriptorUuid,
      value,
      timeout: timeout,
      queueId: queueId,
    );