Hello, I have no experience with coding. I got this app from a member named "Jeff". Unfortunately, it does not work correctly on the Android tablet. Can you please help me with this?
Well, the BLE extension is massively out of date, so that doesn't help, depending on your Android Version. However, you say you are using a tablet - that has the alarm bells ringing - what version of Bluetooth does the tablet have?
Also, did Jeff give you a matching script for your microprocessor (ESP32)? We need to see that - the App both sends and receives. EDIT - you have uploaded it!
The App could have been defined more efficiently, no need to have so many button events but if it works you probably don't want to change it.
I can pair the bluetooth connection but the app does not find the connection when scanning. Sometimes the pairing takes a little too long.
I have also entered the correct MAC address of the ESP32 in the app.
Right - should not be so bad permissions wise. BLE (Google Android Security) now requires Location to be enabled. Drag a Location Sensor component into the designer view to trigger a permission request.
Hi @Chris,
it seems a problem that you have already solved a couple of months ago for another user: the service UUID and the characteristics UUID shouldn't be different each other ?
Hi @ChrisWard, here's the young one
I remember that in one post of yours you solved the BLE problem by telling the user, who was assigning the same UUID to both characteristics and service, to differentriate them, and I've seen that in the blocks posted here above, the two UUID's are the same, so I thought it would be better to make them different.
For sake of (my) knowledge, and as far as I remember, in the technical specifications the following meaning was applying:
"should" = not mandatory but better to do (so typically nobody does it ...)
"shall" = mandatory
"must" = strongly mandatory (legally binding).
Is this correct ?
Grazie mille!
PS in the German specifications "should" has to be interpreted as "though it is not mandatory, whether you can do it, you shall do it"
We always need to the Bluetooth version Andreas. Also, you are testing 3 devices - does this mean you are going to distribute the App? If so, you have to code it to suit a range of Android versions, one size does not fit all.
I just tested your ino code and aia project. I'm using S8 with android 9 and BT 5.0, it connected to esp32 with no problem. The ble extension is the latest from this year.
I had to turn on location services.
Works with both device paired in bluetooth settings and not.