sendData method
Send data to the connected device
Implementation
Future<bool> sendData(List<int> data) async {
try {
return await _channel.invokeMethod('sendData', {'data': data});
} catch (e) {
throw BluetoothException('Failed to send data: $e');
}
}