-
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
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
- Loading branch information
1 parent
ba69e73
commit 923f32d
Showing
9 changed files
with
4,848 additions
and
115 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.