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

How to add bonding information manually?

Hi,

I want to add bonding information manually. 

1.can I assume IRK key will be constant for multiple peripherals?

2.if IRK only key is available, can i add it to peer list using pm_peer_new? 

 

Parents
  • Indeed, but the central will need to scan using a whitelist in order for the IRK whitelist to be relevant. So then you have a central scanning for this IRK already I assume? In your previous reply I'm struggling to understand what exactly you're trying to achieve with the memcpy(&(whitelist_irks[0].irk),&(bond_info.peer_ble_id.id_info.irk),16); line, can you try explaining this?

    Best regards,

    Simon

Reply
  • Indeed, but the central will need to scan using a whitelist in order for the IRK whitelist to be relevant. So then you have a central scanning for this IRK already I assume? In your previous reply I'm struggling to understand what exactly you're trying to achieve with the memcpy(&(whitelist_irks[0].irk),&(bond_info.peer_ble_id.id_info.irk),16); line, can you try explaining this?

    Best regards,

    Simon

Children
Related