|
| 1 | +<?xml version="1.0"?> |
| 2 | +<!-- |
| 3 | +Copyright (c) 2024 Project CHIP Authors |
| 4 | +
|
| 5 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +you may not use this file except in compliance with the License. |
| 7 | +You may obtain a copy of the License at |
| 8 | +
|
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | +Unless required by applicable law or agreed to in writing, software |
| 12 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +See the License for the specific language governing permissions and |
| 15 | +limitations under the License. |
| 16 | +--> |
| 17 | +<configurator> |
| 18 | + <domain name="CHIP"/> |
| 19 | + |
| 20 | + <struct name="ThreadNetworkStruct"> |
| 21 | + <cluster code="0x0453"/> |
| 22 | + <item name="ExtendedPanID" type="int64u"/> |
| 23 | + <item name="NetworkName" type="char_string" length="16"/> |
| 24 | + <item name="Channel" type="int16u"/> |
| 25 | + </struct> |
| 26 | + |
| 27 | + <cluster> |
| 28 | + <domain>Network Infrastructure</domain> |
| 29 | + <name>Thread Network Directory</name> |
| 30 | + <code>0x0453</code> |
| 31 | + <define>THREAD_NETWORK_DIRECTORY_CLUSTER</define> |
| 32 | + <description>Manages the names and credentials of Thread networks visible to the user.</description> |
| 33 | + |
| 34 | + <client tick="false" init="false">true</client> |
| 35 | + <server tick="false" init="false">true</server> |
| 36 | + |
| 37 | + <!-- cluster revision --> |
| 38 | + <globalAttribute side="either" code="0xFFFD" value="1"/> |
| 39 | + |
| 40 | + <attribute side="server" code="0x0000" define="PREFERRED_EXTENDED_PAN_ID" type="int64u" writable="true" isNullable="true" optional="false"> |
| 41 | + <description>PreferredExtendedPanID</description> |
| 42 | + <access op="read" privilege="manage"/> |
| 43 | + <access op="write" privilege="manage"/> |
| 44 | + </attribute> |
| 45 | + <attribute side="server" code="0x0001" define="THREAD_NETWORKS" type="array" entryType="ThreadNetworkStruct" writable="false" optional="false"> |
| 46 | + <description>ThreadNetworks</description> |
| 47 | + <access op="read" privilege="operate"/> |
| 48 | + </attribute> |
| 49 | + <attribute side="server" code="0x0002" define="THREAD_NETWORK_TABLE_SIZE" type="int8u" writable="false" optional="false">ThreadNetworkTableSize</attribute> |
| 50 | + |
| 51 | + <command source="client" code="0x00" name="AddNetwork" mustUseTimedInvoke="true" optional="false"> |
| 52 | + <description>Adds an entry to the ThreadNetworks list.</description> |
| 53 | + <access op="invoke" privilege="manage"/> |
| 54 | + <arg name="OperationalDataset" type="octet_string" length="254"/> |
| 55 | + </command> |
| 56 | + <command source="client" code="0x01" name="RemoveNetwork" mustUseTimedInvoke="true" optional="false"> |
| 57 | + <description>Removes an entry from the ThreadNetworks list.</description> |
| 58 | + <access op="invoke" privilege="manage"/> |
| 59 | + <arg name="ExtendedPanID" type="int64u"/> |
| 60 | + </command> |
| 61 | + <command source="client" code="0x02" name="GetOperationalDataset" mustUseTimedInvoke="true" optional="false" response="OperationalDatasetResponse"> |
| 62 | + <description>Retrieves a Thread Operational Dataset from the ThreadNetworks list.</description> |
| 63 | + <access op="invoke" privilege="operate"/> |
| 64 | + <arg name="ExtendedPanID" type="int64u"/> |
| 65 | + </command> |
| 66 | + <command source="server" code="0x03" name="OperationalDatasetResponse" optional="false"> |
| 67 | + <description>This is the response to a GetOperationalDataset request.</description> |
| 68 | + <arg name="OperationalDataset" type="octet_string" length="254"/> |
| 69 | + </command> |
| 70 | + |
| 71 | + <event side="server" code="0x00" name="NetworkChanged" priority="info" optional="false"> |
| 72 | + <description>This event SHALL be generated when an entry in ThreadNetworks is added, removed, or had its Operational Dataset changed.</description> |
| 73 | + <field id="0" name="ExtendedPanID" type="int64u"/> |
| 74 | + <access op="read" privilege="operate"/> |
| 75 | + </event> |
| 76 | + </cluster> |
| 77 | +</configurator> |
0 commit comments