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

white list during scanning

hello there i want to scan particular device. so i am using whitelist. i change in hear_rate center code. but its not working. other unwanted devices are also scanned. i am using sdk11.main.c

Parents
  • Hi,

    If you decide to create the whitelist manually, you should not call dm_whitelist_create() The function will use device manager to create whitelist base on bonded peer device in the device manager module. In this case could be that you don't have anything in the bonded device list and then end up with no whitelist ((whitelist.addr_count == 0) && (whitelist.irk_count == 0)).

    If you comment that call out, it should work. Also try to set the add_count to 1 instead of max count.

Reply
  • Hi,

    If you decide to create the whitelist manually, you should not call dm_whitelist_create() The function will use device manager to create whitelist base on bonded peer device in the device manager module. In this case could be that you don't have anything in the bonded device list and then end up with no whitelist ((whitelist.addr_count == 0) && (whitelist.irk_count == 0)).

    If you comment that call out, it should work. Also try to set the add_count to 1 instead of max count.

Children
Related