Repository navigation
Handle timed writes as the HAP spec describes #536
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
Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
787a525
Return -70405 when reading a characteristic without paired read
RaHehl 071f96d
Answer -70406 for event subscriptions without notify permission
RaHehl 3fd5a1b
Return -70404 when writing a characteristic without paired write
RaHehl 93d17d3
Ignore timed writes with an unknown or expired pid
RaHehl 1ef0721
Only send write responses for characteristics with wr permission
RaHehl 9ef52f7
Check the timed write permission on writes
RaHehl f946d1f
Only let the writing connection read back a write response
RaHehl aeaafaf
Merge branch 'enforce-permissions' into enforce-timed-write
RaHehl ab604de
Merge remote-tracking branch 'upstream/dev' into enforce-permissions
RaHehl 8f298c6
Drop the redundant bool() around the write response check
RaHehl ff12fb6
Type the write response helpers with the HAP JSON value types
RaHehl c9ed715
Explain why a private write puts the former value back
RaHehl 93abcd8
Merge branch 'enforce-permissions' into enforce-timed-write
RaHehl 2e00188
Don't tell subscribers the request of a write with r
RaHehl 0aa3907
Merge branch 'enforce-permissions' into enforce-timed-write
RaHehl d130cfb
Type the timed write pid and ignore a pid that is not an int
RaHehl 770db17
Run test_start_from_sync on the driver's own loop
RaHehl 142ce33
Merge remote-tracking branch 'upstream/dev' into enforce-timed-write
RaHehl 0688518
Refuse a prepare whose ttl or pid is not an integer
RaHehl 71119dc
Check the prepare ttl and pid before the try and test the edges
RaHehl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Is the query mapping to Any really? Is it not a hap type here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, it's the HAP JSON of a single characteristic write, so a small TypedDict fits better than
dict[str, Any]. Since this PR went in together with #537, I did that in #550.