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

Scan with whitelist vs. scan filtering

Hello,
    i have a trouble that stock me several days, i'm using sdk15.2 on nrf52840, and i want to do scanning using whitelist, please help me, here is the situation.


    i have several peripheral peers and one peer with multiroles(central and peripheral at same time), i want to make this multiroles peer do scanning with whitelist to connect with these

peripherals.


my questions:


    1. what's the difference between scan addr filter and whitelist? if i use a whitelist, i don't need to set scan filter?


    2. i want to add a mac addr to whitelist, i want to use pm_whitelist_set(), but it only takes peer id and peer count as parameters(i delete all the peers before), what should i do?