Open luizvilla opened 3 years ago
Small update:
When I turn the debug off, the Serial goes quiet. I verified that the BLE device receives data and it does since the code enters the right function to treat the request and send out the configuration. When I monitor the BLE using another app, I only see data when it is written using the Serial.print() function.
My code is available here: [https://github.com/luizvilla/remoteXY_BLE_nano](My online repository)
Currently I can compile and flash it using Visual Studio Code and PlatformIO. When I go to the app, my telephone recognises the BLE device and tries to connect to no avail. Here's what the log says:
And just in case, here's my main.cpp:
I've dug deeper and found out that this is what happens when I turn the debug mode on as you can see from the first line. Here are the hex characters shown at the Serial port by the debug.
By doing some reverse engineering, it seems to me that the data sent by the device to the phone is on the good format. At least from the serial port perspective.
I've used the LightBlue app to talk to the Nano-BLE and I've sent the device the same message that the app does. Here's what I've received as it was caught by the LightBlue app.
I'm using a Redmi Note 6 Pro phone with a 12.0.1 Stable MIUI version, a 9 pkq1.180904.001 Android version.
Here's my guess: The message being sent from the device to the phone is not coming through as expected. I have tried using another phone, but since it is the same model I still have to confirm it is not the phone.
Apart from that, I have no idea what can be the issue.
Any ideas?