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

peer manager delete peer by custom id

hi I am using peer manager to pair and bond android phone to nrf52840. I want to give custom peer id to this phone during bonding process, then if i lost this phone i will be able to delete bonding information just for this phone by sending a command from another phone, and the command will containt the peer id for the missing phone. I dont know if its possible or not because i couldn't find anything in the SDK14.1 to do that.

So the question is can i delete bond data for just the missing phone ? i mean if several phones are bonded to nrf52840 but i want to delete bond data just for the one i lost!

Parents
  • Yes, I was thinking about hardcoding a list of peer ID in the peripheral application for example 1 to 5, then i will bond 5 phones to the peripheral. If i lost for example phone that have peer ID 3 in the peripheral , then i will delete bond data from another phone(which is bonded to the peripheral and can write command to the peripheral characteristic ) by teling the peripheral delete bon data for peer id 3. I do not know how to give this hardcoded peer id during the bond process in the peripheral (nrf52840) application!

Reply
  • Yes, I was thinking about hardcoding a list of peer ID in the peripheral application for example 1 to 5, then i will bond 5 phones to the peripheral. If i lost for example phone that have peer ID 3 in the peripheral , then i will delete bond data from another phone(which is bonded to the peripheral and can write command to the peripheral characteristic ) by teling the peripheral delete bon data for peer id 3. I do not know how to give this hardcoded peer id during the bond process in the peripheral (nrf52840) application!

Children
No Data
Related