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!