writeText method

  1. @override
Future<bool> writeText(
  1. String text
)
override

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

Implementation

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