Android Question BLE Example2 with choosing what to Notificate

peacemaker

Expert
Licensed User
Longtime User
Hi, All

I was updating the BLE Android example, to have a possibility to get BLE sensor info dynamically.
I have my own BLE-sensor with B4R sketch based on ESP32.

So, the updated project is attached: BLE devices can be
  • scanned, chosen, connected
  • read all classes manually,
  • choose one characteristic of a class - just tap one line
  • and set the notification to get its info on time in the log textview, it's auto opened
But strange that if the notification is started - second time manual classes read does not work, always only one first class is found.
If to disconnect and re-connect - again all is OK.

If you have some BLE device at hands that can notify - please, "try my creation" and help to debug. Maybe it is my BLE sensor is buggy...

First time - all works OK:
1.jpg2.jpg

But if to tap "Read data" during connection and notification - trouble:
3.jpg
Sure, i stop the notification before re-reading.
What can it be ?
 

Attachments

  • BLEExample2.zip
    13.4 KB · Views: 53
Top