writeText method

  1. @override
Future<bool> writeText(
  1. String text, {
  2. String? characteristicUuid,
})
override

Write text to the connected device. Must connect to a device first. Throw BTException if failed.

Implementation

@override
Future<bool> writeText(String text, {String? characteristicUuid}) async {
  return writeRawData(utf8.encode(text) as Uint8List, characteristicUuid: characteristicUuid);
}