I have created a BLE peripheral device using nrf51822. I have used sdk12.0.0 with soft device 130 and I am using NRF connect mobile app to test my device.
When I connect to my device and bond to it, it gets bonded successfully. Problem starts when I want to disconnect from it after bonding, it just doesn't disconnect when I press disconnect on NRF Connect app(Although it shows disconnected on the app but it isn't actually disconnected. The immediate alert service on the phone receives alerts when I press button on my device). I have to turn off Bluetooth in my phone and turn it back again to disconnect it.
What could be the problem? I have observed this problem with the proximity example as well.