Hello,
which functions should I use to implement following scenario:
Peripheral is bonded with Central. All nessesary bonding information are stored on periphal.
User is able to erase peripherals bonding information by pressing a specified key >5 sec. After that, the peripheral should start sending advertising packets automatically. If there is no central device with initiats conenction with the peripheral (within 30 sec), then the old bonding information should be restored to the peripheral.
So in my way of thinking, I have to store bonding information (read gapBondCharCfg_t, gapBondRec_t, gapBondLTK_t) from NV to RAM. Then I have to erase bondings via gapbondmgr, otherwise I won't be able to start advertising right? In case that there is no new connection / pairing within 30 sec, I restore the bonding information stored in RAM.
Are there any functions in the BLE Stack which help me to do so? (storing / restoring bonding information?)
greetings,
Elias