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

Setting Class of Device

Hi,

We've developed a BLE HID device with mouse and keyboard capabilities based on the nRF52832 and SDK 14.0.

We're interested in declaring the CoD as "Combo keyboard/pointing device" as part of our advertising data. We currently set the "apperance" field as BLE_APPEARANCE_GENERIC_HID.

Most operating systems are fine with only having the appearance field, but some also filter by CoD.

We've noticed that ble_advdata_encode() in ble_advdata_set() encodes the name, appearance, address, flags, power level and a few other fields, but we haven't found any encoding function for the CoD. It also doesn't appear in the advdata struct.

Has the CoD encoding been implemented anywhere? is there an alternate way to set the CoD?

Thanks!

Parents Reply Children
Related