Using BTM_FILTER_COND_DEVICE_CLASS filter with wiced_bt_start_inquiry()

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LJYe_2922526
Level 5
Level 5
25 likes received 10 likes received 5 likes given

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.

0 Likes
1 Solution
Anonymous
Not applicable

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

View solution in original post

0 Likes
2 Replies