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

Need detailed information on Peer Manager and whitelisting principle while advertising and scanning.

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?

Parents Reply
  • You can use the BLE_GAP_EVT_SCAN_REQ_REPORT event, because this event include RSSI value and GAP address of the scanner, and based on this you can the for instance add the scanner to the whitelist if you want to allow connection.

    For this to work you should set BLE_GAP_ADV_FP_FILTER_CONNREQ when advertisement, since it will allow all peers to send scan request (cause BLE_GAP_EVT_SCAN_REQ_REPORT event), but only those in the whitelist can connect.

Children
Related