This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE GATT Server : Disconnect Client forcibly after BLE_GAP_EVT_CONNECTED event occured

Hello , I noticed that my NRF DK advertises for a few minutes and goes back to sleep , because of Advertising Timeout set (I am using the BLE Peripheral Example) , but when I connect through my phone , and BLE_GAP_EVT_CONNECTED event is occurred the NRF stays awake until I disconnect (Though NRF Connect Android) , I wanted to disconnect the client after 1 minute regardless of any event and go back to sleep

I looked at creating a Timer Instance , but that didn't work as expected in presence of Softdevice , then I checked with App_Timer that did'nt work as expected , I looked at the Supervision Timeout (It says max time allowed when no packet is sent) but did'nt work (I did not read any service or write data to peripheral to ensure " I " am not sending any packet.) , Are all of these ways not the right way to implement my force disconnection and sleep function ? , or are they ? , let me know if I have understood the Supervision timeout correctly ?

Thank You,

Parents Reply Children
No Data
Related