Feb 06, 2018
08:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 06, 2018
08:06 AM
How do I use the 'class of device' filter for inquiry? I know I need to pass in wiced_bt_dev_cod_cond_t, but what is the difference between dev_class and dev_class_mask?
I'm working with 20706 on WICED Studio 6.
Thanks.
Solved! Go to Solution.
1 Solution
Anonymous
Not applicable
Mar 01, 2018
11:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 01, 2018
11:31 PM
You have to pass the device class you are looking for in dev_class. In dev_class_mask, you have to set the bits of the device class that should match with the value you have passed to dev_class.
For example, say you are looking for a wrist watch with audio features:
Set dev_class to 0x200704 and
set dev_class_mask to 0xFFFFFF
If you wanted to look for only audio devices:
set dev_class to 0x200000 and
set dev_class_mask to 0xFF0000
2 Replies