Skip to content

Commit

Permalink
Added support to the bridge-app for action-lists. (#20121)
Browse files Browse the repository at this point in the history
* Added support to the bridge-app for action-lists.

Added the actions to turn on/off lights in a room (endpoint-list).
The instant-action is the supported command to run the actions.
Also, the setup-url attrubute was changed to be active.

* Restyled by clang-format

* Fixed build for esp32 bridge-app.

* Changes to return status correctly.

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
jwinder-ca and restyled-commits authored Jul 21, 2022
1 parent 83deb47 commit 5665d38
Show file tree
Hide file tree
Showing 10 changed files with 352 additions and 103 deletions.
9 changes: 9 additions & 0 deletions examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,19 @@ server cluster BridgedActions = 37 {

readonly attribute ActionStruct actionList[] = 0;
readonly attribute EndpointListStruct endpointList[] = 1;
readonly attribute long_char_string<512> setupUrl = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

request struct InstantActionRequest {
INT16U actionID = 0;
optional INT32U invokeID = 1;
}

command InstantAction(InstantActionRequest): DefaultSuccess = 0;
}

server cluster Basic = 40 {
Expand Down Expand Up @@ -1723,6 +1731,7 @@ endpoint 1 {
server cluster BridgedActions {
callback attribute actionList;
callback attribute endpointList;
ram attribute setupUrl default = "https://example.com";
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
Expand Down
Loading

0 comments on commit 5665d38

Please sign in to comment.