diff --git a/config/esp32/components/chip/Kconfig b/config/esp32/components/chip/Kconfig
index 00bfed5df9b124..43a766b7dbf8dd 100644
--- a/config/esp32/components/chip/Kconfig
+++ b/config/esp32/components/chip/Kconfig
@@ -96,6 +96,22 @@ menu "CHIP Core"
help
Link the application against CHIP interactive shell.
+ config CHIP_SHELL_CMD_LINE_BUF_MAX_LENGTH
+ int "Maximum command line buffer length of the chip shell"
+ depends on ENABLE_CHIP_SHELL
+ default 256
+ help
+ Maximum command line buffer length of the chip shell. The command strings might be received
+ incompletely in the command handlers if they are longer than this buffer length.
+
+ config CHIP_SHELL_CMD_LINE_ARG_MAX_COUNT
+ int "Maximum command line arguments count of the chip shell"
+ depends on ENABLE_CHIP_SHELL
+ default 32
+ help
+ Maximum command line arguments count of the chip shell. The command arguments might be ignored
+ if they are more than this count.
+
config ENABLE_CHIP_CONTROLLER_BUILD
bool "Enable chip-controller build"
default n
diff --git a/examples/air-purifier-app/air-purifier-common/air-purifier-app.matter b/examples/air-purifier-app/air-purifier-common/air-purifier-app.matter
index d210cebb350c3a..1f912fcd64e643 100644
--- a/examples/air-purifier-app/air-purifier-common/air-purifier-app.matter
+++ b/examples/air-purifier-app/air-purifier-common/air-purifier-app.matter
@@ -1180,10 +1180,10 @@ provisional server cluster FanControl = 514 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter b/examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter
index fd0ebb160daf13..736803eaad9c70 100644
--- a/examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter
+++ b/examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter
@@ -1272,9 +1272,9 @@ server cluster AirQuality = 91 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
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 817358feb53ac2..a27629bc4da66d 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
@@ -1001,7 +1001,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -1077,7 +1077,7 @@ server cluster UnitLocalization = 45 {
/** This cluster is used to describe the configuration and capabilities of a Device's power system. */
server cluster PowerSourceConfiguration = 46 {
- readonly attribute int8u sources[] = 0;
+ readonly attribute endpoint_no sources[] = 0;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -4117,10 +4117,10 @@ server cluster IlluminanceMeasurement = 1024 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/all-clusters-app/cc13x2x7_26x2x7/README.md b/examples/all-clusters-app/cc13x2x7_26x2x7/README.md
index f965d3dd9abbcf..68d6f927224585 100644
--- a/examples/all-clusters-app/cc13x2x7_26x2x7/README.md
+++ b/examples/all-clusters-app/cc13x2x7_26x2x7/README.md
@@ -68,9 +68,9 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
```
$ cd ~
- $ wget https://software-dl.ti.com/ccs/esd/sysconfig/sysconfig-1.11.0_2225-setup.run
- $ chmod +x sysconfig-1.11.0_2225-setup.run
- $ ./sysconfig-1.11.0_2225-setup.run
+ $ wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run
+ $ chmod +x sysconfig-1.16.2_3028-setup.run
+ $ ./sysconfig-1.16.2_3028-setup.run
```
- Run the bootstrap script to setup the build environment.
@@ -97,13 +97,13 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.11.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
```
$ cd ~/connectedhomeip/examples/all-clusters-app/cc13x2x7_26x2x7
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.11.0\""
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
$ ninja -C out/debug
```
diff --git a/examples/all-clusters-app/cc13x4_26x4/README.md b/examples/all-clusters-app/cc13x4_26x4/README.md
index 3415f19f1a4c21..ad8581b52cf26c 100644
--- a/examples/all-clusters-app/cc13x4_26x4/README.md
+++ b/examples/all-clusters-app/cc13x4_26x4/README.md
@@ -59,9 +59,9 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
```
$ cd ~
- $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.15.0.2826/sysconfig-1.15.0_2826-setup.run`
- $ chmod +x sysconfig-1.15.0_2826-setup.run
- $ ./sysconfig-1.15.0_2826-setup.run
+ $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run`
+ $ chmod +x sysconfig-1.16.2_3028-setup.run
+ $ ./sysconfig-1.16.2_3028-setup.run
```
- Run the bootstrap script to setup the build environment.
@@ -88,7 +88,7 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.15.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
@@ -96,7 +96,7 @@ Ninja to build the executable.
$ cd ~/connectedhomeip/examples/all-clusters-app/cc13x2x7_26x2x7
OR
$ cd ~/connectedhomeip/examples/all-clusters-minimal-app/cc13x4_26x4
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
$ ninja -C out/debug
```
@@ -105,7 +105,7 @@ Ninja to build the executable.
to the GN call.
```
- gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
+ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
```
## Programming
diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
index e03e2821ee0223..5a4a521d090db2 100644
--- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
+++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
@@ -843,7 +843,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -3033,9 +3033,9 @@ server cluster IlluminanceMeasurement = 1024 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter
index f0d2924b7cae14..63f5eb56aa9021 100644
--- a/examples/bridge-app/bridge-common/bridge-app.matter
+++ b/examples/bridge-app/bridge-common/bridge-app.matter
@@ -581,7 +581,7 @@ server cluster BasicInformation = 40 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -1617,9 +1617,9 @@ server cluster UserLabel = 65 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
index b33eb9192a593d..35637f909cfcd7 100644
--- a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
+++ b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
@@ -625,7 +625,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter
index 309178d53e154c..7e202205baad3c 100644
--- a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter
+++ b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter
@@ -1172,9 +1172,9 @@ provisional server cluster FanControl = 514 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter b/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter
index 0ad1f526250985..25c89264dc5cc4 100644
--- a/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter
+++ b/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter
@@ -387,7 +387,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -1105,10 +1105,10 @@ server cluster AirQuality = 91 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter b/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter
index 145397f3d450bc..552d72bad13b31 100644
--- a/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter
+++ b/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter
@@ -392,7 +392,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
index 156d51e9f4b2b3..1f48ef322092f0 100644
--- a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
+++ b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
@@ -475,7 +475,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
index ad17ae87333b23..590adf953259f3 100644
--- a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
+++ b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
@@ -625,7 +625,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_dishwasher_cc105034fe.matter b/examples/chef/devices/rootnode_dishwasher_cc105034fe.matter
index d762a94ba1f721..b3273daa5b68c6 100644
--- a/examples/chef/devices/rootnode_dishwasher_cc105034fe.matter
+++ b/examples/chef/devices/rootnode_dishwasher_cc105034fe.matter
@@ -245,7 +245,7 @@ server cluster BasicInformation = 40 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
index da9ab180420a87..db8fafe7e33ab9 100644
--- a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
+++ b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
@@ -475,7 +475,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
index c14fdc8d6a6865..4055d3f91948f7 100644
--- a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
+++ b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
@@ -625,7 +625,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
index 1d34f61700edde..37361893fd2449 100644
--- a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
+++ b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
@@ -462,7 +462,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
index c2d2c0e8ae5753..430af0dd820338 100644
--- a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
+++ b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
@@ -481,7 +481,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter
index 7748c6c654d6d3..08aa21400773f2 100644
--- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter
+++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter
@@ -619,7 +619,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
index 474e8afbe793f0..3078ca5196ed87 100644
--- a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
+++ b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
@@ -481,7 +481,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter b/examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter
index 8dbae5065b0756..2e9b45c1f90b23 100644
--- a/examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter
+++ b/examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter
@@ -245,7 +245,7 @@ server cluster BasicInformation = 40 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
index f6102b019cb6b1..6a9dd8678eaf30 100644
--- a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
+++ b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
@@ -481,7 +481,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
index 55b92e1d99a5ad..14000155c0a0bc 100644
--- a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
+++ b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
@@ -481,7 +481,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
index c892a695de1f81..ca7dd727790bcc 100644
--- a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
+++ b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
@@ -625,7 +625,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_onofflight_samplemei.matter b/examples/chef/devices/rootnode_onofflight_samplemei.matter
index 89331830a07684..85933c93474d4b 100644
--- a/examples/chef/devices/rootnode_onofflight_samplemei.matter
+++ b/examples/chef/devices/rootnode_onofflight_samplemei.matter
@@ -625,7 +625,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
index f3f11320edc850..e226808c56b944 100644
--- a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
+++ b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
@@ -589,7 +589,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
index 1b1dab03262596..0a7f8aabd6adc2 100644
--- a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
+++ b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
@@ -524,7 +524,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
index d76724d03359fe..dd1a2f16349f05 100644
--- a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
+++ b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
@@ -481,7 +481,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_pump_5f904818cc.matter b/examples/chef/devices/rootnode_pump_5f904818cc.matter
index fc8f6d32e6a6c8..a5bd2bf03297bb 100644
--- a/examples/chef/devices/rootnode_pump_5f904818cc.matter
+++ b/examples/chef/devices/rootnode_pump_5f904818cc.matter
@@ -282,7 +282,7 @@ server cluster BasicInformation = 40 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -1010,9 +1010,9 @@ server cluster PumpConfigurationAndControl = 512 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_pump_a811bb33a0.matter b/examples/chef/devices/rootnode_pump_a811bb33a0.matter
index 7f814f43e64f10..44e81fb472dc0c 100644
--- a/examples/chef/devices/rootnode_pump_a811bb33a0.matter
+++ b/examples/chef/devices/rootnode_pump_a811bb33a0.matter
@@ -282,7 +282,7 @@ server cluster BasicInformation = 40 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter b/examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter
index 3479c924b2a5db..745eb917c8b8bd 100644
--- a/examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter
+++ b/examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter
@@ -245,7 +245,7 @@ server cluster BasicInformation = 40 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
index fec8584e71a8ed..5fc393ff48f607 100644
--- a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
+++ b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
@@ -550,7 +550,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
index 96c5c036789208..8eb9c77b6fc45e 100644
--- a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
+++ b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
@@ -481,7 +481,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -1171,9 +1171,9 @@ server cluster FixedLabel = 64 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
index f40c788dcde83b..73d5d7df7262a2 100644
--- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
+++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
@@ -475,7 +475,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -1366,10 +1366,10 @@ server cluster ThermostatUserInterfaceConfiguration = 516 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
client cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute optional int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute optional temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
index c5eee65da644ee..7a1f5a750e1747 100644
--- a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
+++ b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
@@ -475,7 +475,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
index 30445c5445257d..2d0308f0c81741 100644
--- a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
+++ b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
@@ -462,7 +462,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/dishwasher-app/dishwasher-common/dishwasher-app.matter b/examples/dishwasher-app/dishwasher-common/dishwasher-app.matter
index dc13534a56fe46..1cac116c4efef6 100644
--- a/examples/dishwasher-app/dishwasher-common/dishwasher-app.matter
+++ b/examples/dishwasher-app/dishwasher-common/dishwasher-app.matter
@@ -333,7 +333,7 @@ server cluster BasicInformation = 40 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/light-switch-app/light-switch-common/light-switch-app.matter b/examples/light-switch-app/light-switch-common/light-switch-app.matter
index 7439fedadea592..f8962a2ac437d7 100644
--- a/examples/light-switch-app/light-switch-common/light-switch-app.matter
+++ b/examples/light-switch-app/light-switch-common/light-switch-app.matter
@@ -776,7 +776,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter b/examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter
index 229cb561e3d286..8ab0257efa2b41 100644
--- a/examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter
+++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter
@@ -633,7 +633,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter b/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter
index 13abdef3120844..f7bb7e5544d04e 100644
--- a/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter
+++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter
@@ -633,7 +633,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter b/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter
index c53008d8112361..98e9f875aebe99 100644
--- a/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter
+++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter
@@ -633,7 +633,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/lighting-app/cc13x2x7_26x2x7/README.md b/examples/lighting-app/cc13x2x7_26x2x7/README.md
index a9eacd879f5070..f6d77a423ac37a 100644
--- a/examples/lighting-app/cc13x2x7_26x2x7/README.md
+++ b/examples/lighting-app/cc13x2x7_26x2x7/README.md
@@ -58,9 +58,9 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
```
$ cd ~
- $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.15.0.2826/sysconfig-1.15.0_2826-setup.run`
- $ chmod +x sysconfig-1.15.0_2826-setup.run
- $ ./sysconfig-1.15.0_2826-setup.run
+ $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run`
+ $ chmod +x sysconfig-1.16.2_3028-setup.run
+ $ ./sysconfig-1.16.2_3028-setup.run
```
- Run the bootstrap script to setup the build environment.
@@ -87,13 +87,13 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.15.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
```
$ cd ~/connectedhomeip/examples/lock-app/cc13x2x7_26x2x7
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
$ ninja -C out/debug
```
@@ -103,7 +103,7 @@ Ninja to build the executable.
```
- gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
+ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
```
## Programming
diff --git a/examples/lighting-app/cc13x4_26x4/README.md b/examples/lighting-app/cc13x4_26x4/README.md
index beb1bfc42507be..2559c732dca70a 100644
--- a/examples/lighting-app/cc13x4_26x4/README.md
+++ b/examples/lighting-app/cc13x4_26x4/README.md
@@ -58,9 +58,9 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
```
$ cd ~
- $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.15.0.2826/sysconfig-1.15.0_2826-setup.run`
- $ chmod +x sysconfig-1.15.0_2826-setup.run
- $ ./sysconfig-1.15.0_2826-setup.run
+ $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run`
+ $ chmod +x sysconfig-1.16.2_3028-setup.run
+ $ ./sysconfig-1.16.2_3028-setup.run
```
- Run the bootstrap script to setup the build environment.
@@ -87,13 +87,13 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.15.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
```
$ cd ~/connectedhomeip/examples/lock-app/cc13x4_26x4
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
$ ninja -C out/debug
```
@@ -103,7 +103,7 @@ Ninja to build the executable.
```
- gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
+ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
```
## Programming
diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter
index 216ad683e6b030..f39d6580d31f65 100644
--- a/examples/lighting-app/lighting-common/lighting-app.matter
+++ b/examples/lighting-app/lighting-common/lighting-app.matter
@@ -780,7 +780,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/lighting-app/silabs/data_model/lighting-thread-app.matter b/examples/lighting-app/silabs/data_model/lighting-thread-app.matter
index 33303e645737ce..31c6acf21d6c38 100644
--- a/examples/lighting-app/silabs/data_model/lighting-thread-app.matter
+++ b/examples/lighting-app/silabs/data_model/lighting-thread-app.matter
@@ -801,7 +801,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter b/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter
index 28c4570b90f7e2..293faf071dbb16 100644
--- a/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter
+++ b/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter
@@ -780,7 +780,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/lock-app/cc13x2x7_26x2x7/README.md b/examples/lock-app/cc13x2x7_26x2x7/README.md
index 01e2f1a189d839..7b056d2cab29b5 100644
--- a/examples/lock-app/cc13x2x7_26x2x7/README.md
+++ b/examples/lock-app/cc13x2x7_26x2x7/README.md
@@ -59,9 +59,9 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
```
$ cd ~
- $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.15.0.2826/sysconfig-1.15.0_2826-setup.run`
- $ chmod +x sysconfig-1.15.0_2826-setup.run
- $ ./sysconfig-1.15.0_2826-setup.run
+ $ `https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run`
+ $ chmod +x sysconfig-1.16.2_3028-setup.run
+ $ ./sysconfig-1.16.2_3028-setup.run
```
- Run the bootstrap script to setup the build environment.
@@ -88,7 +88,7 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.15.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
@@ -96,7 +96,7 @@ Ninja to build the executable.
$ cd ~/connectedhomeip/examples/lock-app/cc13x2x7_26x2x7
OR
$ cd ~/connectedhomeip/examples/lock-app/cc13x4_26x4
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
$ ninja -C out/debug
```
@@ -106,7 +106,7 @@ Ninja to build the executable.
```
- gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\" target_defines=[\"CC13X2_26X2_ATTESTATION_CREDENTIALS=1\"]"
+ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\" target_defines=[\"CC13X2_26X2_ATTESTATION_CREDENTIALS=1\"]"
```
## Programming
diff --git a/examples/lock-app/cc13x4_26x4/README.md b/examples/lock-app/cc13x4_26x4/README.md
index 45c3a1c67309cd..a230fbb8bd5fdd 100644
--- a/examples/lock-app/cc13x4_26x4/README.md
+++ b/examples/lock-app/cc13x4_26x4/README.md
@@ -59,9 +59,9 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
```
$ cd ~
- $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.15.0.2826/sysconfig-1.15.0_2826-setup.run`
- $ chmod +x sysconfig-1.15.0_2826-setup.run
- $ ./sysconfig-1.15.0_2826-setup.run
+ $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run`
+ $ chmod +x sysconfig-1.16.2_3028-setup.run
+ $ ./sysconfig-1.16.2_3028-setup.run
```
- Run the bootstrap script to setup the build environment.
@@ -88,7 +88,7 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.15.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
@@ -96,7 +96,7 @@ Ninja to build the executable.
$ cd ~/connectedhomeip/examples/lock-app/cc13x2x7_26x2x7
OR
$ cd ~/connectedhomeip/examples/lock-app/cc13x4_26x4
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
$ ninja -C out/debug
```
@@ -106,7 +106,7 @@ Ninja to build the executable.
```
- gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
+ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
```
## Programming
diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter
index 540c85ee5f71ba..b3f6f1c74593a3 100644
--- a/examples/lock-app/lock-common/lock-app.matter
+++ b/examples/lock-app/lock-common/lock-app.matter
@@ -442,7 +442,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
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 f06772b7d23f79..e5187ffa74eefb 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
@@ -342,7 +342,7 @@ server cluster OtaSoftwareUpdateProvider = 41 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
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 ca6913b32da943..583331cd2a86ee 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
@@ -525,7 +525,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/persistent-storage/cc13x2x7_26x2x7/README.md b/examples/persistent-storage/cc13x2x7_26x2x7/README.md
index fc06023b7edb83..87e4add6701eca 100644
--- a/examples/persistent-storage/cc13x2x7_26x2x7/README.md
+++ b/examples/persistent-storage/cc13x2x7_26x2x7/README.md
@@ -140,13 +140,13 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.11.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
```
$ cd ~/connectedhomeip/examples/lock-app/cc13x2x7_26x2x7
- $ export TI_SYSCONFIG_ROOT=$HOME/ti/sysconfig_1.10.0
+ $ export TI_SYSCONFIG_ROOT=$HOME/ti/sysconfig_1.16.2
$ gn gen out/debug --args="ti_sysconfig_root=\"${TI_SYSCONFIG_ROOT}\""
$ ninja -C out/debug
diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter
index 056976a11f7684..1040513cc7c557 100644
--- a/examples/placeholder/linux/apps/app1/config.matter
+++ b/examples/placeholder/linux/apps/app1/config.matter
@@ -932,7 +932,7 @@ server cluster BasicInformation = 40 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
client cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -947,7 +947,7 @@ client cluster LocalizationConfiguration = 43 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -5170,10 +5170,10 @@ server cluster IlluminanceMeasurement = 1024 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
client cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute optional int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute optional temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -5184,10 +5184,10 @@ client cluster TemperatureMeasurement = 1026 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter
index 76bf39117b7fb4..a2662b804165b9 100644
--- a/examples/placeholder/linux/apps/app2/config.matter
+++ b/examples/placeholder/linux/apps/app2/config.matter
@@ -930,7 +930,7 @@ server cluster BasicInformation = 40 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -5129,10 +5129,10 @@ server cluster IlluminanceMeasurement = 1024 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
client cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute optional int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute optional temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -5143,10 +5143,10 @@ client cluster TemperatureMeasurement = 1026 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/pump-app/cc13x2x7_26x2x7/README.md b/examples/pump-app/cc13x2x7_26x2x7/README.md
index d3d53d87e7634b..6bfb8feee4665f 100644
--- a/examples/pump-app/cc13x2x7_26x2x7/README.md
+++ b/examples/pump-app/cc13x2x7_26x2x7/README.md
@@ -58,9 +58,9 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
```
$ cd ~
- $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.15.0.2826/sysconfig-1.15.0_2826-setup.run`
- $ chmod +x sysconfig-1.15.0_2826-setup.run
- $ ./sysconfig-1.15.0_2826-setup.run
+ $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run`
+ $ chmod +x sysconfig-1.16.2_3028-setup.run
+ $ ./sysconfig-1.16.2_3028-setup.run
```
- Run the bootstrap script to setup the build environment.
@@ -87,7 +87,7 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.15.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
@@ -95,7 +95,7 @@ Ninja to build the executable.
$ cd ~/connectedhomeip/examples/pump-app/cc13x2x7_26x2x7
OR
$ cd ~/connectedhomeip/examples/pump-app/cc13x4_26x4
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
$ ninja -C out/debug
```
@@ -104,7 +104,7 @@ Ninja to build the executable.
to the GN call.
```
- gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\" target_defines=[\"CC13X2_26X2_ATTESTATION_CREDENTIALS=1\"]"
+ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\" target_defines=[\"CC13X2_26X2_ATTESTATION_CREDENTIALS=1\"]"
```
## Programming
diff --git a/examples/pump-app/cc13x4_26x4/README.md b/examples/pump-app/cc13x4_26x4/README.md
index 08385526ae14d9..7ad0521fef77de 100644
--- a/examples/pump-app/cc13x4_26x4/README.md
+++ b/examples/pump-app/cc13x4_26x4/README.md
@@ -58,9 +58,9 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
```
$ cd ~
- $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.15.0.2826/sysconfig-1.15.0_2826-setup.run`
- $ chmod +x sysconfig-1.15.0_2826-setup.run
- $ ./sysconfig-1.15.0_2826-setup.run
+ $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run`
+ $ chmod +x sysconfig-1.16.2_3028-setup.run
+ $ ./sysconfig-1.16.2_3028-setup.run
```
- Run the bootstrap script to setup the build environment.
@@ -87,7 +87,7 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.15.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
@@ -95,7 +95,7 @@ Ninja to build the executable.
$ cd ~/connectedhomeip/examples/pump-app/cc13x2x7_26x2x7
OR
$ cd ~/connectedhomeip/examples/pump-app/cc13x4_26x4
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
$ ninja -C out/debug
```
@@ -104,7 +104,7 @@ Ninja to build the executable.
to the GN call.
```
- gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
+ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
```
## Programming
diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter
index b73ddb2d490f40..97ece6ceda452c 100644
--- a/examples/pump-app/pump-common/pump-app.matter
+++ b/examples/pump-app/pump-common/pump-app.matter
@@ -1321,10 +1321,10 @@ server cluster PumpConfigurationAndControl = 512 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/pump-app/silabs/data_model/pump-thread-app.matter b/examples/pump-app/silabs/data_model/pump-thread-app.matter
index 1738d10a837777..8112f63eebb16f 100644
--- a/examples/pump-app/silabs/data_model/pump-thread-app.matter
+++ b/examples/pump-app/silabs/data_model/pump-thread-app.matter
@@ -1321,10 +1321,10 @@ server cluster PumpConfigurationAndControl = 512 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/pump-app/silabs/data_model/pump-wifi-app.matter b/examples/pump-app/silabs/data_model/pump-wifi-app.matter
index 1738d10a837777..8112f63eebb16f 100644
--- a/examples/pump-app/silabs/data_model/pump-wifi-app.matter
+++ b/examples/pump-app/silabs/data_model/pump-wifi-app.matter
@@ -1321,10 +1321,10 @@ server cluster PumpConfigurationAndControl = 512 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/pump-controller-app/cc13x2x7_26x2x7/README.md b/examples/pump-controller-app/cc13x2x7_26x2x7/README.md
index 90df4c9c7bd521..f20a3151e912a2 100644
--- a/examples/pump-controller-app/cc13x2x7_26x2x7/README.md
+++ b/examples/pump-controller-app/cc13x2x7_26x2x7/README.md
@@ -59,9 +59,9 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
```
$ cd ~
- $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.15.0.2826/sysconfig-1.15.0_2826-setup.run`
- $ chmod +x sysconfig-1.15.0_2826-setup.run
- $ ./sysconfig-1.15.0_2826-setup.run
+ $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run`
+ $ chmod +x sysconfig-1.16.2_3028-setup.run
+ $ ./sysconfig-1.16.2_3028-setup.run
```
- Run the bootstrap script to setup the build environment.
@@ -88,7 +88,7 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.15.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
@@ -96,7 +96,7 @@ Ninja to build the executable.
$ cd ~/connectedhomeip/examples/pump-controller-app/cc13x2x7_26x2x7
OR
$ cd ~/connectedhomeip/examples/pump-controller-app/cc13x4_26x4
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
$ ninja -C out/debug
```
@@ -105,7 +105,7 @@ Ninja to build the executable.
to the GN call.
```
- gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\" target_defines=[\"CC13X2_26X2_ATTESTATION_CREDENTIALS=1\"]"
+ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\" target_defines=[\"CC13X2_26X2_ATTESTATION_CREDENTIALS=1\"]"
```
## Programming
diff --git a/examples/pump-controller-app/cc13x4_26x4/README.md b/examples/pump-controller-app/cc13x4_26x4/README.md
index dc917f93c5544e..15894f7d596323 100644
--- a/examples/pump-controller-app/cc13x4_26x4/README.md
+++ b/examples/pump-controller-app/cc13x4_26x4/README.md
@@ -59,9 +59,9 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
```
$ cd ~
- $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.15.0.2826/sysconfig-1.15.0_2826-setup.run`
- $ chmod +x sysconfig-1.15.0_2826-setup.run
- $ ./sysconfig-1.15.0_2826-setup.run
+ $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run`
+ $ chmod +x sysconfig-1.16.2_3028-setup.run
+ $ ./sysconfig-1.16.2_3028-setup.run
```
- Run the bootstrap script to setup the build environment.
@@ -88,7 +88,7 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.15.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
@@ -96,7 +96,7 @@ Ninja to build the executable.
$ cd ~/connectedhomeip/examples/pump-controller-app/cc13x2x7_26x2x7
OR
$ cd ~/connectedhomeip/examples/pump-controller-app/cc13x4_26x4
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
$ ninja -C out/debug
```
@@ -105,7 +105,7 @@ Ninja to build the executable.
to the GN call.
```
- gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
+ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
```
## Programming
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 0f95bb9b2ac941..fd542a29b72f78 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
@@ -1246,10 +1246,10 @@ client cluster PumpConfigurationAndControl = 512 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
client cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute optional int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute optional temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/refrigerator-app/refrigerator-common/refrigerator-app.matter b/examples/refrigerator-app/refrigerator-common/refrigerator-app.matter
index 90aec364488d93..d9bc12cf315e95 100644
--- a/examples/refrigerator-app/refrigerator-common/refrigerator-app.matter
+++ b/examples/refrigerator-app/refrigerator-common/refrigerator-app.matter
@@ -200,7 +200,7 @@ server cluster BasicInformation = 40 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/resource-monitoring-app/resource-monitoring-common/resource-monitoring-app.matter b/examples/resource-monitoring-app/resource-monitoring-common/resource-monitoring-app.matter
index 262f2a2d2dc120..e8ad6f4689e6d9 100644
--- a/examples/resource-monitoring-app/resource-monitoring-common/resource-monitoring-app.matter
+++ b/examples/resource-monitoring-app/resource-monitoring-common/resource-monitoring-app.matter
@@ -462,7 +462,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/shell/cc13x2x7_26x2x7/README.md b/examples/shell/cc13x2x7_26x2x7/README.md
index 478e3dc8821bd7..69fdf781446afd 100644
--- a/examples/shell/cc13x2x7_26x2x7/README.md
+++ b/examples/shell/cc13x2x7_26x2x7/README.md
@@ -16,9 +16,9 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
```
$ cd ~
- $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.15.0.2826/sysconfig-1.15.0_2826-setup.run`
- $ chmod +x sysconfig-1.15.0_2826-setup.run
- $ ./sysconfig-1.15.0_2826-setup.run
+ $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run`
+ $ chmod +x sysconfig-1.16.2_3028-setup.run
+ $ ./sysconfig-1.16.2_3028-setup.run
```
- Run the bootstrap script to setup the build environment.
@@ -45,7 +45,7 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.15.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
@@ -54,7 +54,7 @@ Ninja to build the executable.
OR
$ cd ~/connectedhomeip/examples/shell/cc13x4_26x4
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\""
$ ninja -C out/debug
```
@@ -63,7 +63,7 @@ Ninja to build the executable.
to the GN call.
```
- gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
+ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
```
## Programming
diff --git a/examples/shell/cc13x4_26x4/README.md b/examples/shell/cc13x4_26x4/README.md
index 9145e19f58ad07..08be886e6fb86e 100644
--- a/examples/shell/cc13x4_26x4/README.md
+++ b/examples/shell/cc13x4_26x4/README.md
@@ -16,9 +16,9 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
```
$ cd ~
- $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.15.0.2826/sysconfig-1.15.0_2826-setup.run`
- $ chmod +x sysconfig-1.15.0_2826-setup.run
- $ ./sysconfig-1.15.0_2826-setup.run
+ $ `wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run`
+ $ chmod +x sysconfig-1.16.2_3028-setup.run
+ $ ./sysconfig-1.16.2_3028-setup.run
```
- Run the bootstrap script to setup the build environment.
@@ -45,7 +45,7 @@ Ninja to build the executable.
- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
- `/home/username/ti/sysconfig_1.15.0`. On Windows the default directory is
+ `/home/username/ti/sysconfig_1.16.2`. On Windows the default directory is
`C:\ti`. Take note of this install path, as it will be used in the next
step.
@@ -53,7 +53,7 @@ Ninja to build the executable.
$ cd ~/connectedhomeip/examples/shell/cc13x2x7_26x2x7
OR
$ cd ~/connectedhomeip/examples/shell/cc13x4_26x4
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15"
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2"
$ ninja -C out/debug
```
@@ -62,7 +62,7 @@ Ninja to build the executable.
to the GN call.
```
- gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
+ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.16.2\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
```
## Programming
diff --git a/examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter b/examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter
index 3b8db712aa8871..48642e7abbf947 100644
--- a/examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter
+++ b/examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter
@@ -462,7 +462,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter b/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter
index 8e7aabd8121a09..187f8d14112801 100644
--- a/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter
+++ b/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter
@@ -198,7 +198,7 @@ server cluster BasicInformation = 40 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -1028,9 +1028,9 @@ server cluster UserLabel = 65 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
server cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter
index 2a03d768498c38..a581f1f70d285d 100644
--- a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter
+++ b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter
@@ -646,7 +646,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter
index 2e9f1fd042d551..ede88c2f5677f3 100644
--- a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter
+++ b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter
@@ -646,7 +646,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter
index 170c970d2b0e7d..be2a7be5dacc50 100644
--- a/examples/thermostat/thermostat-common/thermostat.matter
+++ b/examples/thermostat/thermostat-common/thermostat.matter
@@ -529,7 +529,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter
index 61b84eadc08409..5d7764d71f36c8 100644
--- a/examples/tv-app/tv-common/tv-app.matter
+++ b/examples/tv-app/tv-common/tv-app.matter
@@ -460,7 +460,7 @@ server cluster OtaSoftwareUpdateProvider = 41 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
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 b3e17599c19657..a98c4dbf1b207e 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
@@ -562,7 +562,7 @@ server cluster BasicInformation = 40 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/virtual-device-app/virtual-device-common/virtual-device-app.matter b/examples/virtual-device-app/virtual-device-common/virtual-device-app.matter
index 9e8e1e6774acee..0c56f79c581271 100644
--- a/examples/virtual-device-app/virtual-device-common/virtual-device-app.matter
+++ b/examples/virtual-device-app/virtual-device-common/virtual-device-app.matter
@@ -589,7 +589,7 @@ server cluster OtaSoftwareUpdateProvider = 41 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter
index 6f3d6f8e2112c4..f997baf66cfc98 100644
--- a/examples/window-app/common/window-app.matter
+++ b/examples/window-app/common/window-app.matter
@@ -462,7 +462,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
server cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
diff --git a/integrations/docker/images/base/chip-build/version b/integrations/docker/images/base/chip-build/version
index 70c0f8738d6b29..3bc07693a047b5 100644
--- a/integrations/docker/images/base/chip-build/version
+++ b/integrations/docker/images/base/chip-build/version
@@ -1 +1 @@
-22 : [Telink] Cleanup Docker image
+24 : [nrfconnect] Update nRF Connect SDK version.
diff --git a/integrations/docker/images/stage-2/chip-build-nrf-platform/Dockerfile b/integrations/docker/images/stage-2/chip-build-nrf-platform/Dockerfile
index b01028f4708310..86148668a86e0b 100644
--- a/integrations/docker/images/stage-2/chip-build-nrf-platform/Dockerfile
+++ b/integrations/docker/images/stage-2/chip-build-nrf-platform/Dockerfile
@@ -7,7 +7,7 @@ ARG VERSION=1
FROM ghcr.io/project-chip/chip-build:${VERSION} as build
LABEL org.opencontainers.image.source https://github.com/project-chip/connectedhomeip
# Compatible Nordic Connect SDK revision.
-ARG NCS_REVISION=v2.4.0
+ARG NCS_REVISION=v2.5.0
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
WORKDIR /opt/NordicSemiconductor/nRF5_tools
@@ -16,14 +16,14 @@ RUN set -x \
| tar zxvf - \
&& tar xvf JLink_Linux_V780c_x86_64.tgz \
&& rm JLink_Linux_V780c_x86_64.* \
- && curl --location https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.0/zephyr-sdk-0.16.0_linux-x86_64_minimal.tar.xz --output zephyr-sdk-0.16.0_linux-x86_64_minimal.tar.xz \
- && tar xvf zephyr-sdk-0.16.0_linux-x86_64_minimal.tar.xz \
- && zephyr-sdk-0.16.0/setup.sh -t arm-zephyr-eabi \
+ && curl --location https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.1/zephyr-sdk-0.16.1_linux-x86_64_minimal.tar.xz --output zephyr-sdk-0.16.1_linux-x86_64_minimal.tar.xz \
+ && tar xvf zephyr-sdk-0.16.1_linux-x86_64_minimal.tar.xz \
+ && zephyr-sdk-0.16.1/setup.sh -t arm-zephyr-eabi \
&& : # last line
WORKDIR /opt/NordicSemiconductor/nrfconnect
RUN set -x \
- && python3 -m pip install -U --no-cache-dir west==1.0.0 \
+ && python3 -m pip install -U --no-cache-dir west==1.1.0 \
&& west init -m https://github.com/nrfconnect/sdk-nrf --mr "$NCS_REVISION" \
&& west config update.narrow true \
&& west config update.fetch smart \
@@ -63,6 +63,6 @@ ENV LD_LIBRARY_PATH=${NRF5_TOOLS_ROOT}/JLink_Linux_V780c_x86_64:${LD_LIBRARY_PAT
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV ZEPHYR_BASE=/opt/NordicSemiconductor/nrfconnect/zephyr
-ENV ZEPHYR_SDK_INSTALL_DIR=${NRF5_TOOLS_ROOT}/zephyr-sdk-0.16.0
+ENV ZEPHYR_SDK_INSTALL_DIR=${NRF5_TOOLS_ROOT}/zephyr-sdk-0.16.1
ENV ZEPHYR_TOOLCHAIN_VARIANT=zephyr
ENV ZEPHYR_TOOLCHAIN_PATH=${ZEPHYR_SDK_INSTALL_DIR}/arm-zephyr-eabi
diff --git a/integrations/docker/images/stage-2/chip-build-ti/Dockerfile b/integrations/docker/images/stage-2/chip-build-ti/Dockerfile
index 0cc77621bde754..4bc15b67f77164 100644
--- a/integrations/docker/images/stage-2/chip-build-ti/Dockerfile
+++ b/integrations/docker/images/stage-2/chip-build-ti/Dockerfile
@@ -12,9 +12,9 @@ RUN set -x \
# Install Sysconfig
RUN set -x \
- && wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.15.0.2826/sysconfig-1.15.0_2826-setup.run \
- && chmod +x sysconfig-1.15.0_2826-setup.run \
- && ./sysconfig-1.15.0_2826-setup.run --mode unattended \
+ && wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.16.2.3028/sysconfig-1.16.2_3028-setup.run \
+ && chmod +x sysconfig-1.16.2_3028-setup.run \
+ && ./sysconfig-1.16.2_3028-setup.run --mode unattended \
&& : # last line
-ENV TI_SYSCONFIG_ROOT=/opt/ti/sysconfig_1.15.0
+ENV TI_SYSCONFIG_ROOT=/opt/ti/sysconfig_1.16.2
diff --git a/integrations/docker/images/vscode/chip-build-vscode/Dockerfile b/integrations/docker/images/vscode/chip-build-vscode/Dockerfile
index d824716800004e..8ca2f980f0cf6f 100644
--- a/integrations/docker/images/vscode/chip-build-vscode/Dockerfile
+++ b/integrations/docker/images/vscode/chip-build-vscode/Dockerfile
@@ -52,7 +52,7 @@ COPY --from=k32w /opt/sdk /opt/k32w
COPY --from=imx /opt/fsl-imx-xwayland /opt/fsl-imx-xwayland
-COPY --from=ti /opt/ti/sysconfig_1.15.0 /opt/ti/sysconfig_1.15.0
+COPY --from=ti /opt/ti/sysconfig_1.16.2 /opt/ti/sysconfig_1.16.2
COPY --from=openiotsdk /opt/FVP_Corstone_SSE-300/ /opt/FVP_Corstone_SSE-300/
@@ -120,9 +120,9 @@ ENV QEMU_ESP32_DIR=/opt/espressif/qemu
ENV SYSROOT_AARCH64=/opt/ubuntu-22.04.1-aarch64-sysroot
ENV TELINK_ZEPHYR_BASE=/opt/telink/zephyrproject/zephyr
ENV TELINK_ZEPHYR_SDK_DIR=/opt/telink/zephyr-sdk-0.16.1
-ENV TI_SYSCONFIG_ROOT=/opt/ti/sysconfig_1.15.0
+ENV TI_SYSCONFIG_ROOT=/opt/ti/sysconfig_1.16.2
ENV ZEPHYR_BASE=/opt/NordicSemiconductor/nrfconnect/zephyr
-ENV ZEPHYR_SDK_INSTALL_DIR=/opt/NordicSemiconductor/nRF5_tools/zephyr-sdk-0.16.0
+ENV ZEPHYR_SDK_INSTALL_DIR=/opt/NordicSemiconductor/nRF5_tools/zephyr-sdk-0.16.1
ENV ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
ENV TIZEN_VERSION 7.0
diff --git a/scripts/py_matter_idl/matter_idl/generators/kotlin/MatterClusters.jinja b/scripts/py_matter_idl/matter_idl/generators/kotlin/MatterClusters.jinja
index 52dc2021b42189..76fa2eb6b22967 100644
--- a/scripts/py_matter_idl/matter_idl/generators/kotlin/MatterClusters.jinja
+++ b/scripts/py_matter_idl/matter_idl/generators/kotlin/MatterClusters.jinja
@@ -11,7 +11,7 @@
{%- set struct = encodable.get_underlying_struct() -%}
ChipStructs.{{source.name}}Cluster{{struct.name}}
{%- else -%}
- {{encodable.boxed_java_type}}
+ {{encodable.kotlin_type}}
{%- endif -%}
{%- endmacro -%}
@@ -24,7 +24,7 @@
{%- set struct = encodable.get_underlying_struct() -%}
ChipStructs.{{source.name}}Cluster{{struct.name}}
{%- else -%}
- {{encodable.boxed_java_type}}
+ {{encodable.kotlin_type}}
{%- endif -%}
{%- endmacro -%}
@@ -35,7 +35,7 @@
{%- set struct = encodable.get_underlying_struct() -%}
ChipStructs.{{source.name}}Cluster{{struct.name}}
{%- else -%}
- {{encodable.boxed_java_type}}
+ {{encodable.kotlin_type}}
{%- endif -%}
{%- endmacro -%}
@@ -61,77 +61,71 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
{% set typeLookup = idl | createLookupContext(cluster) %}
class {{cluster.name}}Cluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = {{cluster.code}}u
- }
-{% for command in cluster.commands | sort(attribute='code') -%}
-{%- set callbackName = command | javaCommandCallbackName() -%}
-{%- if not command.is_timed_invoke %}
- fun {{command.name | lowfirst_except_acronym}}(callback: {{callbackName}}Callback
-{%- if command.input_param -%}
-{%- for field in (cluster.structs | named(command.input_param)).fields -%}
- , {{field.name | lowfirst_except_acronym}}: {{encode_value(cluster, field | asEncodable(typeLookup), 0)}}
-{%- endfor -%}
-{%- endif -%}
- ) {
- // Implementation needs to be added here
- }
-{%- endif %}
- fun {{command.name | lowfirst_except_acronym}}(callback: {{callbackName}}Callback
-{%- if command.input_param -%}
-{%- for field in (cluster.structs | named(command.input_param)).fields -%}
- , {{field.name | lowfirst_except_acronym}}: {{encode_value(cluster, field | asEncodable(typeLookup), 0)}}
-{%- endfor -%}
-{%- endif -%}
- , timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
-{% endfor %}
{%- set already_handled_command = [] -%}
{%- for command in cluster.commands | sort(attribute='code') -%}
{%- if command | isCommandNotDefaultCallback() -%}
{%- set callbackName = command | javaCommandCallbackName() -%}
{%- if callbackName not in already_handled_command %}
- interface {{callbackName}}Callback {
- fun onSuccess(
-{%- for field in (cluster.structs | named(command.output_param)).fields -%}
- {{field.name | lowfirst_except_acronym}}: {{encode_value(cluster, field | asEncodable(typeLookup), 0)}}{% if not loop.last %}, {% endif %}
-{%- endfor -%}
- )
- fun onError(error: Exception)
- }
+ class {{callbackName}}(
+{%- for field in (cluster.structs | named(command.output_param)).fields %}
+ val {{field.name | lowfirst_except_acronym}}: {{encode_value(cluster, field | asEncodable(typeLookup), 0)}}
+{%- if not loop.last %}, {% endif %}
+{%- endfor %}
+ )
{% if already_handled_command.append(callbackName) -%}
{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- endfor %}
+
{%- set already_handled_attribute = [] -%}
{% for attribute in cluster.attributes | rejectattr('definition', 'is_field_global_name', typeLookup) %}
{%- set encodable = attribute.definition | asEncodable(typeLookup) -%}
{%- set interfaceName = attribute | javaAttributeCallbackName(typeLookup) -%}
{%- if interfaceName not in already_handled_attribute %}
- interface {{interfaceName}} {
- fun onSuccess(value: {{encode_value(cluster, encodable, 0)}})
- fun onError(ex: Exception)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class {{interfaceName}}(
+ val value: {{encode_value(cluster, encodable, 0)}}
+ )
{% if already_handled_attribute.append(interfaceName) -%}
{#- This block does nothing, it only exists to append to already_handled_attribute. -#}
{%- endif -%}
{%- endif -%}
{% endfor -%}
+
+{% for command in cluster.commands | sort(attribute='code') -%}
+{%- set callbackName = command | javaCommandCallbackName() %}
+ suspend fun {{command.name | lowfirst_except_acronym}}(
+{%- if command.input_param -%}
+{%- for field in (cluster.structs | named(command.input_param)).fields -%}
+ {{field.name | lowfirst_except_acronym}}: {{encode_value(cluster, field | asEncodable(typeLookup), 0)}}
+{%- if not loop.last -%}, {% endif %}
+{%- endfor -%}
+ , timedInvokeTimeoutMs: Int? = null)
+{%- else -%}
+ timedInvokeTimeoutMs: Int? = null)
+{%- endif -%}
+{%- if command | hasResponse -%}
+ : {{callbackName}} {
+{%- else %} {
+{%- endif %}
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+{% endfor -%}
+
{% for attribute in cluster.attributes | sort(attribute='code') %}
- fun read{{ attribute.definition.name | upfirst }}Attribute(
- callback: {{ attribute | javaAttributeCallbackName(typeLookup) }}
- ) {
+{%- set interfaceName = attribute | javaAttributeCallbackName(typeLookup) %}
+ suspend fun read{{ attribute.definition.name | upfirst }}Attribute(): {{interfaceName}} {
// Implementation needs to be added here
}
{% if attribute | isFabricScopedList(typeLookup) %}
- fun read{{ attribute.definition.name | upfirst }}AttributeWithFabricFilter(
- callback: {{ attribute | javaAttributeCallbackName(typeLookup) }},
+ suspend fun read{{ attribute.definition.name | upfirst }}AttributeWithFabricFilter(
isFabricFiltered: Boolean
- ) {
+ ): {{interfaceName}} {
// Implementation needs to be added here
}
@@ -140,15 +134,13 @@ class {{cluster.name}}Cluster(private val endpointId: UShort) {
{%- set encodable = attribute.definition | asEncodable(typeLookup) -%}
{%- set encodable2 = attribute.definition | asEncodable(typeLookup) -%}
{%- if not attribute.requires_timed_write %}
- fun write{{ attribute.definition.name | upfirst }}Attribute(
- callback: DefaultClusterCallback,
+ suspend fun write{{ attribute.definition.name | upfirst }}Attribute(
value: {{ encode_value_without_optional_nullable(cluster, encodable, 0) }}
) {
// Implementation needs to be added here
}
{% endif %}
- fun write{{ attribute.definition.name | upfirst }}Attribute(
- callback: DefaultClusterCallback,
+ suspend fun write{{ attribute.definition.name | upfirst }}Attribute(
value: {{ encode_value_without_optional_nullable(cluster, encodable2, 0) }},
timedWriteTimeoutMs: Int
) {
@@ -156,13 +148,15 @@ class {{cluster.name}}Cluster(private val endpointId: UShort) {
}
{% endif %}
{%- if attribute.is_subscribable %}
- fun subscribe{{ attribute.definition.name | upfirst }}Attribute(
- callback: {{ attribute | javaAttributeCallbackName(typeLookup) }},
+ suspend fun subscribe{{ attribute.definition.name | upfirst }}Attribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): {{interfaceName}} {
// Implementation needs to be added here
}
{% endif -%}
-{%- endfor -%}
+{%- endfor %}
+ companion object {
+ const val CLUSTER_ID: UInt = {{cluster.code}}u
+ }
}
diff --git a/scripts/py_matter_idl/matter_idl/generators/kotlin/__init__.py b/scripts/py_matter_idl/matter_idl/generators/kotlin/__init__.py
index 15e2f7c83a9b4b..025a314685367e 100644
--- a/scripts/py_matter_idl/matter_idl/generators/kotlin/__init__.py
+++ b/scripts/py_matter_idl/matter_idl/generators/kotlin/__init__.py
@@ -132,13 +132,25 @@ def FieldToGlobalName(field: Field, context: TypeLookupContext) -> Optional[str]
def GlobalNameToJavaName(name: str) -> str:
- if name in {'Int8u', 'Int8s', 'Int16u', 'Int16s'}:
- return 'Integer'
-
- if name.startswith('Int'):
+ if name == 'Int8s':
+ return 'Byte'
+ if name == 'Int8u':
+ return 'UByte'
+ if name == 'Int16s':
+ return 'Short'
+ if name == 'Int16u':
+ return 'UShort'
+
+ if name == 'Int32s':
+ return 'Int'
+ if name == 'Int32u':
+ return 'UInt'
+ if name == 'Int64s':
return 'Long'
+ if name == 'Int64u':
+ return 'ULong'
- # Double/Float/Booleans/CharString/OctetString
+ # Double/Float/Boolean/CharString/OctetString
return name
@@ -212,9 +224,9 @@ def JavaAttributeCallbackName(attr: Attribute, context: TypeLookupContext) -> st
global_name = FieldToGlobalName(attr.definition, context)
if global_name:
- return '{}AttributeCallback'.format(GlobalNameToJavaName(global_name))
+ return '{}'.format(GlobalNameToJavaName(global_name))
- return '{}AttributeCallback'.format(capitalcase(attr.definition.name))
+ return '{}Attribute'.format(capitalcase(attr.definition.name))
def IsFieldGlobalName(field: Field, context: TypeLookupContext) -> bool:
@@ -404,43 +416,6 @@ def get_underlying_enum(self):
raise Exception("Enum %s not found" % self.data_type.name)
return e
- @property
- def boxed_java_type(self):
- t = ParseDataType(self.data_type, self.context)
-
- if isinstance(t, FundamentalType):
- if t == FundamentalType.BOOL:
- return "Boolean"
- elif t == FundamentalType.FLOAT:
- return "Float"
- elif t == FundamentalType.DOUBLE:
- return "Double"
- else:
- raise Exception("Unknown fundamental type")
- elif isinstance(t, BasicInteger):
- # the >= 3 will include int24_t to be considered "long"
- if t.byte_count >= 3:
- return "Long"
- else:
- return "Integer"
- elif isinstance(t, BasicString):
- if t.is_binary:
- return "ByteArray"
- else:
- return "String"
- elif isinstance(t, IdlEnumType):
- if t.base_type.byte_count >= 3:
- return "Long"
- else:
- return "Integer"
- elif isinstance(t, IdlBitmapType):
- if t.base_type.byte_count >= 3:
- return "Long"
- else:
- return "Integer"
- else:
- return "Object"
-
@property
def kotlin_type(self):
t = ParseDataType(self.data_type, self.context)
@@ -455,17 +430,22 @@ def kotlin_type(self):
else:
raise Exception("Unknown fundamental type")
elif isinstance(t, BasicInteger):
- # the >= 3 will include int24_t to be considered "long"
if t.is_signed:
- if t.byte_count >= 3:
- return "Long"
- else:
+ if t.byte_count <= 1:
+ return "Byte"
+ if t.byte_count <= 2:
+ return "Short"
+ if t.byte_count <= 4:
return "Int"
- else:
- if t.byte_count >= 3:
- return "ULong"
- else:
+ return "Long"
+ else: # unsigned
+ if t.byte_count <= 1:
+ return "UByte"
+ if t.byte_count <= 2:
+ return "UShort"
+ if t.byte_count <= 4:
return "UInt"
+ return "ULong"
elif isinstance(t, BasicString):
if t.is_binary:
return "ByteArray"
@@ -615,6 +595,11 @@ def IsFabricScopedList(attr: Attribute, lookup: TypeLookupContext) -> bool:
return struct and struct.qualities == StructQuality.FABRIC_SCOPED
+def CommandHasResponse(command: Command) -> bool:
+ """Returns true if a command has a specific response."""
+ return command.output_param != "DefaultSuccess"
+
+
def IsResponseStruct(s: Struct) -> bool:
return s.tag == StructTag.RESPONSE
@@ -649,6 +634,7 @@ def __init__(self, storage: GeneratorStorage, idl: Idl, **kargs):
self.jinja_env.filters['createLookupContext'] = CreateLookupContext
self.jinja_env.filters['canGenerateSubscribe'] = CanGenerateSubscribe
self.jinja_env.filters['isFabricScopedList'] = IsFabricScopedList
+ self.jinja_env.filters['hasResponse'] = CommandHasResponse
self.jinja_env.tests['is_response_struct'] = IsResponseStruct
self.jinja_env.tests['is_using_global_callback'] = _IsUsingGlobalCallback
diff --git a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/access.h b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/access.h
index 4a484b3f33fc9f..8b7bd0f6a71263 100644
--- a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/access.h
+++ b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/access.h
@@ -231,6 +231,7 @@
0x00000028, /* Cluster: Basic Information, Attribute: NodeLabel, Privilege: manage */ \
0x00000028, /* Cluster: Basic Information, Attribute: Location, Privilege: administer */ \
0x00000028, /* Cluster: Basic Information, Attribute: LocalConfigDisabled, Privilege: manage */ \
+ 0x0000002B, /* Cluster: Localization Configuration, Attribute: ActiveLocale, Privilege: manage */ \
0x00000030, /* Cluster: General Commissioning, Attribute: Breadcrumb, Privilege: administer */ \
0x00000031, /* Cluster: Network Commissioning, Attribute: InterfaceEnabled, Privilege: administer */ \
0x0000003F, /* Cluster: Group Key Management, Attribute: GroupKeyMap, Privilege: manage */ \
@@ -286,6 +287,7 @@
0x00000005, /* Cluster: Basic Information, Attribute: NodeLabel, Privilege: manage */ \
0x00000006, /* Cluster: Basic Information, Attribute: Location, Privilege: administer */ \
0x00000010, /* Cluster: Basic Information, Attribute: LocalConfigDisabled, Privilege: manage */ \
+ 0x00000000, /* Cluster: Localization Configuration, Attribute: ActiveLocale, Privilege: manage */ \
0x00000000, /* Cluster: General Commissioning, Attribute: Breadcrumb, Privilege: administer */ \
0x00000004, /* Cluster: Network Commissioning, Attribute: InterfaceEnabled, Privilege: administer */ \
0x00000000, /* Cluster: Group Key Management, Attribute: GroupKeyMap, Privilege: manage */ \
@@ -341,6 +343,7 @@
kMatterAccessPrivilegeManage, /* Cluster: Basic Information, Attribute: NodeLabel, Privilege: manage */ \
kMatterAccessPrivilegeAdminister, /* Cluster: Basic Information, Attribute: Location, Privilege: administer */ \
kMatterAccessPrivilegeManage, /* Cluster: Basic Information, Attribute: LocalConfigDisabled, Privilege: manage */ \
+ kMatterAccessPrivilegeManage, /* Cluster: Localization Configuration, Attribute: ActiveLocale, Privilege: manage */ \
kMatterAccessPrivilegeAdminister, /* Cluster: General Commissioning, Attribute: Breadcrumb, Privilege: administer */ \
kMatterAccessPrivilegeAdminister, /* Cluster: Network Commissioning, Attribute: InterfaceEnabled, Privilege: administer */ \
kMatterAccessPrivilegeManage, /* Cluster: Group Key Management, Attribute: GroupKeyMap, Privilege: manage */ \
diff --git a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h
index 4679085f1570dd..16e6c92fe83576 100644
--- a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h
+++ b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h
@@ -1143,12 +1143,15 @@
{ ZAP_SIMPLE_DEFAULT(3), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \
\
/* Endpoint: 1, Cluster: Temperature Measurement (server) */ \
- { ZAP_SIMPLE_DEFAULT(0x8000), 0x00000000, 2, ZAP_TYPE(INT16S), ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* MeasuredValue */ \
- { ZAP_SIMPLE_DEFAULT(0x8000), 0x00000001, 2, ZAP_TYPE(INT16S), ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* MinMeasuredValue */ \
- { ZAP_SIMPLE_DEFAULT(0x8000), 0x00000002, 2, ZAP_TYPE(INT16S), ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* MaxMeasuredValue */ \
- { ZAP_EMPTY_DEFAULT(), 0x00000003, 2, ZAP_TYPE(INT16U), 0 }, /* Tolerance */ \
- { ZAP_SIMPLE_DEFAULT(0), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \
- { ZAP_SIMPLE_DEFAULT(4), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \
+ { ZAP_SIMPLE_DEFAULT(0x8000), 0x00000000, 2, ZAP_TYPE(TEMPERATURE), \
+ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* MeasuredValue */ \
+ { ZAP_SIMPLE_DEFAULT(0x8000), 0x00000001, 2, ZAP_TYPE(TEMPERATURE), \
+ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* MinMeasuredValue */ \
+ { ZAP_SIMPLE_DEFAULT(0x8000), 0x00000002, 2, ZAP_TYPE(TEMPERATURE), \
+ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* MaxMeasuredValue */ \
+ { ZAP_EMPTY_DEFAULT(), 0x00000003, 2, ZAP_TYPE(TEMPERATURE), 0 }, /* Tolerance */ \
+ { ZAP_SIMPLE_DEFAULT(0), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \
+ { ZAP_SIMPLE_DEFAULT(4), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \
\
/* Endpoint: 1, Cluster: Pressure Measurement (server) */ \
{ ZAP_SIMPLE_DEFAULT(0x0000), 0x00000000, 2, ZAP_TYPE(INT16S), ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* MeasuredValue */ \
diff --git a/scripts/tools/zap/tests/outputs/lighting-app/app-templates/access.h b/scripts/tools/zap/tests/outputs/lighting-app/app-templates/access.h
index a9a3acfe70e870..69e302c592fffe 100644
--- a/scripts/tools/zap/tests/outputs/lighting-app/app-templates/access.h
+++ b/scripts/tools/zap/tests/outputs/lighting-app/app-templates/access.h
@@ -113,6 +113,7 @@
0x00000028, /* Cluster: Basic Information, Attribute: NodeLabel, Privilege: manage */ \
0x00000028, /* Cluster: Basic Information, Attribute: Location, Privilege: administer */ \
0x00000028, /* Cluster: Basic Information, Attribute: LocalConfigDisabled, Privilege: manage */ \
+ 0x0000002B, /* Cluster: Localization Configuration, Attribute: ActiveLocale, Privilege: manage */ \
0x00000030, /* Cluster: General Commissioning, Attribute: Breadcrumb, Privilege: administer */ \
0x00000031, /* Cluster: Network Commissioning, Attribute: InterfaceEnabled, Privilege: administer */ \
0x0000003F, /* Cluster: Group Key Management, Attribute: GroupKeyMap, Privilege: manage */ \
@@ -129,6 +130,7 @@
0x00000005, /* Cluster: Basic Information, Attribute: NodeLabel, Privilege: manage */ \
0x00000006, /* Cluster: Basic Information, Attribute: Location, Privilege: administer */ \
0x00000010, /* Cluster: Basic Information, Attribute: LocalConfigDisabled, Privilege: manage */ \
+ 0x00000000, /* Cluster: Localization Configuration, Attribute: ActiveLocale, Privilege: manage */ \
0x00000000, /* Cluster: General Commissioning, Attribute: Breadcrumb, Privilege: administer */ \
0x00000004, /* Cluster: Network Commissioning, Attribute: InterfaceEnabled, Privilege: administer */ \
0x00000000, /* Cluster: Group Key Management, Attribute: GroupKeyMap, Privilege: manage */ \
@@ -145,6 +147,7 @@
kMatterAccessPrivilegeManage, /* Cluster: Basic Information, Attribute: NodeLabel, Privilege: manage */ \
kMatterAccessPrivilegeAdminister, /* Cluster: Basic Information, Attribute: Location, Privilege: administer */ \
kMatterAccessPrivilegeManage, /* Cluster: Basic Information, Attribute: LocalConfigDisabled, Privilege: manage */ \
+ kMatterAccessPrivilegeManage, /* Cluster: Localization Configuration, Attribute: ActiveLocale, Privilege: manage */ \
kMatterAccessPrivilegeAdminister, /* Cluster: General Commissioning, Attribute: Breadcrumb, Privilege: administer */ \
kMatterAccessPrivilegeAdminister, /* Cluster: Network Commissioning, Attribute: InterfaceEnabled, Privilege: administer */ \
kMatterAccessPrivilegeManage, /* Cluster: Group Key Management, Attribute: GroupKeyMap, Privilege: manage */ \
diff --git a/src/app/zap-templates/zcl/data-model/chip/localization-configuration-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/localization-configuration-cluster.xml
index 0c69e5eb349a76..aa8a5083a29903 100644
--- a/src/app/zap-templates/zcl/data-model/chip/localization-configuration-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/localization-configuration-cluster.xml
@@ -28,7 +28,10 @@ limitations under the License.
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc
- ActiveLocale
+
+ ActiveLocale
+
+
SupportedLocales
diff --git a/src/app/zap-templates/zcl/data-model/chip/power-source-configuration-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/power-source-configuration-cluster.xml
index 347762b8d4cedd..994cdb78969a88 100644
--- a/src/app/zap-templates/zcl/data-model/chip/power-source-configuration-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/power-source-configuration-cluster.xml
@@ -26,6 +26,6 @@ limitations under the License.
true
true
- Sources
+ Sources
diff --git a/src/app/zap-templates/zcl/data-model/chip/temperature-measurement-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/temperature-measurement-cluster.xml
index e24738ead95da0..aee79b86eea3c0 100644
--- a/src/app/zap-templates/zcl/data-model/chip/temperature-measurement-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/temperature-measurement-cluster.xml
@@ -24,9 +24,9 @@ limitations under the License.
TEMPERATURE_MEASUREMENT_CLUSTER
true
true
- MeasuredValue
- MinMeasuredValue
- MaxMeasuredValue
- Tolerance
+ MeasuredValue
+ MinMeasuredValue
+ MaxMeasuredValue
+ Tolerance
diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter
index add2f3be3306f9..dd944b2b20fef1 100644
--- a/src/controller/data_model/controller-clusters.matter
+++ b/src/controller/data_model/controller-clusters.matter
@@ -1081,7 +1081,7 @@ client cluster OtaSoftwareUpdateRequestor = 42 {
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
they can be configured to use a user’s preferred language, units, etc */
client cluster LocalizationConfiguration = 43 {
- attribute char_string<35> activeLocale = 0;
+ attribute access(write: manage) char_string<35> activeLocale = 0;
readonly attribute char_string supportedLocales[] = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -1157,7 +1157,7 @@ client cluster UnitLocalization = 45 {
/** This cluster is used to describe the configuration and capabilities of a Device's power system. */
client cluster PowerSourceConfiguration = 46 {
- readonly attribute int8u sources[] = 0;
+ readonly attribute endpoint_no sources[] = 0;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -5162,10 +5162,10 @@ client cluster IlluminanceMeasurement = 1024 {
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */
client cluster TemperatureMeasurement = 1026 {
- readonly attribute nullable int16s measuredValue = 0;
- readonly attribute nullable int16s minMeasuredValue = 1;
- readonly attribute nullable int16s maxMeasuredValue = 2;
- readonly attribute optional int16u tolerance = 3;
+ readonly attribute nullable temperature measuredValue = 0;
+ readonly attribute nullable temperature minMeasuredValue = 1;
+ readonly attribute nullable temperature maxMeasuredValue = 2;
+ readonly attribute optional temperature tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt
index a16aec610367ed..2fbee5e99184f9 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt
@@ -20,224 +20,165 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class AccessControlCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 31u
- }
-
- interface AclAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface ExtensionAttributeCallback {
- fun onSuccess(value: ArrayList?)
-
- fun onError(ex: Exception)
+ class AclAttribute(
+ val value: ArrayList
+ )
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class ExtensionAttribute(
+ val value: ArrayList?
+ )
- fun onError(ex: Exception)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class EventListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AttributeListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readAclAttribute(callback: AclAttributeCallback) {
+ suspend fun readAclAttribute(): AclAttribute {
// Implementation needs to be added here
}
- fun readAclAttributeWithFabricFilter(callback: AclAttributeCallback, isFabricFiltered: Boolean) {
+ suspend fun readAclAttributeWithFabricFilter(isFabricFiltered: Boolean): AclAttribute {
// Implementation needs to be added here
}
- fun writeAclAttribute(
- callback: DefaultClusterCallback,
+ suspend fun writeAclAttribute(
value: ArrayList
) {
// Implementation needs to be added here
}
- fun writeAclAttribute(
- callback: DefaultClusterCallback,
+ suspend fun writeAclAttribute(
value: ArrayList,
timedWriteTimeoutMs: Int
) {
// Implementation needs to be added here
}
- fun subscribeAclAttribute(callback: AclAttributeCallback, minInterval: Int, maxInterval: Int) {
+ suspend fun subscribeAclAttribute(minInterval: Int, maxInterval: Int): AclAttribute {
// Implementation needs to be added here
}
- fun readExtensionAttribute(callback: ExtensionAttributeCallback) {
+ suspend fun readExtensionAttribute(): ExtensionAttribute {
// Implementation needs to be added here
}
- fun readExtensionAttributeWithFabricFilter(
- callback: ExtensionAttributeCallback,
+ suspend fun readExtensionAttributeWithFabricFilter(
isFabricFiltered: Boolean
- ) {
+ ): ExtensionAttribute {
// Implementation needs to be added here
}
- fun writeExtensionAttribute(
- callback: DefaultClusterCallback,
+ suspend fun writeExtensionAttribute(
value: ArrayList
) {
// Implementation needs to be added here
}
- fun writeExtensionAttribute(
- callback: DefaultClusterCallback,
+ suspend fun writeExtensionAttribute(
value: ArrayList,
timedWriteTimeoutMs: Int
) {
// Implementation needs to be added here
}
- fun subscribeExtensionAttribute(
- callback: ExtensionAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeExtensionAttribute(minInterval: Int, maxInterval: Int): ExtensionAttribute {
// Implementation needs to be added here
}
- fun readSubjectsPerAccessControlEntryAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readSubjectsPerAccessControlEntryAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeSubjectsPerAccessControlEntryAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeSubjectsPerAccessControlEntryAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readTargetsPerAccessControlEntryAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readTargetsPerAccessControlEntryAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeTargetsPerAccessControlEntryAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeTargetsPerAccessControlEntryAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readAccessControlEntriesPerFabricAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readAccessControlEntriesPerFabricAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeAccessControlEntriesPerFabricAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeAccessControlEntriesPerFabricAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 31u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt
index 511713c5df05b5..f3021af650c22d 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt
@@ -20,138 +20,105 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class AccountLoginCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 1294u
- }
+ class GetSetupPINResponse(val setupPIN: String)
- fun getSetupPIN(
- callback: GetSetupPINResponseCallback,
- tempAccountIdentifier: String,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun login(
- callback: DefaultClusterCallback,
- tempAccountIdentifier: String,
- setupPIN: String,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun logout(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
-
- interface GetSetupPINResponseCallback {
- fun onSuccess(setupPIN: String)
-
- fun onError(error: Exception)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class EventListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AttributeListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun getSetupPIN(
+ tempAccountIdentifier: String,
+ timedInvokeTimeoutMs: Int? = null
+ ): GetSetupPINResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun login(
+ tempAccountIdentifier: String,
+ setupPIN: String,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun logout(timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 1294u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt
index 584c8d537cc9df..1b7e91e08d78d0 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt
@@ -20,349 +20,227 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class ActionsCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 37u
- }
-
- fun instantAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) {
- // Implementation needs to be added here
- }
-
- fun instantAction(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun instantActionWithTransition(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- transitionTime: Integer
- ) {
- // Implementation needs to be added here
- }
+ class ActionListAttribute(val value: ArrayList)
- fun instantActionWithTransition(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- transitionTime: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class EndpointListsAttribute(val value: ArrayList)
- fun startAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) {
- // Implementation needs to be added here
- }
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun startAction(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun startActionWithDuration(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- duration: Long
- ) {
- // Implementation needs to be added here
- }
+ class EventListAttribute(val value: ArrayList)
- fun startActionWithDuration(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- duration: Long,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class AttributeListAttribute(val value: ArrayList)
- fun stopAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) {
- // Implementation needs to be added here
+ suspend fun instantAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun stopAction(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- timedInvokeTimeoutMs: Int
+ suspend fun instantActionWithTransition(
+ actionID: UShort,
+ invokeID: UInt?,
+ transitionTime: UShort,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun pauseAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) {
- // Implementation needs to be added here
+ suspend fun startAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun pauseAction(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- timedInvokeTimeoutMs: Int
+ suspend fun startActionWithDuration(
+ actionID: UShort,
+ invokeID: UInt?,
+ duration: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun pauseActionWithDuration(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- duration: Long
- ) {
- // Implementation needs to be added here
- }
-
- fun pauseActionWithDuration(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- duration: Long,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
+ suspend fun stopAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun resumeAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) {
- // Implementation needs to be added here
+ suspend fun pauseAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun resumeAction(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- timedInvokeTimeoutMs: Int
+ suspend fun pauseActionWithDuration(
+ actionID: UShort,
+ invokeID: UInt?,
+ duration: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun enableAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) {
- // Implementation needs to be added here
+ suspend fun resumeAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun enableAction(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
+ suspend fun enableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun enableActionWithDuration(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- duration: Long
+ suspend fun enableActionWithDuration(
+ actionID: UShort,
+ invokeID: UInt?,
+ duration: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun enableActionWithDuration(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- duration: Long,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
+ suspend fun disableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun disableAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) {
- // Implementation needs to be added here
- }
-
- fun disableAction(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- timedInvokeTimeoutMs: Int
+ suspend fun disableActionWithDuration(
+ actionID: UShort,
+ invokeID: UInt?,
+ duration: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun disableActionWithDuration(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- duration: Long
- ) {
+ suspend fun readActionListAttribute(): ActionListAttribute {
// Implementation needs to be added here
}
- fun disableActionWithDuration(
- callback: DefaultClusterCallback,
- actionID: Integer,
- invokeID: Long?,
- duration: Long,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- interface ActionListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EndpointListsAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readActionListAttribute(callback: ActionListAttributeCallback) {
- // Implementation needs to be added here
- }
-
- fun subscribeActionListAttribute(
- callback: ActionListAttributeCallback,
+ suspend fun subscribeActionListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): ActionListAttribute {
// Implementation needs to be added here
}
- fun readEndpointListsAttribute(callback: EndpointListsAttributeCallback) {
+ suspend fun readEndpointListsAttribute(): EndpointListsAttribute {
// Implementation needs to be added here
}
- fun subscribeEndpointListsAttribute(
- callback: EndpointListsAttributeCallback,
+ suspend fun subscribeEndpointListsAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): EndpointListsAttribute {
// Implementation needs to be added here
}
- fun readSetupURLAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readSetupURLAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeSetupURLAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeSetupURLAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 37u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt
index c109709f14cede..1133dea37122ec 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt
@@ -20,221 +20,149 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 114u
- }
-
- fun resetCondition(callback: DefaultClusterCallback) {
- // Implementation needs to be added here
- }
-
- fun resetCondition(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
-
- interface LastChangedTimeAttributeCallback {
- fun onSuccess(value: Long?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface ReplacementProductListAttributeCallback {
- fun onSuccess(
- value: ArrayList?
- )
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class LastChangedTimeAttribute(val value: UInt?)
- fun onError(ex: Exception)
+ class ReplacementProductListAttribute(
+ val value:
+ ArrayList?
+ )
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class EventListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AttributeListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun resetCondition(timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun readConditionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readConditionAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeConditionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readDegradationDirectionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readDegradationDirectionAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeDegradationDirectionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readChangeIndicationAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readChangeIndicationAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeChangeIndicationAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readInPlaceIndicatorAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readInPlaceIndicatorAttribute(): Boolean {
// Implementation needs to be added here
}
- fun subscribeInPlaceIndicatorAttribute(
- callback: BooleanAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeInPlaceIndicatorAttribute(minInterval: Int, maxInterval: Int): Boolean {
// Implementation needs to be added here
}
- fun readLastChangedTimeAttribute(callback: LastChangedTimeAttributeCallback) {
+ suspend fun readLastChangedTimeAttribute(): LastChangedTimeAttribute {
// Implementation needs to be added here
}
- fun writeLastChangedTimeAttribute(callback: DefaultClusterCallback, value: Long) {
+ suspend fun writeLastChangedTimeAttribute(value: UInt) {
// Implementation needs to be added here
}
- fun writeLastChangedTimeAttribute(
- callback: DefaultClusterCallback,
- value: Long,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeLastChangedTimeAttribute(value: UInt, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeLastChangedTimeAttribute(
- callback: LastChangedTimeAttributeCallback,
+ suspend fun subscribeLastChangedTimeAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): LastChangedTimeAttribute {
// Implementation needs to be added here
}
- fun readReplacementProductListAttribute(callback: ReplacementProductListAttributeCallback) {
+ suspend fun readReplacementProductListAttribute(): ReplacementProductListAttribute {
// Implementation needs to be added here
}
- fun subscribeReplacementProductListAttribute(
- callback: ReplacementProductListAttributeCallback,
+ suspend fun subscribeReplacementProductListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): ReplacementProductListAttribute {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 114u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt
index 5d2ec55d786c40..359feb433b7194 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt
@@ -20,187 +20,140 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class AdministratorCommissioningCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 60u
- }
+ class AdminFabricIndexAttribute(val value: UByte?)
- fun openCommissioningWindow(
- callback: DefaultClusterCallback,
- commissioningTimeout: Integer,
- PAKEPasscodeVerifier: ByteArray,
- discriminator: Integer,
- iterations: Long,
- salt: ByteArray,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class AdminVendorIdAttribute(val value: UShort?)
- fun openBasicCommissioningWindow(
- callback: DefaultClusterCallback,
- commissioningTimeout: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun revokeCommissioning(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- interface AdminFabricIndexAttributeCallback {
- fun onSuccess(value: Integer?)
+ class EventListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AttributeListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AdminVendorIdAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun openCommissioningWindow(
+ commissioningTimeout: UShort,
+ PAKEPasscodeVerifier: ByteArray,
+ discriminator: UShort,
+ iterations: UInt,
+ salt: ByteArray,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun openBasicCommissioningWindow(
+ commissioningTimeout: UShort,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun revokeCommissioning(timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun readWindowStatusAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readWindowStatusAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeWindowStatusAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeWindowStatusAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readAdminFabricIndexAttribute(callback: AdminFabricIndexAttributeCallback) {
+ suspend fun readAdminFabricIndexAttribute(): AdminFabricIndexAttribute {
// Implementation needs to be added here
}
- fun subscribeAdminFabricIndexAttribute(
- callback: AdminFabricIndexAttributeCallback,
+ suspend fun subscribeAdminFabricIndexAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AdminFabricIndexAttribute {
// Implementation needs to be added here
}
- fun readAdminVendorIdAttribute(callback: AdminVendorIdAttributeCallback) {
+ suspend fun readAdminVendorIdAttribute(): AdminVendorIdAttribute {
// Implementation needs to be added here
}
- fun subscribeAdminVendorIdAttribute(
- callback: AdminVendorIdAttributeCallback,
+ suspend fun subscribeAdminVendorIdAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AdminVendorIdAttribute {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 60u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt
index c81674a306021c..ed191ea82883eb 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt
@@ -20,123 +20,80 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class AirQualityCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 91u
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class GeneratedCommandListAttribute(val value: ArrayList)
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class EventListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AttributeListAttribute(val value: ArrayList)
- fun readAirQualityAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readAirQualityAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeAirQualityAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeAirQualityAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 91u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt
index 6c315058fa2e9f..aba8f4afbe36ef 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt
@@ -20,223 +20,146 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class ApplicationBasicCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 1293u
- }
-
- interface ApplicationAttributeCallback {
- fun onSuccess(value: ChipStructs.ApplicationBasicClusterApplicationStruct)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AllowedVendorListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class ApplicationAttribute(val value: ChipStructs.ApplicationBasicClusterApplicationStruct)
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class AllowedVendorListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class EventListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AttributeListAttribute(val value: ArrayList)
- fun readVendorNameAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readVendorNameAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeVendorNameAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeVendorNameAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readVendorIDAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readVendorIDAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeVendorIDAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readApplicationNameAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readApplicationNameAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeApplicationNameAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeApplicationNameAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readProductIDAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readProductIDAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeProductIDAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readApplicationAttribute(callback: ApplicationAttributeCallback) {
+ suspend fun readApplicationAttribute(): ApplicationAttribute {
// Implementation needs to be added here
}
- fun subscribeApplicationAttribute(
- callback: ApplicationAttributeCallback,
+ suspend fun subscribeApplicationAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): ApplicationAttribute {
// Implementation needs to be added here
}
- fun readStatusAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readStatusAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeStatusAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readApplicationVersionAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readApplicationVersionAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeApplicationVersionAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeApplicationVersionAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readAllowedVendorListAttribute(callback: AllowedVendorListAttributeCallback) {
+ suspend fun readAllowedVendorListAttribute(): AllowedVendorListAttribute {
// Implementation needs to be added here
}
- fun subscribeAllowedVendorListAttribute(
- callback: AllowedVendorListAttributeCallback,
+ suspend fun subscribeAllowedVendorListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AllowedVendorListAttribute {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 1293u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt
index 21bfb4f5e37d19..2dfd1f16ee3986 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt
@@ -20,219 +20,147 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class ApplicationLauncherCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 1292u
- }
+ class LauncherResponse(val status: UInt, val data: ByteArray?)
- fun launchApp(
- callback: LauncherResponseCallback,
- application: ChipStructs.ApplicationLauncherClusterApplicationStruct?,
- data: ByteArray?
- ) {
- // Implementation needs to be added here
- }
+ class CatalogListAttribute(val value: ArrayList?)
- fun launchApp(
- callback: LauncherResponseCallback,
- application: ChipStructs.ApplicationLauncherClusterApplicationStruct?,
- data: ByteArray?,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class CurrentAppAttribute(val value: ChipStructs.ApplicationLauncherClusterApplicationEPStruct?)
- fun stopApp(
- callback: LauncherResponseCallback,
- application: ChipStructs.ApplicationLauncherClusterApplicationStruct?
- ) {
- // Implementation needs to be added here
- }
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun stopApp(
- callback: LauncherResponseCallback,
- application: ChipStructs.ApplicationLauncherClusterApplicationStruct?,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun hideApp(
- callback: LauncherResponseCallback,
- application: ChipStructs.ApplicationLauncherClusterApplicationStruct?
- ) {
- // Implementation needs to be added here
- }
-
- fun hideApp(
- callback: LauncherResponseCallback,
- application: ChipStructs.ApplicationLauncherClusterApplicationStruct?,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- interface LauncherResponseCallback {
- fun onSuccess(status: Integer, data: ByteArray?)
-
- fun onError(error: Exception)
- }
-
- interface CatalogListAttributeCallback {
- fun onSuccess(value: ArrayList?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- interface CurrentAppAttributeCallback {
- fun onSuccess(value: ChipStructs.ApplicationLauncherClusterApplicationEPStruct?)
+ class EventListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AttributeListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun launchApp(
+ application: ChipStructs.ApplicationLauncherClusterApplicationStruct?,
+ data: ByteArray?,
+ timedInvokeTimeoutMs: Int? = null
+ ): LauncherResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun stopApp(
+ application: ChipStructs.ApplicationLauncherClusterApplicationStruct?,
+ timedInvokeTimeoutMs: Int? = null
+ ): LauncherResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun hideApp(
+ application: ChipStructs.ApplicationLauncherClusterApplicationStruct?,
+ timedInvokeTimeoutMs: Int? = null
+ ): LauncherResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun readCatalogListAttribute(callback: CatalogListAttributeCallback) {
+ suspend fun readCatalogListAttribute(): CatalogListAttribute {
// Implementation needs to be added here
}
- fun subscribeCatalogListAttribute(
- callback: CatalogListAttributeCallback,
+ suspend fun subscribeCatalogListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): CatalogListAttribute {
// Implementation needs to be added here
}
- fun readCurrentAppAttribute(callback: CurrentAppAttributeCallback) {
+ suspend fun readCurrentAppAttribute(): CurrentAppAttribute {
// Implementation needs to be added here
}
- fun writeCurrentAppAttribute(
- callback: DefaultClusterCallback,
+ suspend fun writeCurrentAppAttribute(
value: ChipStructs.ApplicationLauncherClusterApplicationEPStruct
) {
// Implementation needs to be added here
}
- fun writeCurrentAppAttribute(
- callback: DefaultClusterCallback,
+ suspend fun writeCurrentAppAttribute(
value: ChipStructs.ApplicationLauncherClusterApplicationEPStruct,
timedWriteTimeoutMs: Int
) {
// Implementation needs to be added here
}
- fun subscribeCurrentAppAttribute(
- callback: CurrentAppAttributeCallback,
+ suspend fun subscribeCurrentAppAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): CurrentAppAttribute {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 1292u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt
index 3eaae5e7ab157d..02f8838eccb061 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt
@@ -20,164 +20,109 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class AudioOutputCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 1291u
- }
-
- fun selectOutput(callback: DefaultClusterCallback, index: Integer) {
- // Implementation needs to be added here
- }
-
- fun selectOutput(callback: DefaultClusterCallback, index: Integer, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
-
- fun renameOutput(callback: DefaultClusterCallback, index: Integer, name: String) {
- // Implementation needs to be added here
- }
-
- fun renameOutput(
- callback: DefaultClusterCallback,
- index: Integer,
- name: String,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class OutputListAttribute(val value: ArrayList)
- interface OutputListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class EventListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AttributeListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun selectOutput(index: UByte, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun renameOutput(index: UByte, name: String, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readOutputListAttribute(callback: OutputListAttributeCallback) {
+ suspend fun readOutputListAttribute(): OutputListAttribute {
// Implementation needs to be added here
}
- fun subscribeOutputListAttribute(
- callback: OutputListAttributeCallback,
+ suspend fun subscribeOutputListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): OutputListAttribute {
// Implementation needs to be added here
}
- fun readCurrentOutputAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readCurrentOutputAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeCurrentOutputAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeCurrentOutputAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 1291u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt
index b0efd271d427f3..6acc691b935284 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt
@@ -20,439 +20,289 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class BallastConfigurationCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 769u
- }
-
- interface IntrinsicBallastFactorAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface BallastFactorAdjustmentAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface LampRatedHoursAttributeCallback {
- fun onSuccess(value: Long?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class IntrinsicBallastFactorAttribute(val value: UByte?)
- interface LampBurnHoursAttributeCallback {
- fun onSuccess(value: Long?)
+ class BallastFactorAdjustmentAttribute(val value: UByte?)
- fun onError(ex: Exception)
+ class LampRatedHoursAttribute(val value: UInt?)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface LampBurnHoursTripPointAttributeCallback {
- fun onSuccess(value: Long?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class LampBurnHoursAttribute(val value: UInt?)
- fun onError(ex: Exception)
+ class LampBurnHoursTripPointAttribute(val value: UInt?)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class GeneratedCommandListAttribute(val value: ArrayList)
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class EventListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AttributeListAttribute(val value: ArrayList)
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readPhysicalMinLevelAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPhysicalMinLevelAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribePhysicalMinLevelAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePhysicalMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readPhysicalMaxLevelAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPhysicalMaxLevelAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribePhysicalMaxLevelAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePhysicalMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readBallastStatusAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readBallastStatusAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeBallastStatusAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeBallastStatusAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readMinLevelAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readMinLevelAttribute(): UByte {
// Implementation needs to be added here
}
- fun writeMinLevelAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeMinLevelAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeMinLevelAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeMinLevelAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeMinLevelAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readMaxLevelAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readMaxLevelAttribute(): UByte {
// Implementation needs to be added here
}
- fun writeMaxLevelAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeMaxLevelAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeMaxLevelAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeMaxLevelAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeMaxLevelAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readIntrinsicBallastFactorAttribute(callback: IntrinsicBallastFactorAttributeCallback) {
+ suspend fun readIntrinsicBallastFactorAttribute(): IntrinsicBallastFactorAttribute {
// Implementation needs to be added here
}
- fun writeIntrinsicBallastFactorAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeIntrinsicBallastFactorAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeIntrinsicBallastFactorAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeIntrinsicBallastFactorAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeIntrinsicBallastFactorAttribute(
- callback: IntrinsicBallastFactorAttributeCallback,
+ suspend fun subscribeIntrinsicBallastFactorAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): IntrinsicBallastFactorAttribute {
// Implementation needs to be added here
}
- fun readBallastFactorAdjustmentAttribute(callback: BallastFactorAdjustmentAttributeCallback) {
+ suspend fun readBallastFactorAdjustmentAttribute(): BallastFactorAdjustmentAttribute {
// Implementation needs to be added here
}
- fun writeBallastFactorAdjustmentAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeBallastFactorAdjustmentAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeBallastFactorAdjustmentAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeBallastFactorAdjustmentAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeBallastFactorAdjustmentAttribute(
- callback: BallastFactorAdjustmentAttributeCallback,
+ suspend fun subscribeBallastFactorAdjustmentAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): BallastFactorAdjustmentAttribute {
// Implementation needs to be added here
}
- fun readLampQuantityAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readLampQuantityAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeLampQuantityAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLampQuantityAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readLampTypeAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readLampTypeAttribute(): CharString {
// Implementation needs to be added here
}
- fun writeLampTypeAttribute(callback: DefaultClusterCallback, value: String) {
+ suspend fun writeLampTypeAttribute(value: String) {
// Implementation needs to be added here
}
- fun writeLampTypeAttribute(
- callback: DefaultClusterCallback,
- value: String,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeLampTypeAttribute(value: String, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeLampTypeAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLampTypeAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readLampManufacturerAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readLampManufacturerAttribute(): CharString {
// Implementation needs to be added here
}
- fun writeLampManufacturerAttribute(callback: DefaultClusterCallback, value: String) {
+ suspend fun writeLampManufacturerAttribute(value: String) {
// Implementation needs to be added here
}
- fun writeLampManufacturerAttribute(
- callback: DefaultClusterCallback,
- value: String,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeLampManufacturerAttribute(value: String, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeLampManufacturerAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLampManufacturerAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readLampRatedHoursAttribute(callback: LampRatedHoursAttributeCallback) {
+ suspend fun readLampRatedHoursAttribute(): LampRatedHoursAttribute {
// Implementation needs to be added here
}
- fun writeLampRatedHoursAttribute(callback: DefaultClusterCallback, value: Long) {
+ suspend fun writeLampRatedHoursAttribute(value: UInt) {
// Implementation needs to be added here
}
- fun writeLampRatedHoursAttribute(
- callback: DefaultClusterCallback,
- value: Long,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeLampRatedHoursAttribute(value: UInt, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeLampRatedHoursAttribute(
- callback: LampRatedHoursAttributeCallback,
+ suspend fun subscribeLampRatedHoursAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): LampRatedHoursAttribute {
// Implementation needs to be added here
}
- fun readLampBurnHoursAttribute(callback: LampBurnHoursAttributeCallback) {
+ suspend fun readLampBurnHoursAttribute(): LampBurnHoursAttribute {
// Implementation needs to be added here
}
- fun writeLampBurnHoursAttribute(callback: DefaultClusterCallback, value: Long) {
+ suspend fun writeLampBurnHoursAttribute(value: UInt) {
// Implementation needs to be added here
}
- fun writeLampBurnHoursAttribute(
- callback: DefaultClusterCallback,
- value: Long,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeLampBurnHoursAttribute(value: UInt, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeLampBurnHoursAttribute(
- callback: LampBurnHoursAttributeCallback,
+ suspend fun subscribeLampBurnHoursAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): LampBurnHoursAttribute {
// Implementation needs to be added here
}
- fun readLampAlarmModeAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readLampAlarmModeAttribute(): UByte {
// Implementation needs to be added here
}
- fun writeLampAlarmModeAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeLampAlarmModeAttribute(value: UInt) {
// Implementation needs to be added here
}
- fun writeLampAlarmModeAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeLampAlarmModeAttribute(value: UInt, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeLampAlarmModeAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLampAlarmModeAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readLampBurnHoursTripPointAttribute(callback: LampBurnHoursTripPointAttributeCallback) {
+ suspend fun readLampBurnHoursTripPointAttribute(): LampBurnHoursTripPointAttribute {
// Implementation needs to be added here
}
- fun writeLampBurnHoursTripPointAttribute(callback: DefaultClusterCallback, value: Long) {
+ suspend fun writeLampBurnHoursTripPointAttribute(value: UInt) {
// Implementation needs to be added here
}
- fun writeLampBurnHoursTripPointAttribute(
- callback: DefaultClusterCallback,
- value: Long,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeLampBurnHoursTripPointAttribute(value: UInt, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeLampBurnHoursTripPointAttribute(
- callback: LampBurnHoursTripPointAttributeCallback,
+ suspend fun subscribeLampBurnHoursTripPointAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): LampBurnHoursTripPointAttribute {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 769u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt
index 946845dcc57905..0c963de7d252df 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt
@@ -20,323 +20,222 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class BarrierControlCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 259u
- }
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun barrierControlGoToPercent(callback: DefaultClusterCallback, percentOpen: Integer) {
- // Implementation needs to be added here
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun barrierControlGoToPercent(
- callback: DefaultClusterCallback,
- percentOpen: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class EventListAttribute(val value: ArrayList)
- fun barrierControlStop(callback: DefaultClusterCallback) {
- // Implementation needs to be added here
- }
+ class AttributeListAttribute(val value: ArrayList)
- fun barrierControlStop(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
+ suspend fun barrierControlGoToPercent(percentOpen: UByte, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun barrierControlStop(timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readBarrierMovingStateAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readBarrierMovingStateAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeBarrierMovingStateAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeBarrierMovingStateAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readBarrierSafetyStatusAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readBarrierSafetyStatusAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeBarrierSafetyStatusAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeBarrierSafetyStatusAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readBarrierCapabilitiesAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readBarrierCapabilitiesAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeBarrierCapabilitiesAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeBarrierCapabilitiesAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readBarrierOpenEventsAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readBarrierOpenEventsAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeBarrierOpenEventsAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeBarrierOpenEventsAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeBarrierOpenEventsAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeBarrierOpenEventsAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeBarrierOpenEventsAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeBarrierOpenEventsAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readBarrierCloseEventsAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readBarrierCloseEventsAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeBarrierCloseEventsAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeBarrierCloseEventsAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeBarrierCloseEventsAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeBarrierCloseEventsAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeBarrierCloseEventsAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeBarrierCloseEventsAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readBarrierCommandOpenEventsAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readBarrierCommandOpenEventsAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeBarrierCommandOpenEventsAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeBarrierCommandOpenEventsAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeBarrierCommandOpenEventsAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeBarrierCommandOpenEventsAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeBarrierCommandOpenEventsAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeBarrierCommandOpenEventsAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readBarrierCommandCloseEventsAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readBarrierCommandCloseEventsAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeBarrierCommandCloseEventsAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeBarrierCommandCloseEventsAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeBarrierCommandCloseEventsAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeBarrierCommandCloseEventsAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeBarrierCommandCloseEventsAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeBarrierCommandCloseEventsAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readBarrierOpenPeriodAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readBarrierOpenPeriodAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeBarrierOpenPeriodAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeBarrierOpenPeriodAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeBarrierOpenPeriodAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeBarrierOpenPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeBarrierOpenPeriodAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeBarrierOpenPeriodAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readBarrierClosePeriodAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readBarrierClosePeriodAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeBarrierClosePeriodAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeBarrierClosePeriodAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeBarrierClosePeriodAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeBarrierClosePeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeBarrierClosePeriodAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeBarrierClosePeriodAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readBarrierPositionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readBarrierPositionAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeBarrierPositionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeBarrierPositionAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 259u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt
index 7c9043360ea567..bef0dafdb25437 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt
@@ -20,423 +20,292 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class BasicInformationCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 40u
- }
-
- fun mfgSpecificPing(callback: DefaultClusterCallback) {
- // Implementation needs to be added here
- }
-
- fun mfgSpecificPing(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
+ class CapabilityMinimaAttribute(
+ val value: ChipStructs.BasicInformationClusterCapabilityMinimaStruct
+ )
- interface CapabilityMinimaAttributeCallback {
- fun onSuccess(value: ChipStructs.BasicInformationClusterCapabilityMinimaStruct)
+ class ProductAppearanceAttribute(
+ val value: ChipStructs.BasicInformationClusterProductAppearanceStruct?
+ )
- fun onError(ex: Exception)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface ProductAppearanceAttributeCallback {
- fun onSuccess(value: ChipStructs.BasicInformationClusterProductAppearanceStruct?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class EventListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AttributeListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun mfgSpecificPing(timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readDataModelRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readDataModelRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeDataModelRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeDataModelRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readVendorNameAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readVendorNameAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeVendorNameAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeVendorNameAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readVendorIDAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readVendorIDAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeVendorIDAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readProductNameAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readProductNameAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeProductNameAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeProductNameAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readProductIDAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readProductIDAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeProductIDAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readNodeLabelAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readNodeLabelAttribute(): CharString {
// Implementation needs to be added here
}
- fun writeNodeLabelAttribute(callback: DefaultClusterCallback, value: String) {
+ suspend fun writeNodeLabelAttribute(value: String) {
// Implementation needs to be added here
}
- fun writeNodeLabelAttribute(
- callback: DefaultClusterCallback,
- value: String,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeNodeLabelAttribute(value: String, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeNodeLabelAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeNodeLabelAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readLocationAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readLocationAttribute(): CharString {
// Implementation needs to be added here
}
- fun writeLocationAttribute(callback: DefaultClusterCallback, value: String) {
+ suspend fun writeLocationAttribute(value: String) {
// Implementation needs to be added here
}
- fun writeLocationAttribute(
- callback: DefaultClusterCallback,
- value: String,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeLocationAttribute(value: String, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeLocationAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLocationAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readHardwareVersionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readHardwareVersionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeHardwareVersionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readHardwareVersionStringAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readHardwareVersionStringAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeHardwareVersionStringAttribute(
- callback: CharStringAttributeCallback,
+ suspend fun subscribeHardwareVersionStringAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): CharString {
// Implementation needs to be added here
}
- fun readSoftwareVersionAttribute(callback: LongAttributeCallback) {
+ suspend fun readSoftwareVersionAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeSoftwareVersionAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readSoftwareVersionStringAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readSoftwareVersionStringAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeSoftwareVersionStringAttribute(
- callback: CharStringAttributeCallback,
+ suspend fun subscribeSoftwareVersionStringAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): CharString {
// Implementation needs to be added here
}
- fun readManufacturingDateAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readManufacturingDateAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeManufacturingDateAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeManufacturingDateAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readPartNumberAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readPartNumberAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribePartNumberAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePartNumberAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readProductURLAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readProductURLAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeProductURLAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeProductURLAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readProductLabelAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readProductLabelAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeProductLabelAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeProductLabelAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readSerialNumberAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readSerialNumberAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeSerialNumberAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeSerialNumberAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readLocalConfigDisabledAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readLocalConfigDisabledAttribute(): Boolean {
// Implementation needs to be added here
}
- fun writeLocalConfigDisabledAttribute(callback: DefaultClusterCallback, value: Boolean) {
+ suspend fun writeLocalConfigDisabledAttribute(value: Boolean) {
// Implementation needs to be added here
}
- fun writeLocalConfigDisabledAttribute(
- callback: DefaultClusterCallback,
- value: Boolean,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeLocalConfigDisabledAttribute(value: Boolean, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeLocalConfigDisabledAttribute(
- callback: BooleanAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLocalConfigDisabledAttribute(minInterval: Int, maxInterval: Int): Boolean {
// Implementation needs to be added here
}
- fun readReachableAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readReachableAttribute(): Boolean {
// Implementation needs to be added here
}
- fun subscribeReachableAttribute(
- callback: BooleanAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeReachableAttribute(minInterval: Int, maxInterval: Int): Boolean {
// Implementation needs to be added here
}
- fun readUniqueIDAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readUniqueIDAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeUniqueIDAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeUniqueIDAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readCapabilityMinimaAttribute(callback: CapabilityMinimaAttributeCallback) {
+ suspend fun readCapabilityMinimaAttribute(): CapabilityMinimaAttribute {
// Implementation needs to be added here
}
- fun subscribeCapabilityMinimaAttribute(
- callback: CapabilityMinimaAttributeCallback,
+ suspend fun subscribeCapabilityMinimaAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): CapabilityMinimaAttribute {
// Implementation needs to be added here
}
- fun readProductAppearanceAttribute(callback: ProductAppearanceAttributeCallback) {
+ suspend fun readProductAppearanceAttribute(): ProductAppearanceAttribute {
// Implementation needs to be added here
}
- fun subscribeProductAppearanceAttribute(
- callback: ProductAppearanceAttributeCallback,
+ suspend fun subscribeProductAppearanceAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): ProductAppearanceAttribute {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 40u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt
index 13102a5d6e7289..65c305c956aa18 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt
@@ -20,291 +20,192 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class BinaryInputBasicCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 15u
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class GeneratedCommandListAttribute(val value: ArrayList)
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class EventListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
+ class AttributeListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readActiveTextAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readActiveTextAttribute(): CharString {
// Implementation needs to be added here
}
- fun writeActiveTextAttribute(callback: DefaultClusterCallback, value: String) {
+ suspend fun writeActiveTextAttribute(value: String) {
// Implementation needs to be added here
}
- fun writeActiveTextAttribute(
- callback: DefaultClusterCallback,
- value: String,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeActiveTextAttribute(value: String, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeActiveTextAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeActiveTextAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readDescriptionAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readDescriptionAttribute(): CharString {
// Implementation needs to be added here
}
- fun writeDescriptionAttribute(callback: DefaultClusterCallback, value: String) {
+ suspend fun writeDescriptionAttribute(value: String) {
// Implementation needs to be added here
}
- fun writeDescriptionAttribute(
- callback: DefaultClusterCallback,
- value: String,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeDescriptionAttribute(value: String, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeDescriptionAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeDescriptionAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readInactiveTextAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readInactiveTextAttribute(): CharString {
// Implementation needs to be added here
}
- fun writeInactiveTextAttribute(callback: DefaultClusterCallback, value: String) {
+ suspend fun writeInactiveTextAttribute(value: String) {
// Implementation needs to be added here
}
- fun writeInactiveTextAttribute(
- callback: DefaultClusterCallback,
- value: String,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeInactiveTextAttribute(value: String, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeInactiveTextAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeInactiveTextAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readOutOfServiceAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readOutOfServiceAttribute(): Boolean {
// Implementation needs to be added here
}
- fun writeOutOfServiceAttribute(callback: DefaultClusterCallback, value: Boolean) {
+ suspend fun writeOutOfServiceAttribute(value: Boolean) {
// Implementation needs to be added here
}
- fun writeOutOfServiceAttribute(
- callback: DefaultClusterCallback,
- value: Boolean,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeOutOfServiceAttribute(value: Boolean, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeOutOfServiceAttribute(
- callback: BooleanAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeOutOfServiceAttribute(minInterval: Int, maxInterval: Int): Boolean {
// Implementation needs to be added here
}
- fun readPolarityAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPolarityAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribePolarityAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePolarityAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readPresentValueAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readPresentValueAttribute(): Boolean {
// Implementation needs to be added here
}
- fun writePresentValueAttribute(callback: DefaultClusterCallback, value: Boolean) {
+ suspend fun writePresentValueAttribute(value: Boolean) {
// Implementation needs to be added here
}
- fun writePresentValueAttribute(
- callback: DefaultClusterCallback,
- value: Boolean,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writePresentValueAttribute(value: Boolean, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribePresentValueAttribute(
- callback: BooleanAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePresentValueAttribute(minInterval: Int, maxInterval: Int): Boolean {
// Implementation needs to be added here
}
- fun readReliabilityAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readReliabilityAttribute(): UByte {
// Implementation needs to be added here
}
- fun writeReliabilityAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeReliabilityAttribute(value: UInt) {
// Implementation needs to be added here
}
- fun writeReliabilityAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeReliabilityAttribute(value: UInt, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeReliabilityAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeReliabilityAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readStatusFlagsAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readStatusFlagsAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeStatusFlagsAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeStatusFlagsAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readApplicationTypeAttribute(callback: LongAttributeCallback) {
+ suspend fun readApplicationTypeAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeApplicationTypeAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeApplicationTypeAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 15u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt
index 4ed086c2a795c7..10a9bcb5c9f910 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt
@@ -20,153 +20,97 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class BindingCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 30u
- }
-
- interface BindingAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class BindingAttribute(val value: ArrayList)
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class EventListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AttributeListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readBindingAttribute(callback: BindingAttributeCallback) {
+ suspend fun readBindingAttribute(): BindingAttribute {
// Implementation needs to be added here
}
- fun readBindingAttributeWithFabricFilter(
- callback: BindingAttributeCallback,
- isFabricFiltered: Boolean
- ) {
+ suspend fun readBindingAttributeWithFabricFilter(isFabricFiltered: Boolean): BindingAttribute {
// Implementation needs to be added here
}
- fun writeBindingAttribute(
- callback: DefaultClusterCallback,
- value: ArrayList
- ) {
+ suspend fun writeBindingAttribute(value: ArrayList) {
// Implementation needs to be added here
}
- fun writeBindingAttribute(
- callback: DefaultClusterCallback,
+ suspend fun writeBindingAttribute(
value: ArrayList,
timedWriteTimeoutMs: Int
) {
// Implementation needs to be added here
}
- fun subscribeBindingAttribute(
- callback: BindingAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeBindingAttribute(minInterval: Int, maxInterval: Int): BindingAttribute {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 30u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt
index 8d3a717e618c5f..4d3d86e005cbbb 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt
@@ -20,123 +20,80 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class BooleanStateCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 69u
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class GeneratedCommandListAttribute(val value: ArrayList)
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class EventListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AttributeListAttribute(val value: ArrayList)
- fun readStateValueAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readStateValueAttribute(): Boolean {
// Implementation needs to be added here
}
- fun subscribeStateValueAttribute(
- callback: BooleanAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeStateValueAttribute(minInterval: Int, maxInterval: Int): Boolean {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 69u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt
index e7171b39cead18..f8f0764762fdfc 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt
@@ -20,323 +20,221 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 57u
- }
-
- interface ProductAppearanceAttributeCallback {
- fun onSuccess(value: ChipStructs.BridgedDeviceBasicInformationClusterProductAppearanceStruct?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class ProductAppearanceAttribute(
+ val value: ChipStructs.BridgedDeviceBasicInformationClusterProductAppearanceStruct?
+ )
- fun onError(ex: Exception)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class EventListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AttributeListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readVendorNameAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readVendorNameAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeVendorNameAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeVendorNameAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readVendorIDAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readVendorIDAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeVendorIDAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readProductNameAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readProductNameAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeProductNameAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeProductNameAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readNodeLabelAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readNodeLabelAttribute(): CharString {
// Implementation needs to be added here
}
- fun writeNodeLabelAttribute(callback: DefaultClusterCallback, value: String) {
+ suspend fun writeNodeLabelAttribute(value: String) {
// Implementation needs to be added here
}
- fun writeNodeLabelAttribute(
- callback: DefaultClusterCallback,
- value: String,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeNodeLabelAttribute(value: String, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeNodeLabelAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeNodeLabelAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readHardwareVersionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readHardwareVersionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeHardwareVersionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readHardwareVersionStringAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readHardwareVersionStringAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeHardwareVersionStringAttribute(
- callback: CharStringAttributeCallback,
+ suspend fun subscribeHardwareVersionStringAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): CharString {
// Implementation needs to be added here
}
- fun readSoftwareVersionAttribute(callback: LongAttributeCallback) {
+ suspend fun readSoftwareVersionAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeSoftwareVersionAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readSoftwareVersionStringAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readSoftwareVersionStringAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeSoftwareVersionStringAttribute(
- callback: CharStringAttributeCallback,
+ suspend fun subscribeSoftwareVersionStringAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): CharString {
// Implementation needs to be added here
}
- fun readManufacturingDateAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readManufacturingDateAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeManufacturingDateAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeManufacturingDateAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readPartNumberAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readPartNumberAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribePartNumberAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePartNumberAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readProductURLAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readProductURLAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeProductURLAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeProductURLAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readProductLabelAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readProductLabelAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeProductLabelAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeProductLabelAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readSerialNumberAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readSerialNumberAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeSerialNumberAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeSerialNumberAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readReachableAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readReachableAttribute(): Boolean {
// Implementation needs to be added here
}
- fun subscribeReachableAttribute(
- callback: BooleanAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeReachableAttribute(minInterval: Int, maxInterval: Int): Boolean {
// Implementation needs to be added here
}
- fun readUniqueIDAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readUniqueIDAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeUniqueIDAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeUniqueIDAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readProductAppearanceAttribute(callback: ProductAppearanceAttributeCallback) {
+ suspend fun readProductAppearanceAttribute(): ProductAppearanceAttribute {
// Implementation needs to be added here
}
- fun subscribeProductAppearanceAttribute(
- callback: ProductAppearanceAttributeCallback,
+ suspend fun subscribeProductAppearanceAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): ProductAppearanceAttribute {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 57u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt
index 6562abd82bb5c1..ced39ab41618ee 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt
@@ -20,283 +20,188 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 1037u
- }
-
- interface MeasuredValueAttributeCallback {
- fun onSuccess(value: Float?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface MinMeasuredValueAttributeCallback {
- fun onSuccess(value: Float?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface MaxMeasuredValueAttributeCallback {
- fun onSuccess(value: Float?)
-
- fun onError(ex: Exception)
+ class MeasuredValueAttribute(val value: Float?)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface PeakMeasuredValueAttributeCallback {
- fun onSuccess(value: Float?)
+ class MinMeasuredValueAttribute(val value: Float?)
- fun onError(ex: Exception)
+ class MaxMeasuredValueAttribute(val value: Float?)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class PeakMeasuredValueAttribute(val value: Float?)
- interface AverageMeasuredValueAttributeCallback {
- fun onSuccess(value: Float?)
+ class AverageMeasuredValueAttribute(val value: Float?)
- fun onError(ex: Exception)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class EventListAttribute(val value: ArrayList)
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class AttributeListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) {
+ suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute {
// Implementation needs to be added here
}
- fun subscribeMeasuredValueAttribute(
- callback: MeasuredValueAttributeCallback,
+ suspend fun subscribeMeasuredValueAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): MeasuredValueAttribute {
// Implementation needs to be added here
}
- fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) {
+ suspend fun readMinMeasuredValueAttribute(): MinMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun subscribeMinMeasuredValueAttribute(
- callback: MinMeasuredValueAttributeCallback,
+ suspend fun subscribeMinMeasuredValueAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): MinMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) {
+ suspend fun readMaxMeasuredValueAttribute(): MaxMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun subscribeMaxMeasuredValueAttribute(
- callback: MaxMeasuredValueAttributeCallback,
+ suspend fun subscribeMaxMeasuredValueAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): MaxMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun readPeakMeasuredValueAttribute(callback: PeakMeasuredValueAttributeCallback) {
+ suspend fun readPeakMeasuredValueAttribute(): PeakMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun subscribePeakMeasuredValueAttribute(
- callback: PeakMeasuredValueAttributeCallback,
+ suspend fun subscribePeakMeasuredValueAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): PeakMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun readPeakMeasuredValueWindowAttribute(callback: LongAttributeCallback) {
+ suspend fun readPeakMeasuredValueWindowAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribePeakMeasuredValueWindowAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readAverageMeasuredValueAttribute(callback: AverageMeasuredValueAttributeCallback) {
+ suspend fun readAverageMeasuredValueAttribute(): AverageMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun subscribeAverageMeasuredValueAttribute(
- callback: AverageMeasuredValueAttributeCallback,
+ suspend fun subscribeAverageMeasuredValueAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AverageMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun readAverageMeasuredValueWindowAttribute(callback: LongAttributeCallback) {
+ suspend fun readAverageMeasuredValueWindowAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeAverageMeasuredValueWindowAttribute(
- callback: LongAttributeCallback,
+ suspend fun subscribeAverageMeasuredValueWindowAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UInt {
// Implementation needs to be added here
}
- fun readUncertaintyAttribute(callback: FloatAttributeCallback) {
+ suspend fun readUncertaintyAttribute(): Float {
// Implementation needs to be added here
}
- fun subscribeUncertaintyAttribute(
- callback: FloatAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float {
// Implementation needs to be added here
}
- fun readMeasurementUnitAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readMeasurementUnitAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeMeasurementUnitAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readMeasurementMediumAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeMeasurementMediumAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readLevelValueAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readLevelValueAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeLevelValueAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 1037u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt
index 451b4a986c2cf6..f7e0ca1937eeb0 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt
@@ -20,283 +20,188 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 1036u
- }
-
- interface MeasuredValueAttributeCallback {
- fun onSuccess(value: Float?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface MinMeasuredValueAttributeCallback {
- fun onSuccess(value: Float?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface MaxMeasuredValueAttributeCallback {
- fun onSuccess(value: Float?)
-
- fun onError(ex: Exception)
+ class MeasuredValueAttribute(val value: Float?)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface PeakMeasuredValueAttributeCallback {
- fun onSuccess(value: Float?)
+ class MinMeasuredValueAttribute(val value: Float?)
- fun onError(ex: Exception)
+ class MaxMeasuredValueAttribute(val value: Float?)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class PeakMeasuredValueAttribute(val value: Float?)
- interface AverageMeasuredValueAttributeCallback {
- fun onSuccess(value: Float?)
+ class AverageMeasuredValueAttribute(val value: Float?)
- fun onError(ex: Exception)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class EventListAttribute(val value: ArrayList)
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class AttributeListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) {
+ suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute {
// Implementation needs to be added here
}
- fun subscribeMeasuredValueAttribute(
- callback: MeasuredValueAttributeCallback,
+ suspend fun subscribeMeasuredValueAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): MeasuredValueAttribute {
// Implementation needs to be added here
}
- fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) {
+ suspend fun readMinMeasuredValueAttribute(): MinMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun subscribeMinMeasuredValueAttribute(
- callback: MinMeasuredValueAttributeCallback,
+ suspend fun subscribeMinMeasuredValueAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): MinMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) {
+ suspend fun readMaxMeasuredValueAttribute(): MaxMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun subscribeMaxMeasuredValueAttribute(
- callback: MaxMeasuredValueAttributeCallback,
+ suspend fun subscribeMaxMeasuredValueAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): MaxMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun readPeakMeasuredValueAttribute(callback: PeakMeasuredValueAttributeCallback) {
+ suspend fun readPeakMeasuredValueAttribute(): PeakMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun subscribePeakMeasuredValueAttribute(
- callback: PeakMeasuredValueAttributeCallback,
+ suspend fun subscribePeakMeasuredValueAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): PeakMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun readPeakMeasuredValueWindowAttribute(callback: LongAttributeCallback) {
+ suspend fun readPeakMeasuredValueWindowAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribePeakMeasuredValueWindowAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readAverageMeasuredValueAttribute(callback: AverageMeasuredValueAttributeCallback) {
+ suspend fun readAverageMeasuredValueAttribute(): AverageMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun subscribeAverageMeasuredValueAttribute(
- callback: AverageMeasuredValueAttributeCallback,
+ suspend fun subscribeAverageMeasuredValueAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AverageMeasuredValueAttribute {
// Implementation needs to be added here
}
- fun readAverageMeasuredValueWindowAttribute(callback: LongAttributeCallback) {
+ suspend fun readAverageMeasuredValueWindowAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeAverageMeasuredValueWindowAttribute(
- callback: LongAttributeCallback,
+ suspend fun subscribeAverageMeasuredValueWindowAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UInt {
// Implementation needs to be added here
}
- fun readUncertaintyAttribute(callback: FloatAttributeCallback) {
+ suspend fun readUncertaintyAttribute(): Float {
// Implementation needs to be added here
}
- fun subscribeUncertaintyAttribute(
- callback: FloatAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float {
// Implementation needs to be added here
}
- fun readMeasurementUnitAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readMeasurementUnitAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeMeasurementUnitAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readMeasurementMediumAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeMeasurementMediumAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readLevelValueAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readLevelValueAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeLevelValueAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 1036u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt
index 125a7045445cf1..92cb96d50a1e1e 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt
@@ -20,214 +20,141 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class ChannelCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 1284u
- }
-
- fun changeChannel(callback: ChangeChannelResponseCallback, match: String) {
- // Implementation needs to be added here
- }
-
- fun changeChannel(
- callback: ChangeChannelResponseCallback,
- match: String,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun changeChannelByNumber(
- callback: DefaultClusterCallback,
- majorNumber: Integer,
- minorNumber: Integer
- ) {
- // Implementation needs to be added here
- }
-
- fun changeChannelByNumber(
- callback: DefaultClusterCallback,
- majorNumber: Integer,
- minorNumber: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun skipChannel(callback: DefaultClusterCallback, count: Integer) {
- // Implementation needs to be added here
- }
-
- fun skipChannel(callback: DefaultClusterCallback, count: Integer, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
-
- interface ChangeChannelResponseCallback {
- fun onSuccess(status: Integer, data: String?)
-
- fun onError(error: Exception)
- }
-
- interface ChannelListAttributeCallback {
- fun onSuccess(value: ArrayList?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface LineupAttributeCallback {
- fun onSuccess(value: ChipStructs.ChannelClusterLineupInfoStruct?)
-
- fun onError(ex: Exception)
+ class ChangeChannelResponse(val status: UInt, val data: String?)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface CurrentChannelAttributeCallback {
- fun onSuccess(value: ChipStructs.ChannelClusterChannelInfoStruct?)
+ class ChannelListAttribute(val value: ArrayList?)
- fun onError(ex: Exception)
+ class LineupAttribute(val value: ChipStructs.ChannelClusterLineupInfoStruct?)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class CurrentChannelAttribute(val value: ChipStructs.ChannelClusterChannelInfoStruct?)
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class EventListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AttributeListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun changeChannel(
+ match: String,
+ timedInvokeTimeoutMs: Int? = null
+ ): ChangeChannelResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun changeChannelByNumber(
+ majorNumber: UShort,
+ minorNumber: UShort,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun skipChannel(count: Short, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun readChannelListAttribute(callback: ChannelListAttributeCallback) {
+ suspend fun readChannelListAttribute(): ChannelListAttribute {
// Implementation needs to be added here
}
- fun subscribeChannelListAttribute(
- callback: ChannelListAttributeCallback,
+ suspend fun subscribeChannelListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): ChannelListAttribute {
// Implementation needs to be added here
}
- fun readLineupAttribute(callback: LineupAttributeCallback) {
+ suspend fun readLineupAttribute(): LineupAttribute {
// Implementation needs to be added here
}
- fun subscribeLineupAttribute(
- callback: LineupAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLineupAttribute(minInterval: Int, maxInterval: Int): LineupAttribute {
// Implementation needs to be added here
}
- fun readCurrentChannelAttribute(callback: CurrentChannelAttributeCallback) {
+ suspend fun readCurrentChannelAttribute(): CurrentChannelAttribute {
// Implementation needs to be added here
}
- fun subscribeCurrentChannelAttribute(
- callback: CurrentChannelAttributeCallback,
+ suspend fun subscribeCurrentChannelAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): CurrentChannelAttribute {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 1284u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt
index 0faf5c751ba20b..0529929d21ee5b 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt
@@ -20,1413 +20,943 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class ColorControlCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 768u
- }
+ class NumberOfPrimariesAttribute(val value: UByte?)
- fun moveToHue(
- callback: DefaultClusterCallback,
- hue: Integer,
- direction: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
- // Implementation needs to be added here
- }
+ class Primary1IntensityAttribute(val value: UByte?)
- fun moveToHue(
- callback: DefaultClusterCallback,
- hue: Integer,
- direction: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class Primary2IntensityAttribute(val value: UByte?)
- fun moveHue(
- callback: DefaultClusterCallback,
- moveMode: Integer,
- rate: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
- // Implementation needs to be added here
- }
+ class Primary3IntensityAttribute(val value: UByte?)
- fun moveHue(
- callback: DefaultClusterCallback,
- moveMode: Integer,
- rate: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class Primary4IntensityAttribute(val value: UByte?)
- fun stepHue(
- callback: DefaultClusterCallback,
- stepMode: Integer,
- stepSize: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
- // Implementation needs to be added here
- }
+ class Primary5IntensityAttribute(val value: UByte?)
- fun stepHue(
- callback: DefaultClusterCallback,
- stepMode: Integer,
- stepSize: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class Primary6IntensityAttribute(val value: UByte?)
- fun moveToSaturation(
- callback: DefaultClusterCallback,
- saturation: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
- // Implementation needs to be added here
- }
+ class ColorPointRIntensityAttribute(val value: UByte?)
- fun moveToSaturation(
- callback: DefaultClusterCallback,
- saturation: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class ColorPointGIntensityAttribute(val value: UByte?)
- fun moveSaturation(
- callback: DefaultClusterCallback,
- moveMode: Integer,
- rate: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
- // Implementation needs to be added here
- }
+ class ColorPointBIntensityAttribute(val value: UByte?)
- fun moveSaturation(
- callback: DefaultClusterCallback,
- moveMode: Integer,
- rate: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class StartUpColorTemperatureMiredsAttribute(val value: UShort?)
- fun stepSaturation(
- callback: DefaultClusterCallback,
- stepMode: Integer,
- stepSize: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
- // Implementation needs to be added here
- }
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun stepSaturation(
- callback: DefaultClusterCallback,
- stepMode: Integer,
- stepSize: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun moveToHueAndSaturation(
- callback: DefaultClusterCallback,
- hue: Integer,
- saturation: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
- // Implementation needs to be added here
- }
-
- fun moveToHueAndSaturation(
- callback: DefaultClusterCallback,
- hue: Integer,
- saturation: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class EventListAttribute(val value: ArrayList)
- fun moveToColor(
- callback: DefaultClusterCallback,
- colorX: Integer,
- colorY: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
- // Implementation needs to be added here
- }
-
- fun moveToColor(
- callback: DefaultClusterCallback,
- colorX: Integer,
- colorY: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
+ class AttributeListAttribute(val value: ArrayList)
- fun moveColor(
- callback: DefaultClusterCallback,
- rateX: Integer,
- rateY: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
+ suspend fun moveToHue(
+ hue: UByte,
+ direction: UInt,
+ transitionTime: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun moveColor(
- callback: DefaultClusterCallback,
- rateX: Integer,
- rateY: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
+ suspend fun moveHue(
+ moveMode: UInt,
+ rate: UByte,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun stepColor(
- callback: DefaultClusterCallback,
- stepX: Integer,
- stepY: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
+ suspend fun stepHue(
+ stepMode: UInt,
+ stepSize: UByte,
+ transitionTime: UByte,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun stepColor(
- callback: DefaultClusterCallback,
- stepX: Integer,
- stepY: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
+ suspend fun moveToSaturation(
+ saturation: UByte,
+ transitionTime: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
-
- fun moveToColorTemperature(
- callback: DefaultClusterCallback,
- colorTemperatureMireds: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
+
+ suspend fun moveSaturation(
+ moveMode: UInt,
+ rate: UByte,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
- }
-
- fun moveToColorTemperature(
- callback: DefaultClusterCallback,
- colorTemperatureMireds: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun stepSaturation(
+ stepMode: UInt,
+ stepSize: UByte,
+ transitionTime: UByte,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun moveToHueAndSaturation(
+ hue: UByte,
+ saturation: UByte,
+ transitionTime: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun moveToColor(
+ colorX: UShort,
+ colorY: UShort,
+ transitionTime: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun moveColor(
+ rateX: Short,
+ rateY: Short,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun stepColor(
+ stepX: Short,
+ stepY: Short,
+ transitionTime: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun moveToColorTemperature(
+ colorTemperatureMireds: UShort,
+ transitionTime: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun enhancedMoveToHue(
+ enhancedHue: UShort,
+ direction: UInt,
+ transitionTime: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun enhancedMoveHue(
+ moveMode: UInt,
+ rate: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun enhancedStepHue(
+ stepMode: UInt,
+ stepSize: UShort,
+ transitionTime: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun enhancedMoveToHue(
- callback: DefaultClusterCallback,
- enhancedHue: Integer,
- direction: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
+ suspend fun enhancedMoveToHueAndSaturation(
+ enhancedHue: UShort,
+ saturation: UByte,
+ transitionTime: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun enhancedMoveToHue(
- callback: DefaultClusterCallback,
- enhancedHue: Integer,
- direction: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
+ suspend fun colorLoopSet(
+ updateFlags: UInt,
+ action: UInt,
+ direction: UInt,
+ time: UShort,
+ startHue: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun enhancedMoveHue(
- callback: DefaultClusterCallback,
- moveMode: Integer,
- rate: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
+ suspend fun stopMoveStep(
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun enhancedMoveHue(
- callback: DefaultClusterCallback,
- moveMode: Integer,
- rate: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
+ suspend fun moveColorTemperature(
+ moveMode: UInt,
+ rate: UShort,
+ colorTemperatureMinimumMireds: UShort,
+ colorTemperatureMaximumMireds: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun enhancedStepHue(
- callback: DefaultClusterCallback,
- stepMode: Integer,
- stepSize: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
+ suspend fun stepColorTemperature(
+ stepMode: UInt,
+ stepSize: UShort,
+ transitionTime: UShort,
+ colorTemperatureMinimumMireds: UShort,
+ colorTemperatureMaximumMireds: UShort,
+ optionsMask: UInt,
+ optionsOverride: UInt,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun enhancedStepHue(
- callback: DefaultClusterCallback,
- stepMode: Integer,
- stepSize: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
+ suspend fun readCurrentHueAttribute(): UByte {
// Implementation needs to be added here
}
- fun enhancedMoveToHueAndSaturation(
- callback: DefaultClusterCallback,
- enhancedHue: Integer,
- saturation: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
+ suspend fun subscribeCurrentHueAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun enhancedMoveToHueAndSaturation(
- callback: DefaultClusterCallback,
- enhancedHue: Integer,
- saturation: Integer,
- transitionTime: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
+ suspend fun readCurrentSaturationAttribute(): UByte {
// Implementation needs to be added here
}
- fun colorLoopSet(
- callback: DefaultClusterCallback,
- updateFlags: Integer,
- action: Integer,
- direction: Integer,
- time: Integer,
- startHue: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
+ suspend fun subscribeCurrentSaturationAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun colorLoopSet(
- callback: DefaultClusterCallback,
- updateFlags: Integer,
- action: Integer,
- direction: Integer,
- time: Integer,
- startHue: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
+ suspend fun readRemainingTimeAttribute(): UShort {
// Implementation needs to be added here
}
- fun stopMoveStep(
- callback: DefaultClusterCallback,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
+ suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun stopMoveStep(
- callback: DefaultClusterCallback,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
+ suspend fun readCurrentXAttribute(): UShort {
// Implementation needs to be added here
}
- fun moveColorTemperature(
- callback: DefaultClusterCallback,
- moveMode: Integer,
- rate: Integer,
- colorTemperatureMinimumMireds: Integer,
- colorTemperatureMaximumMireds: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
+ suspend fun subscribeCurrentXAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun moveColorTemperature(
- callback: DefaultClusterCallback,
- moveMode: Integer,
- rate: Integer,
- colorTemperatureMinimumMireds: Integer,
- colorTemperatureMaximumMireds: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
+ suspend fun readCurrentYAttribute(): UShort {
// Implementation needs to be added here
}
- fun stepColorTemperature(
- callback: DefaultClusterCallback,
- stepMode: Integer,
- stepSize: Integer,
- transitionTime: Integer,
- colorTemperatureMinimumMireds: Integer,
- colorTemperatureMaximumMireds: Integer,
- optionsMask: Integer,
- optionsOverride: Integer
- ) {
+ suspend fun subscribeCurrentYAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun stepColorTemperature(
- callback: DefaultClusterCallback,
- stepMode: Integer,
- stepSize: Integer,
- transitionTime: Integer,
- colorTemperatureMinimumMireds: Integer,
- colorTemperatureMaximumMireds: Integer,
- optionsMask: Integer,
- optionsOverride: Integer,
- timedInvokeTimeoutMs: Int
- ) {
+ suspend fun readDriftCompensationAttribute(): UByte {
// Implementation needs to be added here
}
- interface NumberOfPrimariesAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface Primary1IntensityAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface Primary2IntensityAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface Primary3IntensityAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface Primary4IntensityAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface Primary5IntensityAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface Primary6IntensityAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface ColorPointRIntensityAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface ColorPointGIntensityAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface ColorPointBIntensityAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface StartUpColorTemperatureMiredsAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readCurrentHueAttribute(callback: IntegerAttributeCallback) {
- // Implementation needs to be added here
- }
-
- fun subscribeCurrentHueAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun readCurrentSaturationAttribute(callback: IntegerAttributeCallback) {
- // Implementation needs to be added here
- }
-
- fun subscribeCurrentSaturationAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun readRemainingTimeAttribute(callback: IntegerAttributeCallback) {
- // Implementation needs to be added here
- }
-
- fun subscribeRemainingTimeAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeDriftCompensationAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readCurrentXAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readCompensationTextAttribute(): CharString {
// Implementation needs to be added here
}
- fun subscribeCurrentXAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeCompensationTextAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readCurrentYAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorTemperatureMiredsAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeCurrentYAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeColorTemperatureMiredsAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readDriftCompensationAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorModeAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeDriftCompensationAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeColorModeAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readCompensationTextAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readOptionsAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeCompensationTextAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun writeOptionsAttribute(value: UInt) {
// Implementation needs to be added here
}
- fun readColorTemperatureMiredsAttribute(callback: IntegerAttributeCallback) {
+ suspend fun writeOptionsAttribute(value: UInt, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeColorTemperatureMiredsAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeOptionsAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readColorModeAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readNumberOfPrimariesAttribute(): NumberOfPrimariesAttribute {
// Implementation needs to be added here
}
- fun subscribeColorModeAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeNumberOfPrimariesAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): NumberOfPrimariesAttribute {
// Implementation needs to be added here
}
- fun readOptionsAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPrimary1XAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeOptionsAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun subscribePrimary1XAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun writeOptionsAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun readPrimary1YAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeOptionsAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePrimary1YAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readNumberOfPrimariesAttribute(callback: NumberOfPrimariesAttributeCallback) {
+ suspend fun readPrimary1IntensityAttribute(): Primary1IntensityAttribute {
// Implementation needs to be added here
}
- fun subscribeNumberOfPrimariesAttribute(
- callback: NumberOfPrimariesAttributeCallback,
+ suspend fun subscribePrimary1IntensityAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): Primary1IntensityAttribute {
// Implementation needs to be added here
}
- fun readPrimary1XAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPrimary2XAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribePrimary1XAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePrimary2XAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readPrimary1YAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPrimary2YAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribePrimary1YAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePrimary2YAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readPrimary1IntensityAttribute(callback: Primary1IntensityAttributeCallback) {
+ suspend fun readPrimary2IntensityAttribute(): Primary2IntensityAttribute {
// Implementation needs to be added here
}
- fun subscribePrimary1IntensityAttribute(
- callback: Primary1IntensityAttributeCallback,
+ suspend fun subscribePrimary2IntensityAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): Primary2IntensityAttribute {
// Implementation needs to be added here
}
- fun readPrimary2XAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPrimary3XAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribePrimary2XAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePrimary3XAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readPrimary2YAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPrimary3YAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribePrimary2YAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePrimary3YAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readPrimary2IntensityAttribute(callback: Primary2IntensityAttributeCallback) {
+ suspend fun readPrimary3IntensityAttribute(): Primary3IntensityAttribute {
// Implementation needs to be added here
}
- fun subscribePrimary2IntensityAttribute(
- callback: Primary2IntensityAttributeCallback,
+ suspend fun subscribePrimary3IntensityAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): Primary3IntensityAttribute {
// Implementation needs to be added here
}
- fun readPrimary3XAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPrimary4XAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribePrimary3XAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePrimary4XAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readPrimary3YAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPrimary4YAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribePrimary3YAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePrimary4YAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readPrimary3IntensityAttribute(callback: Primary3IntensityAttributeCallback) {
+ suspend fun readPrimary4IntensityAttribute(): Primary4IntensityAttribute {
// Implementation needs to be added here
}
- fun subscribePrimary3IntensityAttribute(
- callback: Primary3IntensityAttributeCallback,
+ suspend fun subscribePrimary4IntensityAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): Primary4IntensityAttribute {
// Implementation needs to be added here
}
- fun readPrimary4XAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPrimary5XAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribePrimary4XAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePrimary5XAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readPrimary4YAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPrimary5YAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribePrimary4YAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePrimary5YAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readPrimary4IntensityAttribute(callback: Primary4IntensityAttributeCallback) {
+ suspend fun readPrimary5IntensityAttribute(): Primary5IntensityAttribute {
// Implementation needs to be added here
}
- fun subscribePrimary4IntensityAttribute(
- callback: Primary4IntensityAttributeCallback,
+ suspend fun subscribePrimary5IntensityAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): Primary5IntensityAttribute {
// Implementation needs to be added here
}
- fun readPrimary5XAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPrimary6XAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribePrimary5XAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePrimary6XAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readPrimary5YAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readPrimary6YAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribePrimary5YAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePrimary6YAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readPrimary5IntensityAttribute(callback: Primary5IntensityAttributeCallback) {
+ suspend fun readPrimary6IntensityAttribute(): Primary6IntensityAttribute {
// Implementation needs to be added here
}
- fun subscribePrimary5IntensityAttribute(
- callback: Primary5IntensityAttributeCallback,
+ suspend fun subscribePrimary6IntensityAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): Primary6IntensityAttribute {
// Implementation needs to be added here
}
- fun readPrimary6XAttribute(callback: IntegerAttributeCallback) {
- // Implementation needs to be added here
- }
-
- fun subscribePrimary6XAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun readWhitePointXAttribute(): UShort {
// Implementation needs to be added here
}
- fun readPrimary6YAttribute(callback: IntegerAttributeCallback) {
+ suspend fun writeWhitePointXAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun subscribePrimary6YAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun writeWhitePointXAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun readPrimary6IntensityAttribute(callback: Primary6IntensityAttributeCallback) {
+ suspend fun subscribeWhitePointXAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun subscribePrimary6IntensityAttribute(
- callback: Primary6IntensityAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun readWhitePointYAttribute(): UShort {
// Implementation needs to be added here
}
- fun readWhitePointXAttribute(callback: IntegerAttributeCallback) {
+ suspend fun writeWhitePointYAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeWhitePointXAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeWhitePointYAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun writeWhitePointXAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun subscribeWhitePointYAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun subscribeWhitePointXAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun readColorPointRXAttribute(): UShort {
// Implementation needs to be added here
}
- fun readWhitePointYAttribute(callback: IntegerAttributeCallback) {
+ suspend fun writeColorPointRXAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeWhitePointYAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeColorPointRXAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun writeWhitePointYAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun subscribeColorPointRXAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun subscribeWhitePointYAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun readColorPointRYAttribute(): UShort {
// Implementation needs to be added here
}
- fun readColorPointRXAttribute(callback: IntegerAttributeCallback) {
+ suspend fun writeColorPointRYAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeColorPointRXAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeColorPointRYAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun writeColorPointRXAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun subscribeColorPointRYAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun subscribeColorPointRXAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun readColorPointRIntensityAttribute(): ColorPointRIntensityAttribute {
// Implementation needs to be added here
}
- fun readColorPointRYAttribute(callback: IntegerAttributeCallback) {
+ suspend fun writeColorPointRIntensityAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeColorPointRYAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeColorPointRIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun writeColorPointRYAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun subscribeColorPointRYAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeColorPointRIntensityAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): ColorPointRIntensityAttribute {
// Implementation needs to be added here
}
- fun readColorPointRIntensityAttribute(callback: ColorPointRIntensityAttributeCallback) {
+ suspend fun readColorPointGXAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeColorPointRIntensityAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeColorPointGXAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeColorPointRIntensityAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeColorPointGXAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeColorPointRIntensityAttribute(
- callback: ColorPointRIntensityAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeColorPointGXAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readColorPointGXAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorPointGYAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeColorPointGXAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeColorPointGYAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeColorPointGXAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeColorPointGYAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeColorPointGXAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeColorPointGYAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readColorPointGYAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorPointGIntensityAttribute(): ColorPointGIntensityAttribute {
// Implementation needs to be added here
}
- fun writeColorPointGYAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeColorPointGIntensityAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeColorPointGYAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeColorPointGIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeColorPointGYAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeColorPointGIntensityAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): ColorPointGIntensityAttribute {
// Implementation needs to be added here
}
- fun readColorPointGIntensityAttribute(callback: ColorPointGIntensityAttributeCallback) {
+ suspend fun readColorPointBXAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeColorPointGIntensityAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeColorPointBXAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeColorPointGIntensityAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeColorPointBXAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeColorPointGIntensityAttribute(
- callback: ColorPointGIntensityAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeColorPointBXAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readColorPointBXAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorPointBYAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeColorPointBXAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeColorPointBYAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeColorPointBXAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeColorPointBYAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeColorPointBXAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeColorPointBYAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readColorPointBYAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorPointBIntensityAttribute(): ColorPointBIntensityAttribute {
// Implementation needs to be added here
}
- fun writeColorPointBYAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeColorPointBIntensityAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeColorPointBYAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeColorPointBIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeColorPointBYAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeColorPointBIntensityAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): ColorPointBIntensityAttribute {
// Implementation needs to be added here
}
- fun readColorPointBIntensityAttribute(callback: ColorPointBIntensityAttributeCallback) {
+ suspend fun readEnhancedCurrentHueAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeColorPointBIntensityAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun subscribeEnhancedCurrentHueAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun writeColorPointBIntensityAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun readEnhancedColorModeAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeColorPointBIntensityAttribute(
- callback: ColorPointBIntensityAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEnhancedColorModeAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readEnhancedCurrentHueAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorLoopActiveAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeEnhancedCurrentHueAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeColorLoopActiveAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readEnhancedColorModeAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorLoopDirectionAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeEnhancedColorModeAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeColorLoopDirectionAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readColorLoopActiveAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorLoopTimeAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeColorLoopActiveAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeColorLoopTimeAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readColorLoopDirectionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorLoopStartEnhancedHueAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeColorLoopDirectionAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeColorLoopStartEnhancedHueAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readColorLoopTimeAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorLoopStoredEnhancedHueAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeColorLoopTimeAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeColorLoopStoredEnhancedHueAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readColorLoopStartEnhancedHueAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorCapabilitiesAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeColorLoopStartEnhancedHueAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeColorCapabilitiesAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readColorLoopStoredEnhancedHueAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorTempPhysicalMinMiredsAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeColorLoopStoredEnhancedHueAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeColorTempPhysicalMinMiredsAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readColorCapabilitiesAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readColorTempPhysicalMaxMiredsAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeColorCapabilitiesAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeColorTempPhysicalMaxMiredsAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readColorTempPhysicalMinMiredsAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readCoupleColorTempToLevelMinMiredsAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeColorTempPhysicalMinMiredsAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeCoupleColorTempToLevelMinMiredsAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readColorTempPhysicalMaxMiredsAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readStartUpColorTemperatureMiredsAttribute(): StartUpColorTemperatureMiredsAttribute {
// Implementation needs to be added here
}
- fun subscribeColorTempPhysicalMaxMiredsAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun writeStartUpColorTemperatureMiredsAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun readCoupleColorTempToLevelMinMiredsAttribute(callback: IntegerAttributeCallback) {
+ suspend fun writeStartUpColorTemperatureMiredsAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeCoupleColorTempToLevelMinMiredsAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeStartUpColorTemperatureMiredsAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): StartUpColorTemperatureMiredsAttribute {
// Implementation needs to be added here
}
- fun readStartUpColorTemperatureMiredsAttribute(
- callback: StartUpColorTemperatureMiredsAttributeCallback
- ) {
- // Implementation needs to be added here
- }
-
- fun writeStartUpColorTemperatureMiredsAttribute(
- callback: DefaultClusterCallback,
- value: Integer
- ) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun writeStartUpColorTemperatureMiredsAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun subscribeStartUpColorTemperatureMiredsAttribute(
- callback: StartUpColorTemperatureMiredsAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
- // Implementation needs to be added here
- }
-
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
- // Implementation needs to be added here
+ companion object {
+ const val CLUSTER_ID: UInt = 768u
}
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt
index 31c53d05ec49b6..014ba9f1828189 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt
@@ -20,199 +20,132 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class ContentLauncherCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 1290u
- }
+ class LauncherResponse(val status: UInt, val data: String?)
- fun launchContent(
- callback: LauncherResponseCallback,
- search: ChipStructs.ContentLauncherClusterContentSearchStruct,
- autoPlay: Boolean,
- data: String?
- ) {
- // Implementation needs to be added here
- }
+ class AcceptHeaderAttribute(val value: ArrayList?)
- fun launchContent(
- callback: LauncherResponseCallback,
+ class GeneratedCommandListAttribute(val value: ArrayList)
+
+ class AcceptedCommandListAttribute(val value: ArrayList)
+
+ class EventListAttribute(val value: ArrayList)
+
+ class AttributeListAttribute(val value: ArrayList)
+
+ suspend fun launchContent(
search: ChipStructs.ContentLauncherClusterContentSearchStruct,
autoPlay: Boolean,
data: String?,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun launchURL(
- callback: LauncherResponseCallback,
- contentURL: String,
- displayString: String?,
- brandingInformation: ChipStructs.ContentLauncherClusterBrandingInformationStruct?
- ) {
- // Implementation needs to be added here
+ timedInvokeTimeoutMs: Int? = null
+ ): LauncherResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun launchURL(
- callback: LauncherResponseCallback,
+ suspend fun launchURL(
contentURL: String,
displayString: String?,
brandingInformation: ChipStructs.ContentLauncherClusterBrandingInformationStruct?,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
+ timedInvokeTimeoutMs: Int? = null
+ ): LauncherResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface LauncherResponseCallback {
- fun onSuccess(status: Integer, data: String?)
-
- fun onError(error: Exception)
- }
-
- interface AcceptHeaderAttributeCallback {
- fun onSuccess(value: ArrayList?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readAcceptHeaderAttribute(callback: AcceptHeaderAttributeCallback) {
+ suspend fun readAcceptHeaderAttribute(): AcceptHeaderAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptHeaderAttribute(
- callback: AcceptHeaderAttributeCallback,
+ suspend fun subscribeAcceptHeaderAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptHeaderAttribute {
// Implementation needs to be added here
}
- fun readSupportedStreamingProtocolsAttribute(callback: LongAttributeCallback) {
+ suspend fun readSupportedStreamingProtocolsAttribute(): UInt {
// Implementation needs to be added here
}
- fun writeSupportedStreamingProtocolsAttribute(callback: DefaultClusterCallback, value: Long) {
+ suspend fun writeSupportedStreamingProtocolsAttribute(value: ULong) {
// Implementation needs to be added here
}
- fun writeSupportedStreamingProtocolsAttribute(
- callback: DefaultClusterCallback,
- value: Long,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeSupportedStreamingProtocolsAttribute(value: ULong, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeSupportedStreamingProtocolsAttribute(
- callback: LongAttributeCallback,
+ suspend fun subscribeSupportedStreamingProtocolsAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UInt {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 1290u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt
index fc0bc78ddddbfd..d0cedbee38f8ec 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt
@@ -20,211 +20,133 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class DescriptorCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 29u
- }
-
- interface DeviceTypeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface ServerListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
+ class DeviceTypeListAttribute(
+ val value: ArrayList
+ )
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class ServerListAttribute(val value: ArrayList)
- interface ClientListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class ClientListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class PartsListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class TagListAttribute(val value: ArrayList?)
- interface PartsListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class EventListAttribute(val value: ArrayList)
- interface TagListAttributeCallback {
- fun onSuccess(value: ArrayList?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AttributeListAttribute(val value: ArrayList)
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readDeviceTypeListAttribute(callback: DeviceTypeListAttributeCallback) {
+ suspend fun readDeviceTypeListAttribute(): DeviceTypeListAttribute {
// Implementation needs to be added here
}
- fun subscribeDeviceTypeListAttribute(
- callback: DeviceTypeListAttributeCallback,
+ suspend fun subscribeDeviceTypeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): DeviceTypeListAttribute {
// Implementation needs to be added here
}
- fun readServerListAttribute(callback: ServerListAttributeCallback) {
+ suspend fun readServerListAttribute(): ServerListAttribute {
// Implementation needs to be added here
}
- fun subscribeServerListAttribute(
- callback: ServerListAttributeCallback,
+ suspend fun subscribeServerListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): ServerListAttribute {
// Implementation needs to be added here
}
- fun readClientListAttribute(callback: ClientListAttributeCallback) {
+ suspend fun readClientListAttribute(): ClientListAttribute {
// Implementation needs to be added here
}
- fun subscribeClientListAttribute(
- callback: ClientListAttributeCallback,
+ suspend fun subscribeClientListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): ClientListAttribute {
// Implementation needs to be added here
}
- fun readPartsListAttribute(callback: PartsListAttributeCallback) {
+ suspend fun readPartsListAttribute(): PartsListAttribute {
// Implementation needs to be added here
}
- fun subscribePartsListAttribute(
- callback: PartsListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribePartsListAttribute(minInterval: Int, maxInterval: Int): PartsListAttribute {
// Implementation needs to be added here
}
- fun readTagListAttribute(callback: TagListAttributeCallback) {
+ suspend fun readTagListAttribute(): TagListAttribute {
// Implementation needs to be added here
}
- fun subscribeTagListAttribute(
- callback: TagListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeTagListAttribute(minInterval: Int, maxInterval: Int): TagListAttribute {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 29u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt
index 1eaf5b35f573f4..fbf46e3991d075 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt
@@ -20,136 +20,92 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class DiagnosticLogsCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 50u
- }
-
- fun retrieveLogsRequest(
- callback: RetrieveLogsResponseCallback,
- intent: Integer,
- requestedProtocol: Integer,
- transferFileDesignator: String?
- ) {
- // Implementation needs to be added here
- }
-
- fun retrieveLogsRequest(
- callback: RetrieveLogsResponseCallback,
- intent: Integer,
- requestedProtocol: Integer,
- transferFileDesignator: String?,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- interface RetrieveLogsResponseCallback {
- fun onSuccess(status: Integer, logContent: ByteArray, UTCTimeStamp: Long?, timeSinceBoot: Long?)
-
- fun onError(error: Exception)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class RetrieveLogsResponse(
+ val status: UInt,
+ val logContent: ByteArray,
+ val UTCTimeStamp: ULong?,
+ val timeSinceBoot: ULong?
+ )
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class EventListAttribute(val value: ArrayList)
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class AttributeListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun retrieveLogsRequest(
+ intent: UInt,
+ requestedProtocol: UInt,
+ transferFileDesignator: String?,
+ timedInvokeTimeoutMs: Int? = null
+ ): RetrieveLogsResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 50u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt
index fca1a80c6793eb..a13c51a52da55f 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt
@@ -20,163 +20,120 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class DishwasherAlarmCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 93u
- }
-
- fun reset(callback: DefaultClusterCallback, alarms: Long) {
- // Implementation needs to be added here
- }
-
- fun reset(callback: DefaultClusterCallback, alarms: Long, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
-
- fun modifyEnabledAlarms(callback: DefaultClusterCallback, mask: Long) {
- // Implementation needs to be added here
- }
-
- fun modifyEnabledAlarms(callback: DefaultClusterCallback, mask: Long, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AcceptedCommandListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class EventListAttribute(val value: ArrayList)
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class AttributeListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun reset(alarms: ULong, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun modifyEnabledAlarms(mask: ULong, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun readMaskAttribute(callback: LongAttributeCallback) {
+ suspend fun readMaskAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeMaskAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) {
+ suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readLatchAttribute(callback: LongAttributeCallback) {
+ suspend fun readLatchAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeLatchAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) {
+ suspend fun subscribeLatchAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readStateAttribute(callback: LongAttributeCallback) {
+ suspend fun readStateAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeStateAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) {
+ suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readSupportedAttribute(callback: LongAttributeCallback) {
+ suspend fun readSupportedAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeSupportedAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 93u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt
index 22ea8827c31e0c..f24f914fc1075e 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt
@@ -20,225 +20,147 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class DishwasherModeCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 89u
- }
-
- fun changeToMode(callback: ChangeToModeResponseCallback, newMode: Integer) {
- // Implementation needs to be added here
- }
+ class ChangeToModeResponse(val status: UInt, val statusText: String?)
- fun changeToMode(
- callback: ChangeToModeResponseCallback,
- newMode: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- interface ChangeToModeResponseCallback {
- fun onSuccess(status: Integer, statusText: String?)
+ class SupportedModesAttribute(
+ val value: ArrayList
+ )
- fun onError(error: Exception)
- }
-
- interface SupportedModesAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class StartUpModeAttribute(val value: UByte?)
- fun onError(ex: Exception)
+ class OnModeAttribute(val value: UByte?)
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class GeneratedCommandListAttribute(val value: ArrayList)
- interface StartUpModeAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface OnModeAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AcceptedCommandListAttribute(val value: ArrayList)
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class EventListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
+ class AttributeListAttribute(val value: ArrayList)
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun changeToMode(
+ newMode: UByte,
+ timedInvokeTimeoutMs: Int? = null
+ ): ChangeToModeResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readSupportedModesAttribute(callback: SupportedModesAttributeCallback) {
+ suspend fun readSupportedModesAttribute(): SupportedModesAttribute {
// Implementation needs to be added here
}
- fun subscribeSupportedModesAttribute(
- callback: SupportedModesAttributeCallback,
+ suspend fun subscribeSupportedModesAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): SupportedModesAttribute {
// Implementation needs to be added here
}
- fun readCurrentModeAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readCurrentModeAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeCurrentModeAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readStartUpModeAttribute(callback: StartUpModeAttributeCallback) {
+ suspend fun readStartUpModeAttribute(): StartUpModeAttribute {
// Implementation needs to be added here
}
- fun writeStartUpModeAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeStartUpModeAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeStartUpModeAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeStartUpModeAttribute(
- callback: StartUpModeAttributeCallback,
+ suspend fun subscribeStartUpModeAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): StartUpModeAttribute {
// Implementation needs to be added here
}
- fun readOnModeAttribute(callback: OnModeAttributeCallback) {
+ suspend fun readOnModeAttribute(): OnModeAttribute {
// Implementation needs to be added here
}
- fun writeOnModeAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeOnModeAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeOnModeAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeOnModeAttribute(
- callback: OnModeAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 89u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt
index 38253f104f8acb..53e16956f29cbd 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt
@@ -20,1093 +20,823 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class DoorLockCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 257u
- }
-
- fun lockDoor(callback: DefaultClusterCallback, PINCode: ByteArray?, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
-
- fun unlockDoor(callback: DefaultClusterCallback, PINCode: ByteArray?, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
-
- fun unlockWithTimeout(
- callback: DefaultClusterCallback,
- timeout: Integer,
+ class GetWeekDayScheduleResponse(
+ val weekDayIndex: UByte,
+ val userIndex: UShort,
+ val status: UInt,
+ val daysMask: UInt?,
+ val startHour: UByte?,
+ val startMinute: UByte?,
+ val endHour: UByte?,
+ val endMinute: UByte?
+ )
+
+ class GetYearDayScheduleResponse(
+ val yearDayIndex: UByte,
+ val userIndex: UShort,
+ val status: UInt,
+ val localStartTime: UInt?,
+ val localEndTime: UInt?
+ )
+
+ class GetHolidayScheduleResponse(
+ val holidayIndex: UByte,
+ val status: UInt,
+ val localStartTime: UInt?,
+ val localEndTime: UInt?,
+ val operatingMode: UInt?
+ )
+
+ class GetUserResponse(
+ val userIndex: UShort,
+ val userName: String?,
+ val userUniqueID: UInt?,
+ val userStatus: UInt?,
+ val userType: UInt?,
+ val credentialRule: UInt?,
+ val credentials: ArrayList?,
+ val creatorFabricIndex: UByte?,
+ val lastModifiedFabricIndex: UByte?,
+ val nextUserIndex: UShort?
+ )
+
+ class SetCredentialResponse(
+ val status: UInt,
+ val userIndex: UShort?,
+ val nextCredentialIndex: UShort?
+ )
+
+ class GetCredentialStatusResponse(
+ val credentialExists: Boolean,
+ val userIndex: UShort?,
+ val creatorFabricIndex: UByte?,
+ val lastModifiedFabricIndex: UByte?,
+ val nextCredentialIndex: UShort?
+ )
+
+ class LockStateAttribute(val value: UInt?)
+
+ class DoorStateAttribute(val value: UInt?)
+
+ class GeneratedCommandListAttribute(val value: ArrayList)
+
+ class AcceptedCommandListAttribute(val value: ArrayList)
+
+ class EventListAttribute(val value: ArrayList)
+
+ class AttributeListAttribute(val value: ArrayList)
+
+ suspend fun lockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun unlockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun unlockWithTimeout(
+ timeout: UShort,
PINCode: ByteArray?,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun setWeekDaySchedule(
- callback: DefaultClusterCallback,
- weekDayIndex: Integer,
- userIndex: Integer,
- daysMask: Integer,
- startHour: Integer,
- startMinute: Integer,
- endHour: Integer,
- endMinute: Integer
- ) {
- // Implementation needs to be added here
- }
-
- fun setWeekDaySchedule(
- callback: DefaultClusterCallback,
- weekDayIndex: Integer,
- userIndex: Integer,
- daysMask: Integer,
- startHour: Integer,
- startMinute: Integer,
- endHour: Integer,
- endMinute: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun getWeekDaySchedule(
- callback: GetWeekDayScheduleResponseCallback,
- weekDayIndex: Integer,
- userIndex: Integer
- ) {
- // Implementation needs to be added here
- }
-
- fun getWeekDaySchedule(
- callback: GetWeekDayScheduleResponseCallback,
- weekDayIndex: Integer,
- userIndex: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun clearWeekDaySchedule(
- callback: DefaultClusterCallback,
- weekDayIndex: Integer,
- userIndex: Integer
- ) {
- // Implementation needs to be added here
- }
-
- fun clearWeekDaySchedule(
- callback: DefaultClusterCallback,
- weekDayIndex: Integer,
- userIndex: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun setYearDaySchedule(
- callback: DefaultClusterCallback,
- yearDayIndex: Integer,
- userIndex: Integer,
- localStartTime: Long,
- localEndTime: Long
- ) {
- // Implementation needs to be added here
- }
-
- fun setYearDaySchedule(
- callback: DefaultClusterCallback,
- yearDayIndex: Integer,
- userIndex: Integer,
- localStartTime: Long,
- localEndTime: Long,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun getYearDaySchedule(
- callback: GetYearDayScheduleResponseCallback,
- yearDayIndex: Integer,
- userIndex: Integer
- ) {
- // Implementation needs to be added here
- }
-
- fun getYearDaySchedule(
- callback: GetYearDayScheduleResponseCallback,
- yearDayIndex: Integer,
- userIndex: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun clearYearDaySchedule(
- callback: DefaultClusterCallback,
- yearDayIndex: Integer,
- userIndex: Integer
- ) {
- // Implementation needs to be added here
- }
-
- fun clearYearDaySchedule(
- callback: DefaultClusterCallback,
- yearDayIndex: Integer,
- userIndex: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun setHolidaySchedule(
- callback: DefaultClusterCallback,
- holidayIndex: Integer,
- localStartTime: Long,
- localEndTime: Long,
- operatingMode: Integer
- ) {
- // Implementation needs to be added here
- }
-
- fun setHolidaySchedule(
- callback: DefaultClusterCallback,
- holidayIndex: Integer,
- localStartTime: Long,
- localEndTime: Long,
- operatingMode: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun getHolidaySchedule(callback: GetHolidayScheduleResponseCallback, holidayIndex: Integer) {
- // Implementation needs to be added here
- }
-
- fun getHolidaySchedule(
- callback: GetHolidayScheduleResponseCallback,
- holidayIndex: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun clearHolidaySchedule(callback: DefaultClusterCallback, holidayIndex: Integer) {
- // Implementation needs to be added here
- }
-
- fun clearHolidaySchedule(
- callback: DefaultClusterCallback,
- holidayIndex: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun setUser(
- callback: DefaultClusterCallback,
- operationType: Integer,
- userIndex: Integer,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun setWeekDaySchedule(
+ weekDayIndex: UByte,
+ userIndex: UShort,
+ daysMask: UInt,
+ startHour: UByte,
+ startMinute: UByte,
+ endHour: UByte,
+ endMinute: UByte,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun getWeekDaySchedule(
+ weekDayIndex: UByte,
+ userIndex: UShort,
+ timedInvokeTimeoutMs: Int? = null
+ ): GetWeekDayScheduleResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun clearWeekDaySchedule(
+ weekDayIndex: UByte,
+ userIndex: UShort,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun setYearDaySchedule(
+ yearDayIndex: UByte,
+ userIndex: UShort,
+ localStartTime: UInt,
+ localEndTime: UInt,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun getYearDaySchedule(
+ yearDayIndex: UByte,
+ userIndex: UShort,
+ timedInvokeTimeoutMs: Int? = null
+ ): GetYearDayScheduleResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun clearYearDaySchedule(
+ yearDayIndex: UByte,
+ userIndex: UShort,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun setHolidaySchedule(
+ holidayIndex: UByte,
+ localStartTime: UInt,
+ localEndTime: UInt,
+ operatingMode: UInt,
+ timedInvokeTimeoutMs: Int? = null
+ ) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun getHolidaySchedule(
+ holidayIndex: UByte,
+ timedInvokeTimeoutMs: Int? = null
+ ): GetHolidayScheduleResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun clearHolidaySchedule(holidayIndex: UByte, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun setUser(
+ operationType: UInt,
+ userIndex: UShort,
userName: String?,
- userUniqueID: Long?,
- userStatus: Integer?,
- userType: Integer?,
- credentialRule: Integer?,
- timedInvokeTimeoutMs: Int
+ userUniqueID: UInt?,
+ userStatus: UInt?,
+ userType: UInt?,
+ credentialRule: UInt?,
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun getUser(callback: GetUserResponseCallback, userIndex: Integer) {
- // Implementation needs to be added here
- }
-
- fun getUser(callback: GetUserResponseCallback, userIndex: Integer, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
+ suspend fun getUser(userIndex: UShort, timedInvokeTimeoutMs: Int? = null): GetUserResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun clearUser(callback: DefaultClusterCallback, userIndex: Integer, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
+ suspend fun clearUser(userIndex: UShort, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun setCredential(
- callback: SetCredentialResponseCallback,
- operationType: Integer,
+ suspend fun setCredential(
+ operationType: UInt,
credential: ChipStructs.DoorLockClusterCredentialStruct,
credentialData: ByteArray,
- userIndex: Integer?,
- userStatus: Integer?,
- userType: Integer?,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- fun getCredentialStatus(
- callback: GetCredentialStatusResponseCallback,
- credential: ChipStructs.DoorLockClusterCredentialStruct
- ) {
- // Implementation needs to be added here
- }
-
- fun getCredentialStatus(
- callback: GetCredentialStatusResponseCallback,
+ userIndex: UShort?,
+ userStatus: UInt?,
+ userType: UInt?,
+ timedInvokeTimeoutMs: Int? = null
+ ): SetCredentialResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
+ }
+
+ suspend fun getCredentialStatus(
credential: ChipStructs.DoorLockClusterCredentialStruct,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
+ timedInvokeTimeoutMs: Int? = null
+ ): GetCredentialStatusResponse {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- fun clearCredential(
- callback: DefaultClusterCallback,
+ suspend fun clearCredential(
credential: ChipStructs.DoorLockClusterCredentialStruct?,
- timedInvokeTimeoutMs: Int
+ timedInvokeTimeoutMs: Int? = null
) {
- // Implementation needs to be added here
- }
-
- fun unboltDoor(callback: DefaultClusterCallback, PINCode: ByteArray?, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
-
- interface GetWeekDayScheduleResponseCallback {
- fun onSuccess(
- weekDayIndex: Integer,
- userIndex: Integer,
- status: Integer,
- daysMask: Integer?,
- startHour: Integer?,
- startMinute: Integer?,
- endHour: Integer?,
- endMinute: Integer?
- )
-
- fun onError(error: Exception)
- }
-
- interface GetYearDayScheduleResponseCallback {
- fun onSuccess(
- yearDayIndex: Integer,
- userIndex: Integer,
- status: Integer,
- localStartTime: Long?,
- localEndTime: Long?
- )
-
- fun onError(error: Exception)
- }
-
- interface GetHolidayScheduleResponseCallback {
- fun onSuccess(
- holidayIndex: Integer,
- status: Integer,
- localStartTime: Long?,
- localEndTime: Long?,
- operatingMode: Integer?
- )
-
- fun onError(error: Exception)
- }
-
- interface GetUserResponseCallback {
- fun onSuccess(
- userIndex: Integer,
- userName: String?,
- userUniqueID: Long?,
- userStatus: Integer?,
- userType: Integer?,
- credentialRule: Integer?,
- credentials: ArrayList?,
- creatorFabricIndex: Integer?,
- lastModifiedFabricIndex: Integer?,
- nextUserIndex: Integer?
- )
-
- fun onError(error: Exception)
- }
-
- interface SetCredentialResponseCallback {
- fun onSuccess(status: Integer, userIndex: Integer?, nextCredentialIndex: Integer?)
-
- fun onError(error: Exception)
- }
-
- interface GetCredentialStatusResponseCallback {
- fun onSuccess(
- credentialExists: Boolean,
- userIndex: Integer?,
- creatorFabricIndex: Integer?,
- lastModifiedFabricIndex: Integer?,
- nextCredentialIndex: Integer?
- )
-
- fun onError(error: Exception)
- }
-
- interface LockStateAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface DoorStateAttributeCallback {
- fun onSuccess(value: Integer?)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
+ suspend fun unboltDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int? = null) {
+ if (timedInvokeTimeoutMs != null) {
+ // Do the action with timedInvokeTimeoutMs
+ } else {
+ // Do the action without timedInvokeTimeoutMs
+ }
}
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface EventListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AttributeListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- fun readLockStateAttribute(callback: LockStateAttributeCallback) {
+ suspend fun readLockStateAttribute(): LockStateAttribute {
// Implementation needs to be added here
}
- fun subscribeLockStateAttribute(
- callback: LockStateAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLockStateAttribute(minInterval: Int, maxInterval: Int): LockStateAttribute {
// Implementation needs to be added here
}
- fun readLockTypeAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readLockTypeAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeLockTypeAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLockTypeAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readActuatorEnabledAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readActuatorEnabledAttribute(): Boolean {
// Implementation needs to be added here
}
- fun subscribeActuatorEnabledAttribute(
- callback: BooleanAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeActuatorEnabledAttribute(minInterval: Int, maxInterval: Int): Boolean {
// Implementation needs to be added here
}
- fun readDoorStateAttribute(callback: DoorStateAttributeCallback) {
+ suspend fun readDoorStateAttribute(): DoorStateAttribute {
// Implementation needs to be added here
}
- fun subscribeDoorStateAttribute(
- callback: DoorStateAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeDoorStateAttribute(minInterval: Int, maxInterval: Int): DoorStateAttribute {
// Implementation needs to be added here
}
- fun readDoorOpenEventsAttribute(callback: LongAttributeCallback) {
+ suspend fun readDoorOpenEventsAttribute(): UInt {
// Implementation needs to be added here
}
- fun writeDoorOpenEventsAttribute(callback: DefaultClusterCallback, value: Long) {
+ suspend fun writeDoorOpenEventsAttribute(value: UInt) {
// Implementation needs to be added here
}
- fun writeDoorOpenEventsAttribute(
- callback: DefaultClusterCallback,
- value: Long,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeDoorOpenEventsAttribute(value: UInt, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeDoorOpenEventsAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeDoorOpenEventsAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readDoorClosedEventsAttribute(callback: LongAttributeCallback) {
+ suspend fun readDoorClosedEventsAttribute(): UInt {
// Implementation needs to be added here
}
- fun writeDoorClosedEventsAttribute(callback: DefaultClusterCallback, value: Long) {
+ suspend fun writeDoorClosedEventsAttribute(value: UInt) {
// Implementation needs to be added here
}
- fun writeDoorClosedEventsAttribute(
- callback: DefaultClusterCallback,
- value: Long,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeDoorClosedEventsAttribute(value: UInt, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeDoorClosedEventsAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeDoorClosedEventsAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readOpenPeriodAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readOpenPeriodAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeOpenPeriodAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeOpenPeriodAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeOpenPeriodAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeOpenPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeOpenPeriodAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeOpenPeriodAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readNumberOfTotalUsersSupportedAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readNumberOfTotalUsersSupportedAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeNumberOfTotalUsersSupportedAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeNumberOfTotalUsersSupportedAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readNumberOfPINUsersSupportedAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readNumberOfPINUsersSupportedAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeNumberOfPINUsersSupportedAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeNumberOfPINUsersSupportedAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readNumberOfRFIDUsersSupportedAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readNumberOfRFIDUsersSupportedAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeNumberOfRFIDUsersSupportedAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeNumberOfRFIDUsersSupportedAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readNumberOfWeekDaySchedulesSupportedPerUserAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readNumberOfWeekDaySchedulesSupportedPerUserAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeNumberOfWeekDaySchedulesSupportedPerUserAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeNumberOfWeekDaySchedulesSupportedPerUserAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UByte {
// Implementation needs to be added here
}
- fun readNumberOfYearDaySchedulesSupportedPerUserAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readNumberOfYearDaySchedulesSupportedPerUserAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeNumberOfYearDaySchedulesSupportedPerUserAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeNumberOfYearDaySchedulesSupportedPerUserAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UByte {
// Implementation needs to be added here
}
- fun readNumberOfHolidaySchedulesSupportedAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readNumberOfHolidaySchedulesSupportedAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeNumberOfHolidaySchedulesSupportedAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeNumberOfHolidaySchedulesSupportedAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UByte {
// Implementation needs to be added here
}
- fun readMaxPINCodeLengthAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readMaxPINCodeLengthAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeMaxPINCodeLengthAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeMaxPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readMinPINCodeLengthAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readMinPINCodeLengthAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeMinPINCodeLengthAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeMinPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readMaxRFIDCodeLengthAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readMaxRFIDCodeLengthAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeMaxRFIDCodeLengthAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeMaxRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readMinRFIDCodeLengthAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readMinRFIDCodeLengthAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeMinRFIDCodeLengthAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeMinRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readCredentialRulesSupportAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readCredentialRulesSupportAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeCredentialRulesSupportAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeCredentialRulesSupportAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readNumberOfCredentialsSupportedPerUserAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readNumberOfCredentialsSupportedPerUserAttribute(): UByte {
// Implementation needs to be added here
}
- fun subscribeNumberOfCredentialsSupportedPerUserAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeNumberOfCredentialsSupportedPerUserAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UByte {
// Implementation needs to be added here
}
- fun readLanguageAttribute(callback: CharStringAttributeCallback) {
+ suspend fun readLanguageAttribute(): CharString {
// Implementation needs to be added here
}
- fun writeLanguageAttribute(callback: DefaultClusterCallback, value: String) {
+ suspend fun writeLanguageAttribute(value: String) {
// Implementation needs to be added here
}
- fun writeLanguageAttribute(
- callback: DefaultClusterCallback,
- value: String,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeLanguageAttribute(value: String, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeLanguageAttribute(
- callback: CharStringAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLanguageAttribute(minInterval: Int, maxInterval: Int): CharString {
// Implementation needs to be added here
}
- fun readLEDSettingsAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readLEDSettingsAttribute(): UByte {
// Implementation needs to be added here
}
- fun writeLEDSettingsAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeLEDSettingsAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeLEDSettingsAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeLEDSettingsAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeLEDSettingsAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeLEDSettingsAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readAutoRelockTimeAttribute(callback: LongAttributeCallback) {
+ suspend fun readAutoRelockTimeAttribute(): UInt {
// Implementation needs to be added here
}
- fun writeAutoRelockTimeAttribute(callback: DefaultClusterCallback, value: Long) {
+ suspend fun writeAutoRelockTimeAttribute(value: UInt) {
// Implementation needs to be added here
}
- fun writeAutoRelockTimeAttribute(
- callback: DefaultClusterCallback,
- value: Long,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeAutoRelockTimeAttribute(value: UInt, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeAutoRelockTimeAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeAutoRelockTimeAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readSoundVolumeAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readSoundVolumeAttribute(): UByte {
// Implementation needs to be added here
}
- fun writeSoundVolumeAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeSoundVolumeAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeSoundVolumeAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeSoundVolumeAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeSoundVolumeAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeSoundVolumeAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readOperatingModeAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readOperatingModeAttribute(): UByte {
// Implementation needs to be added here
}
- fun writeOperatingModeAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeOperatingModeAttribute(value: UInt) {
// Implementation needs to be added here
}
- fun writeOperatingModeAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeOperatingModeAttribute(value: UInt, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeOperatingModeAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeOperatingModeAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readSupportedOperatingModesAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readSupportedOperatingModesAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeSupportedOperatingModesAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeSupportedOperatingModesAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readDefaultConfigurationRegisterAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readDefaultConfigurationRegisterAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeDefaultConfigurationRegisterAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeDefaultConfigurationRegisterAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UShort {
// Implementation needs to be added here
}
- fun readEnableLocalProgrammingAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readEnableLocalProgrammingAttribute(): Boolean {
// Implementation needs to be added here
}
- fun writeEnableLocalProgrammingAttribute(callback: DefaultClusterCallback, value: Boolean) {
+ suspend fun writeEnableLocalProgrammingAttribute(value: Boolean) {
// Implementation needs to be added here
}
- fun writeEnableLocalProgrammingAttribute(
- callback: DefaultClusterCallback,
- value: Boolean,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeEnableLocalProgrammingAttribute(value: Boolean, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeEnableLocalProgrammingAttribute(
- callback: BooleanAttributeCallback,
+ suspend fun subscribeEnableLocalProgrammingAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): Boolean {
// Implementation needs to be added here
}
- fun readEnableOneTouchLockingAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readEnableOneTouchLockingAttribute(): Boolean {
// Implementation needs to be added here
}
- fun writeEnableOneTouchLockingAttribute(callback: DefaultClusterCallback, value: Boolean) {
+ suspend fun writeEnableOneTouchLockingAttribute(value: Boolean) {
// Implementation needs to be added here
}
- fun writeEnableOneTouchLockingAttribute(
- callback: DefaultClusterCallback,
- value: Boolean,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeEnableOneTouchLockingAttribute(value: Boolean, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeEnableOneTouchLockingAttribute(
- callback: BooleanAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEnableOneTouchLockingAttribute(minInterval: Int, maxInterval: Int): Boolean {
// Implementation needs to be added here
}
- fun readEnableInsideStatusLEDAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readEnableInsideStatusLEDAttribute(): Boolean {
// Implementation needs to be added here
}
- fun writeEnableInsideStatusLEDAttribute(callback: DefaultClusterCallback, value: Boolean) {
+ suspend fun writeEnableInsideStatusLEDAttribute(value: Boolean) {
// Implementation needs to be added here
}
- fun writeEnableInsideStatusLEDAttribute(
- callback: DefaultClusterCallback,
- value: Boolean,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeEnableInsideStatusLEDAttribute(value: Boolean, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeEnableInsideStatusLEDAttribute(
- callback: BooleanAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEnableInsideStatusLEDAttribute(minInterval: Int, maxInterval: Int): Boolean {
// Implementation needs to be added here
}
- fun readEnablePrivacyModeButtonAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readEnablePrivacyModeButtonAttribute(): Boolean {
// Implementation needs to be added here
}
- fun writeEnablePrivacyModeButtonAttribute(callback: DefaultClusterCallback, value: Boolean) {
+ suspend fun writeEnablePrivacyModeButtonAttribute(value: Boolean) {
// Implementation needs to be added here
}
- fun writeEnablePrivacyModeButtonAttribute(
- callback: DefaultClusterCallback,
- value: Boolean,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeEnablePrivacyModeButtonAttribute(value: Boolean, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeEnablePrivacyModeButtonAttribute(
- callback: BooleanAttributeCallback,
+ suspend fun subscribeEnablePrivacyModeButtonAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): Boolean {
// Implementation needs to be added here
}
- fun readLocalProgrammingFeaturesAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readLocalProgrammingFeaturesAttribute(): UByte {
// Implementation needs to be added here
}
- fun writeLocalProgrammingFeaturesAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeLocalProgrammingFeaturesAttribute(value: UInt) {
// Implementation needs to be added here
}
- fun writeLocalProgrammingFeaturesAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeLocalProgrammingFeaturesAttribute(value: UInt, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeLocalProgrammingFeaturesAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeLocalProgrammingFeaturesAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UByte {
// Implementation needs to be added here
}
- fun readWrongCodeEntryLimitAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readWrongCodeEntryLimitAttribute(): UByte {
// Implementation needs to be added here
}
- fun writeWrongCodeEntryLimitAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeWrongCodeEntryLimitAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeWrongCodeEntryLimitAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeWrongCodeEntryLimitAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeWrongCodeEntryLimitAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeWrongCodeEntryLimitAttribute(minInterval: Int, maxInterval: Int): UByte {
// Implementation needs to be added here
}
- fun readUserCodeTemporaryDisableTimeAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readUserCodeTemporaryDisableTimeAttribute(): UByte {
// Implementation needs to be added here
}
- fun writeUserCodeTemporaryDisableTimeAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeUserCodeTemporaryDisableTimeAttribute(value: UByte) {
// Implementation needs to be added here
}
- fun writeUserCodeTemporaryDisableTimeAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeUserCodeTemporaryDisableTimeAttribute(value: UByte, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeUserCodeTemporaryDisableTimeAttribute(
- callback: IntegerAttributeCallback,
+ suspend fun subscribeUserCodeTemporaryDisableTimeAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): UByte {
// Implementation needs to be added here
}
- fun readSendPINOverTheAirAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readSendPINOverTheAirAttribute(): Boolean {
// Implementation needs to be added here
}
- fun writeSendPINOverTheAirAttribute(callback: DefaultClusterCallback, value: Boolean) {
+ suspend fun writeSendPINOverTheAirAttribute(value: Boolean) {
// Implementation needs to be added here
}
- fun writeSendPINOverTheAirAttribute(
- callback: DefaultClusterCallback,
- value: Boolean,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeSendPINOverTheAirAttribute(value: Boolean, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeSendPINOverTheAirAttribute(
- callback: BooleanAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeSendPINOverTheAirAttribute(minInterval: Int, maxInterval: Int): Boolean {
// Implementation needs to be added here
}
- fun readRequirePINforRemoteOperationAttribute(callback: BooleanAttributeCallback) {
+ suspend fun readRequirePINforRemoteOperationAttribute(): Boolean {
// Implementation needs to be added here
}
- fun writeRequirePINforRemoteOperationAttribute(callback: DefaultClusterCallback, value: Boolean) {
+ suspend fun writeRequirePINforRemoteOperationAttribute(value: Boolean) {
// Implementation needs to be added here
}
- fun writeRequirePINforRemoteOperationAttribute(
- callback: DefaultClusterCallback,
- value: Boolean,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeRequirePINforRemoteOperationAttribute(value: Boolean, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeRequirePINforRemoteOperationAttribute(
- callback: BooleanAttributeCallback,
+ suspend fun subscribeRequirePINforRemoteOperationAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): Boolean {
// Implementation needs to be added here
}
- fun readExpiringUserTimeoutAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readExpiringUserTimeoutAttribute(): UShort {
// Implementation needs to be added here
}
- fun writeExpiringUserTimeoutAttribute(callback: DefaultClusterCallback, value: Integer) {
+ suspend fun writeExpiringUserTimeoutAttribute(value: UShort) {
// Implementation needs to be added here
}
- fun writeExpiringUserTimeoutAttribute(
- callback: DefaultClusterCallback,
- value: Integer,
- timedWriteTimeoutMs: Int
- ) {
+ suspend fun writeExpiringUserTimeoutAttribute(value: UShort, timedWriteTimeoutMs: Int) {
// Implementation needs to be added here
}
- fun subscribeExpiringUserTimeoutAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeExpiringUserTimeoutAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
- fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) {
+ suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeGeneratedCommandListAttribute(
- callback: GeneratedCommandListAttributeCallback,
+ suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): GeneratedCommandListAttribute {
// Implementation needs to be added here
}
- fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) {
+ suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun subscribeAcceptedCommandListAttribute(
- callback: AcceptedCommandListAttributeCallback,
+ suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AcceptedCommandListAttribute {
// Implementation needs to be added here
}
- fun readEventListAttribute(callback: EventListAttributeCallback) {
+ suspend fun readEventListAttribute(): EventListAttribute {
// Implementation needs to be added here
}
- fun subscribeEventListAttribute(
- callback: EventListAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute {
// Implementation needs to be added here
}
- fun readAttributeListAttribute(callback: AttributeListAttributeCallback) {
+ suspend fun readAttributeListAttribute(): AttributeListAttribute {
// Implementation needs to be added here
}
- fun subscribeAttributeListAttribute(
- callback: AttributeListAttributeCallback,
+ suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
- ) {
+ ): AttributeListAttribute {
// Implementation needs to be added here
}
- fun readFeatureMapAttribute(callback: LongAttributeCallback) {
+ suspend fun readFeatureMapAttribute(): UInt {
// Implementation needs to be added here
}
- fun subscribeFeatureMapAttribute(
- callback: LongAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt {
// Implementation needs to be added here
}
- fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) {
+ suspend fun readClusterRevisionAttribute(): UShort {
// Implementation needs to be added here
}
- fun subscribeClusterRevisionAttribute(
- callback: IntegerAttributeCallback,
- minInterval: Int,
- maxInterval: Int
- ) {
+ suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort {
// Implementation needs to be added here
}
+
+ companion object {
+ const val CLUSTER_ID: UInt = 257u
+ }
}
diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt
index bd0c67644a9f2e..17ad4bca3238c9 100644
--- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt
+++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt
@@ -20,1776 +20,1289 @@ package matter.devicecontroller.cluster.clusters
import java.util.ArrayList
class ElectricalMeasurementCluster(private val endpointId: UShort) {
- companion object {
- const val CLUSTER_ID: UInt = 2820u
- }
-
- fun getProfileInfoCommand(callback: DefaultClusterCallback) {
- // Implementation needs to be added here
- }
-
- fun getProfileInfoCommand(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) {
- // Implementation needs to be added here
- }
-
- fun getMeasurementProfileCommand(
- callback: DefaultClusterCallback,
- attributeId: Integer,
- startTime: Long,
- numberOfIntervals: Integer
- ) {
- // Implementation needs to be added here
- }
-
- fun getMeasurementProfileCommand(
- callback: DefaultClusterCallback,
- attributeId: Integer,
- startTime: Long,
- numberOfIntervals: Integer,
- timedInvokeTimeoutMs: Int
- ) {
- // Implementation needs to be added here
- }
-
- interface GeneratedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
+ class GeneratedCommandListAttribute(val value: ArrayList)
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
-
- interface AcceptedCommandListAttributeCallback {
- fun onSuccess(value: ArrayList)
-
- fun onError(ex: Exception)
-
- fun onSubscriptionEstablished(subscriptionId: Long)
- }
+ class AcceptedCommandListAttribute(val value: ArrayList