Hi i am using SDK15.2 nrf52832.
What is peer id?
Which function is adding device mac address to whitelist?
how does the whitelisting process implemented in HID example code?
Hi i am using SDK15.2 nrf52832.
What is peer id?
Which function is adding device mac address to whitelist?
how does the whitelisting process implemented in HID example code?
Thank you, But i how to enable BLE_GAP_EVT_SCAN_REQ_REPORT event in event handler? because i followed many blogs but i could not achieve it.
also, how to add MAC ID to whitelist directly in the case BLE_ADV_EVT_WHITELIST_REQUEST: Please post the code snippet if possible.
can i use sd_ble_gap_whitelist_set() to set the whitelist with MAC ID as input?
If you are using the advertisement module you simple stop and start advertisement, and then on BLE_ADV_EVT_WHITELIST_REQUEST event you call ble_advertising_whitelist_reply() with the desired peer.
If you are not using the advertisement module it should be possible to call sd_ble_gap_whitelist_set() directly yes.