This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to implement Whitelist in SDK12.2.0

Hi, I test Whitelist function in the example ble_app_hids_keyboard_pca10040_s132 using SDK12.2.0. I donnot understand the code in "case BLE_ADV_EVT_WHITELIST_REQUEST:" located in function on_adv_evt(). Following is my question:

1.I guess I should add my ble address in "whitelist_addrs[]". Maybe this contains all the ble whitelist that can connect with nrf52832. Am I right?

2.What is the meaning of "whitelist_irks[]" ? what is the function and how to use?

3."pm_whitelist_get()" ? Why we get the whitelist here? Why is not pm_whitelist_set()? I am confused about it.

I know when I disconnect, this case will be excuted for broadcasting whitelist address. I just need to add address in "whitelist_addrs[]" and add information in "whitelist_irks[]" in this case,then I can use whitelist.Right?

Looking forward to your reply. Thanks a lot!

Parents
  • Hi Petter, the example use peer_id to add BLE address into whitelist. How can I directly add my BLE MAC address into whitelist without using peer_id? Above is findings in this forum but cannot pass. Now I am evaluating nrf52832, hope you can help me to solve problems. Thank you very much!

Reply
  • Hi Petter, the example use peer_id to add BLE address into whitelist. How can I directly add my BLE MAC address into whitelist without using peer_id? Above is findings in this forum but cannot pass. Now I am evaluating nrf52832, hope you can help me to solve problems. Thank you very much!

Children
No Data
Related