From 7896df140c0c2c5f7d6ca92f1ce5ba68af143d63 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 19 Jan 2022 09:14:45 -0500 Subject: [PATCH 1/7] Expose array size limit in IDL where size limit seems intentional --- .../all-clusters-app.matter | 16 ++++++++-------- .../bridge-app/bridge-common/bridge-app.matter | 8 ++++---- .../door-lock-common/door-lock-app.matter | 10 +++++----- .../lighting-common/lighting-app.matter | 8 ++++---- examples/lock-app/lock-common/lock-app.matter | 10 +++++----- .../ota-provider-app.matter | 2 +- .../ota-requestor-app.matter | 2 +- .../placeholder/linux/apps/app1/config.matter | 2 +- .../placeholder/linux/apps/app2/config.matter | 2 +- examples/pump-app/pump-common/pump-app.matter | 8 ++++---- .../pump-controller-app.matter | 8 ++++---- .../esp32/main/temperature-measurement.matter | 2 +- .../thermostat-common/thermostat.matter | 8 ++++---- examples/tv-app/tv-common/tv-app.matter | 12 ++++++------ .../tv-casting-common/tv-casting-app.matter | 10 +++++----- examples/window-app/common/window-app.matter | 10 +++++----- .../zap-templates/templates/app/MatterIDL.zapt | 6 +++++- src/app/zap-templates/templates/chip/helper.js | 18 ++++++++++++++++++ .../data_model/controller-clusters.matter | 16 ++++++++-------- 19 files changed, 90 insertions(+), 68 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 8bc60ce732b015..0de96ccdd9229a 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -121,7 +121,7 @@ server cluster ApplicationBasic = 1293 { attribute(readonly) int16u productId = 3; attribute(readonly) ApplicationStatusEnum applicationStatus = 5; attribute(readonly) char_string applicationVersion = 6; - attribute(readonly) vendor_id allowedVendorList[] = 7; + attribute(readonly) vendor_id allowedVendorList[32] = 7; attribute(readonly) int16u clusterRevision = 65533; } @@ -1823,7 +1823,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -2180,14 +2180,14 @@ server cluster PowerSource = 47 { attribute(readonly) int8u batteryPercentRemaining = 12; attribute(readonly) int32u batteryTimeRemaining = 13; attribute(readonly) enum8 batteryChargeLevel = 14; - attribute(readonly) ENUM8 activeBatteryFaults[] = 18; + attribute(readonly) ENUM8 activeBatteryFaults[8] = 18; attribute(readonly) enum8 batteryChargeState = 26; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; } server cluster PowerSourceConfiguration = 46 { - attribute(readonly) INT8U sources[] = 0; + attribute(readonly) INT8U sources[6] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -2578,7 +2578,7 @@ server cluster TestCluster = 1295 { attribute(writable) single floatSingle = 23; attribute(writable) double floatDouble = 24; attribute(writable) octet_string octetString = 25; - attribute(writable) INT8U listInt8u[] = 26; + attribute(writable) INT8U listInt8u[10] = 26; attribute(writable) OCTET_STRING listOctetString[] = 27; attribute(writable) TestListStructOctet listStructOctetString[] = 28; attribute(writable) long_octet_string longOctetString = 29; @@ -2909,10 +2909,10 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u activeTimestamp = 56; attribute(readonly) int64u pendingTimestamp = 57; attribute(readonly) int32u delay = 58; - attribute(readonly) SecurityPolicy securityPolicy[] = 59; + attribute(readonly) SecurityPolicy securityPolicy[6] = 59; attribute(readonly) octet_string channelMask = 60; - attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[] = 61; - attribute(readonly) NetworkFault activeNetworkFaultsList[] = 62; + attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[14] = 61; + attribute(readonly) NetworkFault activeNetworkFaultsList[4] = 62; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter index 5b96c72fc46520..eecf57ab3ff2dc 100644 --- a/examples/bridge-app/bridge-common/bridge-app.matter +++ b/examples/bridge-app/bridge-common/bridge-app.matter @@ -430,7 +430,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -819,10 +819,10 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u activeTimestamp = 56; attribute(readonly) int64u pendingTimestamp = 57; attribute(readonly) int32u delay = 58; - attribute(readonly) SecurityPolicy securityPolicy[] = 59; + attribute(readonly) SecurityPolicy securityPolicy[6] = 59; attribute(readonly) octet_string channelMask = 60; - attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[] = 61; - attribute(readonly) NetworkFault activeNetworkFaultsList[] = 62; + attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[14] = 61; + attribute(readonly) NetworkFault activeNetworkFaultsList[4] = 62; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/door-lock-app/door-lock-common/door-lock-app.matter b/examples/door-lock-app/door-lock-common/door-lock-app.matter index 16b9b8c2c6ae9c..c48cc72799a2ae 100644 --- a/examples/door-lock-app/door-lock-common/door-lock-app.matter +++ b/examples/door-lock-app/door-lock-common/door-lock-app.matter @@ -682,7 +682,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -866,7 +866,7 @@ server cluster PowerSource = 47 { } server cluster PowerSourceConfiguration = 46 { - attribute(readonly) INT8U sources[] = 0; + attribute(readonly) INT8U sources[6] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -1027,10 +1027,10 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u activeTimestamp = 56; attribute(readonly) int64u pendingTimestamp = 57; attribute(readonly) int32u delay = 58; - attribute(readonly) SecurityPolicy securityPolicy[] = 59; + attribute(readonly) SecurityPolicy securityPolicy[6] = 59; attribute(readonly) octet_string channelMask = 60; - attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[] = 61; - attribute(readonly) NetworkFault activeNetworkFaultsList[] = 62; + attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[14] = 61; + attribute(readonly) NetworkFault activeNetworkFaultsList[4] = 62; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter index 256b639135c43c..81c6e354dfe942 100644 --- a/examples/lighting-app/lighting-common/lighting-app.matter +++ b/examples/lighting-app/lighting-common/lighting-app.matter @@ -724,7 +724,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -1301,10 +1301,10 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u activeTimestamp = 56; attribute(readonly) int64u pendingTimestamp = 57; attribute(readonly) int32u delay = 58; - attribute(readonly) SecurityPolicy securityPolicy[] = 59; + attribute(readonly) SecurityPolicy securityPolicy[6] = 59; attribute(readonly) octet_string channelMask = 60; - attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[] = 61; - attribute(readonly) NetworkFault activeNetworkFaultsList[] = 62; + attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[14] = 61; + attribute(readonly) NetworkFault activeNetworkFaultsList[4] = 62; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter index f1a12df7a4f63c..4622a9e33ac243 100644 --- a/examples/lock-app/lock-common/lock-app.matter +++ b/examples/lock-app/lock-common/lock-app.matter @@ -349,7 +349,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -562,7 +562,7 @@ server cluster PowerSource = 47 { } server cluster PowerSourceConfiguration = 46 { - attribute(readonly) INT8U sources[] = 0; + attribute(readonly) INT8U sources[6] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -723,10 +723,10 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u activeTimestamp = 56; attribute(readonly) int64u pendingTimestamp = 57; attribute(readonly) int32u delay = 58; - attribute(readonly) SecurityPolicy securityPolicy[] = 59; + attribute(readonly) SecurityPolicy securityPolicy[6] = 59; attribute(readonly) octet_string channelMask = 60; - attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[] = 61; - attribute(readonly) NetworkFault activeNetworkFaultsList[] = 62; + attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[14] = 61; + attribute(readonly) NetworkFault activeNetworkFaultsList[4] = 62; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter index 163b3d30469b86..199dd7c9d53a43 100644 --- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter +++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter @@ -125,7 +125,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter index b7e711ba8ba50c..07107c81aaf856 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter +++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter @@ -156,7 +156,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index 4be14a2d022122..f0d28795c45be3 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -400,7 +400,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index 4be14a2d022122..f0d28795c45be3 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -400,7 +400,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter index ff9570cb327ba0..6ca33aa98417c1 100644 --- a/examples/pump-app/pump-common/pump-app.matter +++ b/examples/pump-app/pump-common/pump-app.matter @@ -405,7 +405,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -880,10 +880,10 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u activeTimestamp = 56; attribute(readonly) int64u pendingTimestamp = 57; attribute(readonly) int32u delay = 58; - attribute(readonly) SecurityPolicy securityPolicy[] = 59; + attribute(readonly) SecurityPolicy securityPolicy[6] = 59; attribute(readonly) octet_string channelMask = 60; - attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[] = 61; - attribute(readonly) NetworkFault activeNetworkFaultsList[] = 62; + attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[14] = 61; + attribute(readonly) NetworkFault activeNetworkFaultsList[4] = 62; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter index 04088538aedf2a..da30aba09dfd5c 100644 --- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter +++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter @@ -425,7 +425,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -868,10 +868,10 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u activeTimestamp = 56; attribute(readonly) int64u pendingTimestamp = 57; attribute(readonly) int32u delay = 58; - attribute(readonly) SecurityPolicy securityPolicy[] = 59; + attribute(readonly) SecurityPolicy securityPolicy[6] = 59; attribute(readonly) octet_string channelMask = 60; - attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[] = 61; - attribute(readonly) NetworkFault activeNetworkFaultsList[] = 62; + attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[14] = 61; + attribute(readonly) NetworkFault activeNetworkFaultsList[4] = 62; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter index 42d02bcdea1886..cb6502ec015402 100644 --- a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter +++ b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter @@ -349,7 +349,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index d18513da56a02b..46205d5c73d2f1 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -537,7 +537,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -1096,10 +1096,10 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u activeTimestamp = 56; attribute(readonly) int64u pendingTimestamp = 57; attribute(readonly) int32u delay = 58; - attribute(readonly) SecurityPolicy securityPolicy[] = 59; + attribute(readonly) SecurityPolicy securityPolicy[6] = 59; attribute(readonly) octet_string channelMask = 60; - attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[] = 61; - attribute(readonly) NetworkFault activeNetworkFaultsList[] = 62; + attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[14] = 61; + attribute(readonly) NetworkFault activeNetworkFaultsList[4] = 62; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter index 0881c0bcb7573e..87005fd1a7a89a 100644 --- a/examples/tv-app/tv-common/tv-app.matter +++ b/examples/tv-app/tv-common/tv-app.matter @@ -83,7 +83,7 @@ server cluster ApplicationBasic = 1293 { attribute(writable) ApplicationBasicApplication applicationApp = 4; attribute(readonly) ApplicationStatusEnum applicationStatus = 5; attribute(readonly) char_string applicationVersion = 6; - attribute(readonly) vendor_id allowedVendorList[] = 7; + attribute(readonly) vendor_id allowedVendorList[32] = 7; attribute(readonly) int16u clusterRevision = 65533; } @@ -1040,7 +1040,7 @@ client cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -1159,7 +1159,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -1702,10 +1702,10 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u activeTimestamp = 56; attribute(readonly) int64u pendingTimestamp = 57; attribute(readonly) int32u delay = 58; - attribute(readonly) SecurityPolicy securityPolicy[] = 59; + attribute(readonly) SecurityPolicy securityPolicy[6] = 59; attribute(readonly) octet_string channelMask = 60; - attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[] = 61; - attribute(readonly) NetworkFault activeNetworkFaultsList[] = 62; + attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[14] = 61; + attribute(readonly) NetworkFault activeNetworkFaultsList[4] = 62; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter index d79822852c6e06..1c5d21aeb30240 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter @@ -1669,7 +1669,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -2179,7 +2179,7 @@ server cluster TestCluster = 1295 { attribute(writable) enum8 enum8 = 21; attribute(writable) enum16 enum16 = 22; attribute(writable) octet_string octetString = 25; - attribute(writable) INT8U listInt8u[] = 26; + attribute(writable) INT8U listInt8u[10] = 26; attribute(writable) OCTET_STRING listOctetString[] = 27; attribute(writable) TestListStructOctet listStructOctetString[] = 28; attribute(writable) long_octet_string longOctetString = 29; @@ -2356,10 +2356,10 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u activeTimestamp = 56; attribute(readonly) int64u pendingTimestamp = 57; attribute(readonly) int32u delay = 58; - attribute(readonly) SecurityPolicy securityPolicy[] = 59; + attribute(readonly) SecurityPolicy securityPolicy[6] = 59; attribute(readonly) octet_string channelMask = 60; - attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[] = 61; - attribute(readonly) NetworkFault activeNetworkFaultsList[] = 62; + attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[14] = 61; + attribute(readonly) NetworkFault activeNetworkFaultsList[4] = 62; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter index 3417687e94b7a9..26754fb0b54f71 100644 --- a/examples/window-app/common/window-app.matter +++ b/examples/window-app/common/window-app.matter @@ -371,7 +371,7 @@ server cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -549,7 +549,7 @@ server cluster PowerSource = 47 { attribute(readonly) int8u batteryPercentRemaining = 12; attribute(readonly) int32u batteryTimeRemaining = 13; attribute(readonly) enum8 batteryChargeLevel = 14; - attribute(readonly) ENUM8 activeBatteryFaults[] = 18; + attribute(readonly) ENUM8 activeBatteryFaults[8] = 18; attribute(readonly) enum8 batteryChargeState = 26; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; @@ -712,10 +712,10 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u activeTimestamp = 56; attribute(readonly) int64u pendingTimestamp = 57; attribute(readonly) int32u delay = 58; - attribute(readonly) SecurityPolicy securityPolicy[] = 59; + attribute(readonly) SecurityPolicy securityPolicy[6] = 59; attribute(readonly) octet_string channelMask = 60; - attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[] = 61; - attribute(readonly) NetworkFault activeNetworkFaultsList[] = 62; + attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[14] = 61; + attribute(readonly) NetworkFault activeNetworkFaultsList[4] = 62; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/src/app/zap-templates/templates/app/MatterIDL.zapt b/src/app/zap-templates/templates/app/MatterIDL.zapt index a20411c00e3f8b..5b0575e493e6a5 100644 --- a/src/app/zap-templates/templates/app/MatterIDL.zapt +++ b/src/app/zap-templates/templates/app/MatterIDL.zapt @@ -42,7 +42,11 @@ {{~/unless~}} ) {{type}} {{asLowerCamelCase name~}} {{~#if isList~}} - [] + [ + {{~#if_valid_list_size_restriction~}} + {{maxLength}} + {{~/if_valid_list_size_restriction~}} + ] {{~/if}} = {{code}}; {{/chip_server_cluster_attributes}} {{#chip_cluster_commands}} diff --git a/src/app/zap-templates/templates/chip/helper.js b/src/app/zap-templates/templates/chip/helper.js index c7f9ea859b6a02..942c714fc75d87 100644 --- a/src/app/zap-templates/templates/chip/helper.js +++ b/src/app/zap-templates/templates/chip/helper.js @@ -453,6 +453,23 @@ async function if_chip_enum(type, options) return templateUtil.templatePromise(this.global, result); } +/** + * ZAP data model assumes pascal strings, so it always sets a size + * for arrays, even if spec says "unlimited". As such, we only + * assume valid sizes for things that look like a valid size + * + * Processes the block iff the current item has a maxLength that does not seem too + * large + */ +async function if_valid_list_size_restriction(options) +{ + if (this.maxLength && (this.maxLength < 254)) { + return options.fn(this); + } else { + return options.inverse(this); + } +} + // // Module exports // @@ -479,3 +496,4 @@ exports.if_chip_enum = if_chip_enum; exports.if_in_global_responses = if_in_global_responses; exports.chip_cluster_specific_structs = chip_cluster_specific_structs; exports.chip_shared_structs = chip_shared_structs; +exports.if_valid_list_size_restriction = if_valid_list_size_restriction; diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index f37ee214bc9abb..fc4eb66d1a7bf1 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -147,7 +147,7 @@ client cluster ApplicationBasic = 1293 { attribute(writable) ApplicationBasicApplication applicationApp = 4; attribute(readonly) ApplicationStatusEnum applicationStatus = 5; attribute(readonly) char_string applicationVersion = 6; - attribute(readonly) vendor_id allowedVendorList[] = 7; + attribute(readonly) vendor_id allowedVendorList[32] = 7; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; } @@ -2027,7 +2027,7 @@ client cluster NetworkCommissioning = 49 { } attribute(readonly) int8u maxNetworks = 0; - attribute(readonly) NetworkInfo networks[] = 1; + attribute(readonly) NetworkInfo networks[12] = 1; attribute(readonly) int8u scanMaxTimeSeconds = 2; attribute(readonly) int8u connectMaxTimeSeconds = 3; attribute(writable) boolean interfaceEnabled = 4; @@ -2401,7 +2401,7 @@ client cluster PowerSource = 47 { attribute(readonly) int8u batteryPercentRemaining = 12; attribute(readonly) int32u batteryTimeRemaining = 13; attribute(readonly) enum8 batteryChargeLevel = 14; - attribute(readonly) ENUM8 activeBatteryFaults[] = 18; + attribute(readonly) ENUM8 activeBatteryFaults[8] = 18; attribute(readonly) enum8 batteryChargeState = 26; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) bitmap32 featureMap = 65532; @@ -2409,7 +2409,7 @@ client cluster PowerSource = 47 { } client cluster PowerSourceConfiguration = 46 { - attribute(readonly) INT8U sources[] = 0; + attribute(readonly) INT8U sources[6] = 0; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; } @@ -2821,7 +2821,7 @@ client cluster TestCluster = 1295 { attribute(writable) single floatSingle = 23; attribute(writable) double floatDouble = 24; attribute(writable) octet_string octetString = 25; - attribute(writable) INT8U listInt8u[] = 26; + attribute(writable) INT8U listInt8u[10] = 26; attribute(writable) OCTET_STRING listOctetString[] = 27; attribute(writable) TestListStructOctet listStructOctetString[] = 28; attribute(writable) long_octet_string longOctetString = 29; @@ -3200,10 +3200,10 @@ client cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u activeTimestamp = 56; attribute(readonly) int64u pendingTimestamp = 57; attribute(readonly) int32u delay = 58; - attribute(readonly) SecurityPolicy securityPolicy[] = 59; + attribute(readonly) SecurityPolicy securityPolicy[6] = 59; attribute(readonly) octet_string channelMask = 60; - attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[] = 61; - attribute(readonly) NetworkFault activeNetworkFaultsList[] = 62; + attribute(readonly) OperationalDatasetComponents operationalDatasetComponents[14] = 61; + attribute(readonly) NetworkFault activeNetworkFaultsList[4] = 62; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) bitmap32 featureMap = 65532; attribute(readonly) int16u clusterRevision = 65533; From 04425204faa0b3f0475d7e4e93901c0b8fea9509 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 19 Jan 2022 17:58:49 -0500 Subject: [PATCH 2/7] Only use sizes for strings and place it together with the data type --- .../all-clusters-app.matter | 46 +++++++++---------- .../bridge-common/bridge-app.matter | 14 +++--- .../door-lock-common/door-lock-app.matter | 14 +++--- .../lighting-common/lighting-app.matter | 14 +++--- examples/lock-app/lock-common/lock-app.matter | 14 +++--- .../log-source-common/log-source-app.matter | 4 +- .../ota-provider-app.matter | 8 ++-- .../ota-requestor-app.matter | 8 ++-- .../placeholder/linux/apps/app1/config.matter | 4 +- .../placeholder/linux/apps/app2/config.matter | 4 +- examples/pump-app/pump-common/pump-app.matter | 14 +++--- .../pump-controller-app.matter | 14 +++--- .../esp32/main/temperature-measurement.matter | 12 ++--- .../thermostat-common/thermostat.matter | 16 +++---- examples/tv-app/tv-common/tv-app.matter | 34 +++++++------- .../tv-casting-common/tv-casting-app.matter | 32 ++++++------- examples/window-app/common/window-app.matter | 14 +++--- .../partials/idl/structure_member.zapt | 6 ++- .../data_model/controller-clusters.matter | 46 +++++++++---------- 19 files changed, 161 insertions(+), 157 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 0de96ccdd9229a..8f1a1f975aaee4 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster AccessControl = 31 { @@ -43,7 +43,7 @@ server cluster AccessControl = 31 { struct ExtensionEntry { fabric_idx fabricIndex = 0; - OCTET_STRING data = 1; + OCTET_STRING<254> data = 1; } info event AccessControlEntryChanged = 0 { @@ -154,7 +154,7 @@ server cluster AudioOutput = 1291 { struct OutputInfo { INT8U index = 1; OutputTypeEnum outputType = 2; - CHAR_STRING name = 3; + CHAR_STRING<32> name = 3; } attribute(readonly) OutputInfo audioOutputList[] = 0; @@ -284,7 +284,7 @@ server cluster BridgedActions = 37 { struct ActionStruct { INT16U actionID = 1; - CHAR_STRING name = 2; + CHAR_STRING<32> name = 2; ActionTypeEnum type = 3; INT16U endpointListID = 4; INT16U supportedCommands = 5; @@ -293,7 +293,7 @@ server cluster BridgedActions = 37 { struct EndpointListStruct { INT16U endpointListID = 1; - CHAR_STRING name = 2; + CHAR_STRING<32> name = 2; EndpointListTypeEnum type = 3; ENDPOINT_NO endpoints[] = 4; } @@ -334,9 +334,9 @@ server cluster Channel = 1284 { struct ChannelInfo { INT16U majorNumber = 1; INT16U minorNumber = 2; - CHAR_STRING name = 3; - CHAR_STRING callSign = 4; - CHAR_STRING affiliateCallSign = 5; + CHAR_STRING<32> name = 3; + CHAR_STRING<32> callSign = 4; + CHAR_STRING<32> affiliateCallSign = 5; } attribute(readonly) ChannelInfo channelList[] = 0; @@ -1233,11 +1233,11 @@ server cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -1287,17 +1287,17 @@ server cluster GroupKeyManagement = 63 { INT16U fabricIndex = 0; INT16U groupId = 1; INT16U endpoints[] = 2; - CHAR_STRING groupName = 3; + CHAR_STRING<16> groupName = 3; } struct GroupKeySet { INT16U groupKeySetID = 0; GroupKeySecurityPolicy securityPolicy = 1; - OCTET_STRING epochKey0 = 2; + OCTET_STRING<16> epochKey0 = 2; INT64U epochStartTime0 = 3; - OCTET_STRING epochKey1 = 4; + OCTET_STRING<16> epochKey1 = 4; INT64U epochStartTime1 = 5; - OCTET_STRING epochKey2 = 6; + OCTET_STRING<16> epochKey2 = 6; INT64U epochStartTime2 = 7; } @@ -1716,8 +1716,8 @@ server cluster MediaInput = 1287 { struct InputInfo { INT8U index = 1; InputTypeEnum inputType = 2; - CHAR_STRING name = 3; - CHAR_STRING description = 4; + CHAR_STRING<32> name = 3; + CHAR_STRING<32> description = 4; } attribute(readonly) InputInfo mediaInputList[] = 0; @@ -1753,7 +1753,7 @@ server cluster MediaPlayback = 1286 { server cluster ModeSelect = 80 { struct ModeOptionStruct { - CHAR_STRING label = 1; + CHAR_STRING<32> label = 1; INT8U mode = 2; INT32U semanticTag = 3; } @@ -2086,11 +2086,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -2405,7 +2405,7 @@ server cluster Scenes = 5 { server cluster SoftwareDiagnostics = 52 { struct ThreadMetrics { INT64U id = 1; - CHAR_STRING name = 2; + CHAR_STRING<8> name = 2; INT32U stackFreeCurrent = 3; INT32U stackFreeMinimum = 4; INT32U stackSize = 5; @@ -2472,7 +2472,7 @@ server cluster TargetNavigator = 1285 { struct TargetInfo { INT8U identifier = 1; - CHAR_STRING name = 2; + CHAR_STRING<32> name = 2; } attribute(readonly) TargetInfo targetNavigatorList[] = 0; @@ -2498,7 +2498,7 @@ server cluster TestCluster = 1295 { struct TestListStructOctet { INT64U fabricIndex = 1; - OCTET_STRING operationalCert = 2; + OCTET_STRING<32> operationalCert = 2; } struct NullablesAndOptionalsStruct { diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter index eecf57ab3ff2dc..7474eb6b4bebbf 100644 --- a/examples/bridge-app/bridge-common/bridge-app.matter +++ b/examples/bridge-app/bridge-common/bridge-app.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster AdministratorCommissioning = 60 { @@ -255,11 +255,11 @@ server cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -538,11 +538,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -627,7 +627,7 @@ server cluster OperationalCredentials = 62 { server cluster SoftwareDiagnostics = 52 { struct ThreadMetrics { INT64U id = 1; - CHAR_STRING name = 2; + CHAR_STRING<8> name = 2; INT32U stackFreeCurrent = 3; INT32U stackFreeMinimum = 4; INT32U stackSize = 5; diff --git a/examples/door-lock-app/door-lock-common/door-lock-app.matter b/examples/door-lock-app/door-lock-common/door-lock-app.matter index c48cc72799a2ae..ba2c49b8bd2002 100644 --- a/examples/door-lock-app/door-lock-common/door-lock-app.matter +++ b/examples/door-lock-app/door-lock-common/door-lock-app.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster AdministratorCommissioning = 60 { @@ -588,11 +588,11 @@ server cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -766,11 +766,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -873,7 +873,7 @@ server cluster PowerSourceConfiguration = 46 { server cluster SoftwareDiagnostics = 52 { struct ThreadMetrics { INT64U id = 1; - CHAR_STRING name = 2; + CHAR_STRING<8> name = 2; INT32U stackFreeCurrent = 3; INT32U stackFreeMinimum = 4; INT32U stackSize = 5; diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter index 81c6e354dfe942..b9dd2a02ec95d8 100644 --- a/examples/lighting-app/lighting-common/lighting-app.matter +++ b/examples/lighting-app/lighting-common/lighting-app.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster AdministratorCommissioning = 60 { @@ -504,11 +504,11 @@ server cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -1023,11 +1023,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -1112,7 +1112,7 @@ server cluster OperationalCredentials = 62 { server cluster SoftwareDiagnostics = 52 { struct ThreadMetrics { INT64U id = 1; - CHAR_STRING name = 2; + CHAR_STRING<8> name = 2; INT32U stackFreeCurrent = 3; INT32U stackFreeMinimum = 4; INT32U stackSize = 5; diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter index 4622a9e33ac243..b1eaaa729bb4d2 100644 --- a/examples/lock-app/lock-common/lock-app.matter +++ b/examples/lock-app/lock-common/lock-app.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster AdministratorCommissioning = 60 { @@ -255,11 +255,11 @@ server cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -462,11 +462,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -569,7 +569,7 @@ server cluster PowerSourceConfiguration = 46 { server cluster SoftwareDiagnostics = 52 { struct ThreadMetrics { INT64U id = 1; - CHAR_STRING name = 2; + CHAR_STRING<8> name = 2; INT32U stackFreeCurrent = 3; INT32U stackFreeMinimum = 4; INT32U stackSize = 5; diff --git a/examples/log-source-app/log-source-common/log-source-app.matter b/examples/log-source-app/log-source-common/log-source-app.matter index 3f3fd8dbb038a9..095488f6b59d89 100644 --- a/examples/log-source-app/log-source-common/log-source-app.matter +++ b/examples/log-source-app/log-source-common/log-source-app.matter @@ -236,11 +236,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter index 199dd7c9d53a43..68adac6c483015 100644 --- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter +++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster FixedLabel = 64 { @@ -274,11 +274,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter index 07107c81aaf856..5d97bca77cd0c1 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter +++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster Basic = 40 { @@ -374,11 +374,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index f0d28795c45be3..8bf057dc0e974f 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -508,11 +508,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index f0d28795c45be3..8bf057dc0e974f 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -508,11 +508,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter index 6ca33aa98417c1..ffaa82b377f941 100644 --- a/examples/pump-app/pump-common/pump-app.matter +++ b/examples/pump-app/pump-common/pump-app.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster AdministratorCommissioning = 60 { @@ -244,11 +244,11 @@ server cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -513,11 +513,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -712,7 +712,7 @@ server cluster PumpConfigurationAndControl = 512 { server cluster SoftwareDiagnostics = 52 { struct ThreadMetrics { INT64U id = 1; - CHAR_STRING name = 2; + CHAR_STRING<8> name = 2; INT32U stackFreeCurrent = 3; INT32U stackFreeMinimum = 4; INT32U stackSize = 5; diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter index da30aba09dfd5c..54eaef54d3310a 100644 --- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter +++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster AdministratorCommissioning = 60 { @@ -264,11 +264,11 @@ server cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -533,11 +533,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -707,7 +707,7 @@ client cluster PumpConfigurationAndControl = 512 { server cluster SoftwareDiagnostics = 52 { struct ThreadMetrics { INT64U id = 1; - CHAR_STRING name = 2; + CHAR_STRING<8> name = 2; INT32U stackFreeCurrent = 3; INT32U stackFreeMinimum = 4; INT32U stackSize = 5; diff --git a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter index cb6502ec015402..b0d928d75fc282 100644 --- a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter +++ b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster AdministratorCommissioning = 60 { @@ -255,11 +255,11 @@ server cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -427,11 +427,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index 46205d5c73d2f1..7218c7f5e3866b 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster AdministratorCommissioning = 60 { @@ -286,11 +286,11 @@ server cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -340,7 +340,7 @@ server cluster GroupKeyManagement = 63 { INT16U fabricIndex = 0; INT16U groupId = 1; INT16U endpoints[] = 2; - CHAR_STRING groupName = 3; + CHAR_STRING<16> groupName = 3; } attribute(readonly) GroupKey groupKeyMap[] = 0; @@ -686,11 +686,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -875,7 +875,7 @@ server cluster Scenes = 5 { server cluster SoftwareDiagnostics = 52 { struct ThreadMetrics { INT64U id = 1; - CHAR_STRING name = 2; + CHAR_STRING<8> name = 2; INT32U stackFreeCurrent = 3; INT32U stackFreeMinimum = 4; INT32U stackSize = 5; diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter index 87005fd1a7a89a..c32008aa45f21e 100644 --- a/examples/tv-app/tv-common/tv-app.matter +++ b/examples/tv-app/tv-common/tv-app.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster AccountLogin = 1294 { @@ -144,7 +144,7 @@ server cluster AudioOutput = 1291 { struct OutputInfo { INT8U index = 1; OutputTypeEnum outputType = 2; - CHAR_STRING name = 3; + CHAR_STRING<32> name = 3; } attribute(readonly) OutputInfo audioOutputList[] = 0; @@ -257,9 +257,9 @@ server cluster Channel = 1284 { struct ChannelInfo { INT16U majorNumber = 1; INT16U minorNumber = 2; - CHAR_STRING name = 3; - CHAR_STRING callSign = 4; - CHAR_STRING affiliateCallSign = 5; + CHAR_STRING<32> name = 3; + CHAR_STRING<32> callSign = 4; + CHAR_STRING<32> affiliateCallSign = 5; } struct LineupInfo { @@ -628,11 +628,11 @@ server cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -682,7 +682,7 @@ server cluster GroupKeyManagement = 63 { INT16U fabricIndex = 0; INT16U groupId = 1; INT16U endpoints[] = 2; - CHAR_STRING groupName = 3; + CHAR_STRING<16> groupName = 3; } attribute(readonly) GroupKey groupKeyMap[] = 0; @@ -906,8 +906,8 @@ server cluster MediaInput = 1287 { struct InputInfo { INT8U index = 1; InputTypeEnum inputType = 2; - CHAR_STRING name = 3; - CHAR_STRING description = 4; + CHAR_STRING<32> name = 3; + CHAR_STRING<32> description = 4; } attribute(readonly) InputInfo mediaInputList[] = 0; @@ -1332,11 +1332,11 @@ client cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -1423,11 +1423,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -1519,7 +1519,7 @@ server cluster RelativeHumidityMeasurement = 1029 { server cluster SoftwareDiagnostics = 52 { struct ThreadMetrics { INT64U id = 1; - CHAR_STRING name = 2; + CHAR_STRING<8> name = 2; INT32U stackFreeCurrent = 3; INT32U stackFreeMinimum = 4; INT32U stackSize = 5; @@ -1546,7 +1546,7 @@ server cluster TargetNavigator = 1285 { struct TargetInfo { INT8U identifier = 1; - CHAR_STRING name = 2; + CHAR_STRING<32> name = 2; } attribute(readonly) TargetInfo targetNavigatorList[] = 0; diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter index 1c5d21aeb30240..4a2d521ed54bc5 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } client cluster AccountLogin = 1294 { @@ -122,7 +122,7 @@ client cluster AudioOutput = 1291 { struct OutputInfo { INT8U index = 1; OutputTypeEnum outputType = 2; - CHAR_STRING name = 3; + CHAR_STRING<32> name = 3; } attribute(readonly) OutputInfo audioOutputList[] = 0; @@ -259,9 +259,9 @@ client cluster Channel = 1284 { struct ChannelInfo { INT16U majorNumber = 1; INT16U minorNumber = 2; - CHAR_STRING name = 3; - CHAR_STRING callSign = 4; - CHAR_STRING affiliateCallSign = 5; + CHAR_STRING<32> name = 3; + CHAR_STRING<32> callSign = 4; + CHAR_STRING<32> affiliateCallSign = 5; } struct LineupInfo { @@ -1133,11 +1133,11 @@ server cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -1187,7 +1187,7 @@ server cluster GroupKeyManagement = 63 { INT16U fabricIndex = 0; INT16U groupId = 1; INT16U endpoints[] = 2; - CHAR_STRING groupName = 3; + CHAR_STRING<16> groupName = 3; } attribute(readonly) GroupKey groupKeyMap[] = 0; @@ -1552,8 +1552,8 @@ client cluster MediaInput = 1287 { struct InputInfo { INT8U index = 1; InputTypeEnum inputType = 2; - CHAR_STRING name = 3; - CHAR_STRING description = 4; + CHAR_STRING<32> name = 3; + CHAR_STRING<32> description = 4; } attribute(readonly) InputInfo mediaInputList[] = 0; @@ -1854,11 +1854,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -2057,7 +2057,7 @@ server cluster Scenes = 5 { server cluster SoftwareDiagnostics = 52 { struct ThreadMetrics { INT64U id = 1; - CHAR_STRING name = 2; + CHAR_STRING<8> name = 2; INT32U stackFreeCurrent = 3; INT32U stackFreeMinimum = 4; INT32U stackSize = 5; @@ -2120,7 +2120,7 @@ client cluster TargetNavigator = 1285 { struct TargetInfo { INT8U identifier = 1; - CHAR_STRING name = 2; + CHAR_STRING<32> name = 2; } attribute(readonly) TargetInfo targetNavigatorList[] = 0; @@ -2151,7 +2151,7 @@ server cluster TestCluster = 1295 { struct TestListStructOctet { INT64U fabricIndex = 1; - OCTET_STRING operationalCert = 2; + OCTET_STRING<32> operationalCert = 2; } info event TestEvent = 1 { diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter index 26754fb0b54f71..68d19b47665e1e 100644 --- a/examples/window-app/common/window-app.matter +++ b/examples/window-app/common/window-app.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } server cluster AdministratorCommissioning = 60 { @@ -232,11 +232,11 @@ server cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -455,11 +455,11 @@ server cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -558,7 +558,7 @@ server cluster PowerSource = 47 { server cluster SoftwareDiagnostics = 52 { struct ThreadMetrics { INT64U id = 1; - CHAR_STRING name = 2; + CHAR_STRING<8> name = 2; INT32U stackFreeCurrent = 3; INT32U stackFreeMinimum = 4; INT32U stackSize = 5; diff --git a/src/app/zap-templates/partials/idl/structure_member.zapt b/src/app/zap-templates/partials/idl/structure_member.zapt index d64eeefbc98d53..25264859b9444a 100644 --- a/src/app/zap-templates/partials/idl/structure_member.zapt +++ b/src/app/zap-templates/partials/idl/structure_member.zapt @@ -1,7 +1,11 @@ {{~#if isOptional~}} optional {{/if~}} {{~#if isNullable~}} nullable {{/if~}} -{{type}} {{asLowerCamelCase label~}} +{{type}} {{~#if (isString type)~}} + {{~#if maxLength~}} + <{{maxLength}}> + {{~/if~}} +{{~/if}} {{asLowerCamelCase label~}} {{~#if isArray~}} [] diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index fc4eb66d1a7bf1..67429838e7627b 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -2,8 +2,8 @@ // It is for view/code review purposes only. struct LabelStruct { - CHAR_STRING label = 1; - CHAR_STRING value = 2; + CHAR_STRING<16> label = 1; + CHAR_STRING<16> value = 2; } client cluster AccessControl = 31 { @@ -43,7 +43,7 @@ client cluster AccessControl = 31 { struct ExtensionEntry { fabric_idx fabricIndex = 0; - OCTET_STRING data = 1; + OCTET_STRING<254> data = 1; } info event AccessControlEntryChanged = 0 { @@ -204,7 +204,7 @@ client cluster AudioOutput = 1291 { struct OutputInfo { INT8U index = 1; OutputTypeEnum outputType = 2; - CHAR_STRING name = 3; + CHAR_STRING<32> name = 3; } attribute(readonly) OutputInfo audioOutputList[] = 0; @@ -352,7 +352,7 @@ client cluster BridgedActions = 37 { struct ActionStruct { INT16U actionID = 1; - CHAR_STRING name = 2; + CHAR_STRING<32> name = 2; ActionTypeEnum type = 3; INT16U endpointListID = 4; INT16U supportedCommands = 5; @@ -361,7 +361,7 @@ client cluster BridgedActions = 37 { struct EndpointListStruct { INT16U endpointListID = 1; - CHAR_STRING name = 2; + CHAR_STRING<32> name = 2; EndpointListTypeEnum type = 3; ENDPOINT_NO endpoints[] = 4; } @@ -482,9 +482,9 @@ client cluster Channel = 1284 { struct ChannelInfo { INT16U majorNumber = 1; INT16U minorNumber = 2; - CHAR_STRING name = 3; - CHAR_STRING callSign = 4; - CHAR_STRING affiliateCallSign = 5; + CHAR_STRING<32> name = 3; + CHAR_STRING<32> callSign = 4; + CHAR_STRING<32> affiliateCallSign = 5; } attribute(readonly) ChannelInfo channelList[] = 0; @@ -1429,11 +1429,11 @@ client cluster GeneralDiagnostics = 51 { } struct NetworkInterfaceType { - CHAR_STRING name = 1; + CHAR_STRING<32> name = 1; BOOLEAN fabricConnected = 2; BOOLEAN offPremiseServicesReachableIPv4 = 3; BOOLEAN offPremiseServicesReachableIPv6 = 4; - OCTET_STRING hardwareAddress = 5; + OCTET_STRING<8> hardwareAddress = 5; InterfaceType type = 6; } @@ -1484,17 +1484,17 @@ client cluster GroupKeyManagement = 63 { INT16U fabricIndex = 0; INT16U groupId = 1; INT16U endpoints[] = 2; - CHAR_STRING groupName = 3; + CHAR_STRING<16> groupName = 3; } struct GroupKeySet { INT16U groupKeySetID = 0; GroupKeySecurityPolicy securityPolicy = 1; - OCTET_STRING epochKey0 = 2; + OCTET_STRING<16> epochKey0 = 2; INT64U epochStartTime0 = 3; - OCTET_STRING epochKey1 = 4; + OCTET_STRING<16> epochKey1 = 4; INT64U epochStartTime1 = 5; - OCTET_STRING epochKey2 = 6; + OCTET_STRING<16> epochKey2 = 6; INT64U epochStartTime2 = 7; } @@ -1875,8 +1875,8 @@ client cluster MediaInput = 1287 { struct InputInfo { INT8U index = 1; InputTypeEnum inputType = 2; - CHAR_STRING name = 3; - CHAR_STRING description = 4; + CHAR_STRING<32> name = 3; + CHAR_STRING<32> description = 4; } attribute(readonly) InputInfo mediaInputList[] = 0; @@ -1956,7 +1956,7 @@ client cluster MediaPlayback = 1286 { client cluster ModeSelect = 80 { struct ModeOptionStruct { - CHAR_STRING label = 1; + CHAR_STRING<32> label = 1; INT8U mode = 2; INT32U semanticTag = 3; } @@ -2306,11 +2306,11 @@ client cluster OperationalCredentials = 62 { struct FabricDescriptor { INT8U fabricIndex = 1; - OCTET_STRING rootPublicKey = 2; + OCTET_STRING<65> rootPublicKey = 2; INT16U vendorId = 3; FABRIC_ID fabricId = 4; NODE_ID nodeId = 5; - CHAR_STRING label = 6; + CHAR_STRING<32> label = 6; } attribute(readonly) FabricDescriptor fabricsList[] = 1; @@ -2632,7 +2632,7 @@ client cluster Scenes = 5 { client cluster SoftwareDiagnostics = 52 { struct ThreadMetrics { INT64U id = 1; - CHAR_STRING name = 2; + CHAR_STRING<8> name = 2; INT32U stackFreeCurrent = 3; INT32U stackFreeMinimum = 4; INT32U stackSize = 5; @@ -2701,7 +2701,7 @@ client cluster TargetNavigator = 1285 { struct TargetInfo { INT8U identifier = 1; - CHAR_STRING name = 2; + CHAR_STRING<32> name = 2; } attribute(readonly) TargetInfo targetNavigatorList[] = 0; @@ -2741,7 +2741,7 @@ client cluster TestCluster = 1295 { struct TestListStructOctet { INT64U fabricIndex = 1; - OCTET_STRING operationalCert = 2; + OCTET_STRING<32> operationalCert = 2; } struct NullablesAndOptionalsStruct { From 750fb43ada7f26d2e49345dd8bb6c5e480742cd0 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 20 Jan 2022 08:04:33 -0500 Subject: [PATCH 3/7] Remove if_valid_list_size usage --- .../zap-templates/templates/app/MatterIDL.zapt | 6 +----- src/app/zap-templates/templates/chip/helper.js | 18 ------------------ 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/src/app/zap-templates/templates/app/MatterIDL.zapt b/src/app/zap-templates/templates/app/MatterIDL.zapt index 5b0575e493e6a5..51981eb5551871 100644 --- a/src/app/zap-templates/templates/app/MatterIDL.zapt +++ b/src/app/zap-templates/templates/app/MatterIDL.zapt @@ -42,11 +42,7 @@ {{~/unless~}} ) {{type}} {{asLowerCamelCase name~}} {{~#if isList~}} - [ - {{~#if_valid_list_size_restriction~}} - {{maxLength}} - {{~/if_valid_list_size_restriction~}} - ] + [{{maxLength}}] {{~/if}} = {{code}}; {{/chip_server_cluster_attributes}} {{#chip_cluster_commands}} diff --git a/src/app/zap-templates/templates/chip/helper.js b/src/app/zap-templates/templates/chip/helper.js index 942c714fc75d87..c7f9ea859b6a02 100644 --- a/src/app/zap-templates/templates/chip/helper.js +++ b/src/app/zap-templates/templates/chip/helper.js @@ -453,23 +453,6 @@ async function if_chip_enum(type, options) return templateUtil.templatePromise(this.global, result); } -/** - * ZAP data model assumes pascal strings, so it always sets a size - * for arrays, even if spec says "unlimited". As such, we only - * assume valid sizes for things that look like a valid size - * - * Processes the block iff the current item has a maxLength that does not seem too - * large - */ -async function if_valid_list_size_restriction(options) -{ - if (this.maxLength && (this.maxLength < 254)) { - return options.fn(this); - } else { - return options.inverse(this); - } -} - // // Module exports // @@ -496,4 +479,3 @@ exports.if_chip_enum = if_chip_enum; exports.if_in_global_responses = if_in_global_responses; exports.chip_cluster_specific_structs = chip_cluster_specific_structs; exports.chip_shared_structs = chip_shared_structs; -exports.if_valid_list_size_restriction = if_valid_list_size_restriction; From e6617f9a9e0e6a2bf9ba4ecf755911edb5acf93d Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 20 Jan 2022 08:11:27 -0500 Subject: [PATCH 4/7] ZAP regen --- .../all-clusters-app.matter | 62 +++++++++---------- .../bridge-common/bridge-app.matter | 34 +++++----- .../door-lock-common/door-lock-app.matter | 34 +++++----- .../lighting-common/lighting-app.matter | 34 +++++----- examples/lock-app/lock-common/lock-app.matter | 34 +++++----- .../log-source-common/log-source-app.matter | 6 +- .../ota-provider-app.matter | 12 ++-- .../ota-requestor-app.matter | 12 ++-- .../placeholder/linux/apps/app1/config.matter | 14 ++--- .../placeholder/linux/apps/app2/config.matter | 14 ++--- examples/pump-app/pump-common/pump-app.matter | 34 +++++----- .../pump-controller-app.matter | 34 +++++----- .../esp32/main/temperature-measurement.matter | 28 ++++----- .../thermostat-common/thermostat.matter | 38 ++++++------ examples/tv-app/tv-common/tv-app.matter | 56 ++++++++--------- .../tv-casting-common/tv-casting-app.matter | 54 ++++++++-------- examples/window-app/common/window-app.matter | 34 +++++----- .../data_model/controller-clusters.matter | 62 +++++++++---------- 18 files changed, 298 insertions(+), 298 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 8f1a1f975aaee4..d360740eb8e3af 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -137,7 +137,7 @@ server cluster ApplicationLauncher = 1292 { CHAR_STRING applicationId = 2; } - attribute(readonly) INT16U applicationLauncherList[] = 0; + attribute(readonly) INT16U applicationLauncherList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -157,7 +157,7 @@ server cluster AudioOutput = 1291 { CHAR_STRING<32> name = 3; } - attribute(readonly) OutputInfo audioOutputList[] = 0; + attribute(readonly) OutputInfo audioOutputList[254] = 0; attribute(readonly) int8u currentAudioOutput = 1; attribute(readonly) int16u clusterRevision = 65533; } @@ -311,8 +311,8 @@ server cluster BridgedActions = 37 { ActionErrorEnum error = 3; } - attribute(readonly) ActionStruct actionList[] = 0; - attribute(readonly) EndpointListStruct endpointList[] = 1; + attribute(readonly) ActionStruct actionList[256] = 0; + attribute(readonly) EndpointListStruct endpointList[256] = 1; attribute(readonly) long_char_string setupUrl = 2; attribute(readonly) int16u clusterRevision = 65533; } @@ -339,7 +339,7 @@ server cluster Channel = 1284 { CHAR_STRING<32> affiliateCallSign = 5; } - attribute(readonly) ChannelInfo channelList[] = 0; + attribute(readonly) ChannelInfo channelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -677,7 +677,7 @@ server cluster ContentLauncher = 1290 { MetricTypeEnum metric = 3; } - attribute(readonly) CHAR_STRING acceptHeaderList[] = 0; + attribute(readonly) CHAR_STRING acceptHeaderList[254] = 0; attribute(writable) bitmap32 supportedStreamingProtocols = 1; attribute(readonly) int16u clusterRevision = 65533; } @@ -688,10 +688,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -1112,7 +1112,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -1143,7 +1143,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -1260,14 +1260,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) int16u clusterRevision = 65533; } @@ -1301,8 +1301,8 @@ server cluster GroupKeyManagement = 63 { INT64U epochStartTime2 = 7; } - attribute(readonly) GroupKey groupKeyMap[] = 0; - attribute(readonly) GroupInfo groupTable[] = 1; + attribute(readonly) GroupKey groupKeyMap[254] = 0; + attribute(readonly) GroupInfo groupTable[254] = 1; attribute(readonly) int16u maxGroupsPerFabric = 2; attribute(readonly) int16u maxGroupKeysPerFabric = 3; attribute(readonly) int16u clusterRevision = 65533; @@ -1688,7 +1688,7 @@ server cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster LowPower = 1288 { @@ -1720,7 +1720,7 @@ server cluster MediaInput = 1287 { CHAR_STRING<32> description = 4; } - attribute(readonly) InputInfo mediaInputList[] = 0; + attribute(readonly) InputInfo mediaInputList[254] = 0; attribute(readonly) int8u currentMediaInput = 1; attribute(readonly) int16u clusterRevision = 65533; } @@ -1759,7 +1759,7 @@ server cluster ModeSelect = 80 { } attribute(readonly) int8u currentMode = 0; - attribute(readonly) ModeOptionStruct supportedModes[] = 1; + attribute(readonly) ModeOptionStruct supportedModes[255] = 1; attribute(writable) int8u onMode = 2; attribute(readonly) int8u startUpMode = 3; attribute(readonly) char_string description = 4; @@ -2093,10 +2093,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -2415,7 +2415,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - attribute(readonly) ThreadMetrics threadMetrics[] = 0; + attribute(readonly) ThreadMetrics threadMetrics[254] = 0; attribute(readonly) int64u currentHeapFree = 1; attribute(readonly) int64u currentHeapUsed = 2; attribute(readonly) int64u currentHeapHighWatermark = 3; @@ -2475,7 +2475,7 @@ server cluster TargetNavigator = 1285 { CHAR_STRING<32> name = 2; } - attribute(readonly) TargetInfo targetNavigatorList[] = 0; + attribute(readonly) TargetInfo targetNavigatorList[254] = 0; attribute(readonly) int8u currentNavigatorTarget = 1; attribute(readonly) int16u clusterRevision = 65533; } @@ -2579,8 +2579,8 @@ server cluster TestCluster = 1295 { attribute(writable) double floatDouble = 24; attribute(writable) octet_string octetString = 25; attribute(writable) INT8U listInt8u[10] = 26; - attribute(writable) OCTET_STRING listOctetString[] = 27; - attribute(writable) TestListStructOctet listStructOctetString[] = 28; + attribute(writable) OCTET_STRING listOctetString[254] = 27; + attribute(writable) TestListStructOctet listStructOctetString[254] = 28; attribute(writable) long_octet_string longOctetString = 29; attribute(writable) char_string charString = 30; attribute(writable) long_char_string longCharString = 31; @@ -2594,7 +2594,7 @@ server cluster TestCluster = 1295 { attribute(writable) int8s rangeRestrictedInt8s = 39; attribute(writable) int16u rangeRestrictedInt16u = 40; attribute(writable) int16s rangeRestrictedInt16s = 41; - attribute(readonly) LONG_OCTET_STRING listLongOctetString[] = 42; + attribute(readonly) LONG_OCTET_STRING listLongOctetString[1000] = 42; attribute(writable) boolean timedWriteBoolean = 48; attribute(writable) boolean nullableBoolean = 32768; attribute(writable) bitmap8 nullableBitmap8 = 32769; @@ -2857,8 +2857,8 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u extendedPanId = 4; attribute(readonly) octet_string meshLocalPrefix = 5; attribute(readonly) int64u overrunCount = 6; - attribute(readonly) NeighborTable neighborTableList[] = 7; - attribute(readonly) RouteTable routeTableList[] = 8; + attribute(readonly) NeighborTable neighborTableList[254] = 7; + attribute(readonly) RouteTable routeTableList[254] = 8; attribute(readonly) int32u partitionId = 9; attribute(readonly) int8u weighting = 10; attribute(readonly) int8u dataVersion = 11; @@ -2920,7 +2920,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter index 7474eb6b4bebbf..819f1a66e841c3 100644 --- a/examples/bridge-app/bridge-common/bridge-app.matter +++ b/examples/bridge-app/bridge-common/bridge-app.matter @@ -77,10 +77,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -142,7 +142,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -165,7 +165,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -282,14 +282,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) int16u clusterRevision = 65533; } @@ -376,7 +376,7 @@ server cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster NetworkCommissioning = 49 { @@ -545,10 +545,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -637,7 +637,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - attribute(readonly) ThreadMetrics threadMetrics[] = 0; + attribute(readonly) ThreadMetrics threadMetrics[254] = 0; attribute(readonly) int64u currentHeapFree = 1; attribute(readonly) int64u currentHeapUsed = 2; attribute(readonly) int64u currentHeapHighWatermark = 3; @@ -767,8 +767,8 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u extendedPanId = 4; attribute(readonly) octet_string meshLocalPrefix = 5; attribute(readonly) int64u overrunCount = 6; - attribute(readonly) NeighborTable neighborTableList[] = 7; - attribute(readonly) RouteTable routeTableList[] = 8; + attribute(readonly) NeighborTable neighborTableList[254] = 7; + attribute(readonly) RouteTable routeTableList[254] = 8; attribute(readonly) int32u partitionId = 9; attribute(readonly) int8u weighting = 10; attribute(readonly) int8u dataVersion = 11; @@ -828,7 +828,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/door-lock-app/door-lock-common/door-lock-app.matter b/examples/door-lock-app/door-lock-common/door-lock-app.matter index ba2c49b8bd2002..88a64cf8417585 100644 --- a/examples/door-lock-app/door-lock-common/door-lock-app.matter +++ b/examples/door-lock-app/door-lock-common/door-lock-app.matter @@ -77,10 +77,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -475,7 +475,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -498,7 +498,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -615,20 +615,20 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) int16u clusterRevision = 65533; } server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster NetworkCommissioning = 49 { @@ -773,10 +773,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -883,7 +883,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - attribute(readonly) ThreadMetrics threadMetrics[] = 0; + attribute(readonly) ThreadMetrics threadMetrics[254] = 0; attribute(readonly) int64u currentHeapFree = 1; attribute(readonly) int64u currentHeapUsed = 2; attribute(readonly) int64u currentHeapHighWatermark = 3; @@ -975,8 +975,8 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u extendedPanId = 4; attribute(readonly) octet_string meshLocalPrefix = 5; attribute(readonly) int64u overrunCount = 6; - attribute(readonly) NeighborTable neighborTableList[] = 7; - attribute(readonly) RouteTable routeTableList[] = 8; + attribute(readonly) NeighborTable neighborTableList[254] = 7; + attribute(readonly) RouteTable routeTableList[254] = 8; attribute(readonly) int32u partitionId = 9; attribute(readonly) int8u weighting = 10; attribute(readonly) int8u dataVersion = 11; @@ -1036,7 +1036,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter index b9dd2a02ec95d8..4f481bb2df2774 100644 --- a/examples/lighting-app/lighting-common/lighting-app.matter +++ b/examples/lighting-app/lighting-common/lighting-app.matter @@ -324,10 +324,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -391,7 +391,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -414,7 +414,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -531,14 +531,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) int16u clusterRevision = 65533; } @@ -670,7 +670,7 @@ server cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster NetworkCommissioning = 49 { @@ -1030,10 +1030,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -1122,7 +1122,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - attribute(readonly) ThreadMetrics threadMetrics[] = 0; + attribute(readonly) ThreadMetrics threadMetrics[254] = 0; attribute(readonly) int64u currentHeapFree = 1; attribute(readonly) int64u currentHeapUsed = 2; attribute(readonly) int64u currentHeapHighWatermark = 3; @@ -1249,8 +1249,8 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u extendedPanId = 4; attribute(readonly) octet_string meshLocalPrefix = 5; attribute(readonly) int64u overrunCount = 6; - attribute(readonly) NeighborTable neighborTableList[] = 7; - attribute(readonly) RouteTable routeTableList[] = 8; + attribute(readonly) NeighborTable neighborTableList[254] = 7; + attribute(readonly) RouteTable routeTableList[254] = 8; attribute(readonly) int32u partitionId = 9; attribute(readonly) int8u weighting = 10; attribute(readonly) int8u dataVersion = 11; @@ -1312,7 +1312,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter index b1eaaa729bb4d2..a6b74210a79e98 100644 --- a/examples/lock-app/lock-common/lock-app.matter +++ b/examples/lock-app/lock-common/lock-app.matter @@ -77,10 +77,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -142,7 +142,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -165,7 +165,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -282,20 +282,20 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) int16u clusterRevision = 65533; } server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster NetworkCommissioning = 49 { @@ -469,10 +469,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -579,7 +579,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - attribute(readonly) ThreadMetrics threadMetrics[] = 0; + attribute(readonly) ThreadMetrics threadMetrics[254] = 0; attribute(readonly) int64u currentHeapFree = 1; attribute(readonly) int64u currentHeapUsed = 2; attribute(readonly) int64u currentHeapHighWatermark = 3; @@ -671,8 +671,8 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u extendedPanId = 4; attribute(readonly) octet_string meshLocalPrefix = 5; attribute(readonly) int64u overrunCount = 6; - attribute(readonly) NeighborTable neighborTableList[] = 7; - attribute(readonly) RouteTable routeTableList[] = 8; + attribute(readonly) NeighborTable neighborTableList[254] = 7; + attribute(readonly) RouteTable routeTableList[254] = 8; attribute(readonly) int32u partitionId = 9; attribute(readonly) int8u weighting = 10; attribute(readonly) int8u dataVersion = 11; @@ -732,7 +732,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/log-source-app/log-source-common/log-source-app.matter b/examples/log-source-app/log-source-common/log-source-app.matter index 095488f6b59d89..2b10c50a170738 100644 --- a/examples/log-source-app/log-source-common/log-source-app.matter +++ b/examples/log-source-app/log-source-common/log-source-app.matter @@ -79,7 +79,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) int16u clusterRevision = 65533; request struct ArmFailSafeRequest { @@ -243,10 +243,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) int16u clusterRevision = 65533; request struct AddNOCRequest { diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter index 68adac6c483015..f61fe1226ec791 100644 --- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter +++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter @@ -7,7 +7,7 @@ struct LabelStruct { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -30,7 +30,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -71,7 +71,7 @@ server cluster GeneralCommissioning = 48 { server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster NetworkCommissioning = 49 { @@ -281,10 +281,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -350,7 +350,7 @@ server cluster OperationalCredentials = 62 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter index 5d97bca77cd0c1..a71f516d333cbb 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter +++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter @@ -38,7 +38,7 @@ server cluster Basic = 40 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -61,7 +61,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -102,7 +102,7 @@ server cluster GeneralCommissioning = 48 { server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster NetworkCommissioning = 49 { @@ -381,10 +381,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -461,7 +461,7 @@ server cluster OperationalCredentials = 62 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index 8bf057dc0e974f..c2b0dd53c70b61 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -126,10 +126,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -152,7 +152,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) int16u clusterRevision = 65533; request struct ArmFailSafeRequest { @@ -515,10 +515,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index 8bf057dc0e974f..c2b0dd53c70b61 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -126,10 +126,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -152,7 +152,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) int16u clusterRevision = 65533; request struct ArmFailSafeRequest { @@ -515,10 +515,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter index ffaa82b377f941..d192fd919eca92 100644 --- a/examples/pump-app/pump-common/pump-app.matter +++ b/examples/pump-app/pump-common/pump-app.matter @@ -79,10 +79,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -117,7 +117,7 @@ server cluster DiagnosticLogs = 50 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -154,7 +154,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -271,14 +271,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) int16u clusterRevision = 65533; } @@ -351,7 +351,7 @@ server cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster NetworkCommissioning = 49 { @@ -520,10 +520,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -722,7 +722,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - attribute(readonly) ThreadMetrics threadMetrics[] = 0; + attribute(readonly) ThreadMetrics threadMetrics[254] = 0; attribute(readonly) int64u currentHeapFree = 1; attribute(readonly) int64u currentHeapUsed = 2; attribute(readonly) int64u currentHeapHighWatermark = 3; @@ -828,8 +828,8 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u extendedPanId = 4; attribute(readonly) octet_string meshLocalPrefix = 5; attribute(readonly) int64u overrunCount = 6; - attribute(readonly) NeighborTable neighborTableList[] = 7; - attribute(readonly) RouteTable routeTableList[] = 8; + attribute(readonly) NeighborTable neighborTableList[254] = 7; + attribute(readonly) RouteTable routeTableList[254] = 8; attribute(readonly) int32u partitionId = 9; attribute(readonly) int8u weighting = 10; attribute(readonly) int8u dataVersion = 11; @@ -889,7 +889,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter index 54eaef54d3310a..73d0aa4606f2b1 100644 --- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter +++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter @@ -79,10 +79,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -144,7 +144,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -174,7 +174,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -291,14 +291,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) int16u clusterRevision = 65533; } @@ -371,7 +371,7 @@ client cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster NetworkCommissioning = 49 { @@ -540,10 +540,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -717,7 +717,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - attribute(readonly) ThreadMetrics threadMetrics[] = 0; + attribute(readonly) ThreadMetrics threadMetrics[254] = 0; attribute(readonly) int64u currentHeapFree = 1; attribute(readonly) int64u currentHeapUsed = 2; attribute(readonly) int64u currentHeapHighWatermark = 3; @@ -816,8 +816,8 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u extendedPanId = 4; attribute(readonly) octet_string meshLocalPrefix = 5; attribute(readonly) int64u overrunCount = 6; - attribute(readonly) NeighborTable neighborTableList[] = 7; - attribute(readonly) RouteTable routeTableList[] = 8; + attribute(readonly) NeighborTable neighborTableList[254] = 7; + attribute(readonly) RouteTable routeTableList[254] = 8; attribute(readonly) int32u partitionId = 9; attribute(readonly) int8u weighting = 10; attribute(readonly) int8u dataVersion = 11; @@ -877,7 +877,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter index b0d928d75fc282..1a17b93cc93e4c 100644 --- a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter +++ b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter @@ -77,10 +77,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -142,7 +142,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -165,7 +165,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -282,20 +282,20 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) int16u clusterRevision = 65533; } server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster NetworkCommissioning = 49 { @@ -434,10 +434,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -531,7 +531,7 @@ server cluster TemperatureMeasurement = 1026 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index 7218c7f5e3866b..849eb8eb3779e2 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -108,10 +108,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -173,7 +173,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -196,7 +196,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -313,14 +313,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) int16u clusterRevision = 65533; } @@ -343,8 +343,8 @@ server cluster GroupKeyManagement = 63 { CHAR_STRING<16> groupName = 3; } - attribute(readonly) GroupKey groupKeyMap[] = 0; - attribute(readonly) GroupInfo groupTable[] = 1; + attribute(readonly) GroupKey groupKeyMap[254] = 0; + attribute(readonly) GroupInfo groupTable[254] = 1; attribute(readonly) int16u clusterRevision = 65533; } @@ -483,7 +483,7 @@ server cluster Identify = 3 { server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster NetworkCommissioning = 49 { @@ -693,10 +693,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -885,7 +885,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - attribute(readonly) ThreadMetrics threadMetrics[] = 0; + attribute(readonly) ThreadMetrics threadMetrics[254] = 0; attribute(readonly) int64u currentHeapFree = 1; attribute(readonly) int64u currentHeapUsed = 2; attribute(readonly) int64u currentHeapHighWatermark = 3; @@ -1044,8 +1044,8 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u extendedPanId = 4; attribute(readonly) octet_string meshLocalPrefix = 5; attribute(readonly) int64u overrunCount = 6; - attribute(readonly) NeighborTable neighborTableList[] = 7; - attribute(readonly) RouteTable routeTableList[] = 8; + attribute(readonly) NeighborTable neighborTableList[254] = 7; + attribute(readonly) RouteTable routeTableList[254] = 8; attribute(readonly) int32u partitionId = 9; attribute(readonly) int8u weighting = 10; attribute(readonly) int8u dataVersion = 11; @@ -1105,7 +1105,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter index c32008aa45f21e..5ac0a8deda6249 100644 --- a/examples/tv-app/tv-common/tv-app.matter +++ b/examples/tv-app/tv-common/tv-app.matter @@ -104,7 +104,7 @@ server cluster ApplicationLauncher = 1292 { CHAR_STRING applicationId = 2; } - attribute(readonly) INT16U applicationLauncherList[] = 0; + attribute(readonly) INT16U applicationLauncherList[254] = 0; attribute(writable) ApplicationEP applicationLauncherApp = 1; attribute(readonly) int16u clusterRevision = 65533; @@ -147,7 +147,7 @@ server cluster AudioOutput = 1291 { CHAR_STRING<32> name = 3; } - attribute(readonly) OutputInfo audioOutputList[] = 0; + attribute(readonly) OutputInfo audioOutputList[254] = 0; attribute(readonly) int8u currentAudioOutput = 1; attribute(readonly) int16u clusterRevision = 65533; @@ -269,7 +269,7 @@ server cluster Channel = 1284 { LineupInfoTypeEnum lineupInfoType = 4; } - attribute(readonly) ChannelInfo channelList[] = 0; + attribute(readonly) ChannelInfo channelList[254] = 0; attribute(writable) LineupInfo channelLineup = 1; attribute(writable) ChannelInfo currentChannel = 2; attribute(readonly) int16u clusterRevision = 65533; @@ -361,7 +361,7 @@ server cluster ContentLauncher = 1290 { MetricTypeEnum metric = 3; } - attribute(readonly) CHAR_STRING acceptHeaderList[] = 0; + attribute(readonly) CHAR_STRING acceptHeaderList[254] = 0; attribute(writable) bitmap32 supportedStreamingProtocols = 1; attribute(readonly) int16u clusterRevision = 65533; @@ -392,10 +392,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -457,7 +457,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -480,7 +480,7 @@ client cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -538,7 +538,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -655,14 +655,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) int16u clusterRevision = 65533; } @@ -685,8 +685,8 @@ server cluster GroupKeyManagement = 63 { CHAR_STRING<16> groupName = 3; } - attribute(readonly) GroupKey groupKeyMap[] = 0; - attribute(readonly) GroupInfo groupTable[] = 1; + attribute(readonly) GroupKey groupKeyMap[254] = 0; + attribute(readonly) GroupInfo groupTable[254] = 1; attribute(readonly) int16u clusterRevision = 65533; } @@ -878,7 +878,7 @@ server cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster LowPower = 1288 { @@ -910,7 +910,7 @@ server cluster MediaInput = 1287 { CHAR_STRING<32> description = 4; } - attribute(readonly) InputInfo mediaInputList[] = 0; + attribute(readonly) InputInfo mediaInputList[254] = 0; attribute(readonly) int8u currentMediaInput = 1; attribute(readonly) int16u clusterRevision = 65533; @@ -1339,10 +1339,10 @@ client cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -1430,10 +1430,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -1529,7 +1529,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - attribute(readonly) ThreadMetrics threadMetrics[] = 0; + attribute(readonly) ThreadMetrics threadMetrics[254] = 0; attribute(readonly) int64u currentHeapFree = 1; attribute(readonly) int64u currentHeapUsed = 2; attribute(readonly) int64u currentHeapHighWatermark = 3; @@ -1549,7 +1549,7 @@ server cluster TargetNavigator = 1285 { CHAR_STRING<32> name = 2; } - attribute(readonly) TargetInfo targetNavigatorList[] = 0; + attribute(readonly) TargetInfo targetNavigatorList[254] = 0; attribute(readonly) int8u currentNavigatorTarget = 1; attribute(readonly) int16u clusterRevision = 65533; @@ -1650,8 +1650,8 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u extendedPanId = 4; attribute(readonly) octet_string meshLocalPrefix = 5; attribute(readonly) int64u overrunCount = 6; - attribute(readonly) NeighborTable neighborTableList[] = 7; - attribute(readonly) RouteTable routeTableList[] = 8; + attribute(readonly) NeighborTable neighborTableList[254] = 7; + attribute(readonly) RouteTable routeTableList[254] = 8; attribute(readonly) int32u partitionId = 9; attribute(readonly) int8u weighting = 10; attribute(readonly) int8u dataVersion = 11; @@ -1711,7 +1711,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter index 4a2d521ed54bc5..2d915bf3ddd3f2 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter @@ -88,7 +88,7 @@ client cluster ApplicationLauncher = 1292 { CHAR_STRING applicationId = 2; } - attribute(readonly) INT16U applicationLauncherList[] = 0; + attribute(readonly) INT16U applicationLauncherList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; request struct HideAppRequestRequest { @@ -125,7 +125,7 @@ client cluster AudioOutput = 1291 { CHAR_STRING<32> name = 3; } - attribute(readonly) OutputInfo audioOutputList[] = 0; + attribute(readonly) OutputInfo audioOutputList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; request struct RenameOutputRequestRequest { @@ -271,7 +271,7 @@ client cluster Channel = 1284 { LineupInfoTypeEnum lineupInfoType = 4; } - attribute(readonly) ChannelInfo channelList[] = 0; + attribute(readonly) ChannelInfo channelList[254] = 0; attribute(writable) LineupInfo channelLineup = 1; attribute(writable) ChannelInfo currentChannel = 2; attribute(readonly) int16u clusterRevision = 65533; @@ -580,7 +580,7 @@ client cluster ContentLauncher = 1290 { MetricTypeEnum metric = 3; } - attribute(readonly) CHAR_STRING acceptHeaderList[] = 0; + attribute(readonly) CHAR_STRING acceptHeaderList[254] = 0; attribute(writable) bitmap32 supportedStreamingProtocols = 1; attribute(readonly) int16u clusterRevision = 65533; @@ -606,10 +606,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -1013,7 +1013,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -1043,7 +1043,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -1160,14 +1160,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) int16u clusterRevision = 65533; } @@ -1190,8 +1190,8 @@ server cluster GroupKeyManagement = 63 { CHAR_STRING<16> groupName = 3; } - attribute(readonly) GroupKey groupKeyMap[] = 0; - attribute(readonly) GroupInfo groupTable[] = 1; + attribute(readonly) GroupKey groupKeyMap[254] = 0; + attribute(readonly) GroupInfo groupTable[254] = 1; attribute(readonly) int16u clusterRevision = 65533; } @@ -1530,7 +1530,7 @@ server cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } client cluster MediaInput = 1287 { @@ -1556,7 +1556,7 @@ client cluster MediaInput = 1287 { CHAR_STRING<32> description = 4; } - attribute(readonly) InputInfo mediaInputList[] = 0; + attribute(readonly) InputInfo mediaInputList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; request struct RenameInputRequestRequest { @@ -1861,10 +1861,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -2067,7 +2067,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - attribute(readonly) ThreadMetrics threadMetrics[] = 0; + attribute(readonly) ThreadMetrics threadMetrics[254] = 0; attribute(readonly) int64u currentHeapFree = 1; attribute(readonly) int64u currentHeapUsed = 2; attribute(readonly) int64u currentHeapHighWatermark = 3; @@ -2123,7 +2123,7 @@ client cluster TargetNavigator = 1285 { CHAR_STRING<32> name = 2; } - attribute(readonly) TargetInfo targetNavigatorList[] = 0; + attribute(readonly) TargetInfo targetNavigatorList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; request struct NavigateTargetRequestRequest { @@ -2180,8 +2180,8 @@ server cluster TestCluster = 1295 { attribute(writable) enum16 enum16 = 22; attribute(writable) octet_string octetString = 25; attribute(writable) INT8U listInt8u[10] = 26; - attribute(writable) OCTET_STRING listOctetString[] = 27; - attribute(writable) TestListStructOctet listStructOctetString[] = 28; + attribute(writable) OCTET_STRING listOctetString[254] = 27; + attribute(writable) TestListStructOctet listStructOctetString[254] = 28; attribute(writable) long_octet_string longOctetString = 29; attribute(readonly) int16u clusterRevision = 65533; @@ -2304,8 +2304,8 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u extendedPanId = 4; attribute(readonly) octet_string meshLocalPrefix = 5; attribute(readonly) int64u overrunCount = 6; - attribute(readonly) NeighborTable neighborTableList[] = 7; - attribute(readonly) RouteTable routeTableList[] = 8; + attribute(readonly) NeighborTable neighborTableList[254] = 7; + attribute(readonly) RouteTable routeTableList[254] = 8; attribute(readonly) int32u partitionId = 9; attribute(readonly) int8u weighting = 10; attribute(readonly) int8u dataVersion = 11; @@ -2365,7 +2365,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter index 68d19b47665e1e..cc5be7d85e794d 100644 --- a/examples/window-app/common/window-app.matter +++ b/examples/window-app/common/window-app.matter @@ -84,10 +84,10 @@ server cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) int16u clusterRevision = 65533; } @@ -119,7 +119,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } @@ -142,7 +142,7 @@ server cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) bitmap32 featureMap = 65532; @@ -259,14 +259,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) int16u clusterRevision = 65533; } @@ -317,7 +317,7 @@ server cluster Identify = 3 { server cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } server cluster NetworkCommissioning = 49 { @@ -462,10 +462,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) int16u clusterRevision = 65533; @@ -568,7 +568,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - attribute(readonly) ThreadMetrics threadMetrics[] = 0; + attribute(readonly) ThreadMetrics threadMetrics[254] = 0; attribute(readonly) int64u currentHeapFree = 1; attribute(readonly) int64u currentHeapUsed = 2; attribute(readonly) int64u currentHeapHighWatermark = 3; @@ -660,8 +660,8 @@ server cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u extendedPanId = 4; attribute(readonly) octet_string meshLocalPrefix = 5; attribute(readonly) int64u overrunCount = 6; - attribute(readonly) NeighborTable neighborTableList[] = 7; - attribute(readonly) RouteTable routeTableList[] = 8; + attribute(readonly) NeighborTable neighborTableList[254] = 7; + attribute(readonly) RouteTable routeTableList[254] = 8; attribute(readonly) int32u partitionId = 9; attribute(readonly) int8u weighting = 10; attribute(readonly) int8u dataVersion = 11; @@ -721,7 +721,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index 67429838e7627b..b5cf9bbc5e251e 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -164,7 +164,7 @@ client cluster ApplicationLauncher = 1292 { CHAR_STRING applicationId = 2; } - attribute(readonly) INT16U applicationLauncherList[] = 0; + attribute(readonly) INT16U applicationLauncherList[254] = 0; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; @@ -207,7 +207,7 @@ client cluster AudioOutput = 1291 { CHAR_STRING<32> name = 3; } - attribute(readonly) OutputInfo audioOutputList[] = 0; + attribute(readonly) OutputInfo audioOutputList[254] = 0; attribute(readonly) int8u currentAudioOutput = 1; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; @@ -379,8 +379,8 @@ client cluster BridgedActions = 37 { ActionErrorEnum error = 3; } - attribute(readonly) ActionStruct actionList[] = 0; - attribute(readonly) EndpointListStruct endpointList[] = 1; + attribute(readonly) ActionStruct actionList[256] = 0; + attribute(readonly) EndpointListStruct endpointList[256] = 1; attribute(readonly) long_char_string setupUrl = 2; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; @@ -487,7 +487,7 @@ client cluster Channel = 1284 { CHAR_STRING<32> affiliateCallSign = 5; } - attribute(readonly) ChannelInfo channelList[] = 0; + attribute(readonly) ChannelInfo channelList[254] = 0; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; @@ -849,7 +849,7 @@ client cluster ContentLauncher = 1290 { MetricTypeEnum metric = 3; } - attribute(readonly) CHAR_STRING acceptHeaderList[] = 0; + attribute(readonly) CHAR_STRING acceptHeaderList[254] = 0; attribute(writable) bitmap32 supportedStreamingProtocols = 1; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; @@ -881,10 +881,10 @@ client cluster Descriptor = 29 { INT16U revision = 2; } - attribute(readonly) DeviceType deviceList[] = 0; - attribute(readonly) CLUSTER_ID serverList[] = 1; - attribute(readonly) CLUSTER_ID clientList[] = 2; - attribute(readonly) ENDPOINT_NO partsList[] = 3; + attribute(readonly) DeviceType deviceList[254] = 0; + attribute(readonly) CLUSTER_ID serverList[254] = 1; + attribute(readonly) CLUSTER_ID clientList[254] = 2; + attribute(readonly) ENDPOINT_NO partsList[254] = 3; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; } @@ -1306,7 +1306,7 @@ client cluster EthernetNetworkDiagnostics = 55 { } client cluster FixedLabel = 64 { - attribute(readonly) LabelStruct labelList[] = 0; + attribute(readonly) LabelStruct labelList[254] = 0; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; } @@ -1339,7 +1339,7 @@ client cluster GeneralCommissioning = 48 { } attribute(writable) int64u breadcrumb = 0; - attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[] = 1; + attribute(readonly) BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; attribute(readonly) enum8 regulatoryConfig = 2; attribute(readonly) enum8 locationCapability = 3; attribute(readonly) attrib_id attributeList[] = 65531; @@ -1456,14 +1456,14 @@ client cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - attribute(readonly) NetworkInterfaceType networkInterfaces[] = 0; + attribute(readonly) NetworkInterfaceType networkInterfaces[254] = 0; attribute(readonly) int16u rebootCount = 1; attribute(readonly) int64u upTime = 2; attribute(readonly) int32u totalOperationalHours = 3; attribute(readonly) enum8 bootReasons = 4; - attribute(readonly) ENUM8 activeHardwareFaults[] = 5; - attribute(readonly) ENUM8 activeRadioFaults[] = 6; - attribute(readonly) ENUM8 activeNetworkFaults[] = 7; + attribute(readonly) ENUM8 activeHardwareFaults[254] = 5; + attribute(readonly) ENUM8 activeRadioFaults[254] = 6; + attribute(readonly) ENUM8 activeNetworkFaults[254] = 7; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; } @@ -1498,8 +1498,8 @@ client cluster GroupKeyManagement = 63 { INT64U epochStartTime2 = 7; } - attribute(readonly) GroupKey groupKeyMap[] = 0; - attribute(readonly) GroupInfo groupTable[] = 1; + attribute(readonly) GroupKey groupKeyMap[254] = 0; + attribute(readonly) GroupInfo groupTable[254] = 1; attribute(readonly) int16u maxGroupsPerFabric = 2; attribute(readonly) int16u maxGroupKeysPerFabric = 3; attribute(readonly) attrib_id attributeList[] = 65531; @@ -1846,7 +1846,7 @@ client cluster LevelControl = 8 { client cluster LocalizationConfiguration = 43 { attribute(writable) char_string activeLocale = 1; - attribute(readonly) CHAR_STRING supportedLocales[] = 2; + attribute(readonly) CHAR_STRING supportedLocales[254] = 2; } client cluster LowPower = 1288 { @@ -1879,7 +1879,7 @@ client cluster MediaInput = 1287 { CHAR_STRING<32> description = 4; } - attribute(readonly) InputInfo mediaInputList[] = 0; + attribute(readonly) InputInfo mediaInputList[254] = 0; attribute(readonly) int8u currentMediaInput = 1; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; @@ -1962,7 +1962,7 @@ client cluster ModeSelect = 80 { } attribute(readonly) int8u currentMode = 0; - attribute(readonly) ModeOptionStruct supportedModes[] = 1; + attribute(readonly) ModeOptionStruct supportedModes[255] = 1; attribute(writable) int8u onMode = 2; attribute(readonly) int8u startUpMode = 3; attribute(readonly) char_string description = 4; @@ -2313,10 +2313,10 @@ client cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 6; } - attribute(readonly) FabricDescriptor fabricsList[] = 1; + attribute(readonly) FabricDescriptor fabricsList[320] = 1; attribute(readonly) int8u supportedFabrics = 2; attribute(readonly) int8u commissionedFabrics = 3; - attribute(readonly) OCTET_STRING trustedRootCertificates[] = 4; + attribute(readonly) OCTET_STRING trustedRootCertificates[400] = 4; attribute(readonly) fabric_idx currentFabricIndex = 5; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; @@ -2642,7 +2642,7 @@ client cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - attribute(readonly) ThreadMetrics threadMetrics[] = 0; + attribute(readonly) ThreadMetrics threadMetrics[254] = 0; attribute(readonly) int64u currentHeapFree = 1; attribute(readonly) int64u currentHeapUsed = 2; attribute(readonly) int64u currentHeapHighWatermark = 3; @@ -2704,7 +2704,7 @@ client cluster TargetNavigator = 1285 { CHAR_STRING<32> name = 2; } - attribute(readonly) TargetInfo targetNavigatorList[] = 0; + attribute(readonly) TargetInfo targetNavigatorList[254] = 0; attribute(readonly) int8u currentNavigatorTarget = 1; attribute(readonly) attrib_id attributeList[] = 65531; attribute(readonly) int16u clusterRevision = 65533; @@ -2822,8 +2822,8 @@ client cluster TestCluster = 1295 { attribute(writable) double floatDouble = 24; attribute(writable) octet_string octetString = 25; attribute(writable) INT8U listInt8u[10] = 26; - attribute(writable) OCTET_STRING listOctetString[] = 27; - attribute(writable) TestListStructOctet listStructOctetString[] = 28; + attribute(writable) OCTET_STRING listOctetString[254] = 27; + attribute(writable) TestListStructOctet listStructOctetString[254] = 28; attribute(writable) long_octet_string longOctetString = 29; attribute(writable) char_string charString = 30; attribute(writable) long_char_string longCharString = 31; @@ -2837,7 +2837,7 @@ client cluster TestCluster = 1295 { attribute(writable) int8s rangeRestrictedInt8s = 39; attribute(writable) int16u rangeRestrictedInt16u = 40; attribute(writable) int16s rangeRestrictedInt16s = 41; - attribute(readonly) LONG_OCTET_STRING listLongOctetString[] = 42; + attribute(readonly) LONG_OCTET_STRING listLongOctetString[1000] = 42; attribute(writable) boolean timedWriteBoolean = 48; attribute(writable) boolean unsupported = 255; attribute(writable) boolean nullableBoolean = 32768; @@ -3148,8 +3148,8 @@ client cluster ThreadNetworkDiagnostics = 53 { attribute(readonly) int64u extendedPanId = 4; attribute(readonly) octet_string meshLocalPrefix = 5; attribute(readonly) int64u overrunCount = 6; - attribute(readonly) NeighborTable neighborTableList[] = 7; - attribute(readonly) RouteTable routeTableList[] = 8; + attribute(readonly) NeighborTable neighborTableList[254] = 7; + attribute(readonly) RouteTable routeTableList[254] = 8; attribute(readonly) int32u partitionId = 9; attribute(readonly) int8u weighting = 10; attribute(readonly) int8u dataVersion = 11; @@ -3212,7 +3212,7 @@ client cluster ThreadNetworkDiagnostics = 53 { } client cluster UserLabel = 65 { - attribute(writable) LabelStruct labelList[] = 0; + attribute(writable) LabelStruct labelList[254] = 0; attribute(readonly) int16u clusterRevision = 65533; } From 2bc75090eb89195140711285379f3fbbd5587dd2 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 20 Jan 2022 08:26:52 -0500 Subject: [PATCH 5/7] Fix removal of list sizes - had an extra maxLength remaining, now removed --- .../all-clusters-app.matter | 78 +++++++++---------- .../bridge-common/bridge-app.matter | 42 +++++----- .../door-lock-common/door-lock-app.matter | 44 +++++------ .../lighting-common/lighting-app.matter | 42 +++++----- examples/lock-app/lock-common/lock-app.matter | 44 +++++------ .../log-source-common/log-source-app.matter | 6 +- .../ota-provider-app.matter | 14 ++-- .../ota-requestor-app.matter | 14 ++-- .../placeholder/linux/apps/app1/config.matter | 16 ++-- .../placeholder/linux/apps/app2/config.matter | 16 ++-- examples/pump-app/pump-common/pump-app.matter | 42 +++++----- .../pump-controller-app.matter | 42 +++++----- .../esp32/main/temperature-measurement.matter | 30 +++---- .../thermostat-common/thermostat.matter | 46 +++++------ examples/tv-app/tv-common/tv-app.matter | 68 ++++++++-------- .../tv-casting-common/tv-casting-app.matter | 64 +++++++-------- examples/window-app/common/window-app.matter | 44 +++++------ .../templates/app/MatterIDL.zapt | 4 +- .../data_model/controller-clusters.matter | 78 +++++++++---------- 19 files changed, 366 insertions(+), 368 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 21ef1965777f55..356c268b426e2c 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -121,7 +121,7 @@ server cluster ApplicationBasic = 1293 { readonly attribute int16u productId = 3; readonly attribute ApplicationStatusEnum applicationStatus = 5; readonly attribute char_string applicationVersion = 6; - readonly attribute vendor_id allowedVendorList[32] = 7; + readonly attribute vendor_id allowedVendorList[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -137,7 +137,7 @@ server cluster ApplicationLauncher = 1292 { CHAR_STRING applicationId = 1; } - readonly attribute INT16U applicationLauncherList[254] = 0; + readonly attribute INT16U applicationLauncherList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -157,7 +157,7 @@ server cluster AudioOutput = 1291 { CHAR_STRING<32> name = 2; } - readonly attribute OutputInfo audioOutputList[254] = 0; + readonly attribute OutputInfo audioOutputList[] = 0; readonly attribute int8u currentAudioOutput = 1; readonly attribute int16u clusterRevision = 65533; } @@ -311,8 +311,8 @@ server cluster BridgedActions = 37 { ActionErrorEnum error = 3; } - readonly attribute ActionStruct actionList[256] = 0; - readonly attribute EndpointListStruct endpointList[256] = 1; + readonly attribute ActionStruct actionList[] = 0; + readonly attribute EndpointListStruct endpointList[] = 1; readonly attribute long_char_string setupUrl = 2; readonly attribute int16u clusterRevision = 65533; } @@ -339,7 +339,7 @@ server cluster Channel = 1284 { CHAR_STRING<32> affiliateCallSign = 4; } - readonly attribute ChannelInfo channelList[254] = 0; + readonly attribute ChannelInfo channelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -677,7 +677,7 @@ server cluster ContentLauncher = 1290 { MetricTypeEnum metric = 2; } - readonly attribute CHAR_STRING acceptHeaderList[254] = 0; + readonly attribute CHAR_STRING acceptHeaderList[] = 0; attribute bitmap32 supportedStreamingProtocols = 1; readonly attribute int16u clusterRevision = 65533; } @@ -688,10 +688,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -1112,7 +1112,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -1143,7 +1143,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -1260,14 +1260,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -1301,8 +1301,8 @@ server cluster GroupKeyManagement = 63 { INT64U epochStartTime2 = 7; } - readonly attribute GroupKey groupKeyMap[254] = 0; - readonly attribute GroupInfo groupTable[254] = 1; + readonly attribute GroupKey groupKeyMap[] = 0; + readonly attribute GroupInfo groupTable[] = 1; readonly attribute int16u maxGroupsPerFabric = 2; readonly attribute int16u maxGroupKeysPerFabric = 3; readonly attribute int16u clusterRevision = 65533; @@ -1688,7 +1688,7 @@ server cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster LowPower = 1288 { @@ -1720,7 +1720,7 @@ server cluster MediaInput = 1287 { CHAR_STRING<32> description = 3; } - readonly attribute InputInfo mediaInputList[254] = 0; + readonly attribute InputInfo mediaInputList[] = 0; readonly attribute int8u currentMediaInput = 1; readonly attribute int16u clusterRevision = 65533; } @@ -1759,7 +1759,7 @@ server cluster ModeSelect = 80 { } readonly attribute int8u currentMode = 0; - readonly attribute ModeOptionStruct supportedModes[255] = 1; + readonly attribute ModeOptionStruct supportedModes[] = 1; attribute int8u onMode = 2; readonly attribute int8u startUpMode = 3; readonly attribute char_string description = 4; @@ -1823,7 +1823,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -2093,10 +2093,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -2180,14 +2180,14 @@ server cluster PowerSource = 47 { readonly attribute int8u batteryPercentRemaining = 12; readonly attribute int32u batteryTimeRemaining = 13; readonly attribute enum8 batteryChargeLevel = 14; - readonly attribute ENUM8 activeBatteryFaults[8] = 18; + readonly attribute ENUM8 activeBatteryFaults[] = 18; readonly attribute enum8 batteryChargeState = 26; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; } server cluster PowerSourceConfiguration = 46 { - readonly attribute INT8U sources[6] = 0; + readonly attribute INT8U sources[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -2415,7 +2415,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - readonly attribute ThreadMetrics threadMetrics[254] = 0; + readonly attribute ThreadMetrics threadMetrics[] = 0; readonly attribute int64u currentHeapFree = 1; readonly attribute int64u currentHeapUsed = 2; readonly attribute int64u currentHeapHighWatermark = 3; @@ -2475,7 +2475,7 @@ server cluster TargetNavigator = 1285 { CHAR_STRING<32> name = 1; } - readonly attribute TargetInfo targetNavigatorList[254] = 0; + readonly attribute TargetInfo targetNavigatorList[] = 0; readonly attribute int8u currentNavigatorTarget = 1; readonly attribute int16u clusterRevision = 65533; } @@ -2578,9 +2578,9 @@ server cluster TestCluster = 1295 { attribute single floatSingle = 23; attribute double floatDouble = 24; attribute octet_string octetString = 25; - attribute INT8U listInt8u[10] = 26; - attribute OCTET_STRING listOctetString[254] = 27; - attribute TestListStructOctet listStructOctetString[254] = 28; + attribute INT8U listInt8u[] = 26; + attribute OCTET_STRING listOctetString[] = 27; + attribute TestListStructOctet listStructOctetString[] = 28; attribute long_octet_string longOctetString = 29; attribute char_string charString = 30; attribute long_char_string longCharString = 31; @@ -2594,7 +2594,7 @@ server cluster TestCluster = 1295 { attribute int8s rangeRestrictedInt8s = 39; attribute int16u rangeRestrictedInt16u = 40; attribute int16s rangeRestrictedInt16s = 41; - readonly attribute LONG_OCTET_STRING listLongOctetString[1000] = 42; + readonly attribute LONG_OCTET_STRING listLongOctetString[] = 42; attribute boolean timedWriteBoolean = 48; attribute boolean nullableBoolean = 32768; attribute bitmap8 nullableBitmap8 = 32769; @@ -2857,8 +2857,8 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u extendedPanId = 4; readonly attribute octet_string meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; - readonly attribute NeighborTable neighborTableList[254] = 7; - readonly attribute RouteTable routeTableList[254] = 8; + readonly attribute NeighborTable neighborTableList[] = 7; + readonly attribute RouteTable routeTableList[] = 8; readonly attribute int32u partitionId = 9; readonly attribute int8u weighting = 10; readonly attribute int8u dataVersion = 11; @@ -2909,10 +2909,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u activeTimestamp = 56; readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; - readonly attribute SecurityPolicy securityPolicy[6] = 59; + readonly attribute SecurityPolicy securityPolicy[] = 59; readonly attribute octet_string channelMask = 60; - readonly attribute OperationalDatasetComponents operationalDatasetComponents[14] = 61; - readonly attribute NetworkFault activeNetworkFaultsList[4] = 62; + readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; + readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -2920,7 +2920,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter index f4b94e1b5e4335..6abc2132aef81d 100644 --- a/examples/bridge-app/bridge-common/bridge-app.matter +++ b/examples/bridge-app/bridge-common/bridge-app.matter @@ -77,10 +77,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -142,7 +142,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -165,7 +165,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -282,14 +282,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -376,7 +376,7 @@ server cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster NetworkCommissioning = 49 { @@ -430,7 +430,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -545,10 +545,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -637,7 +637,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - readonly attribute ThreadMetrics threadMetrics[254] = 0; + readonly attribute ThreadMetrics threadMetrics[] = 0; readonly attribute int64u currentHeapFree = 1; readonly attribute int64u currentHeapUsed = 2; readonly attribute int64u currentHeapHighWatermark = 3; @@ -767,8 +767,8 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u extendedPanId = 4; readonly attribute octet_string meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; - readonly attribute NeighborTable neighborTableList[254] = 7; - readonly attribute RouteTable routeTableList[254] = 8; + readonly attribute NeighborTable neighborTableList[] = 7; + readonly attribute RouteTable routeTableList[] = 8; readonly attribute int32u partitionId = 9; readonly attribute int8u weighting = 10; readonly attribute int8u dataVersion = 11; @@ -819,16 +819,16 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u activeTimestamp = 56; readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; - readonly attribute SecurityPolicy securityPolicy[6] = 59; + readonly attribute SecurityPolicy securityPolicy[] = 59; readonly attribute octet_string channelMask = 60; - readonly attribute OperationalDatasetComponents operationalDatasetComponents[14] = 61; - readonly attribute NetworkFault activeNetworkFaultsList[4] = 62; + readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; + readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/door-lock-app/door-lock-common/door-lock-app.matter b/examples/door-lock-app/door-lock-common/door-lock-app.matter index 4576ca393c3f03..a17375273c3804 100644 --- a/examples/door-lock-app/door-lock-common/door-lock-app.matter +++ b/examples/door-lock-app/door-lock-common/door-lock-app.matter @@ -77,10 +77,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -475,7 +475,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -498,7 +498,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -615,20 +615,20 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute int16u clusterRevision = 65533; } server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster NetworkCommissioning = 49 { @@ -682,7 +682,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -773,10 +773,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -866,7 +866,7 @@ server cluster PowerSource = 47 { } server cluster PowerSourceConfiguration = 46 { - readonly attribute INT8U sources[6] = 0; + readonly attribute INT8U sources[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -883,7 +883,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - readonly attribute ThreadMetrics threadMetrics[254] = 0; + readonly attribute ThreadMetrics threadMetrics[] = 0; readonly attribute int64u currentHeapFree = 1; readonly attribute int64u currentHeapUsed = 2; readonly attribute int64u currentHeapHighWatermark = 3; @@ -975,8 +975,8 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u extendedPanId = 4; readonly attribute octet_string meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; - readonly attribute NeighborTable neighborTableList[254] = 7; - readonly attribute RouteTable routeTableList[254] = 8; + readonly attribute NeighborTable neighborTableList[] = 7; + readonly attribute RouteTable routeTableList[] = 8; readonly attribute int32u partitionId = 9; readonly attribute int8u weighting = 10; readonly attribute int8u dataVersion = 11; @@ -1027,16 +1027,16 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u activeTimestamp = 56; readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; - readonly attribute SecurityPolicy securityPolicy[6] = 59; + readonly attribute SecurityPolicy securityPolicy[] = 59; readonly attribute octet_string channelMask = 60; - readonly attribute OperationalDatasetComponents operationalDatasetComponents[14] = 61; - readonly attribute NetworkFault activeNetworkFaultsList[4] = 62; + readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; + readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter index 3a2c7df65d2f0d..f3d50e818d6539 100644 --- a/examples/lighting-app/lighting-common/lighting-app.matter +++ b/examples/lighting-app/lighting-common/lighting-app.matter @@ -324,10 +324,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -391,7 +391,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -414,7 +414,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -531,14 +531,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -670,7 +670,7 @@ server cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster NetworkCommissioning = 49 { @@ -724,7 +724,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -1030,10 +1030,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -1122,7 +1122,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - readonly attribute ThreadMetrics threadMetrics[254] = 0; + readonly attribute ThreadMetrics threadMetrics[] = 0; readonly attribute int64u currentHeapFree = 1; readonly attribute int64u currentHeapUsed = 2; readonly attribute int64u currentHeapHighWatermark = 3; @@ -1249,8 +1249,8 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u extendedPanId = 4; readonly attribute octet_string meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; - readonly attribute NeighborTable neighborTableList[254] = 7; - readonly attribute RouteTable routeTableList[254] = 8; + readonly attribute NeighborTable neighborTableList[] = 7; + readonly attribute RouteTable routeTableList[] = 8; readonly attribute int32u partitionId = 9; readonly attribute int8u weighting = 10; readonly attribute int8u dataVersion = 11; @@ -1301,10 +1301,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u activeTimestamp = 56; readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; - readonly attribute SecurityPolicy securityPolicy[6] = 59; + readonly attribute SecurityPolicy securityPolicy[] = 59; readonly attribute octet_string channelMask = 60; - readonly attribute OperationalDatasetComponents operationalDatasetComponents[14] = 61; - readonly attribute NetworkFault activeNetworkFaultsList[4] = 62; + readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; + readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -1312,7 +1312,7 @@ server cluster ThreadNetworkDiagnostics = 53 { } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter index 3e9f50a0bf3eff..84d262705aecd7 100644 --- a/examples/lock-app/lock-common/lock-app.matter +++ b/examples/lock-app/lock-common/lock-app.matter @@ -77,10 +77,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -142,7 +142,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -165,7 +165,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -282,20 +282,20 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute int16u clusterRevision = 65533; } server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster NetworkCommissioning = 49 { @@ -349,7 +349,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -469,10 +469,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -562,7 +562,7 @@ server cluster PowerSource = 47 { } server cluster PowerSourceConfiguration = 46 { - readonly attribute INT8U sources[6] = 0; + readonly attribute INT8U sources[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -579,7 +579,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - readonly attribute ThreadMetrics threadMetrics[254] = 0; + readonly attribute ThreadMetrics threadMetrics[] = 0; readonly attribute int64u currentHeapFree = 1; readonly attribute int64u currentHeapUsed = 2; readonly attribute int64u currentHeapHighWatermark = 3; @@ -671,8 +671,8 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u extendedPanId = 4; readonly attribute octet_string meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; - readonly attribute NeighborTable neighborTableList[254] = 7; - readonly attribute RouteTable routeTableList[254] = 8; + readonly attribute NeighborTable neighborTableList[] = 7; + readonly attribute RouteTable routeTableList[] = 8; readonly attribute int32u partitionId = 9; readonly attribute int8u weighting = 10; readonly attribute int8u dataVersion = 11; @@ -723,16 +723,16 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u activeTimestamp = 56; readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; - readonly attribute SecurityPolicy securityPolicy[6] = 59; + readonly attribute SecurityPolicy securityPolicy[] = 59; readonly attribute octet_string channelMask = 60; - readonly attribute OperationalDatasetComponents operationalDatasetComponents[14] = 61; - readonly attribute NetworkFault activeNetworkFaultsList[4] = 62; + readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; + readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/log-source-app/log-source-common/log-source-app.matter b/examples/log-source-app/log-source-common/log-source-app.matter index 70d195a506db3c..26b27cec7ec189 100644 --- a/examples/log-source-app/log-source-common/log-source-app.matter +++ b/examples/log-source-app/log-source-common/log-source-app.matter @@ -79,7 +79,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute int16u clusterRevision = 65533; request struct ArmFailSafeRequest { @@ -243,10 +243,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute int16u clusterRevision = 65533; request struct AddNOCRequest { diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter index 08fc6c5e5acf84..8eb9a8c353ca5e 100644 --- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter +++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter @@ -7,7 +7,7 @@ struct LabelStruct { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -30,7 +30,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -71,7 +71,7 @@ server cluster GeneralCommissioning = 48 { server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster NetworkCommissioning = 49 { @@ -125,7 +125,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -281,10 +281,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -350,7 +350,7 @@ server cluster OperationalCredentials = 62 { } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter index 53d60c08165d92..4485b6a62fb446 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter +++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter @@ -38,7 +38,7 @@ server cluster Basic = 40 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -61,7 +61,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -102,7 +102,7 @@ server cluster GeneralCommissioning = 48 { server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster NetworkCommissioning = 49 { @@ -156,7 +156,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -381,10 +381,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -461,7 +461,7 @@ server cluster OperationalCredentials = 62 { } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index d05fa7be72d60f..9e6d4c76de6595 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -126,10 +126,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -152,7 +152,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute int16u clusterRevision = 65533; request struct ArmFailSafeRequest { @@ -400,7 +400,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -515,10 +515,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index d05fa7be72d60f..9e6d4c76de6595 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -126,10 +126,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -152,7 +152,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute int16u clusterRevision = 65533; request struct ArmFailSafeRequest { @@ -400,7 +400,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -515,10 +515,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter index ae078a26c990cf..4eacd54a554f8e 100644 --- a/examples/pump-app/pump-common/pump-app.matter +++ b/examples/pump-app/pump-common/pump-app.matter @@ -79,10 +79,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -117,7 +117,7 @@ server cluster DiagnosticLogs = 50 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -154,7 +154,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -271,14 +271,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -351,7 +351,7 @@ server cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster NetworkCommissioning = 49 { @@ -405,7 +405,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -520,10 +520,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -722,7 +722,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - readonly attribute ThreadMetrics threadMetrics[254] = 0; + readonly attribute ThreadMetrics threadMetrics[] = 0; readonly attribute int64u currentHeapFree = 1; readonly attribute int64u currentHeapUsed = 2; readonly attribute int64u currentHeapHighWatermark = 3; @@ -828,8 +828,8 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u extendedPanId = 4; readonly attribute octet_string meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; - readonly attribute NeighborTable neighborTableList[254] = 7; - readonly attribute RouteTable routeTableList[254] = 8; + readonly attribute NeighborTable neighborTableList[] = 7; + readonly attribute RouteTable routeTableList[] = 8; readonly attribute int32u partitionId = 9; readonly attribute int8u weighting = 10; readonly attribute int8u dataVersion = 11; @@ -880,16 +880,16 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u activeTimestamp = 56; readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; - readonly attribute SecurityPolicy securityPolicy[6] = 59; + readonly attribute SecurityPolicy securityPolicy[] = 59; readonly attribute octet_string channelMask = 60; - readonly attribute OperationalDatasetComponents operationalDatasetComponents[14] = 61; - readonly attribute NetworkFault activeNetworkFaultsList[4] = 62; + readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; + readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter index 34d0cd66bf57b0..db119720311342 100644 --- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter +++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter @@ -79,10 +79,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -144,7 +144,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -174,7 +174,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -291,14 +291,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -371,7 +371,7 @@ client cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster NetworkCommissioning = 49 { @@ -425,7 +425,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -540,10 +540,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -717,7 +717,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - readonly attribute ThreadMetrics threadMetrics[254] = 0; + readonly attribute ThreadMetrics threadMetrics[] = 0; readonly attribute int64u currentHeapFree = 1; readonly attribute int64u currentHeapUsed = 2; readonly attribute int64u currentHeapHighWatermark = 3; @@ -816,8 +816,8 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u extendedPanId = 4; readonly attribute octet_string meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; - readonly attribute NeighborTable neighborTableList[254] = 7; - readonly attribute RouteTable routeTableList[254] = 8; + readonly attribute NeighborTable neighborTableList[] = 7; + readonly attribute RouteTable routeTableList[] = 8; readonly attribute int32u partitionId = 9; readonly attribute int8u weighting = 10; readonly attribute int8u dataVersion = 11; @@ -868,16 +868,16 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u activeTimestamp = 56; readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; - readonly attribute SecurityPolicy securityPolicy[6] = 59; + readonly attribute SecurityPolicy securityPolicy[] = 59; readonly attribute octet_string channelMask = 60; - readonly attribute OperationalDatasetComponents operationalDatasetComponents[14] = 61; - readonly attribute NetworkFault activeNetworkFaultsList[4] = 62; + readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; + readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter index 24345a9efd63d5..5f8211282cb81b 100644 --- a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter +++ b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter @@ -77,10 +77,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -142,7 +142,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -165,7 +165,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -282,20 +282,20 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute int16u clusterRevision = 65533; } server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster NetworkCommissioning = 49 { @@ -349,7 +349,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -434,10 +434,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -531,7 +531,7 @@ server cluster TemperatureMeasurement = 1026 { } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index d95b603f2426b0..08eca0ca4cf9bc 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -108,10 +108,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -173,7 +173,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -196,7 +196,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -313,14 +313,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -343,8 +343,8 @@ server cluster GroupKeyManagement = 63 { CHAR_STRING<16> groupName = 3; } - readonly attribute GroupKey groupKeyMap[254] = 0; - readonly attribute GroupInfo groupTable[254] = 1; + readonly attribute GroupKey groupKeyMap[] = 0; + readonly attribute GroupInfo groupTable[] = 1; readonly attribute int16u clusterRevision = 65533; } @@ -483,7 +483,7 @@ server cluster Identify = 3 { server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster NetworkCommissioning = 49 { @@ -537,7 +537,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -693,10 +693,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -885,7 +885,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - readonly attribute ThreadMetrics threadMetrics[254] = 0; + readonly attribute ThreadMetrics threadMetrics[] = 0; readonly attribute int64u currentHeapFree = 1; readonly attribute int64u currentHeapUsed = 2; readonly attribute int64u currentHeapHighWatermark = 3; @@ -1044,8 +1044,8 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u extendedPanId = 4; readonly attribute octet_string meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; - readonly attribute NeighborTable neighborTableList[254] = 7; - readonly attribute RouteTable routeTableList[254] = 8; + readonly attribute NeighborTable neighborTableList[] = 7; + readonly attribute RouteTable routeTableList[] = 8; readonly attribute int32u partitionId = 9; readonly attribute int8u weighting = 10; readonly attribute int8u dataVersion = 11; @@ -1096,16 +1096,16 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u activeTimestamp = 56; readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; - readonly attribute SecurityPolicy securityPolicy[6] = 59; + readonly attribute SecurityPolicy securityPolicy[] = 59; readonly attribute octet_string channelMask = 60; - readonly attribute OperationalDatasetComponents operationalDatasetComponents[14] = 61; - readonly attribute NetworkFault activeNetworkFaultsList[4] = 62; + readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; + readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter index e0befedfe55efb..2fe7cdb1b20283 100644 --- a/examples/tv-app/tv-common/tv-app.matter +++ b/examples/tv-app/tv-common/tv-app.matter @@ -83,7 +83,7 @@ server cluster ApplicationBasic = 1293 { attribute ApplicationBasicApplication applicationApp = 4; readonly attribute ApplicationStatusEnum applicationStatus = 5; readonly attribute char_string applicationVersion = 6; - readonly attribute vendor_id allowedVendorList[32] = 7; + readonly attribute vendor_id allowedVendorList[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -104,7 +104,7 @@ server cluster ApplicationLauncher = 1292 { CHAR_STRING applicationId = 1; } - readonly attribute INT16U applicationLauncherList[254] = 0; + readonly attribute INT16U applicationLauncherList[] = 0; attribute ApplicationEP applicationLauncherApp = 1; readonly attribute int16u clusterRevision = 65533; @@ -147,7 +147,7 @@ server cluster AudioOutput = 1291 { CHAR_STRING<32> name = 2; } - readonly attribute OutputInfo audioOutputList[254] = 0; + readonly attribute OutputInfo audioOutputList[] = 0; readonly attribute int8u currentAudioOutput = 1; readonly attribute int16u clusterRevision = 65533; @@ -269,7 +269,7 @@ server cluster Channel = 1284 { LineupInfoTypeEnum lineupInfoType = 3; } - readonly attribute ChannelInfo channelList[254] = 0; + readonly attribute ChannelInfo channelList[] = 0; attribute LineupInfo channelLineup = 1; attribute ChannelInfo currentChannel = 2; readonly attribute int16u clusterRevision = 65533; @@ -361,7 +361,7 @@ server cluster ContentLauncher = 1290 { MetricTypeEnum metric = 2; } - readonly attribute CHAR_STRING acceptHeaderList[254] = 0; + readonly attribute CHAR_STRING acceptHeaderList[] = 0; attribute bitmap32 supportedStreamingProtocols = 1; readonly attribute int16u clusterRevision = 65533; @@ -392,10 +392,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -457,7 +457,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -480,7 +480,7 @@ client cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -538,7 +538,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -655,14 +655,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -685,8 +685,8 @@ server cluster GroupKeyManagement = 63 { CHAR_STRING<16> groupName = 3; } - readonly attribute GroupKey groupKeyMap[254] = 0; - readonly attribute GroupInfo groupTable[254] = 1; + readonly attribute GroupKey groupKeyMap[] = 0; + readonly attribute GroupInfo groupTable[] = 1; readonly attribute int16u clusterRevision = 65533; } @@ -878,7 +878,7 @@ server cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster LowPower = 1288 { @@ -910,7 +910,7 @@ server cluster MediaInput = 1287 { CHAR_STRING<32> description = 3; } - readonly attribute InputInfo mediaInputList[254] = 0; + readonly attribute InputInfo mediaInputList[] = 0; readonly attribute int8u currentMediaInput = 1; readonly attribute int16u clusterRevision = 65533; @@ -1040,7 +1040,7 @@ client cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -1159,7 +1159,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -1339,10 +1339,10 @@ client cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -1430,10 +1430,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -1529,7 +1529,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - readonly attribute ThreadMetrics threadMetrics[254] = 0; + readonly attribute ThreadMetrics threadMetrics[] = 0; readonly attribute int64u currentHeapFree = 1; readonly attribute int64u currentHeapUsed = 2; readonly attribute int64u currentHeapHighWatermark = 3; @@ -1549,7 +1549,7 @@ server cluster TargetNavigator = 1285 { CHAR_STRING<32> name = 1; } - readonly attribute TargetInfo targetNavigatorList[254] = 0; + readonly attribute TargetInfo targetNavigatorList[] = 0; readonly attribute int8u currentNavigatorTarget = 1; readonly attribute int16u clusterRevision = 65533; @@ -1650,8 +1650,8 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u extendedPanId = 4; readonly attribute octet_string meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; - readonly attribute NeighborTable neighborTableList[254] = 7; - readonly attribute RouteTable routeTableList[254] = 8; + readonly attribute NeighborTable neighborTableList[] = 7; + readonly attribute RouteTable routeTableList[] = 8; readonly attribute int32u partitionId = 9; readonly attribute int8u weighting = 10; readonly attribute int8u dataVersion = 11; @@ -1702,16 +1702,16 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u activeTimestamp = 56; readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; - readonly attribute SecurityPolicy securityPolicy[6] = 59; + readonly attribute SecurityPolicy securityPolicy[] = 59; readonly attribute octet_string channelMask = 60; - readonly attribute OperationalDatasetComponents operationalDatasetComponents[14] = 61; - readonly attribute NetworkFault activeNetworkFaultsList[4] = 62; + readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; + readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter index 46e9d5a1d4e533..9eaa57e2469a8c 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter @@ -88,7 +88,7 @@ client cluster ApplicationLauncher = 1292 { CHAR_STRING applicationId = 1; } - readonly attribute INT16U applicationLauncherList[254] = 0; + readonly attribute INT16U applicationLauncherList[] = 0; readonly attribute int16u clusterRevision = 65533; request struct HideAppRequestRequest { @@ -125,7 +125,7 @@ client cluster AudioOutput = 1291 { CHAR_STRING<32> name = 2; } - readonly attribute OutputInfo audioOutputList[254] = 0; + readonly attribute OutputInfo audioOutputList[] = 0; readonly attribute int16u clusterRevision = 65533; request struct RenameOutputRequestRequest { @@ -271,7 +271,7 @@ client cluster Channel = 1284 { LineupInfoTypeEnum lineupInfoType = 3; } - readonly attribute ChannelInfo channelList[254] = 0; + readonly attribute ChannelInfo channelList[] = 0; attribute LineupInfo channelLineup = 1; attribute ChannelInfo currentChannel = 2; readonly attribute int16u clusterRevision = 65533; @@ -580,7 +580,7 @@ client cluster ContentLauncher = 1290 { MetricTypeEnum metric = 2; } - readonly attribute CHAR_STRING acceptHeaderList[254] = 0; + readonly attribute CHAR_STRING acceptHeaderList[] = 0; attribute bitmap32 supportedStreamingProtocols = 1; readonly attribute int16u clusterRevision = 65533; @@ -606,10 +606,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -1013,7 +1013,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -1043,7 +1043,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -1160,14 +1160,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -1190,8 +1190,8 @@ server cluster GroupKeyManagement = 63 { CHAR_STRING<16> groupName = 3; } - readonly attribute GroupKey groupKeyMap[254] = 0; - readonly attribute GroupInfo groupTable[254] = 1; + readonly attribute GroupKey groupKeyMap[] = 0; + readonly attribute GroupInfo groupTable[] = 1; readonly attribute int16u clusterRevision = 65533; } @@ -1530,7 +1530,7 @@ server cluster LevelControl = 8 { server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } client cluster MediaInput = 1287 { @@ -1556,7 +1556,7 @@ client cluster MediaInput = 1287 { CHAR_STRING<32> description = 3; } - readonly attribute InputInfo mediaInputList[254] = 0; + readonly attribute InputInfo mediaInputList[] = 0; readonly attribute int16u clusterRevision = 65533; request struct RenameInputRequestRequest { @@ -1669,7 +1669,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -1861,10 +1861,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -2067,7 +2067,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - readonly attribute ThreadMetrics threadMetrics[254] = 0; + readonly attribute ThreadMetrics threadMetrics[] = 0; readonly attribute int64u currentHeapFree = 1; readonly attribute int64u currentHeapUsed = 2; readonly attribute int64u currentHeapHighWatermark = 3; @@ -2123,7 +2123,7 @@ client cluster TargetNavigator = 1285 { CHAR_STRING<32> name = 1; } - readonly attribute TargetInfo targetNavigatorList[254] = 0; + readonly attribute TargetInfo targetNavigatorList[] = 0; readonly attribute int16u clusterRevision = 65533; request struct NavigateTargetRequestRequest { @@ -2179,9 +2179,9 @@ server cluster TestCluster = 1295 { attribute enum8 enum8 = 21; attribute enum16 enum16 = 22; attribute octet_string octetString = 25; - attribute INT8U listInt8u[10] = 26; - attribute OCTET_STRING listOctetString[254] = 27; - attribute TestListStructOctet listStructOctetString[254] = 28; + attribute INT8U listInt8u[] = 26; + attribute OCTET_STRING listOctetString[] = 27; + attribute TestListStructOctet listStructOctetString[] = 28; attribute long_octet_string longOctetString = 29; readonly attribute int16u clusterRevision = 65533; @@ -2304,8 +2304,8 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u extendedPanId = 4; readonly attribute octet_string meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; - readonly attribute NeighborTable neighborTableList[254] = 7; - readonly attribute RouteTable routeTableList[254] = 8; + readonly attribute NeighborTable neighborTableList[] = 7; + readonly attribute RouteTable routeTableList[] = 8; readonly attribute int32u partitionId = 9; readonly attribute int8u weighting = 10; readonly attribute int8u dataVersion = 11; @@ -2356,16 +2356,16 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u activeTimestamp = 56; readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; - readonly attribute SecurityPolicy securityPolicy[6] = 59; + readonly attribute SecurityPolicy securityPolicy[] = 59; readonly attribute octet_string channelMask = 60; - readonly attribute OperationalDatasetComponents operationalDatasetComponents[14] = 61; - readonly attribute NetworkFault activeNetworkFaultsList[4] = 62; + readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; + readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter index 66282b467d6c6d..27bcf329edef5f 100644 --- a/examples/window-app/common/window-app.matter +++ b/examples/window-app/common/window-app.matter @@ -84,10 +84,10 @@ server cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute int16u clusterRevision = 65533; } @@ -119,7 +119,7 @@ server cluster EthernetNetworkDiagnostics = 55 { } server cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } @@ -142,7 +142,7 @@ server cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute bitmap32 featureMap = 65532; @@ -259,14 +259,14 @@ server cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -317,7 +317,7 @@ server cluster Identify = 3 { server cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } server cluster NetworkCommissioning = 49 { @@ -371,7 +371,7 @@ server cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -462,10 +462,10 @@ server cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute int16u clusterRevision = 65533; @@ -549,7 +549,7 @@ server cluster PowerSource = 47 { readonly attribute int8u batteryPercentRemaining = 12; readonly attribute int32u batteryTimeRemaining = 13; readonly attribute enum8 batteryChargeLevel = 14; - readonly attribute ENUM8 activeBatteryFaults[8] = 18; + readonly attribute ENUM8 activeBatteryFaults[] = 18; readonly attribute enum8 batteryChargeState = 26; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -568,7 +568,7 @@ server cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - readonly attribute ThreadMetrics threadMetrics[254] = 0; + readonly attribute ThreadMetrics threadMetrics[] = 0; readonly attribute int64u currentHeapFree = 1; readonly attribute int64u currentHeapUsed = 2; readonly attribute int64u currentHeapHighWatermark = 3; @@ -660,8 +660,8 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u extendedPanId = 4; readonly attribute octet_string meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; - readonly attribute NeighborTable neighborTableList[254] = 7; - readonly attribute RouteTable routeTableList[254] = 8; + readonly attribute NeighborTable neighborTableList[] = 7; + readonly attribute RouteTable routeTableList[] = 8; readonly attribute int32u partitionId = 9; readonly attribute int8u weighting = 10; readonly attribute int8u dataVersion = 11; @@ -712,16 +712,16 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u activeTimestamp = 56; readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; - readonly attribute SecurityPolicy securityPolicy[6] = 59; + readonly attribute SecurityPolicy securityPolicy[] = 59; readonly attribute octet_string channelMask = 60; - readonly attribute OperationalDatasetComponents operationalDatasetComponents[14] = 61; - readonly attribute NetworkFault activeNetworkFaultsList[4] = 62; + readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; + readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; } server cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } diff --git a/src/app/zap-templates/templates/app/MatterIDL.zapt b/src/app/zap-templates/templates/app/MatterIDL.zapt index b9f39d694e53a8..dc745d7aa473ed 100644 --- a/src/app/zap-templates/templates/app/MatterIDL.zapt +++ b/src/app/zap-templates/templates/app/MatterIDL.zapt @@ -39,9 +39,7 @@ nosubscribe {{!marker to place a space even with whitespace removal~}} {{~/unless~}} {{~!Removes spaces~}} attribute {{type}} {{asLowerCamelCase name~}} - {{~#if isList~}} - [{{maxLength}}] - {{~/if}} = {{code}}; + {{~#if isList~}} [] {{~/if}} = {{code}}; {{/chip_server_cluster_attributes}} {{#chip_cluster_commands}} {{#if arguments}} diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index 60912cfca99518..87e5b883640cef 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -147,7 +147,7 @@ client cluster ApplicationBasic = 1293 { attribute ApplicationBasicApplication applicationApp = 4; readonly attribute ApplicationStatusEnum applicationStatus = 5; readonly attribute char_string applicationVersion = 6; - readonly attribute vendor_id allowedVendorList[32] = 7; + readonly attribute vendor_id allowedVendorList[] = 7; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; } @@ -164,7 +164,7 @@ client cluster ApplicationLauncher = 1292 { CHAR_STRING applicationId = 1; } - readonly attribute INT16U applicationLauncherList[254] = 0; + readonly attribute INT16U applicationLauncherList[] = 0; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; @@ -207,7 +207,7 @@ client cluster AudioOutput = 1291 { CHAR_STRING<32> name = 2; } - readonly attribute OutputInfo audioOutputList[254] = 0; + readonly attribute OutputInfo audioOutputList[] = 0; readonly attribute int8u currentAudioOutput = 1; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; @@ -379,8 +379,8 @@ client cluster BridgedActions = 37 { ActionErrorEnum error = 3; } - readonly attribute ActionStruct actionList[256] = 0; - readonly attribute EndpointListStruct endpointList[256] = 1; + readonly attribute ActionStruct actionList[] = 0; + readonly attribute EndpointListStruct endpointList[] = 1; readonly attribute long_char_string setupUrl = 2; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; @@ -487,7 +487,7 @@ client cluster Channel = 1284 { CHAR_STRING<32> affiliateCallSign = 4; } - readonly attribute ChannelInfo channelList[254] = 0; + readonly attribute ChannelInfo channelList[] = 0; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; @@ -849,7 +849,7 @@ client cluster ContentLauncher = 1290 { MetricTypeEnum metric = 2; } - readonly attribute CHAR_STRING acceptHeaderList[254] = 0; + readonly attribute CHAR_STRING acceptHeaderList[] = 0; attribute bitmap32 supportedStreamingProtocols = 1; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; @@ -881,10 +881,10 @@ client cluster Descriptor = 29 { INT16U revision = 1; } - readonly attribute DeviceType deviceList[254] = 0; - readonly attribute CLUSTER_ID serverList[254] = 1; - readonly attribute CLUSTER_ID clientList[254] = 2; - readonly attribute ENDPOINT_NO partsList[254] = 3; + readonly attribute DeviceType deviceList[] = 0; + readonly attribute CLUSTER_ID serverList[] = 1; + readonly attribute CLUSTER_ID clientList[] = 2; + readonly attribute ENDPOINT_NO partsList[] = 3; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; } @@ -1306,7 +1306,7 @@ client cluster EthernetNetworkDiagnostics = 55 { } client cluster FixedLabel = 64 { - readonly attribute LabelStruct labelList[254] = 0; + readonly attribute LabelStruct labelList[] = 0; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; } @@ -1339,7 +1339,7 @@ client cluster GeneralCommissioning = 48 { } attribute int64u breadcrumb = 0; - readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[254] = 1; + readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1; readonly attribute enum8 regulatoryConfig = 2; readonly attribute enum8 locationCapability = 3; readonly attribute attrib_id attributeList[] = 65531; @@ -1456,14 +1456,14 @@ client cluster GeneralDiagnostics = 51 { BootReasonType bootReason = 0; } - readonly attribute NetworkInterfaceType networkInterfaces[254] = 0; + readonly attribute NetworkInterfaceType networkInterfaces[] = 0; readonly attribute int16u rebootCount = 1; readonly attribute int64u upTime = 2; readonly attribute int32u totalOperationalHours = 3; readonly attribute enum8 bootReasons = 4; - readonly attribute ENUM8 activeHardwareFaults[254] = 5; - readonly attribute ENUM8 activeRadioFaults[254] = 6; - readonly attribute ENUM8 activeNetworkFaults[254] = 7; + readonly attribute ENUM8 activeHardwareFaults[] = 5; + readonly attribute ENUM8 activeRadioFaults[] = 6; + readonly attribute ENUM8 activeNetworkFaults[] = 7; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; } @@ -1498,8 +1498,8 @@ client cluster GroupKeyManagement = 63 { INT64U epochStartTime2 = 7; } - readonly attribute GroupKey groupKeyMap[254] = 0; - readonly attribute GroupInfo groupTable[254] = 1; + readonly attribute GroupKey groupKeyMap[] = 0; + readonly attribute GroupInfo groupTable[] = 1; readonly attribute int16u maxGroupsPerFabric = 2; readonly attribute int16u maxGroupKeysPerFabric = 3; readonly attribute attrib_id attributeList[] = 65531; @@ -1846,7 +1846,7 @@ client cluster LevelControl = 8 { client cluster LocalizationConfiguration = 43 { attribute char_string activeLocale = 1; - readonly attribute CHAR_STRING supportedLocales[254] = 2; + readonly attribute CHAR_STRING supportedLocales[] = 2; } client cluster LowPower = 1288 { @@ -1879,7 +1879,7 @@ client cluster MediaInput = 1287 { CHAR_STRING<32> description = 3; } - readonly attribute InputInfo mediaInputList[254] = 0; + readonly attribute InputInfo mediaInputList[] = 0; readonly attribute int8u currentMediaInput = 1; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; @@ -1962,7 +1962,7 @@ client cluster ModeSelect = 80 { } readonly attribute int8u currentMode = 0; - readonly attribute ModeOptionStruct supportedModes[255] = 1; + readonly attribute ModeOptionStruct supportedModes[] = 1; attribute int8u onMode = 2; readonly attribute int8u startUpMode = 3; readonly attribute char_string description = 4; @@ -2027,7 +2027,7 @@ client cluster NetworkCommissioning = 49 { } readonly attribute int8u maxNetworks = 0; - readonly attribute NetworkInfo networks[12] = 1; + readonly attribute NetworkInfo networks[] = 1; readonly attribute int8u scanMaxTimeSeconds = 2; readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; @@ -2313,10 +2313,10 @@ client cluster OperationalCredentials = 62 { CHAR_STRING<32> label = 5; } - readonly attribute FabricDescriptor fabricsList[320] = 1; + readonly attribute FabricDescriptor fabricsList[] = 1; readonly attribute int8u supportedFabrics = 2; readonly attribute int8u commissionedFabrics = 3; - readonly attribute OCTET_STRING trustedRootCertificates[400] = 4; + readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly attribute fabric_idx currentFabricIndex = 5; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; @@ -2401,7 +2401,7 @@ client cluster PowerSource = 47 { readonly attribute int8u batteryPercentRemaining = 12; readonly attribute int32u batteryTimeRemaining = 13; readonly attribute enum8 batteryChargeLevel = 14; - readonly attribute ENUM8 activeBatteryFaults[8] = 18; + readonly attribute ENUM8 activeBatteryFaults[] = 18; readonly attribute enum8 batteryChargeState = 26; readonly attribute attrib_id attributeList[] = 65531; readonly attribute bitmap32 featureMap = 65532; @@ -2409,7 +2409,7 @@ client cluster PowerSource = 47 { } client cluster PowerSourceConfiguration = 46 { - readonly attribute INT8U sources[6] = 0; + readonly attribute INT8U sources[] = 0; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; } @@ -2642,7 +2642,7 @@ client cluster SoftwareDiagnostics = 52 { SoftwareFault softwareFault = 0; } - readonly attribute ThreadMetrics threadMetrics[254] = 0; + readonly attribute ThreadMetrics threadMetrics[] = 0; readonly attribute int64u currentHeapFree = 1; readonly attribute int64u currentHeapUsed = 2; readonly attribute int64u currentHeapHighWatermark = 3; @@ -2704,7 +2704,7 @@ client cluster TargetNavigator = 1285 { CHAR_STRING<32> name = 1; } - readonly attribute TargetInfo targetNavigatorList[254] = 0; + readonly attribute TargetInfo targetNavigatorList[] = 0; readonly attribute int8u currentNavigatorTarget = 1; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; @@ -2821,9 +2821,9 @@ client cluster TestCluster = 1295 { attribute single floatSingle = 23; attribute double floatDouble = 24; attribute octet_string octetString = 25; - attribute INT8U listInt8u[10] = 26; - attribute OCTET_STRING listOctetString[254] = 27; - attribute TestListStructOctet listStructOctetString[254] = 28; + attribute INT8U listInt8u[] = 26; + attribute OCTET_STRING listOctetString[] = 27; + attribute TestListStructOctet listStructOctetString[] = 28; attribute long_octet_string longOctetString = 29; attribute char_string charString = 30; attribute long_char_string longCharString = 31; @@ -2837,7 +2837,7 @@ client cluster TestCluster = 1295 { attribute int8s rangeRestrictedInt8s = 39; attribute int16u rangeRestrictedInt16u = 40; attribute int16s rangeRestrictedInt16s = 41; - readonly attribute LONG_OCTET_STRING listLongOctetString[1000] = 42; + readonly attribute LONG_OCTET_STRING listLongOctetString[] = 42; attribute boolean timedWriteBoolean = 48; attribute boolean unsupported = 255; attribute boolean nullableBoolean = 32768; @@ -3148,8 +3148,8 @@ client cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u extendedPanId = 4; readonly attribute octet_string meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; - readonly attribute NeighborTable neighborTableList[254] = 7; - readonly attribute RouteTable routeTableList[254] = 8; + readonly attribute NeighborTable neighborTableList[] = 7; + readonly attribute RouteTable routeTableList[] = 8; readonly attribute int32u partitionId = 9; readonly attribute int8u weighting = 10; readonly attribute int8u dataVersion = 11; @@ -3200,10 +3200,10 @@ client cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u activeTimestamp = 56; readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; - readonly attribute SecurityPolicy securityPolicy[6] = 59; + readonly attribute SecurityPolicy securityPolicy[] = 59; readonly attribute octet_string channelMask = 60; - readonly attribute OperationalDatasetComponents operationalDatasetComponents[14] = 61; - readonly attribute NetworkFault activeNetworkFaultsList[4] = 62; + readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; + readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute attrib_id attributeList[] = 65531; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -3212,7 +3212,7 @@ client cluster ThreadNetworkDiagnostics = 53 { } client cluster UserLabel = 65 { - attribute LabelStruct labelList[254] = 0; + attribute LabelStruct labelList[] = 0; readonly attribute int16u clusterRevision = 65533; } From 64d941941099c69f2e17565006bff47c876245de Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 20 Jan 2022 08:31:47 -0500 Subject: [PATCH 6/7] Add unless check in structure member for string size. Not that no output diff --- .../partials/idl/structure_member.zapt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/app/zap-templates/partials/idl/structure_member.zapt b/src/app/zap-templates/partials/idl/structure_member.zapt index 25264859b9444a..142c0ad8abadff 100644 --- a/src/app/zap-templates/partials/idl/structure_member.zapt +++ b/src/app/zap-templates/partials/idl/structure_member.zapt @@ -1,11 +1,14 @@ {{~#if isOptional~}} optional {{/if~}} {{~#if isNullable~}} nullable {{/if~}} -{{type}} {{~#if (isString type)~}} - {{~#if maxLength~}} - <{{maxLength}}> - {{~/if~}} -{{~/if}} {{asLowerCamelCase label~}} +{{type}} + {{~#unless isArray~}} + {{~#if (isString type)~}} + {{~#if maxLength~}} + <{{maxLength}}> + {{~/if~}} + {{~/if}} + {{~/unless}} {{asLowerCamelCase label~}} {{~#if isArray~}} [] From 4fd91c62e2848e78eef2cd69c423b87b7147187d Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 20 Jan 2022 21:51:40 -0500 Subject: [PATCH 7/7] Add size info for attribute string types as well --- .../all-clusters-app.matter | 66 ++++++++--------- .../bridge-common/bridge-app.matter | 24 +++---- .../door-lock-common/door-lock-app.matter | 30 ++++---- .../lighting-common/lighting-app.matter | 36 +++++----- examples/lock-app/lock-common/lock-app.matter | 28 ++++---- .../ota-provider-app.matter | 4 +- .../ota-requestor-app.matter | 16 ++--- .../placeholder/linux/apps/app1/config.matter | 26 +++---- .../placeholder/linux/apps/app2/config.matter | 26 +++---- examples/pump-app/pump-common/pump-app.matter | 22 +++--- .../pump-controller-app.matter | 24 +++---- .../esp32/main/temperature-measurement.matter | 18 ++--- .../thermostat-common/thermostat.matter | 36 +++++----- examples/tv-app/tv-common/tv-app.matter | 46 ++++++------ .../tv-casting-common/tv-casting-app.matter | 72 +++++++++---------- examples/window-app/common/window-app.matter | 36 +++++----- .../templates/app/MatterIDL.zapt | 9 ++- .../data_model/controller-clusters.matter | 66 ++++++++--------- 18 files changed, 296 insertions(+), 289 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 346b957eef0915..aff8240e42c798 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -115,12 +115,12 @@ server cluster ApplicationBasic = 1293 { kActiveVisibleNotFocus = 3; } - readonly attribute char_string vendorName = 0; + readonly attribute char_string<32> vendorName = 0; readonly attribute int16u vendorId = 1; - readonly attribute char_string applicationName = 2; + readonly attribute char_string<32> applicationName = 2; readonly attribute int16u productId = 3; readonly attribute ApplicationStatusEnum applicationStatus = 5; - readonly attribute char_string applicationVersion = 6; + readonly attribute char_string<32> applicationVersion = 6; readonly attribute vendor_id allowedVendorList[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -193,24 +193,24 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; - readonly attribute char_string manufacturingDate = 11; - readonly attribute char_string partNumber = 12; - readonly attribute long_char_string productURL = 13; - readonly attribute char_string productLabel = 14; - readonly attribute char_string serialNumber = 15; + readonly attribute char_string<64> softwareVersionString = 10; + readonly attribute char_string<16> manufacturingDate = 11; + readonly attribute char_string<32> partNumber = 12; + readonly attribute long_char_string<256> productURL = 13; + readonly attribute char_string<64> productLabel = 14; + readonly attribute char_string<32> serialNumber = 15; attribute boolean localConfigDisabled = 16; readonly attribute boolean reachable = 17; - readonly attribute char_string uniqueID = 18; + readonly attribute char_string<32> uniqueID = 18; readonly attribute int16u clusterRevision = 65533; command MfgSpecificPing(): DefaultSuccess = 0; @@ -313,7 +313,7 @@ server cluster BridgedActions = 37 { readonly attribute ActionStruct actionList[] = 0; readonly attribute EndpointListStruct endpointList[] = 1; - readonly attribute long_char_string setupUrl = 2; + readonly attribute long_char_string<512> setupUrl = 2; readonly attribute int16u clusterRevision = 65533; } @@ -396,7 +396,7 @@ server cluster ColorControl = 768 { readonly attribute int16u currentX = 3; readonly attribute int16u currentY = 4; readonly attribute enum8 driftCompensation = 5; - readonly attribute char_string compensationText = 6; + readonly attribute char_string<254> compensationText = 6; readonly attribute int16u colorTemperature = 7; readonly attribute enum8 colorMode = 8; attribute bitmap8 colorControlOptions = 15; @@ -976,7 +976,7 @@ server cluster DoorLock = 257 { readonly attribute int8u maxPINCodeLength = 23; readonly attribute int8u minPINCodeLength = 24; readonly attribute bitmap8 credentialRulesSupport = 27; - attribute char_string language = 33; + attribute char_string<3> language = 33; attribute int32u autoRelockTime = 35; attribute int8u soundVolume = 36; attribute DlOperatingMode operatingMode = 37; @@ -1687,7 +1687,7 @@ server cluster LevelControl = 8 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -1762,7 +1762,7 @@ server cluster ModeSelect = 80 { readonly attribute ModeOptionStruct supportedModes[] = 1; attribute int8u onMode = 2; readonly attribute int8u startUpMode = 3; - readonly attribute char_string description = 4; + readonly attribute char_string<32> description = 4; readonly attribute int16u clusterRevision = 65533; request struct ChangeToModeRequest { @@ -1828,7 +1828,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -2182,7 +2182,7 @@ server cluster OperationalCredentials = 62 { server cluster PowerSource = 47 { readonly attribute enum8 status = 0; readonly attribute int8u order = 1; - readonly attribute char_string description = 2; + readonly attribute char_string<60> description = 2; readonly attribute int32u batteryVoltage = 11; readonly attribute int8u batteryPercentRemaining = 12; readonly attribute int32u batteryTimeRemaining = 13; @@ -2584,13 +2584,13 @@ server cluster TestCluster = 1295 { attribute enum16 enum16 = 22; attribute single floatSingle = 23; attribute double floatDouble = 24; - attribute octet_string octetString = 25; + attribute octet_string<10> octetString = 25; attribute INT8U listInt8u[] = 26; attribute OCTET_STRING listOctetString[] = 27; attribute TestListStructOctet listStructOctetString[] = 28; - attribute long_octet_string longOctetString = 29; - attribute char_string charString = 30; - attribute long_char_string longCharString = 31; + attribute long_octet_string<1000> longOctetString = 29; + attribute char_string<10> charString = 30; + attribute long_char_string<1000> longCharString = 31; attribute epoch_us epochUs = 32; attribute epoch_s epochS = 33; attribute vendor_id vendorId = 34; @@ -2628,8 +2628,8 @@ server cluster TestCluster = 1295 { attribute enum16 nullableEnum16 = 32790; attribute single nullableFloatSingle = 32791; attribute double nullableFloatDouble = 32792; - attribute octet_string nullableOctetString = 32793; - attribute char_string nullableCharString = 32798; + attribute octet_string<10> nullableOctetString = 32793; + attribute char_string<10> nullableCharString = 32798; attribute SimpleEnum nullableEnumAttr = 32804; attribute SimpleStruct nullableStruct = 32805; attribute int8u nullableRangeRestrictedInt8u = 32806; @@ -2859,10 +2859,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int16u channel = 0; readonly attribute enum8 routingRole = 1; - readonly attribute octet_string networkName = 2; + readonly attribute octet_string<16> networkName = 2; readonly attribute int16u panId = 3; readonly attribute int64u extendedPanId = 4; - readonly attribute octet_string meshLocalPrefix = 5; + readonly attribute octet_string<17> meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; readonly attribute NeighborTable neighborTableList[] = 7; readonly attribute RouteTable routeTableList[] = 8; @@ -2917,7 +2917,7 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; readonly attribute SecurityPolicy securityPolicy[] = 59; - readonly attribute octet_string channelMask = 60; + readonly attribute octet_string<4> channelMask = 60; readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; @@ -2932,7 +2932,7 @@ server cluster UserLabel = 65 { } server cluster WakeOnLan = 1283 { - readonly attribute char_string wakeOnLanMacAddress = 0; + readonly attribute char_string<32> wakeOnLanMacAddress = 0; readonly attribute int16u clusterRevision = 65533; } @@ -2980,7 +2980,7 @@ server cluster WiFiNetworkDiagnostics = 54 { WiFiConnectionStatus connectionStatus = 0; } - readonly attribute octet_string bssid = 0; + readonly attribute octet_string<6> bssid = 0; readonly attribute enum8 securityType = 1; readonly attribute enum8 wiFiVersion = 2; readonly attribute int16u channelNumber = 3; diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter index ddd6e5aa774c0b..bd0ac47b57cc45 100644 --- a/examples/bridge-app/bridge-common/bridge-app.matter +++ b/examples/bridge-app/bridge-common/bridge-app.matter @@ -58,16 +58,16 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; + readonly attribute char_string<64> softwareVersionString = 10; readonly attribute int16u clusterRevision = 65533; } @@ -375,7 +375,7 @@ server cluster LevelControl = 8 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -435,7 +435,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -769,10 +769,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int16u channel = 0; readonly attribute enum8 routingRole = 1; - readonly attribute octet_string networkName = 2; + readonly attribute octet_string<16> networkName = 2; readonly attribute int16u panId = 3; readonly attribute int64u extendedPanId = 4; - readonly attribute octet_string meshLocalPrefix = 5; + readonly attribute octet_string<17> meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; readonly attribute NeighborTable neighborTableList[] = 7; readonly attribute RouteTable routeTableList[] = 8; @@ -827,7 +827,7 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; readonly attribute SecurityPolicy securityPolicy[] = 59; - readonly attribute octet_string channelMask = 60; + readonly attribute octet_string<4> channelMask = 60; readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; @@ -883,7 +883,7 @@ server cluster WiFiNetworkDiagnostics = 54 { WiFiConnectionStatus connectionStatus = 0; } - readonly attribute octet_string bssid = 0; + readonly attribute octet_string<6> bssid = 0; readonly attribute enum8 securityType = 1; readonly attribute enum8 wiFiVersion = 2; readonly attribute int16u channelNumber = 3; diff --git a/examples/door-lock-app/door-lock-common/door-lock-app.matter b/examples/door-lock-app/door-lock-common/door-lock-app.matter index bf9cf949b58598..cdf6646e3c1491 100644 --- a/examples/door-lock-app/door-lock-common/door-lock-app.matter +++ b/examples/door-lock-app/door-lock-common/door-lock-app.matter @@ -58,16 +58,16 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; + readonly attribute char_string<64> softwareVersionString = 10; readonly attribute int16u clusterRevision = 65533; } @@ -359,7 +359,7 @@ server cluster DoorLock = 257 { readonly attribute int8u maxPINCodeLength = 23; readonly attribute int8u minPINCodeLength = 24; readonly attribute bitmap8 credentialRulesSupport = 27; - attribute char_string language = 33; + attribute char_string<3> language = 33; attribute int32u autoRelockTime = 35; attribute int8u soundVolume = 36; attribute DlOperatingMode operatingMode = 37; @@ -627,7 +627,7 @@ server cluster GeneralDiagnostics = 51 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -687,7 +687,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -862,12 +862,12 @@ server cluster OperationalCredentials = 62 { server cluster PowerSource = 47 { readonly attribute enum8 status = 0; readonly attribute int8u order = 1; - readonly attribute char_string description = 2; + readonly attribute char_string<60> description = 2; readonly attribute int32u wiredAssessedCurrent = 6; readonly attribute enum8 batteryChargeLevel = 14; readonly attribute boolean batteryReplacementNeeded = 15; readonly attribute enum8 batteryReplaceability = 16; - readonly attribute char_string batteryReplacementDescription = 19; + readonly attribute char_string<60> batteryReplacementDescription = 19; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; } @@ -977,10 +977,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int16u channel = 0; readonly attribute enum8 routingRole = 1; - readonly attribute octet_string networkName = 2; + readonly attribute octet_string<16> networkName = 2; readonly attribute int16u panId = 3; readonly attribute int64u extendedPanId = 4; - readonly attribute octet_string meshLocalPrefix = 5; + readonly attribute octet_string<17> meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; readonly attribute NeighborTable neighborTableList[] = 7; readonly attribute RouteTable routeTableList[] = 8; @@ -1035,7 +1035,7 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; readonly attribute SecurityPolicy securityPolicy[] = 59; - readonly attribute octet_string channelMask = 60; + readonly attribute octet_string<4> channelMask = 60; readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; @@ -1091,7 +1091,7 @@ server cluster WiFiNetworkDiagnostics = 54 { WiFiConnectionStatus connectionStatus = 0; } - readonly attribute octet_string bssid = 0; + readonly attribute octet_string<6> bssid = 0; readonly attribute enum8 securityType = 1; readonly attribute enum8 wiFiVersion = 2; readonly attribute int16u channelNumber = 3; diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter index 171e7e5a007b80..885fa06aaf7cd9 100644 --- a/examples/lighting-app/lighting-common/lighting-app.matter +++ b/examples/lighting-app/lighting-common/lighting-app.matter @@ -58,24 +58,24 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; - readonly attribute char_string manufacturingDate = 11; - readonly attribute char_string partNumber = 12; - readonly attribute long_char_string productURL = 13; - readonly attribute char_string productLabel = 14; - readonly attribute char_string serialNumber = 15; + readonly attribute char_string<64> softwareVersionString = 10; + readonly attribute char_string<16> manufacturingDate = 11; + readonly attribute char_string<32> partNumber = 12; + readonly attribute long_char_string<256> productURL = 13; + readonly attribute char_string<64> productLabel = 14; + readonly attribute char_string<32> serialNumber = 15; attribute boolean localConfigDisabled = 16; readonly attribute boolean reachable = 17; - readonly attribute char_string uniqueID = 18; + readonly attribute char_string<32> uniqueID = 18; readonly attribute int16u clusterRevision = 65533; } @@ -669,7 +669,7 @@ server cluster LevelControl = 8 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -729,7 +729,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -1251,10 +1251,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int16u channel = 0; readonly attribute enum8 routingRole = 1; - readonly attribute octet_string networkName = 2; + readonly attribute octet_string<16> networkName = 2; readonly attribute int16u panId = 3; readonly attribute int64u extendedPanId = 4; - readonly attribute octet_string meshLocalPrefix = 5; + readonly attribute octet_string<17> meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; readonly attribute NeighborTable neighborTableList[] = 7; readonly attribute RouteTable routeTableList[] = 8; @@ -1309,7 +1309,7 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; readonly attribute SecurityPolicy securityPolicy[] = 59; - readonly attribute octet_string channelMask = 60; + readonly attribute octet_string<4> channelMask = 60; readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; @@ -1367,7 +1367,7 @@ server cluster WiFiNetworkDiagnostics = 54 { WiFiConnectionStatus connectionStatus = 0; } - readonly attribute octet_string bssid = 0; + readonly attribute octet_string<6> bssid = 0; readonly attribute enum8 securityType = 1; readonly attribute enum8 wiFiVersion = 2; readonly attribute int16u channelNumber = 3; diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter index 7532bacd2ec4cd..8530eb8a26598e 100644 --- a/examples/lock-app/lock-common/lock-app.matter +++ b/examples/lock-app/lock-common/lock-app.matter @@ -58,16 +58,16 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; + readonly attribute char_string<64> softwareVersionString = 10; readonly attribute int16u clusterRevision = 65533; } @@ -294,7 +294,7 @@ server cluster GeneralDiagnostics = 51 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -354,7 +354,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -558,12 +558,12 @@ server cluster OperationalCredentials = 62 { server cluster PowerSource = 47 { readonly attribute enum8 status = 0; readonly attribute int8u order = 1; - readonly attribute char_string description = 2; + readonly attribute char_string<60> description = 2; readonly attribute int32u wiredAssessedCurrent = 6; readonly attribute enum8 batteryChargeLevel = 14; readonly attribute boolean batteryReplacementNeeded = 15; readonly attribute enum8 batteryReplaceability = 16; - readonly attribute char_string batteryReplacementDescription = 19; + readonly attribute char_string<60> batteryReplacementDescription = 19; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; } @@ -673,10 +673,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int16u channel = 0; readonly attribute enum8 routingRole = 1; - readonly attribute octet_string networkName = 2; + readonly attribute octet_string<16> networkName = 2; readonly attribute int16u panId = 3; readonly attribute int64u extendedPanId = 4; - readonly attribute octet_string meshLocalPrefix = 5; + readonly attribute octet_string<17> meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; readonly attribute NeighborTable neighborTableList[] = 7; readonly attribute RouteTable routeTableList[] = 8; @@ -731,7 +731,7 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; readonly attribute SecurityPolicy securityPolicy[] = 59; - readonly attribute octet_string channelMask = 60; + readonly attribute octet_string<4> channelMask = 60; readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; @@ -787,7 +787,7 @@ server cluster WiFiNetworkDiagnostics = 54 { WiFiConnectionStatus connectionStatus = 0; } - readonly attribute octet_string bssid = 0; + readonly attribute octet_string<6> bssid = 0; readonly attribute enum8 securityType = 1; readonly attribute enum8 wiFiVersion = 2; readonly attribute int16u channelNumber = 3; diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter index ddbfa409249eac..e029014453fc43 100644 --- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter +++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter @@ -70,7 +70,7 @@ server cluster GeneralCommissioning = 48 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -130,7 +130,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter index 54297ead8c3081..dc2b484fe9db21 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter +++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter @@ -22,16 +22,16 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; + readonly attribute char_string<64> softwareVersionString = 10; readonly attribute int16u clusterRevision = 65533; command MfgSpecificPing(): DefaultSuccess = 0; @@ -101,7 +101,7 @@ server cluster GeneralCommissioning = 48 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -161,7 +161,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index 7b98010fc6b7e8..14836b15db5a7a 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -17,24 +17,24 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; - readonly attribute char_string manufacturingDate = 11; - readonly attribute char_string partNumber = 12; - readonly attribute long_char_string productURL = 13; - readonly attribute char_string productLabel = 14; - readonly attribute char_string serialNumber = 15; + readonly attribute char_string<64> softwareVersionString = 10; + readonly attribute char_string<16> manufacturingDate = 11; + readonly attribute char_string<32> partNumber = 12; + readonly attribute long_char_string<256> productURL = 13; + readonly attribute char_string<64> productLabel = 14; + readonly attribute char_string<32> serialNumber = 15; attribute boolean localConfigDisabled = 16; readonly attribute boolean reachable = 17; - readonly attribute char_string uniqueID = 18; + readonly attribute char_string<32> uniqueID = 18; readonly attribute int16u clusterRevision = 65533; } @@ -405,7 +405,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index 7b98010fc6b7e8..14836b15db5a7a 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -17,24 +17,24 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; - readonly attribute char_string manufacturingDate = 11; - readonly attribute char_string partNumber = 12; - readonly attribute long_char_string productURL = 13; - readonly attribute char_string productLabel = 14; - readonly attribute char_string serialNumber = 15; + readonly attribute char_string<64> softwareVersionString = 10; + readonly attribute char_string<16> manufacturingDate = 11; + readonly attribute char_string<32> partNumber = 12; + readonly attribute long_char_string<256> productURL = 13; + readonly attribute char_string<64> productLabel = 14; + readonly attribute char_string<32> serialNumber = 15; attribute boolean localConfigDisabled = 16; readonly attribute boolean reachable = 17; - readonly attribute char_string uniqueID = 18; + readonly attribute char_string<32> uniqueID = 18; readonly attribute int16u clusterRevision = 65533; } @@ -405,7 +405,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter index b2b32538b778d0..f1442f197b7541 100644 --- a/examples/pump-app/pump-common/pump-app.matter +++ b/examples/pump-app/pump-common/pump-app.matter @@ -58,16 +58,16 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; + readonly attribute char_string<64> softwareVersionString = 10; readonly attribute int16u clusterRevision = 65533; command MfgSpecificPing(): DefaultSuccess = 0; @@ -350,7 +350,7 @@ server cluster LevelControl = 8 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -410,7 +410,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -830,10 +830,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int16u channel = 0; readonly attribute enum8 routingRole = 1; - readonly attribute octet_string networkName = 2; + readonly attribute octet_string<16> networkName = 2; readonly attribute int16u panId = 3; readonly attribute int64u extendedPanId = 4; - readonly attribute octet_string meshLocalPrefix = 5; + readonly attribute octet_string<17> meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; readonly attribute NeighborTable neighborTableList[] = 7; readonly attribute RouteTable routeTableList[] = 8; @@ -888,7 +888,7 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; readonly attribute SecurityPolicy securityPolicy[] = 59; - readonly attribute octet_string channelMask = 60; + readonly attribute octet_string<4> channelMask = 60; readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter index ec61c1d6707e04..4334a23f96a9d8 100644 --- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter +++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter @@ -58,16 +58,16 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; + readonly attribute char_string<64> softwareVersionString = 10; readonly attribute int16u clusterRevision = 65533; command MfgSpecificPing(): DefaultSuccess = 0; @@ -370,7 +370,7 @@ client cluster LevelControl = 8 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -430,7 +430,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -818,10 +818,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int16u channel = 0; readonly attribute enum8 routingRole = 1; - readonly attribute octet_string networkName = 2; + readonly attribute octet_string<16> networkName = 2; readonly attribute int16u panId = 3; readonly attribute int64u extendedPanId = 4; - readonly attribute octet_string meshLocalPrefix = 5; + readonly attribute octet_string<17> meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; readonly attribute NeighborTable neighborTableList[] = 7; readonly attribute RouteTable routeTableList[] = 8; @@ -876,7 +876,7 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; readonly attribute SecurityPolicy securityPolicy[] = 59; - readonly attribute octet_string channelMask = 60; + readonly attribute octet_string<4> channelMask = 60; readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; @@ -932,7 +932,7 @@ server cluster WiFiNetworkDiagnostics = 54 { WiFiConnectionStatus connectionStatus = 0; } - readonly attribute octet_string bssid = 0; + readonly attribute octet_string<6> bssid = 0; readonly attribute enum8 securityType = 1; readonly attribute enum8 wiFiVersion = 2; readonly attribute int16u channelNumber = 3; diff --git a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter index 529df2e7ecdc0e..122f2c3c376eda 100644 --- a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter +++ b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter @@ -58,16 +58,16 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; + readonly attribute char_string<64> softwareVersionString = 10; readonly attribute int16u clusterRevision = 65533; } @@ -294,7 +294,7 @@ server cluster GeneralDiagnostics = 51 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -354,7 +354,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -586,7 +586,7 @@ server cluster WiFiNetworkDiagnostics = 54 { WiFiConnectionStatus connectionStatus = 0; } - readonly attribute octet_string bssid = 0; + readonly attribute octet_string<6> bssid = 0; readonly attribute enum8 securityType = 1; readonly attribute enum8 wiFiVersion = 2; readonly attribute int16u channelNumber = 3; diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index d2f5fbc5f200df..c72bd96d1eca17 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -58,24 +58,24 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; - readonly attribute char_string manufacturingDate = 11; - readonly attribute char_string partNumber = 12; - readonly attribute long_char_string productURL = 13; - readonly attribute char_string productLabel = 14; - readonly attribute char_string serialNumber = 15; + readonly attribute char_string<64> softwareVersionString = 10; + readonly attribute char_string<16> manufacturingDate = 11; + readonly attribute char_string<32> partNumber = 12; + readonly attribute long_char_string<256> productURL = 13; + readonly attribute char_string<64> productLabel = 14; + readonly attribute char_string<32> serialNumber = 15; attribute boolean localConfigDisabled = 16; readonly attribute boolean reachable = 17; - readonly attribute char_string uniqueID = 18; + readonly attribute char_string<32> uniqueID = 18; readonly attribute int16u clusterRevision = 65533; command MfgSpecificPing(): DefaultSuccess = 0; @@ -482,7 +482,7 @@ server cluster Identify = 3 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -542,7 +542,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -1046,10 +1046,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int16u channel = 0; readonly attribute enum8 routingRole = 1; - readonly attribute octet_string networkName = 2; + readonly attribute octet_string<16> networkName = 2; readonly attribute int16u panId = 3; readonly attribute int64u extendedPanId = 4; - readonly attribute octet_string meshLocalPrefix = 5; + readonly attribute octet_string<17> meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; readonly attribute NeighborTable neighborTableList[] = 7; readonly attribute RouteTable routeTableList[] = 8; @@ -1104,7 +1104,7 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; readonly attribute SecurityPolicy securityPolicy[] = 59; - readonly attribute octet_string channelMask = 60; + readonly attribute octet_string<4> channelMask = 60; readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; @@ -1160,7 +1160,7 @@ server cluster WiFiNetworkDiagnostics = 54 { WiFiConnectionStatus connectionStatus = 0; } - readonly attribute octet_string bssid = 0; + readonly attribute octet_string<6> bssid = 0; readonly attribute enum8 securityType = 1; readonly attribute enum8 wiFiVersion = 2; readonly attribute int16u channelNumber = 3; diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter index d3d7be4a065728..0613fcac384ae4 100644 --- a/examples/tv-app/tv-common/tv-app.matter +++ b/examples/tv-app/tv-common/tv-app.matter @@ -76,13 +76,13 @@ server cluster ApplicationBasic = 1293 { CHAR_STRING applicationId = 1; } - readonly attribute char_string vendorName = 0; + readonly attribute char_string<32> vendorName = 0; readonly attribute int16u vendorId = 1; - readonly attribute char_string applicationName = 2; + readonly attribute char_string<32> applicationName = 2; readonly attribute int16u productId = 3; attribute ApplicationBasicApplication applicationApp = 4; readonly attribute ApplicationStatusEnum applicationStatus = 5; - readonly attribute char_string applicationVersion = 6; + readonly attribute char_string<32> applicationVersion = 6; readonly attribute vendor_id allowedVendorList[] = 7; readonly attribute int16u clusterRevision = 65533; } @@ -180,23 +180,23 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; - readonly attribute char_string manufacturingDate = 11; - readonly attribute char_string partNumber = 12; - readonly attribute long_char_string productURL = 13; - readonly attribute char_string productLabel = 14; - readonly attribute char_string serialNumber = 15; + readonly attribute char_string<64> softwareVersionString = 10; + readonly attribute char_string<16> manufacturingDate = 11; + readonly attribute char_string<32> partNumber = 12; + readonly attribute long_char_string<256> productURL = 13; + readonly attribute char_string<64> productLabel = 14; + readonly attribute char_string<32> serialNumber = 15; attribute boolean localConfigDisabled = 16; - readonly attribute char_string uniqueID = 18; + readonly attribute char_string<32> uniqueID = 18; readonly attribute int16u clusterRevision = 65533; command MfgSpecificPing(): DefaultSuccess = 0; @@ -877,7 +877,7 @@ server cluster LevelControl = 8 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -1045,7 +1045,7 @@ client cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -1164,7 +1164,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -1659,10 +1659,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int16u channel = 0; readonly attribute enum8 routingRole = 1; - readonly attribute octet_string networkName = 2; + readonly attribute octet_string<16> networkName = 2; readonly attribute int16u panId = 3; readonly attribute int64u extendedPanId = 4; - readonly attribute octet_string meshLocalPrefix = 5; + readonly attribute octet_string<17> meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; readonly attribute NeighborTable neighborTableList[] = 7; readonly attribute RouteTable routeTableList[] = 8; @@ -1717,7 +1717,7 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; readonly attribute SecurityPolicy securityPolicy[] = 59; - readonly attribute octet_string channelMask = 60; + readonly attribute octet_string<4> channelMask = 60; readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; @@ -1730,7 +1730,7 @@ server cluster UserLabel = 65 { } server cluster WakeOnLan = 1283 { - readonly attribute char_string wakeOnLanMacAddress = 0; + readonly attribute char_string<32> wakeOnLanMacAddress = 0; readonly attribute int16u clusterRevision = 65533; } @@ -1778,7 +1778,7 @@ server cluster WiFiNetworkDiagnostics = 54 { WiFiConnectionStatus connectionStatus = 0; } - readonly attribute octet_string bssid = 0; + readonly attribute octet_string<6> bssid = 0; readonly attribute enum8 securityType = 1; readonly attribute enum8 wiFiVersion = 2; readonly attribute int16u channelNumber = 3; diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter index 97cf3ae2725405..7e705c889b7f95 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter @@ -67,12 +67,12 @@ client cluster ApplicationBasic = 1293 { kActiveVisibleNotFocus = 3; } - readonly attribute char_string vendorName = 0; + readonly attribute char_string<32> vendorName = 0; readonly attribute int16u vendorId = 1; - readonly attribute char_string applicationName = 2; + readonly attribute char_string<32> applicationName = 2; readonly attribute int16u productId = 3; readonly attribute ApplicationStatusEnum applicationStatus = 5; - readonly attribute char_string applicationVersion = 6; + readonly attribute char_string<32> applicationVersion = 6; readonly attribute int16u clusterRevision = 65533; } @@ -172,24 +172,24 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; - readonly attribute char_string manufacturingDate = 11; - readonly attribute char_string partNumber = 12; - readonly attribute long_char_string productURL = 13; - readonly attribute char_string productLabel = 14; - readonly attribute char_string serialNumber = 15; + readonly attribute char_string<64> softwareVersionString = 10; + readonly attribute char_string<16> manufacturingDate = 11; + readonly attribute char_string<32> partNumber = 12; + readonly attribute long_char_string<256> productURL = 13; + readonly attribute char_string<64> productLabel = 14; + readonly attribute char_string<32> serialNumber = 15; attribute boolean localConfigDisabled = 16; readonly attribute boolean reachable = 17; - readonly attribute char_string uniqueID = 18; + readonly attribute char_string<32> uniqueID = 18; readonly attribute int16u clusterRevision = 65533; command MfgSpecificPing(): DefaultSuccess = 0; @@ -224,19 +224,19 @@ server cluster Binding = 30 { } server cluster BridgedDeviceBasic = 57 { - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute int16u vendorID = 2; - readonly attribute char_string productName = 3; - attribute char_string nodeLabel = 5; + readonly attribute char_string<32> productName = 3; + attribute char_string<32> nodeLabel = 5; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; - readonly attribute char_string manufacturingDate = 11; - readonly attribute char_string partNumber = 12; - readonly attribute long_char_string productURL = 13; - readonly attribute char_string productLabel = 14; - readonly attribute char_string serialNumber = 15; + readonly attribute char_string<64> softwareVersionString = 10; + readonly attribute char_string<16> manufacturingDate = 11; + readonly attribute char_string<32> partNumber = 12; + readonly attribute long_char_string<256> productURL = 13; + readonly attribute char_string<64> productLabel = 14; + readonly attribute char_string<32> serialNumber = 15; readonly attribute boolean reachable = 17; readonly attribute int16u clusterRevision = 65533; @@ -347,7 +347,7 @@ server cluster ColorControl = 768 { readonly attribute int16u currentX = 3; readonly attribute int16u currentY = 4; readonly attribute enum8 driftCompensation = 5; - readonly attribute char_string compensationText = 6; + readonly attribute char_string<254> compensationText = 6; readonly attribute int16u colorTemperature = 7; readonly attribute enum8 colorMode = 8; attribute bitmap8 colorControlOptions = 15; @@ -894,7 +894,7 @@ server cluster DoorLock = 257 { readonly attribute int8u maxPINCodeLength = 23; readonly attribute int8u minPINCodeLength = 24; readonly attribute bitmap8 credentialRulesSupport = 27; - attribute char_string language = 33; + attribute char_string<3> language = 33; attribute int32u autoRelockTime = 35; attribute int8u soundVolume = 36; attribute DlOperatingMode operatingMode = 37; @@ -1529,7 +1529,7 @@ server cluster LevelControl = 8 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -1674,7 +1674,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -2185,11 +2185,11 @@ server cluster TestCluster = 1295 { attribute int64s int64s = 20; attribute enum8 enum8 = 21; attribute enum16 enum16 = 22; - attribute octet_string octetString = 25; + attribute octet_string<10> octetString = 25; attribute INT8U listInt8u[] = 26; attribute OCTET_STRING listOctetString[] = 27; attribute TestListStructOctet listStructOctetString[] = 28; - attribute long_octet_string longOctetString = 29; + attribute long_octet_string<1000> longOctetString = 29; readonly attribute int16u clusterRevision = 65533; response struct TestSpecificResponse { @@ -2306,10 +2306,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int16u channel = 0; readonly attribute enum8 routingRole = 1; - readonly attribute octet_string networkName = 2; + readonly attribute octet_string<16> networkName = 2; readonly attribute int16u panId = 3; readonly attribute int64u extendedPanId = 4; - readonly attribute octet_string meshLocalPrefix = 5; + readonly attribute octet_string<17> meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; readonly attribute NeighborTable neighborTableList[] = 7; readonly attribute RouteTable routeTableList[] = 8; @@ -2364,7 +2364,7 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; readonly attribute SecurityPolicy securityPolicy[] = 59; - readonly attribute octet_string channelMask = 60; + readonly attribute octet_string<4> channelMask = 60; readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; @@ -2377,7 +2377,7 @@ server cluster UserLabel = 65 { } server cluster WakeOnLan = 1283 { - readonly attribute char_string wakeOnLanMacAddress = 0; + readonly attribute char_string<32> wakeOnLanMacAddress = 0; readonly attribute int16u clusterRevision = 65533; } @@ -2425,7 +2425,7 @@ server cluster WiFiNetworkDiagnostics = 54 { WiFiConnectionStatus connectionStatus = 0; } - readonly attribute octet_string bssid = 0; + readonly attribute octet_string<6> bssid = 0; readonly attribute enum8 securityType = 1; readonly attribute enum8 wiFiVersion = 2; readonly attribute int16u channelNumber = 3; diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter index c507b646f7d70f..8d18965ddf1d34 100644 --- a/examples/window-app/common/window-app.matter +++ b/examples/window-app/common/window-app.matter @@ -58,21 +58,21 @@ server cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; - readonly attribute char_string manufacturingDate = 11; - readonly attribute char_string partNumber = 12; - readonly attribute long_char_string productURL = 13; - readonly attribute char_string productLabel = 14; - readonly attribute char_string serialNumber = 15; + readonly attribute char_string<64> softwareVersionString = 10; + readonly attribute char_string<16> manufacturingDate = 11; + readonly attribute char_string<32> partNumber = 12; + readonly attribute long_char_string<256> productURL = 13; + readonly attribute char_string<64> productLabel = 14; + readonly attribute char_string<32> serialNumber = 15; attribute boolean localConfigDisabled = 16; readonly attribute boolean reachable = 17; readonly attribute int16u clusterRevision = 65533; @@ -316,7 +316,7 @@ server cluster Identify = 3 { } server cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -376,7 +376,7 @@ server cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -551,7 +551,7 @@ server cluster OperationalCredentials = 62 { server cluster PowerSource = 47 { readonly attribute enum8 status = 0; readonly attribute int8u order = 1; - readonly attribute char_string description = 2; + readonly attribute char_string<60> description = 2; readonly attribute int32u batteryVoltage = 11; readonly attribute int8u batteryPercentRemaining = 12; readonly attribute int32u batteryTimeRemaining = 13; @@ -662,10 +662,10 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int16u channel = 0; readonly attribute enum8 routingRole = 1; - readonly attribute octet_string networkName = 2; + readonly attribute octet_string<16> networkName = 2; readonly attribute int16u panId = 3; readonly attribute int64u extendedPanId = 4; - readonly attribute octet_string meshLocalPrefix = 5; + readonly attribute octet_string<17> meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; readonly attribute NeighborTable neighborTableList[] = 7; readonly attribute RouteTable routeTableList[] = 8; @@ -720,7 +720,7 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; readonly attribute SecurityPolicy securityPolicy[] = 59; - readonly attribute octet_string channelMask = 60; + readonly attribute octet_string<4> channelMask = 60; readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute bitmap32 featureMap = 65532; @@ -776,7 +776,7 @@ server cluster WiFiNetworkDiagnostics = 54 { WiFiConnectionStatus connectionStatus = 0; } - readonly attribute octet_string bssid = 0; + readonly attribute octet_string<6> bssid = 0; readonly attribute enum8 securityType = 1; readonly attribute enum8 wiFiVersion = 2; readonly attribute int16u channelNumber = 3; diff --git a/src/app/zap-templates/templates/app/MatterIDL.zapt b/src/app/zap-templates/templates/app/MatterIDL.zapt index dc745d7aa473ed..25450b7adf4878 100644 --- a/src/app/zap-templates/templates/app/MatterIDL.zapt +++ b/src/app/zap-templates/templates/app/MatterIDL.zapt @@ -38,7 +38,14 @@ {{~#unless isReportableAttribute~}} nosubscribe {{!marker to place a space even with whitespace removal~}} {{~/unless~}} - {{~!Removes spaces~}} attribute {{type}} {{asLowerCamelCase name~}} + {{~!Removes spaces~}} attribute {{type}} + {{~#unless isArray~}} + {{~#if (isString type)~}} + {{~#if maxLength~}} + <{{maxLength}}> + {{~/if~}} + {{~/if~}} + {{/unless}} {{asLowerCamelCase name~}} {{~#if isList~}} [] {{~/if}} = {{code}}; {{/chip_server_cluster_attributes}} {{#chip_cluster_commands}} diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index eb06996b0dc121..4f743b86f914c5 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -140,13 +140,13 @@ client cluster ApplicationBasic = 1293 { CHAR_STRING applicationId = 1; } - readonly attribute char_string vendorName = 0; + readonly attribute char_string<32> vendorName = 0; readonly attribute int16u vendorId = 1; - readonly attribute char_string applicationName = 2; + readonly attribute char_string<32> applicationName = 2; readonly attribute int16u productId = 3; attribute ApplicationBasicApplication applicationApp = 4; readonly attribute ApplicationStatusEnum applicationStatus = 5; - readonly attribute char_string applicationVersion = 6; + readonly attribute char_string<32> applicationVersion = 6; readonly attribute vendor_id allowedVendorList[] = 7; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; @@ -257,24 +257,24 @@ client cluster Basic = 40 { } readonly attribute int16u interactionModelVersion = 0; - readonly attribute char_string vendorName = 1; + readonly attribute char_string<32> vendorName = 1; readonly attribute vendor_id vendorID = 2; - readonly attribute char_string productName = 3; + readonly attribute char_string<32> productName = 3; readonly attribute int16u productID = 4; - attribute char_string nodeLabel = 5; - attribute char_string location = 6; + attribute char_string<32> nodeLabel = 5; + attribute char_string<2> location = 6; readonly attribute int16u hardwareVersion = 7; - readonly attribute char_string hardwareVersionString = 8; + readonly attribute char_string<64> hardwareVersionString = 8; readonly attribute int32u softwareVersion = 9; - readonly attribute char_string softwareVersionString = 10; - readonly attribute char_string manufacturingDate = 11; - readonly attribute char_string partNumber = 12; - readonly attribute long_char_string productURL = 13; - readonly attribute char_string productLabel = 14; - readonly attribute char_string serialNumber = 15; + readonly attribute char_string<64> softwareVersionString = 10; + readonly attribute char_string<16> manufacturingDate = 11; + readonly attribute char_string<32> partNumber = 12; + readonly attribute long_char_string<256> productURL = 13; + readonly attribute char_string<64> productLabel = 14; + readonly attribute char_string<32> serialNumber = 15; attribute boolean localConfigDisabled = 16; readonly attribute boolean reachable = 17; - readonly attribute char_string uniqueID = 18; + readonly attribute char_string<32> uniqueID = 18; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; @@ -381,7 +381,7 @@ client cluster BridgedActions = 37 { readonly attribute ActionStruct actionList[] = 0; readonly attribute EndpointListStruct endpointList[] = 1; - readonly attribute long_char_string setupUrl = 2; + readonly attribute long_char_string<512> setupUrl = 2; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; @@ -567,7 +567,7 @@ client cluster ColorControl = 768 { readonly attribute int16u currentX = 3; readonly attribute int16u currentY = 4; readonly attribute enum8 driftCompensation = 5; - readonly attribute char_string compensationText = 6; + readonly attribute char_string<254> compensationText = 6; readonly attribute int16u colorTemperature = 7; readonly attribute enum8 colorMode = 8; attribute bitmap8 colorControlOptions = 15; @@ -1171,7 +1171,7 @@ client cluster DoorLock = 257 { readonly attribute int16u numberOfPINUsersSupported = 18; readonly attribute int8u maxPINCodeLength = 23; readonly attribute int8u minPINCodeLength = 24; - attribute char_string language = 33; + attribute char_string<3> language = 33; attribute int32u autoRelockTime = 35; attribute int8u soundVolume = 36; attribute DlOperatingMode operatingMode = 37; @@ -1845,7 +1845,7 @@ client cluster LevelControl = 8 { } client cluster LocalizationConfiguration = 43 { - attribute char_string activeLocale = 1; + attribute char_string<35> activeLocale = 1; readonly attribute CHAR_STRING supportedLocales[] = 2; } @@ -1965,7 +1965,7 @@ client cluster ModeSelect = 80 { readonly attribute ModeOptionStruct supportedModes[] = 1; attribute int8u onMode = 2; readonly attribute int8u startUpMode = 3; - readonly attribute char_string description = 4; + readonly attribute char_string<32> description = 4; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; @@ -2032,7 +2032,7 @@ client cluster NetworkCommissioning = 49 { readonly attribute int8u connectMaxTimeSeconds = 3; attribute boolean interfaceEnabled = 4; readonly attribute NetworkCommissioningStatus lastNetworkingStatus = 5; - readonly attribute octet_string lastNetworkID = 6; + readonly attribute octet_string<32> lastNetworkID = 6; readonly attribute int32u lastConnectErrorValue = 7; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; @@ -2403,7 +2403,7 @@ client cluster OperationalCredentials = 62 { client cluster PowerSource = 47 { readonly attribute enum8 status = 0; readonly attribute int8u order = 1; - readonly attribute char_string description = 2; + readonly attribute char_string<60> description = 2; readonly attribute int32u batteryVoltage = 11; readonly attribute int8u batteryPercentRemaining = 12; readonly attribute int32u batteryTimeRemaining = 13; @@ -2827,13 +2827,13 @@ client cluster TestCluster = 1295 { attribute enum16 enum16 = 22; attribute single floatSingle = 23; attribute double floatDouble = 24; - attribute octet_string octetString = 25; + attribute octet_string<10> octetString = 25; attribute INT8U listInt8u[] = 26; attribute OCTET_STRING listOctetString[] = 27; attribute TestListStructOctet listStructOctetString[] = 28; - attribute long_octet_string longOctetString = 29; - attribute char_string charString = 30; - attribute long_char_string longCharString = 31; + attribute long_octet_string<1000> longOctetString = 29; + attribute char_string<10> charString = 30; + attribute long_char_string<1000> longCharString = 31; attribute epoch_us epochUs = 32; attribute epoch_s epochS = 33; attribute vendor_id vendorId = 34; @@ -2872,8 +2872,8 @@ client cluster TestCluster = 1295 { attribute enum16 nullableEnum16 = 32790; attribute single nullableFloatSingle = 32791; attribute double nullableFloatDouble = 32792; - attribute octet_string nullableOctetString = 32793; - attribute char_string nullableCharString = 32798; + attribute octet_string<10> nullableOctetString = 32793; + attribute char_string<10> nullableCharString = 32798; attribute SimpleEnum nullableEnumAttr = 32804; attribute SimpleStruct nullableStruct = 32805; attribute int8u nullableRangeRestrictedInt8u = 32806; @@ -3150,10 +3150,10 @@ client cluster ThreadNetworkDiagnostics = 53 { readonly attribute int16u channel = 0; readonly attribute enum8 routingRole = 1; - readonly attribute octet_string networkName = 2; + readonly attribute octet_string<16> networkName = 2; readonly attribute int16u panId = 3; readonly attribute int64u extendedPanId = 4; - readonly attribute octet_string meshLocalPrefix = 5; + readonly attribute octet_string<17> meshLocalPrefix = 5; readonly attribute int64u overrunCount = 6; readonly attribute NeighborTable neighborTableList[] = 7; readonly attribute RouteTable routeTableList[] = 8; @@ -3208,7 +3208,7 @@ client cluster ThreadNetworkDiagnostics = 53 { readonly attribute int64u pendingTimestamp = 57; readonly attribute int32u delay = 58; readonly attribute SecurityPolicy securityPolicy[] = 59; - readonly attribute octet_string channelMask = 60; + readonly attribute octet_string<4> channelMask = 60; readonly attribute OperationalDatasetComponents operationalDatasetComponents[] = 61; readonly attribute NetworkFault activeNetworkFaultsList[] = 62; readonly attribute attrib_id attributeList[] = 65531; @@ -3224,7 +3224,7 @@ client cluster UserLabel = 65 { } client cluster WakeOnLan = 1283 { - readonly attribute char_string wakeOnLanMacAddress = 0; + readonly attribute char_string<32> wakeOnLanMacAddress = 0; readonly attribute attrib_id attributeList[] = 65531; readonly attribute int16u clusterRevision = 65533; } @@ -3273,7 +3273,7 @@ client cluster WiFiNetworkDiagnostics = 54 { WiFiConnectionStatus connectionStatus = 0; } - readonly attribute octet_string bssid = 0; + readonly attribute octet_string<6> bssid = 0; readonly attribute enum8 securityType = 1; readonly attribute enum8 wiFiVersion = 2; readonly attribute int16u channelNumber = 3;