How do I list clients/connections in NimBLE?
Posted: Sun Apr 24, 2022 9:34 pm
Hi everybody!
New to this, and I need help. With hope to be able to give back at some point.
Anyway. I have looked all over on how to try to list, and then iterate over, any active connections to my peripheral/BLE server.
To no avail.
The ble_store seems to be empty regardless of object type (while the server is in full swing communicating with a client). ble_hs_conn_find() only seems to iterate over ble_hs_conns, and ble_hs_conn seems to be internal or something.
And I can't find much in the GAP stuff.
Yet it would be really weird if there can be a max connections setting and no list of connections to iterate over.
My goal is to not have to implement my own connection management and handle all those corner cases.
Anyone have any idea on how to enumerate connected clients/connections?
(my stuff is based on the https://github.com/espressif/esp-idf/tr ... oth/nimble examples)
New to this, and I need help. With hope to be able to give back at some point.
Anyway. I have looked all over on how to try to list, and then iterate over, any active connections to my peripheral/BLE server.
To no avail.
The ble_store seems to be empty regardless of object type (while the server is in full swing communicating with a client). ble_hs_conn_find() only seems to iterate over ble_hs_conns, and ble_hs_conn seems to be internal or something.
And I can't find much in the GAP stuff.
Yet it would be really weird if there can be a max connections setting and no list of connections to iterate over.
My goal is to not have to implement my own connection management and handle all those corner cases.
Anyone have any idea on how to enumerate connected clients/connections?
(my stuff is based on the https://github.com/espressif/esp-idf/tr ... oth/nimble examples)