This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Erase bond info

Hi,

Is there any simpler way to erase bond info by not pressing button 2?

In function advertising_init(), I set init.config.ble_adv_whitelist_enabled = false;

I am using hid mouse example in SDK 15.2 and even after disabling whitelist the bond info is not fully erased. 

What exactly happens internally after pressing button 2? Does the OS or the nrf remove bond info?

Parents Reply Children
  • Hi.

    I've been out of office this week, so sorry for late reply.

    As I said, you can erase bonds where it suits you. If you don't erase bonds, the nRF is still bonded.

    bscdb said:

    Current scenario- I connected nrf with Macbook. Removed the device & shut down the laptop. Then I connected with my Windows machine & it connected just fine. And I did not press a button to erase bond info. But I have to erase the bond info if both laptops are switched on.

    What if I do not disconnect with the previous machine and go my friend's house and try to connect to his machine? I do not want a button press. Everything should happen through firmware without human intervention. How do I implement the logic?

     I'm a bit unsure what you mean here actually. Could you elaborate?

    - Andreas

Related