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

softdevice: don't send a notify/indicate without a CCCD #210

Merged
merged 1 commit into from
Dec 25, 2023

Conversation

aykevl
Copy link
Member

@aykevl aykevl commented Dec 24, 2023

sd_ble_gatts_hvx_noescape can only be called when the notify/indicate permission is set (and therefore a CCCD has been added). Without it, it will just return an error.

This fixes a problem I found on the PineTime, while implementing the battery service.

sd_ble_gatts_hvx_noescape can only be called when the notify/indicate
permission is set (and therefore a CCCD has been added). Without it, it
will just return an error.

This fixes a problem I found on the PineTime, while implementing the
battery service.
@deadprogram
Copy link
Member

Makes sense, thanks for the fix @aykevl now merging.

@deadprogram deadprogram merged commit ec80e01 into dev Dec 25, 2023
5 checks passed
@deadprogram deadprogram deleted the fix-gatts-write-hvx branch December 25, 2023 11:48
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