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

aioble/server.py: Allow BufferedCharacteristic to support all ops. #729

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

jimmo
Copy link
Member

@jimmo jimmo commented Sep 14, 2023

Updated version of #629 (adds a test and slightly simplifies the argument handling). I'm not too fussed about the backwards compatibility here because the existing behavior was broken, it never should have been read=True by default, rather it should have been write=True. (The whole point of the buffered characteristic is to allow the client to write larger values, and optionally have them accumulated via the append flag).


Previously a BufferedCharacteristic could only be read by the client, where it should have been writeable. This makes it support all ops (read / write / write-with-response, etc).

Adds a test to check the max_len and append functionality of BufferedCharacteristic.

This work was funded through GitHub Sponsors.

@jimmo
Copy link
Member Author

jimmo commented Sep 14, 2023

I will update this will the version number bump and aioble/README.md update after #728 is merged.

Previously a BufferedCharacteristic could only be read by the client, where
it should have been writeable. This makes it support all ops (read / write
/ write-with-response, etc).

Adds a test to check the max_len and append functionality of
BufferedCharacteristic.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <[email protected]>
@jimmo jimmo force-pushed the aioble-buffered-args branch from b836362 to fefbb99 Compare October 4, 2023 03:45
@jimmo jimmo merged commit 46748d2 into micropython:master Oct 4, 2023
3 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.

1 participant