Hi everyone,
I am trying to establish a connection between the esp32 and the MIT application, however, I constantly get an error: Error 3300: Error 9101 extension BluetoothLE: Expected device index between 1 and 0. On the application I used to test BLE, everything works as it should, so it is not a problem on the esp32 side. I saw that this topic was already mentioned on the forum, but it seems to me that no adequate solution was found. In the description, I give you a code that I downloaded from a tutorial (I wanted to make sure it wasn't my code), and with this code that should work the same problem occurs, the android version on my phone is 14.
If you could help me, I would be very grateful.
BLE_controller.aia (193.2 KB)
Where did you get a 2020 BLE extension?
Your blocks (for the other Power Users):
How do you know for sure that the length of list is > 1?
Upload your .ino file, so that we may compare UUIDs and check logic.
First of all, thanks for the answer, now maybe I wasn't the clearest in which part of the code the error occurs, so I simplified the code, the signs of trying to connect to the device I get an error and the connection is never established as I stated in another program that I use for testing I had no problems, I also added the upgrade you sent but it didn't help. In the description I'm sending you the code again which is written only up to the part where the error occurs, for now I would just like this part to work. Thanks again for your help.
PS. I don't use Arduino IDE so I can't send .ino but I believe that up to this point it is not necessary and the connection via LightBlue is established without any problems
BLE_controller_1.aia (200.3 KB)