sendData static method
Implementation
static Future<bool> sendData(List<int> data) async {
try {
if (kIsWeb) {
throw PlatformException(
code: 'WEB_LIMITATION',
message: 'Bluetooth Classic communication not supported on web',
details:
'Web browsers only support Bluetooth Low Energy (BLE) communication',
);
}
return await _platform.sendData(data);
} catch (e) {
if (kDebugMode) print('Error sending data: $e');
rethrow;
}
}