Skip to content

Commit

Permalink
Add User Label Cluster xml defination
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca committed Dec 1, 2021
1 parent 02bd2c7 commit 0a6afad
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/app/zap-templates/zcl/data-model/chip/user-label-cluster.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0"?>
<!--
Copyright (c) 2021 Project CHIP Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<configurator>
<domain name="CHIP"/>

<struct name="LabelStruct">
<cluster code="0x0041"/>
<item name="label" type="CHAR_STRING" length="16"/>
<item name="value" type="CHAR_STRING" length="16"/>
</struct>

<cluster>
<domain>General</domain>
<name>Fixed Label</name>
<code>0x0041</code>
<define>USER_LABEL_CLUSTER</define>
<description>The Fixed Label Cluster provides a feature to tag an endpoint with zero or more labels.</description>
<attribute side="server" code="0x0000" define="LABEL_LIST" type="ARRAY" entryType="LabelStruct" length="254" writable="false" optional="false">label list</attribute>
</cluster>
</configurator>
1 change: 1 addition & 0 deletions src/app/zap-templates/zcl/zcl.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"thread-network-diagnostics-cluster.xml",
"time-synchronization-cluster.xml",
"tv-channel-cluster.xml",
"user-label-cluster.xml",
"wake-on-lan-cluster.xml",
"wifi-network-diagnostics-cluster.xml",
"window-covering.xml",
Expand Down

0 comments on commit 0a6afad

Please sign in to comment.