writeCharacteristic method
Writes value to characteristic under service. With withoutResponse
the write is unacknowledged (higher throughput, no error feedback).
Implementation
@override
Future<void> writeCharacteristic(
Uuid service,
Uuid characteristic,
Uint8List value, {
bool withoutResponse = false,
}) async {
if (_closed) throw const BleGattException('GATT connection is closed');
writes.add((
characteristic: characteristic,
value: Uint8List.fromList(value),
withoutResponse: withoutResponse,
));
}