write static method
Write a characteristic value.
To write a characteristic value without response, set withoutResponse to true.
Implementation
static Future<void> write(
String deviceId,
String service,
String characteristic,
Uint8List value, {
bool withoutResponse = false,
Duration? timeout,
}) async {
await _bleCommandQueue.queueCommand(
() => _platform.writeValue(
deviceId,
BleUuidParser.string(service),
BleUuidParser.string(characteristic),
value,
withoutResponse
? BleOutputProperty.withoutResponse
: BleOutputProperty.withResponse,
),
timeout: timeout,
deviceId: deviceId,
);
}