-
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.
Topographically Structured Attribute Data (#12575)
* Topographically Structured Attribute Data The existing format for how attribute reports were returned to callers of DeviceController.ReadAttribute() made it quite challenging for them to consume it in an easy enough manner. Instead of providing them with an effectively raw stream of attribute data, this commit organizes and structures that data into a series of nested dictionaries that mirror the topography and composition of the data in a given Matter device: Endpoints that contain Clusters that in turn contain Attributes. The Python data structure equivalent represents these as nested dictionaries: Dict[EndpointId, Dict[ClusterType, Dict[AttributeType, AttributeValue]]] Tests: - Updated the existing ReadAttribute and Subscription tests to utilize this new format. - Added new ones. - Validated using the REPL * Reverted back to a lock based scheme due to the inability to post work on to the REPL's main event loop for backgrounded work * Lots of fixups to make events and attributes work on master
- Loading branch information
1 parent
1f9a9b2
commit 3039457
Showing
9 changed files
with
4,033 additions
and
279 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.