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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate 0x2902 chacteristic descriptor prevents notify in web bluetooth #51

Open
agrath opened this issue Jan 12, 2025 · 0 comments
Open

Comments

@agrath
Copy link

agrath commented Jan 12, 2025

When the calling code declares a charactersitic descriptor with uuid 2902, and also declares the characteristic to be notify, bleno automatically adds the descriptor.
This doesn't break anything except web based bluetooth, where in Chrome, an unknown error is thrown while trying to subscribe to the chacteristic

image

I will submit a pull request that simply skips the 2902 descriptor being added if it is defined on the peripheral as it is already added by bleno (with more appropriate flag handling)

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

1 participant