- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, Is there an example showing how to use a white list when a master node is scanning? I saw a post How to add and remove peripherals from White List but it is for sensor (slave) nodes. Thank you.
Solved! Go to Solution.
- Labels:
-
Scanning-Advertising
-
SDK 2.X
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Huang,
Using the white list is the same as with the Master.
In hello_client:
Change this
//blecen_cen_cfg.scan_filter_policy = HCIULP_SCAN_FILTER_POLICY_WHITE_LIST_NOT_USED;
to this
blecen_cen_cfg.scan_filter_policy = HCIULP_SCAN_FILTER_POLICY_WHITE_LIST_USED;
Then you can set up the example used in the BLOG mentioned above.
Thanks,
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
abuch's blog: How to add and remove peripherals from White List
Shows how to add/remove peripherals to the White List running on a Central.
You are looking for a means to add/remove Central devices to/from a white list running on a peripheral.
Correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The blog post above is about adding the white list (a list of master nodes) to a peripherals.
I am looking for how to use the white list (a list of slaves nodes) for a master node, so when the master node scans the channels, it will ignore the slave nodes that is not in the list. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for correcting me. The title of the blog apparently needs to be changed as its implied meaning is my understanding below (what you are actually asking for).
I will change this now. We will need to talk to the developers about what's needed to reverse roles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Huang,
Using the white list is the same as with the Master.
In hello_client:
Change this
//blecen_cen_cfg.scan_filter_policy = HCIULP_SCAN_FILTER_POLICY_WHITE_LIST_NOT_USED;
to this
blecen_cen_cfg.scan_filter_policy = HCIULP_SCAN_FILTER_POLICY_WHITE_LIST_USED;
Then you can set up the example used in the BLOG mentioned above.
Thanks,
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks j.t
It works when I add only one address using blecm_SelectAddress. However, when I add the second address, it will replace the first address. Is it possible to have multiple address in the whitelist?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Answer my own question. One can specify the number of address in blecm_SelectAddress(address pointer, number of address). Maximum number is 5.