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

don't check length for remote characteristic or descriptor #3993

Merged
merged 2 commits into from
Jan 14, 2021

Conversation

dhalbert
Copy link
Collaborator

Fixes #3975. Fix tested by @jlopez, who file the original issue.

_bleio: When doing a remote a remote characteristic or descriptor write, the size of the remote attribute is not known. The code was mistakenly checking against the default values in the characteristic or descriptor proxy object. This was a actually a regression: the original code had the check in the right place. Moved the checks so they only happens when writing a local value.

@dhalbert dhalbert requested a review from tannewt January 14, 2021 14:03
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@tannewt tannewt merged commit e6b49d9 into adafruit:main Jan 14, 2021
@dhalbert dhalbert deleted the gattc-write-lengths branch January 19, 2021 19:42
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.

_bleio: Unable to write more than 20 bytes to a peripheral characteristic when acting as central
2 participants