writeCharacteristic method

Future<void> writeCharacteristic({
  1. required BleCharacteristic characteristic,
  2. required List<int> value,
  3. int? writeType,
})

Writes raw bytes to a specified characteristic.

value is sent as-is. Callers holding a string should encode it first (e.g. with utf8.encode).

Implementation

Future<void> writeCharacteristic({
  required BleCharacteristic characteristic,
  required List<int> value,
  int? writeType,
}) async {
  throw UnimplementedError('writeCharacteristic() has not been implemented.');
}