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

peer disconnect is not recognized when (connected peers < max peer number) in multiperipheral mode

Hi,

I am using multiperipheral mode in ble_app_hrs using the ble_app_multiperipheral example taking the functions on_connected and on_disconnected while connect and disconnect events and changed the max peripherals count to 2 in sdk_config.h

After a peer is connected and tried to disconnect, the disconnect event in ble_evt_handleris not triggered. When i connected 2 peers, the second peer disconnet event is able to trigger the ble_evt_handler.

Is there anything am missing using the multiperipheral mode.

Thanks in advance

Update:

There was a bug in my code. Now its working fine. Thanks.

Related