Skip to content

Adds feature reports support on Bluefruit52Lib's BLEHidGeneric service#849

Merged
hathach merged 2 commits into
adafruit:masterfrom
RobertDaleSmith:hid-generic-feature-reports
May 6, 2026
Merged

Adds feature reports support on Bluefruit52Lib's BLEHidGeneric service#849
hathach merged 2 commits into
adafruit:masterfrom
RobertDaleSmith:hid-generic-feature-reports

Conversation

@RobertDaleSmith
Copy link
Copy Markdown
Contributor

BLE HID Input and output reports are working fine but support for feature reports is missing from this lib.

WebHID Explorer offers a great tool for testing feature reports. In order to get feature reports working with the Seeed XIAO nrf Sense board, I needed to patch these changes into the platform.io framework used.

{
_chr_features[i].setUuid(UUID16_CHR_REPORT);
_chr_features[i].setProperties(CHR_PROPS_READ | CHR_PROPS_WRITE | CHR_PROPS_WRITE_WO_RESP);
_chr_features[i].setPermission(SECMODE_OPEN, SECMODE_OPEN);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

permission is too open, should we use SECMODE_ENC_NO_MITM, SECMODE_ENC_NO_MITM as the same as output report ?

Copy link
Copy Markdown
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look good, thank you. I update the permission to match other hid chars.

@hathach hathach merged commit af92c09 into adafruit:master May 6, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants