I'd like to call a function on the peripheral (by pressing a button or sending a command from the terminal) that performs unbonding from a central. I'm able to bond using two different samples, peripheral_bms and peripheral_hids_mouse, but neither mention unbonding. Note that I am able to unbond from the central side by unpairing.
I've read online that unbonding requires a sequence of events, such as:
- Disable scanning on the central and advertising on the peripheral
- Sever the BLE connection between the two devices
- Delete the bond information from flash memory
- Re-enable scanning on the central and advertising on the peripheral
So I'd rather utilize clean, tested functions to avoid creating a ticking timebomb in my code.
Thank you