-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
TLV to JSON Converter #15440
TLV to JSON Converter #15440
Conversation
This adds a TLV to JSON converter to provide a means to deal with TLV in a more human-readable format for various purposes.
6b6d0dc
to
2a76f5c
Compare
PR #15440: Size comparison from 1fc5eed to 2a76f5c Full report (26 builds for cyw30739, efr32, k32w, linux, p6, qpg, telink)
|
Hi @mrjerryjohns does this help out in delivering manufacture specific clusters? Manufacture specific clusters need to have custom commands. And the commands for those clusters probably need to be created dynamically - on the fly. (Not as today with xml+zap+script etc.) |
Fast tracking, given this has had enough time for review. |
Not quite. Will follow up with you offline to enumerate the options. |
This reverts commit 45be5cf.
|
||
} // namespace | ||
|
||
nlTestSuite theSuite = { "TlvJson", sTests, Initialize, Finalize }; |
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.
This should be in the anonymous namespace, too. Otherwise, it conflicts with other tests when all tests are linked into a single binary.
This adds a TLV to JSON converter to provide a means to deal with TLV in a more human-readable format. This does not rely on any schema information and instead, just dumps out raw TLV present in cluster payloads into a JSON format.
This relies on the
jsoncpp
third party library.Testing
Added a unit-test.