Hi!
How can I receive a notification on hardware every time the bluetooth device connects to it?
Can ESP32 BT mode use “BLYNK_APP_CONNECTED ()” in preliminary tests did not work.
Thanks for all the help!
Ps:Sorry… I do not speak English … Write even more rsrsrs
These lines of code (218-226) inside the “BlynkSimpleEsp32_BT_h” library seem to work exactly as I need them. But I do not know how to extract functionally.
With a BT/BLE, the App IS the connection… no App, no connection and probably nothing running on the device… not sure if WiFi style “keeps running without server” routines count with BT/BLE… But even if the sketch is still running, without the App there is no way any “Is app connected” message from the Server to get through
I understood partially
When I disconnect the bluetooth I receive the msg “BT disconnected” in the serial. In theory I need to identify if a BT connection is stable, I do not necessarily need to check if the app is connected. Example: I move away from the device and certain function checks if BT connection is present, otherwise it does something …
That is what this meant… since the App is the connection between the device and the Server (via BT/BLE) if there is no BT/BLE connection, there is no Server connection.
In a first attempt I did not succeed. I must have done something wrong.
This time worked well.
I do not know if this is the best way to do it, but it works.
Thank you!