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