once the bonded device count reaches the max possible bonded device count, then we would like to remove the first paired device from the NVM. In order to remove bonded device we call "Gap_RemoveBond(0)" and after this would like to know is there any update we need to make whitelist, if so please let me know the steps. Thanks in advance.
Thanks Mario for the update. Correct me if am wrong, after deleting the bonded device using Gap_RemoveBond(index) API, we need to save the index value in the NVM so that the next time when the bonded count reaches max we can delete the bonded device present in the next index value.
At this point, the Bluetooth LE Stack will save the next device in index 0. You do not need to make any updates about this. but you have to be aware that the new device was saved in the 0 positions.
You could check using the Gap_ReadWhiteListSize API.