-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python: Fix Reads + Misc Fixes (#11878)
* Fix Reads + Misc Fixes This PR fixes the following: - When handing a buffer of bytes from C++ to Python, the usage of c_char_p instead of c_void_p resulted in the buffer being treated as a null-terminated string, resulting in the clipping of the data anytime zero was encountered. This resulted in reads not quite working. - Fixed up the logic that automatically looked up the right type of cluster object when processing a read response. - Simplified the API for WriteAttribute by converting the generated classes for attributes into dataclasses with a 'value' member in them. - Added Python docstrings for read and write APIs * Build fixes * Fixed up ZCLWriteAttribute to work correctly * Build fix
- Loading branch information
1 parent
a1301f3
commit 1031104
Showing
5 changed files
with
3,580 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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 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.