Skip to content

Commit

Permalink
[placeholder] Enable SetRegulatoryConfig command (#12464)
Browse files Browse the repository at this point in the history
* [placeholder] Enable SetRegulatoryConfig command

* Update generated code
  • Loading branch information
vivien-apple authored and pull[bot] committed Dec 9, 2021
1 parent 1b79b0f commit 1000646
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
18 changes: 17 additions & 1 deletion examples/placeholder/linux/apps/app1/config.zap
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,14 @@
"incoming": 1,
"outgoing": 0
},
{
"name": "SetRegulatoryConfig",
"code": 2,
"mfgCode": null,
"source": "client",
"incoming": 1,
"outgoing": 0
},
{
"name": "CommissioningComplete",
"code": 4,
Expand Down Expand Up @@ -449,6 +457,14 @@
"incoming": 0,
"outgoing": 1
},
{
"name": "SetRegulatoryConfigResponse",
"code": 3,
"mfgCode": null,
"source": "server",
"incoming": 0,
"outgoing": 1
},
{
"name": "CommissioningCompleteResponse",
"code": 5,
Expand Down Expand Up @@ -1924,4 +1940,4 @@
}
],
"log": []
}
}
6 changes: 4 additions & 2 deletions src/app/zap-templates/zcl/data-model/chip/matter-devices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ limitations under the License.
<requireAttribute>CLIENT_LIST</requireAttribute>
<requireAttribute>PARTS_LIST</requireAttribute>
</include>
<include cluster="General Commissioning" client="false" server="true" clientLocked="true" serverLocked="true">
<requireCommand>SetRegulatoryConfig</requireCommand>
</include>
<include cluster="Power Source Configuration" client="false" server="false" clientLocked="true" serverLocked="false"></include>
<include cluster="Time Synchronization" client="false" server="false" clientLocked="true" serverLocked="false"></include>
<include cluster="Group Key Management" client="false" server="true" clientLocked="true" serverLocked="true"></include>
<include cluster="General Commissioning" client="false" server="true" clientLocked="true" serverLocked="true"></include>
<include cluster="Network Commissioning" client="false" server="true" clientLocked="true" serverLocked="true"></include>
<include cluster="AdministratorCommissioning" client="false" server="true" clientLocked="true" serverLocked="true"></include>
<include cluster="Operational Credentials" client="false" server="true" clientLocked="true" serverLocked="true"></include>
Expand Down Expand Up @@ -2226,4 +2228,4 @@ limitations under the License.
<include cluster="Temperature Measurement" client="false" server="true" clientLocked="true" serverLocked="true"></include>
</clusters>
</deviceType>
</configurator>
</configurator>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1000646

Please sign in to comment.