-
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
[WIP] Initial closure sample app for 917SoC #37752
base: master
Are you sure you want to change the base?
[WIP] Initial closure sample app for 917SoC #37752
Conversation
server code is included in this branch. will be removed once we rebase with master when server code is commited into master |
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.
Didn't mention this initially but we should use DataModelCallbacks.cpp now. ZCL was for zigbee and legacy reasons.
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.
sure. will adopt to DataModelCallbacks in next phase of app development.
at present we are not handling any attribute or commands.
if needed we can delete this file and take it up totally for next phase.
This PR contains a basic implementation of the closure sample app which includes rootnode as ep0 and closure base as ep1,
will be able to commission over wifi, populate ep1 with closure-control cluster ,give appropriate values for global attributes and return default values for closure control attributes and default success for closure control commands.
Attributes, Commands, and Events handling will be taken up in later PRs
Testing
[1740415369.750] [161165:161167] [TOO] Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 2472008
[1740415369.750] [161165:161167] [TOO] ServerList: 4 entries
[1740415369.750] [161165:161167] [TOO] [1]: 3 (Identify)
[1740415369.750] [161165:161167] [TOO] [2]: 4 (Groups)
[1740415369.750] [161165:161167] [TOO] [3]: 29 (Descriptor)
[1740415369.750] [161165:161167] [TOO] [4]: 260 (ClosureControl)
[1740415387.214] [161266:161274] [TOO] Endpoint: 1 Cluster: 0x0000_0104 Attribute 0x0000_FFFB DataVersion: 2407918899
[1740415387.214] [161266:161274] [TOO] AttributeList: 9 entries
[1740415387.215] [161266:161274] [TOO] [1]: 1 (MainState)
[1740415387.215] [161266:161274] [TOO] [2]: 2 (CurrentErrorList)
[1740415387.215] [161266:161274] [TOO] [3]: 3 (OverallState)
[1740415387.215] [161266:161274] [TOO] [4]: 4 (OverallTarget)
[1740415387.215] [161266:161274] [TOO] [5]: 65532 (FeatureMap)
[1740415387.215] [161266:161274] [TOO] [6]: 65533 (ClusterRevision)
[1740415387.215] [161266:161274] [TOO] [7]: 65528 (GeneratedCommandList)
[1740415387.215] [161266:161274] [TOO] [8]: 65529 (AcceptedCommandList)
[1740415387.215] [161266:161274] [TOO] [9]: 65531 (AttributeList)