sendData static method

Future<bool> sendData(
  1. String data
)

Send data to the connected BLE device

data - String data to send to the device

Returns true if data was sent successfully, false otherwise

Implementation

static Future<bool> sendData(String data) {
  return BluetoothConnectionPluginPlatform.instance.sendBleData(data);
}