cancel
Showing results for 
Search instead for 
Did you mean: 

Studio Bluetooth

LJYe_2922526
Contributor

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
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