Skip to content

Commit

Permalink
Add event definitions for basic info cluster (#11813)
Browse files Browse the repository at this point in the history
* Add event definitions for basic info clusters

* Run codegen
  • Loading branch information
yufengwangca authored and pull[bot] committed Nov 4, 2022
1 parent cc616d4 commit 9d7faef
Show file tree
Hide file tree
Showing 3 changed files with 267 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,30 @@ limitations under the License.
<attribute side="server" code="15" define="SERIAL_NUMBER" type="char_string" length="32" optional="true">SerialNumber</attribute>
<attribute side="server" code="16" define="LOCAL_CONFIG_DISABLED" type="boolean" default="0" writable="true" optional="true">LocalConfigDisabled</attribute>
<attribute side="server" code="17" define="REACHABLE" type="boolean" default="1" optional="true">Reachable</attribute>

<command source="server" code="0x00" name="StartUp">
<description>The StartUp event SHALL be emitted by a Node as soon as reasonable after completing a boot or reboot process.</description>
</command>

<command source="server" code="0x01" name="ShutDown">
<description>The ShutDown event SHOULD be emitted by a Node prior to any orderly shutdown sequence on a best-effort basis.</description>
</command>

<command source="server" code="0x02" name="Leave">
<description>The Leave event SHOULD be emitted by a Node prior to permanently leaving the Fabric.</description>
</command>

<event side="server" code="0x00" name="StartUp" priority="critical" optional="false">
<description>The StartUp event SHALL be emitted by a Node as soon as reasonable after completing a boot or reboot process.</description>
<field id="0" name="SoftwareVersion" type="INT32U"/>
</event>
<event side="server" code="0x01" name="ShutDown" priority="info" optional="false">
<description>The ShutDown event SHOULD be emitted by a Node prior to any orderly shutdown sequence on a best-effort basis.</description>
</event>
<event side="server" code="0x02" name="Leave" priority="info" optional="false">
<description>The Leave event SHOULD be emitted by a Node prior to permanently leaving the Fabric.</description>
</event>
<event side="server" code="0x03" name="ReachableChanged" priority="info" optional="true">
<description>This event (when supported) SHALL be generated when there is a change in the Reachable attribute.</description>
<field id="0" name="ReachableNewValue" type="boolean"/>
</event>

</cluster>
</configurator>
128 changes: 128 additions & 0 deletions zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp

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

124 changes: 124 additions & 0 deletions zzz_generated/app-common/app-common/zap-generated/cluster-objects.h

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

0 comments on commit 9d7faef

Please sign in to comment.