Hi All
I would request Forums help in letting me know if there is an ESP32 API to know if BLE is CONNECTED or Paired to other device or not.
Thanks for help!
Regards
Abhiram
API to know if my BLE is currently connected / paired or not
Re: API to know if my BLE is currently connected / paired or not
The underlying BLE APIs found in ESP-IDF provide event handling capabilities. This means you get an event which is received in a registered callback when something interesting related to BLE happens. One such event is a connected event which is received when a connection is established. A second event is an indication that the a connection has been lost or disconnected. In the majority of cases, it is your logic that is responsible for maintaining the BLE state and, as such, you are responsible for tracking how many partner connections exist at any given time.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: API to know if my BLE is currently connected / paired or not
Thanks Kolban,
Yes ..even I was coming to same conclusion.
Yes ..even I was coming to same conclusion.
Who is online
Users browsing this forum: devlat, Google [Bot] and 129 guests