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

Remove characteristic in GATT Client unsubscribe() if it's the last subscriber #579

Conversation

jmdietrich-gcx
Copy link
Contributor

GATT Client's subscribe() adds the characteristic itself as subscriber. Therefore the characteristic has to be removed in unsubscribe(), if it's the last subscriber. Otherwise the clean up does not work correctly and the CCCD never is set back to 0 in the remote device.

…ubscriber

GATT Client's subscribe() adds the characteristic itself as subscriber.
Therefore the characteristic has to be removed in unsubscribe(), if it's
the last subscriber. Otherwise the clean up does not work correctly and
the CCCD never is set back to 0 in the remote device.
@jmdietrich-gcx jmdietrich-gcx force-pushed the unsubscribe_characteristic_in_gatt_client branch from ae9e51a to 73fe564 Compare October 30, 2024 06:48
@barbibulle barbibulle merged commit b78f895 into google:main Oct 31, 2024
112 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