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?
Hi
I'm sorry, but why exactly have you added these lines to the BLE_ADV_EVT_WHITELIST_REQUEST? From the information you've provided I'm not able to see what you're trying to accomplish, and it seems like the memcpy(&(whitelist_irks[0].irk),&(bond_info.peer_ble_id.id_info.irk),16); line includes a few invalid parameters.
Best regards,
Simon
why exactly have you added these lines to the BLE_ADV_EVT_WHITELIST_REQUEST
I am trying to add IRK to whitelist.
memcpy(&(whitelist_irks[0].irk),&(bond_info.peer_ble_id.id_info.irk),16); line includes a few invalid parameters.
what are few invalid parameters in this line ?
Hi
But you're trying to add the whitelist in your central device, right? If so, you need to add an NRF_BLE_SCAN_EVT_WHITELIST_REQUEST event to your scan_evt_handler(). Please see our ble_app_hrs_c and ble_app_hrs examples which use whitelists with IRK.
Best regards,
Simon
I have mentioned I am doing it for a peripheral (multiple). you replied it as for peripherals.
but now you are telling central device. I have never mentioned anything about central device.
I want to add IRK(known) key to a peripheral.
Would you like the same IRK on multiple peripheral devices? That should also be possible, please check these cases and the replies from my colleague Einar for de
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