@@ -58,13 +58,15 @@ limitations under the License.
58
58
<item name =" f" type =" SimpleBitmap" optional =" false" />
59
59
<item name =" g" type =" single" optional =" false" />
60
60
<item name =" h" type =" double" optional =" false" />
61
+ <item name =" i" type =" TestGlobalEnum" optional =" true" />
61
62
</struct >
62
63
63
64
<struct name =" NestedStruct" >
64
65
<cluster code =" 0xFFF1FC05" />
65
66
<item name =" a" type =" int8u" optional =" false" />
66
67
<item name =" b" type =" boolean" optional =" false" />
67
68
<item name =" c" type =" SimpleStruct" optional =" false" />
69
+ <item name =" d" type =" TestGlobalStruct" optional =" true" />
68
70
</struct >
69
71
70
72
<struct name =" NestedStructList" >
@@ -198,6 +200,9 @@ limitations under the License.
198
200
<attribute side =" server" code =" 0x0032" define =" CLUSTER_ERROR_BOOLEAN"
199
201
type =" boolean" writable =" true" optional =" false" >cluster_error_boolean</attribute >
200
202
203
+ <attribute side =" server" code =" 0x0033" define =" GLOBAL_ENUM" type =" TestGlobalEnum" writable =" true" >global_enum</attribute >
204
+ <attribute side =" server" code =" 0x0034" define =" GLOBAL_STRUCT" type =" TestGlobalStruct" writable =" true" >global_struct</attribute >
205
+
201
206
<attribute side =" server" code =" 0x4000" define =" NULLABLE_BOOLEAN" type =" boolean" writable =" true" default =" false" isNullable =" true" optional =" false" >nullable_boolean</attribute >
202
207
<attribute side =" server" code =" 0x4001" define =" NULLABLE_BITMAP8" type =" Bitmap8MaskMap" writable =" true" default =" 0" isNullable =" true" optional =" false" >nullable_bitmap8</attribute >
203
208
<attribute side =" server" code =" 0x4002" define =" NULLABLE_BITMAP16" type =" Bitmap16MaskMap" writable =" true" default =" 0" isNullable =" true" optional =" false" >nullable_bitmap16</attribute >
@@ -232,8 +237,14 @@ limitations under the License.
232
237
<attribute side =" server" code =" 0x4028" define =" NULLABLE_RANGE_RESTRICTED_INT16U" type =" int16u" min =" 100" max =" 1000" writable =" true" isNullable =" true" optional =" false" default =" 200" >nullable_range_restricted_int16u</attribute >
233
238
<attribute side =" server" code =" 0x4029" define =" NULLABLE_RANGE_RESTRICTED_INT16S" type =" int16s" min =" -150" max =" 200" writable =" true" isNullable =" true" optional =" false" default =" -5" >nullable_range_restricted_int16s</attribute >
234
239
240
+ <!-- NOTE: write_only_int8u should not have been added in the 0x4... range
241
+ where the nullable versions of attributes go, but now we have to be a
242
+ bit careful about our attribute IDs as a result. -->
235
243
<attribute side =" server" code =" 0x402A" define =" WRITE_ONLY_INT8U" type =" int8u" writable =" true" default =" 0" optional =" true" >write_only_int8u</attribute >
236
244
245
+ <attribute side =" server" code =" 0x4033" define =" NULLABLE_GLOBAL_ENUM" type =" TestGlobalEnum" isNullable =" true" writable =" true" >nullable_global_enum</attribute >
246
+ <attribute side =" server" code =" 0x4034" define =" NULLABLE_GLOBAL_STRUCT" type =" TestGlobalStruct" isNullable =" true" writable =" true" >nullable_global_struct</attribute >
247
+
237
248
<!-- Attribute MEI sample having a different vendor ID than the cluster. -->
238
249
<attribute side =" server" code =" 0xFFF24F01" define =" MEI_INT8U" type =" int8u" writable =" true" default =" 0" optional =" false" >mei_int8u</attribute >
239
250
@@ -474,6 +485,16 @@ limitations under the License.
474
485
<arg name =" payload" type =" octet_string" />
475
486
</command >
476
487
488
+ <command source =" client" code =" 0x19" name =" GlobalEchoRequest"
489
+ response =" GlobalEchoResponse" optional =" true" >
490
+ <description >
491
+ Command that takes arguments that are global structs/enums and the
492
+ response just echoes them back.
493
+ </description >
494
+ <arg name =" field1" type =" TestGlobalStruct" />
495
+ <arg name =" field2" type =" TestGlobalEnum" />
496
+ </command >
497
+
477
498
<command source =" client" code =" 0xFFF200AA" name =" TestDifferentVendorMeiRequest"
478
499
optional =" true" response =" TestDifferentVendorMeiResponse" >
479
500
<description >
@@ -622,6 +643,14 @@ limitations under the License.
622
643
<arg name =" payload" type =" octet_string" />
623
644
</command >
624
645
646
+ <command source =" server" code =" 0x0E" name =" GlobalEchoResponse" optional =" true" disableDefaultResponse =" true" >
647
+ <description >
648
+ Response to GlobalEchoRequest.
649
+ </description >
650
+ <arg name =" field1" type =" TestGlobalStruct" />
651
+ <arg name =" field2" type =" TestGlobalEnum" />
652
+ </command >
653
+
625
654
<command source =" server" code =" 0xFFF200BB" name =" TestDifferentVendorMeiResponse" optional =" true" disableDefaultResponse =" true" >
626
655
<description >
627
656
Response to TestDifferentVendorMeiRequest, which is a command having a different MEI vendor ID than the cluster.
0 commit comments