This might be a naive question, as I am a novice in this field.
I am making something similar to ble_app_hids_keyboard in sdk11, it will be configured as a consumer device to control the volume buttons of a phone.
In my use case, there will be a large amount of different phones connect to the nrf51822 chip everyday, so the program will frequently erase the bonds stored in the flash in order to connect to new phones.
This makes me worry about the life of the flash.
As I understand, ble_app_hids_keyboard is using flash to store bond information, and every time it delete the bond, it hurts the flash.
nfr51 flash can only be erased 10,000 times, so I would like to store the bond information in the RAM instead of the flash. I don't care the fact that RAM will 'forget' everything after a power reset.
1. Is this possible? How can I implement it?
------------------------------------------------------------------
When I was writing this post it just came into my mind, one more question:
2. In bluetooth communication, is it necessary to store bond information?