Closed Miragaia closed 1 month ago
The smartwatch I am testing is the Galaxy Watch 7. I have tested sending data to the Mi Band 4 and it sends the data as supposed, but the same code does not work for the Galaxy Watch 7, I receive the error.
that error is coming from your ble peripheral.
you'll need to check the firmware logs.
it is not a FBP issue
Requirements
Have you checked this problem on the example app?
Yes
FlutterBluePlus Version
1.33.5
Flutter Version
3.24.2
What OS?
Android
OS Version
Android 14
Bluetooth Module
Bluetooth 5.0
What is your problem?
Using flutter_blue_plus: ^1.33.5
I have a smartwatch code generating services and characteristics. The smartphone connects to the smartwatch and uses "discoverServices", iterates every service and every characteristic to find one that is writable.
Whenever the writable characteristic is found it tries to write to it, but an Unknown Error is given (19).
Uint8List data = Uint8List data = Uint8List.fromList([0x01, 0x02, 0x03, 0x04]);
Future _sendDataToDevice(Uint8List data) async {
}
I get that error, I would like to know how to fix it, it seems that it is only on this line "await characteristic.write(data); "
Logs