write method

  1. @override
Future<void> write({
  1. required Uint8List data,
})
override

Implementation

@override
Future<void> write({required Uint8List data}) async {
  final characteristic = _getCharacteristic();
  await backend.writeCharacteristic(peripheral, characteristic!,
      value: data, type: GATTCharacteristicWriteType.withResponse);
}