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

About PEER MANAGER, I want to manage PEER ID (ADDR? IRK?)

It seems that the PEER ID is managed by the PEER MANAGER. Can I manage this information myself? For example, I save this information (ADDR IRK) after the connection event is generated, so that I can manually add it to the protocol stack when needed, for whitelisting Broadcast.
Support library I use: nRF5_SDK_16.0.0_98a08e2
The equipment is: nrf52840

Parents
  • Hi,

    The peer ID is just a handle that does not have a meaning in itself, but it is used to identify a bond in the peer manager library. You can get a list of all peer IDs and iterate over all peers to map address, IRK (or any other part of the bonding data) to the peer ID if you like, and use that to build a whitelist yourself.

    You can of course also skip the peer manager library altogether and handle the bonding information yourself, though I suggest you stick with it unless you have a particularly strong reason not to since it is a well-tested library that handles generic Bluetooth concepts that is common for all products which use pairing.

Reply
  • Hi,

    The peer ID is just a handle that does not have a meaning in itself, but it is used to identify a bond in the peer manager library. You can get a list of all peer IDs and iterate over all peers to map address, IRK (or any other part of the bonding data) to the peer ID if you like, and use that to build a whitelist yourself.

    You can of course also skip the peer manager library altogether and handle the bonding information yourself, though I suggest you stick with it unless you have a particularly strong reason not to since it is a well-tested library that handles generic Bluetooth concepts that is common for all products which use pairing.

Children
Related