currantlabs / ble

BSD 3-Clause "New" or "Revised" License
210 stars 177 forks source link

Ble Gatt Server: How to monitor incoming connection / disconnection ? #42

Open discordance opened 7 years ago

discordance commented 7 years ago

Hello ! I started to use this wonderful library for a RaspberryPi based project. It works very well and its stable with the latest Raspbian. However, I would like to know when a Central successfully connects the Peripheral I created, and more importantly I would like to know when the Central disconnects. The goal is to make my application more robust to these events.

I started to check the code but I am not experienced enough with HCI Socket thing, and I would like to know if there is a solution (undocumented/workaround) to monitor theses events.

Thanks !