write method

Future<void> write(
  1. Uint8List value,
  2. bool withResponse, {
  3. String? transactionId,
})

Writes to the value of this characteristic.

The value can be written only if isWritableWithResponse or isWritableWithoutResponse is true and argument withResponse is set accordingly.

Implementation

Future<void> write(
  Uint8List value,
  bool withResponse, {
  String? transactionId,
}) =>
    _manager.writeCharacteristicForIdentifier(
      service.peripheral,
      this,
      value,
      withResponse,
      transactionId ?? TransactionIdGenerator.getNextId(),
    );