sendData method

Future<bool> sendData(
  1. List<int> data
)

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');
  }
}