Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why your deviceInfoService the pnp characteristic vid pid version high byte on low position馃檭 #153

Open
qingwa2009 opened this issue Apr 7, 2024 · 1 comment

Comments

@qingwa2009
Copy link

void NimBLEHIDDevice::pnp(uint8_t sig, uint16_t vid, uint16_t pid, uint16_t version) {
uint8_t pnp[] = { sig, (uint8_t) (vid >> 8), (uint8_t) vid, (uint8_t) (pid >> 8), (uint8_t) pid, (uint8_t) (version >> 8), (uint8_t) version };
m_pnpCharacteristic->setValue(pnp, sizeof(pnp));
}

@h2zero
Copy link
Owner

h2zero commented Apr 8, 2024

hello @qingwa2009, the code for this class was adopted from the original library and has not been changed materially for this repo. I'm not very familiar with the HID requirements and I would appreciate any suggestions or PR's that would improve this.

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

No branches or pull requests

2 participants