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?
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?
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
memcpy(&(whitelist_irks[0].irk),&(bond_info.peer_ble_id.id_info.irk),16);
you said that the above line has few invalid parameters, but not telling what are they.
I am coping IRK key from prepopulated structure of bonding information. and I verified IRK is copied correctly by bonding and comparing with another 52810 with mobile.
memcpy(&(whitelist_irks[0].irk),&(bond_info.peer_ble_id.id_info.irk),16);
you said that the above line has few invalid parameters, but not telling what are they.
I am coping IRK key from prepopulated structure of bonding information. and I verified IRK is copied correctly by bonding and comparing with another 52810 with mobile.