-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add command support and split TLV parsing
TLV parsing can now happen without a concrete TLV structure to follow. Structures are parsed into dictionaries and list/arrays are into Python lists. They can't be reencoded this way! It is assumed they will be used to create a more concrete object via `.from_value` This handles the variable argument structures by allowing calling code to make them concrete once they determine the type. tlv.List is now a container superclass like tlv.Structure. It allows for Structure like attribute access but preserves order and duplicate keys (which may be unused). Commands are now supported by subclassing the data model cluster and overriding the class level Command() object. It stores input and output type info.
- Loading branch information
Showing
8 changed files
with
638 additions
and
380 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
Oops, something went wrong.