Hi,
I tried to erase the bound and start another pairing procedure without rebooting my device. I was not able to remove the bond correctly. The system hangs when I call pm_peers_delete(). The problem is right after I call this function, a PM_EVT_PEERS_DELETE_SUCCEEDED event is sent to event handler and another advertising is started. Down in ble_advertising_start(), when it calls sd_ble_gap_adv_set_configure(), the function returns NRF_ERROR_INVALID_STATE. What is the right procedure to remove the bond properly? Can I temporary shutdown BLE before erase bond and resume it after removal?
Thank you,
Min-Ching