Closed JEAPI-DEV closed 1 year ago
Note the send messages from the Arduino look like this: RX=X-3.42|Y-1.48|Z-8.01 RX=X-3.31|Y-1.44|Z-8.05 RX=X-3.30|Y-1.48|Z-8.11 RX=X-3.35|Y-1.45|Z-8.14 RX=X-3.45|Y-1.54|Z-8.20 RX=X-3.36|Y-1.47|Z-8.16 RX=X-3.50|Y-1.43|Z-8.15 RX=X-3.50|Y-1.35|Z-8.22 RX=X-3.74|Y-1.26|Z-8.22
you need to increase android MTU. see README
btw, did you read the common problems section?
onValueReceived (or lastValueStream) data is split up
in your question, you specified that you read the common problems section.
Requirements
Have you checked this problem on the example app?
No
FlutterBluePlus Version
1.16.10
Flutter Version
Framework • revision 796c8ef792 (4 months ago) • 2023-06-13 15:51:02 -0700 Engine • revision 45f6e00911 Tools • Dart 3.0.5 • DevTools 2.23.1
What OS?
Android
OS Version
Android 12 SKQ1.210908.001
Bluetooth Module
TI CC2541
What is your problem?
Hi I'm back again. So I wanted to add a Feature to my app which would allow me to use values of an MPU6050 to rotate a Cube in an Android app. But the thing is for some reason I'm getting a lot of wrong messages which don't make sense. Tested if this also happened in other apps like the Serial Bluetooth Terminal but everything works fine in there.
Here is the Arduino code:
Here is the main class which handles finding the correct Characteristic sending Messages and receiving them.
We also have the devicescreen.dart, where the connected device is shown and some other screens:
The problems also arise on the other screens, but the main isse is with the mpucube.dart screen, where its important that the data does not take an ethernity to be recived correctly.
Logs