sendString method
Send string data to the connected device
Implementation
Future<bool> sendString(String message) async {
try {
final List<int> data = List<int>.from(utf8.encode(message));
return await sendData(data);
} catch (e) {
throw BluetoothException('Failed to send string: $e');
}
}