Hello,
There is a small problem that I don't know how to solve. I tried looking for it but to no avail. Essentially, my device which runs on NCS v1.7.0 will stop advertising if:
- Connect and create a bond with a phone
- Disconnect and delete the bond with the phone
- Reconnect and re-create a bond
- Disconnect
From there, the device stops advertising altogether unless it is reset.
You'll find attached a sample where recreating the problem is fairly easy, it runs on nrf52840dk_nrf52840 or similar. I just encrypted the Heart Rate Service measurement characteristic to be able to prompt a pairing request by subscribing to that notification.
Disconnect_Forget_Advertisement.zip
I am sure that I am missing something but I cannot find what.
Thank you in advance for your help,




