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) - 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 getProfileInfoCommand(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 getMeasurementProfileCommand( + attributeId: UShort, + startTime: UInt, + numberOfIntervals: UInt, + timedInvokeTimeoutMs: Int? = null + ) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readMeasurementTypeAttribute(callback: LongAttributeCallback) { + suspend fun readMeasurementTypeAttribute(): UInt { // Implementation needs to be added here } - fun subscribeMeasurementTypeAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementTypeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readDcVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcVoltageAttribute(): Short { // Implementation needs to be added here } - fun subscribeDcVoltageAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readDcVoltageMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcVoltageMinAttribute(): Short { // Implementation needs to be added here } - fun subscribeDcVoltageMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcVoltageMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readDcVoltageMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcVoltageMaxAttribute(): Short { // Implementation needs to be added here } - fun subscribeDcVoltageMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcVoltageMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readDcCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeDcCurrentAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcCurrentAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readDcCurrentMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcCurrentMinAttribute(): Short { // Implementation needs to be added here } - fun subscribeDcCurrentMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcCurrentMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readDcCurrentMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcCurrentMaxAttribute(): Short { // Implementation needs to be added here } - fun subscribeDcCurrentMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcCurrentMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readDcPowerAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcPowerAttribute(): Short { // Implementation needs to be added here } - fun subscribeDcPowerAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcPowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readDcPowerMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcPowerMinAttribute(): Short { // Implementation needs to be added here } - fun subscribeDcPowerMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcPowerMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readDcPowerMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcPowerMaxAttribute(): Short { // Implementation needs to be added here } - fun subscribeDcPowerMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcPowerMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readDcVoltageMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcVoltageMultiplierAttribute(): UShort { // Implementation needs to be added here } - fun subscribeDcVoltageMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readDcVoltageDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcVoltageDivisorAttribute(): UShort { // Implementation needs to be added here } - fun subscribeDcVoltageDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readDcCurrentMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcCurrentMultiplierAttribute(): UShort { // Implementation needs to be added here } - fun subscribeDcCurrentMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readDcCurrentDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcCurrentDivisorAttribute(): UShort { // Implementation needs to be added here } - fun subscribeDcCurrentDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readDcPowerMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcPowerMultiplierAttribute(): UShort { // Implementation needs to be added here } - fun subscribeDcPowerMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readDcPowerDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcPowerDivisorAttribute(): UShort { // Implementation needs to be added here } - fun subscribeDcPowerDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readAcFrequencyAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcFrequencyAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAcFrequencyAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readAcFrequencyMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcFrequencyMinAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAcFrequencyMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcFrequencyMinAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readAcFrequencyMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcFrequencyMaxAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAcFrequencyMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcFrequencyMaxAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readNeutralCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readNeutralCurrentAttribute(): UShort { // Implementation needs to be added here } - fun subscribeNeutralCurrentAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeNeutralCurrentAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readTotalActivePowerAttribute(callback: LongAttributeCallback) { + suspend fun readTotalActivePowerAttribute(): Int { // Implementation needs to be added here } - fun subscribeTotalActivePowerAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTotalActivePowerAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } - fun readTotalReactivePowerAttribute(callback: LongAttributeCallback) { + suspend fun readTotalReactivePowerAttribute(): Int { // Implementation needs to be added here } - fun subscribeTotalReactivePowerAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTotalReactivePowerAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } - fun readTotalApparentPowerAttribute(callback: LongAttributeCallback) { + suspend fun readTotalApparentPowerAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTotalApparentPowerAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTotalApparentPowerAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readMeasured1stHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasured1stHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeMeasured1stHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasured1stHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readMeasured3rdHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasured3rdHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeMeasured3rdHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasured3rdHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readMeasured5thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasured5thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeMeasured5thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasured5thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readMeasured7thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasured7thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeMeasured7thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasured7thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readMeasured9thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasured9thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeMeasured9thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasured9thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readMeasured11thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasured11thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeMeasured11thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasured11thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readMeasuredPhase1stHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasuredPhase1stHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeMeasuredPhase1stHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasuredPhase1stHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readMeasuredPhase3rdHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasuredPhase3rdHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeMeasuredPhase3rdHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasuredPhase3rdHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readMeasuredPhase5thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasuredPhase5thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeMeasuredPhase5thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasuredPhase5thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readMeasuredPhase7thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasuredPhase7thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeMeasuredPhase7thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasuredPhase7thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readMeasuredPhase9thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasuredPhase9thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeMeasuredPhase9thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasuredPhase9thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readMeasuredPhase11thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasuredPhase11thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeMeasuredPhase11thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasuredPhase11thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readAcFrequencyMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcFrequencyMultiplierAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAcFrequencyMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcFrequencyMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readAcFrequencyDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcFrequencyDivisorAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAcFrequencyDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcFrequencyDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readPowerMultiplierAttribute(callback: LongAttributeCallback) { + suspend fun readPowerMultiplierAttribute(): UInt { // Implementation needs to be added here } - fun subscribePowerMultiplierAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readPowerDivisorAttribute(callback: LongAttributeCallback) { + suspend fun readPowerDivisorAttribute(): UInt { // Implementation needs to be added here } - fun subscribePowerDivisorAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePowerDivisorAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readHarmonicCurrentMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readHarmonicCurrentMultiplierAttribute(): Byte { // Implementation needs to be added here } - fun subscribeHarmonicCurrentMultiplierAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeHarmonicCurrentMultiplierAttribute( minInterval: Int, maxInterval: Int - ) { + ): Byte { // Implementation needs to be added here } - fun readPhaseHarmonicCurrentMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readPhaseHarmonicCurrentMultiplierAttribute(): Byte { // Implementation needs to be added here } - fun subscribePhaseHarmonicCurrentMultiplierAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePhaseHarmonicCurrentMultiplierAttribute( minInterval: Int, maxInterval: Int - ) { + ): Byte { // Implementation needs to be added here } - fun readInstantaneousVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstantaneousVoltageAttribute(): Short { // Implementation needs to be added here } - fun subscribeInstantaneousVoltageAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInstantaneousVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readInstantaneousLineCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstantaneousLineCurrentAttribute(): UShort { // Implementation needs to be added here } - fun subscribeInstantaneousLineCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInstantaneousLineCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readInstantaneousActiveCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstantaneousActiveCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeInstantaneousActiveCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInstantaneousActiveCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readInstantaneousReactiveCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstantaneousReactiveCurrentAttribute(): Short { // Implementation needs to be added here } - fun subscribeInstantaneousReactiveCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInstantaneousReactiveCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readInstantaneousPowerAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstantaneousPowerAttribute(): Short { // Implementation needs to be added here } - fun subscribeInstantaneousPowerAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInstantaneousPowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readRmsVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltageAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsVoltageMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageMinAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltageMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageMinAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsVoltageMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageMaxAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltageMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageMaxAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsCurrentAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsCurrentMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentMinAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsCurrentMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentMinAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsCurrentMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentMaxAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsCurrentMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentMaxAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readActivePowerAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerAttribute(): Short { // Implementation needs to be added here } - fun subscribeActivePowerAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readActivePowerMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerMinAttribute(): Short { // Implementation needs to be added here } - fun subscribeActivePowerMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readActivePowerMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerMaxAttribute(): Short { // Implementation needs to be added here } - fun subscribeActivePowerMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readReactivePowerAttribute(callback: IntegerAttributeCallback) { + suspend fun readReactivePowerAttribute(): Short { // Implementation needs to be added here } - fun subscribeReactivePowerAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeReactivePowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readApparentPowerAttribute(callback: IntegerAttributeCallback) { + suspend fun readApparentPowerAttribute(): UShort { // Implementation needs to be added here } - fun subscribeApparentPowerAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeApparentPowerAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readPowerFactorAttribute(callback: IntegerAttributeCallback) { + suspend fun readPowerFactorAttribute(): Byte { // Implementation needs to be added here } - fun subscribePowerFactorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePowerFactorAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } - fun readAverageRmsVoltageMeasurementPeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsVoltageMeasurementPeriodAttribute(): UShort { // Implementation needs to be added here } - fun writeAverageRmsVoltageMeasurementPeriodAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writeAverageRmsVoltageMeasurementPeriodAttribute(value: UShort) { // Implementation needs to be added here } - fun writeAverageRmsVoltageMeasurementPeriodAttribute( - callback: DefaultClusterCallback, - value: Integer, + suspend fun writeAverageRmsVoltageMeasurementPeriodAttribute( + value: UShort, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeAverageRmsVoltageMeasurementPeriodAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsVoltageMeasurementPeriodAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readAverageRmsUnderVoltageCounterAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsUnderVoltageCounterAttribute(): UShort { // Implementation needs to be added here } - fun writeAverageRmsUnderVoltageCounterAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writeAverageRmsUnderVoltageCounterAttribute(value: UShort) { // Implementation needs to be added here } - fun writeAverageRmsUnderVoltageCounterAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeAverageRmsUnderVoltageCounterAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeAverageRmsUnderVoltageCounterAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsUnderVoltageCounterAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readRmsExtremeOverVoltagePeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeOverVoltagePeriodAttribute(): UShort { // Implementation needs to be added here } - fun writeRmsExtremeOverVoltagePeriodAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeRmsExtremeOverVoltagePeriodAttribute(value: UShort) { // Implementation needs to be added here } - fun writeRmsExtremeOverVoltagePeriodAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRmsExtremeOverVoltagePeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeRmsExtremeOverVoltagePeriodAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsExtremeOverVoltagePeriodAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readRmsExtremeUnderVoltagePeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeUnderVoltagePeriodAttribute(): UShort { // Implementation needs to be added here } - fun writeRmsExtremeUnderVoltagePeriodAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeRmsExtremeUnderVoltagePeriodAttribute(value: UShort) { // Implementation needs to be added here } - fun writeRmsExtremeUnderVoltagePeriodAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRmsExtremeUnderVoltagePeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeRmsExtremeUnderVoltagePeriodAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsExtremeUnderVoltagePeriodAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readRmsVoltageSagPeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSagPeriodAttribute(): UShort { // Implementation needs to be added here } - fun writeRmsVoltageSagPeriodAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeRmsVoltageSagPeriodAttribute(value: UShort) { // Implementation needs to be added here } - fun writeRmsVoltageSagPeriodAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRmsVoltageSagPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeRmsVoltageSagPeriodAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageSagPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsVoltageSwellPeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSwellPeriodAttribute(): UShort { // Implementation needs to be added here } - fun writeRmsVoltageSwellPeriodAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeRmsVoltageSwellPeriodAttribute(value: UShort) { // Implementation needs to be added here } - fun writeRmsVoltageSwellPeriodAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRmsVoltageSwellPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeRmsVoltageSwellPeriodAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageSwellPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readAcVoltageMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcVoltageMultiplierAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAcVoltageMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readAcVoltageDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcVoltageDivisorAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAcVoltageDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readAcCurrentMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcCurrentMultiplierAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAcCurrentMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readAcCurrentDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcCurrentDivisorAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAcCurrentDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readAcPowerMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcPowerMultiplierAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAcPowerMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readAcPowerDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcPowerDivisorAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAcPowerDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readOverloadAlarmsMaskAttribute(callback: IntegerAttributeCallback) { + suspend fun readOverloadAlarmsMaskAttribute(): UByte { // Implementation needs to be added here } - fun writeOverloadAlarmsMaskAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOverloadAlarmsMaskAttribute(value: UInt) { // Implementation needs to be added here } - fun writeOverloadAlarmsMaskAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOverloadAlarmsMaskAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOverloadAlarmsMaskAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOverloadAlarmsMaskAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readVoltageOverloadAttribute(callback: IntegerAttributeCallback) { + suspend fun readVoltageOverloadAttribute(): Short { // Implementation needs to be added here } - fun subscribeVoltageOverloadAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readCurrentOverloadAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentOverloadAttribute(): Short { // Implementation needs to be added here } - fun subscribeCurrentOverloadAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readAcOverloadAlarmsMaskAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcOverloadAlarmsMaskAttribute(): UShort { // Implementation needs to be added here } - fun writeAcOverloadAlarmsMaskAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeAcOverloadAlarmsMaskAttribute(value: UInt) { // Implementation needs to be added here } - fun writeAcOverloadAlarmsMaskAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeAcOverloadAlarmsMaskAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeAcOverloadAlarmsMaskAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcOverloadAlarmsMaskAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readAcVoltageOverloadAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcVoltageOverloadAttribute(): Short { // Implementation needs to be added here } - fun subscribeAcVoltageOverloadAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readAcCurrentOverloadAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcCurrentOverloadAttribute(): Short { // Implementation needs to be added here } - fun subscribeAcCurrentOverloadAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readAcActivePowerOverloadAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcActivePowerOverloadAttribute(): Short { // Implementation needs to be added here } - fun subscribeAcActivePowerOverloadAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcActivePowerOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readAcReactivePowerOverloadAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcReactivePowerOverloadAttribute(): Short { // Implementation needs to be added here } - fun subscribeAcReactivePowerOverloadAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcReactivePowerOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readAverageRmsOverVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsOverVoltageAttribute(): Short { // Implementation needs to be added here } - fun subscribeAverageRmsOverVoltageAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAverageRmsOverVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readAverageRmsUnderVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsUnderVoltageAttribute(): Short { // Implementation needs to be added here } - fun subscribeAverageRmsUnderVoltageAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAverageRmsUnderVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readRmsExtremeOverVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeOverVoltageAttribute(): Short { // Implementation needs to be added here } - fun subscribeRmsExtremeOverVoltageAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsExtremeOverVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readRmsExtremeUnderVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeUnderVoltageAttribute(): Short { // Implementation needs to be added here } - fun subscribeRmsExtremeUnderVoltageAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsExtremeUnderVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readRmsVoltageSagAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSagAttribute(): Short { // Implementation needs to be added here } - fun subscribeRmsVoltageSagAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageSagAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readRmsVoltageSwellAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSwellAttribute(): Short { // Implementation needs to be added here } - fun subscribeRmsVoltageSwellAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageSwellAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readLineCurrentPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readLineCurrentPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeLineCurrentPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLineCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readActiveCurrentPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readActiveCurrentPhaseBAttribute(): Short { // Implementation needs to be added here } - fun subscribeActiveCurrentPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readReactiveCurrentPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readReactiveCurrentPhaseBAttribute(): Short { // Implementation needs to be added here } - fun subscribeReactiveCurrentPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeReactiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readRmsVoltagePhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltagePhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltagePhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltagePhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsVoltageMinPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageMinPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltageMinPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageMinPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsVoltageMaxPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageMaxPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltageMaxPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsCurrentPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsCurrentPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsCurrentMinPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentMinPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsCurrentMinPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentMinPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsCurrentMaxPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentMaxPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsCurrentMaxPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readActivePowerPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerPhaseBAttribute(): Short { // Implementation needs to be added here } - fun subscribeActivePowerPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readActivePowerMinPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerMinPhaseBAttribute(): Short { // Implementation needs to be added here } - fun subscribeActivePowerMinPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerMinPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readActivePowerMaxPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerMaxPhaseBAttribute(): Short { // Implementation needs to be added here } - fun subscribeActivePowerMaxPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readReactivePowerPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readReactivePowerPhaseBAttribute(): Short { // Implementation needs to be added here } - fun subscribeReactivePowerPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeReactivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readApparentPowerPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readApparentPowerPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeApparentPowerPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeApparentPowerPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readPowerFactorPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readPowerFactorPhaseBAttribute(): Byte { // Implementation needs to be added here } - fun subscribePowerFactorPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePowerFactorPhaseBAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } - fun readAverageRmsVoltageMeasurementPeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsVoltageMeasurementPeriodPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAverageRmsVoltageMeasurementPeriodPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsVoltageMeasurementPeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readAverageRmsOverVoltageCounterPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsOverVoltageCounterPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAverageRmsOverVoltageCounterPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsOverVoltageCounterPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readAverageRmsUnderVoltageCounterPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsUnderVoltageCounterPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAverageRmsUnderVoltageCounterPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsUnderVoltageCounterPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readRmsExtremeOverVoltagePeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeOverVoltagePeriodPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsExtremeOverVoltagePeriodPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsExtremeOverVoltagePeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readRmsExtremeUnderVoltagePeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeUnderVoltagePeriodPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsExtremeUnderVoltagePeriodPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsExtremeUnderVoltagePeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readRmsVoltageSagPeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSagPeriodPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltageSagPeriodPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsVoltageSagPeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readRmsVoltageSwellPeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSwellPeriodPhaseBAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltageSwellPeriodPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsVoltageSwellPeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readLineCurrentPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readLineCurrentPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeLineCurrentPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLineCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readActiveCurrentPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readActiveCurrentPhaseCAttribute(): Short { // Implementation needs to be added here } - fun subscribeActiveCurrentPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readReactiveCurrentPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readReactiveCurrentPhaseCAttribute(): Short { // Implementation needs to be added here } - fun subscribeReactiveCurrentPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeReactiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readRmsVoltagePhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltagePhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltagePhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltagePhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsVoltageMinPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageMinPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltageMinPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageMinPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsVoltageMaxPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageMaxPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltageMaxPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsCurrentPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsCurrentPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsCurrentMinPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentMinPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsCurrentMinPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentMinPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRmsCurrentMaxPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentMaxPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsCurrentMaxPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readActivePowerPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerPhaseCAttribute(): Short { // Implementation needs to be added here } - fun subscribeActivePowerPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readActivePowerMinPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerMinPhaseCAttribute(): Short { // Implementation needs to be added here } - fun subscribeActivePowerMinPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerMinPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readActivePowerMaxPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerMaxPhaseCAttribute(): Short { // Implementation needs to be added here } - fun subscribeActivePowerMaxPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readReactivePowerPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readReactivePowerPhaseCAttribute(): Short { // Implementation needs to be added here } - fun subscribeReactivePowerPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeReactivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readApparentPowerPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readApparentPowerPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeApparentPowerPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeApparentPowerPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readPowerFactorPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readPowerFactorPhaseCAttribute(): Byte { // Implementation needs to be added here } - fun subscribePowerFactorPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePowerFactorPhaseCAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } - fun readAverageRmsVoltageMeasurementPeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsVoltageMeasurementPeriodPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAverageRmsVoltageMeasurementPeriodPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsVoltageMeasurementPeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readAverageRmsOverVoltageCounterPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsOverVoltageCounterPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAverageRmsOverVoltageCounterPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsOverVoltageCounterPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readAverageRmsUnderVoltageCounterPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsUnderVoltageCounterPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAverageRmsUnderVoltageCounterPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsUnderVoltageCounterPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readRmsExtremeOverVoltagePeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeOverVoltagePeriodPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsExtremeOverVoltagePeriodPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsExtremeOverVoltagePeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readRmsExtremeUnderVoltagePeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeUnderVoltagePeriodPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsExtremeUnderVoltagePeriodPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsExtremeUnderVoltagePeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readRmsVoltageSagPeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSagPeriodPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltageSagPeriodPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsVoltageSagPeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readRmsVoltageSwellPeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSwellPeriodPhaseCAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRmsVoltageSwellPeriodPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsVoltageSwellPeriodPhaseCAttribute( 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 = 2820u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt index f61cf30b5f114a..7211471daa9e22 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt @@ -20,251 +20,164 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 55u - } - - fun resetCounts(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun resetCounts(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class PHYRateAttribute(val value: UInt?) - interface PHYRateAttributeCallback { - fun onSuccess(value: Integer?) + class FullDuplexAttribute(val value: Boolean?) - fun onError(ex: Exception) + class CarrierDetectAttribute(val value: Boolean?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class GeneratedCommandListAttribute(val value: ArrayList) - interface FullDuplexAttributeCallback { - fun onSuccess(value: Boolean?) + class AcceptedCommandListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class EventListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class AttributeListAttribute(val value: ArrayList) - interface CarrierDetectAttributeCallback { - fun onSuccess(value: Boolean?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resetCounts(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) - } - - 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 readPHYRateAttribute(callback: PHYRateAttributeCallback) { + suspend fun readPHYRateAttribute(): PHYRateAttribute { // Implementation needs to be added here } - fun subscribePHYRateAttribute( - callback: PHYRateAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePHYRateAttribute(minInterval: Int, maxInterval: Int): PHYRateAttribute { // Implementation needs to be added here } - fun readFullDuplexAttribute(callback: FullDuplexAttributeCallback) { + suspend fun readFullDuplexAttribute(): FullDuplexAttribute { // Implementation needs to be added here } - fun subscribeFullDuplexAttribute( - callback: FullDuplexAttributeCallback, + suspend fun subscribeFullDuplexAttribute( minInterval: Int, maxInterval: Int - ) { + ): FullDuplexAttribute { // Implementation needs to be added here } - fun readPacketRxCountAttribute(callback: LongAttributeCallback) { + suspend fun readPacketRxCountAttribute(): ULong { // Implementation needs to be added here } - fun subscribePacketRxCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePacketRxCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readPacketTxCountAttribute(callback: LongAttributeCallback) { + suspend fun readPacketTxCountAttribute(): ULong { // Implementation needs to be added here } - fun subscribePacketTxCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePacketTxCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readTxErrCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxErrCountAttribute(): ULong { // Implementation needs to be added here } - fun subscribeTxErrCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxErrCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readCollisionCountAttribute(callback: LongAttributeCallback) { + suspend fun readCollisionCountAttribute(): ULong { // Implementation needs to be added here } - fun subscribeCollisionCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCollisionCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readOverrunCountAttribute(callback: LongAttributeCallback) { + suspend fun readOverrunCountAttribute(): ULong { // Implementation needs to be added here } - fun subscribeOverrunCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readCarrierDetectAttribute(callback: CarrierDetectAttributeCallback) { + suspend fun readCarrierDetectAttribute(): CarrierDetectAttribute { // Implementation needs to be added here } - fun subscribeCarrierDetectAttribute( - callback: CarrierDetectAttributeCallback, + suspend fun subscribeCarrierDetectAttribute( minInterval: Int, maxInterval: Int - ) { + ): CarrierDetectAttribute { // Implementation needs to be added here } - fun readTimeSinceResetAttribute(callback: LongAttributeCallback) { + suspend fun readTimeSinceResetAttribute(): ULong { // Implementation needs to be added here } - fun subscribeTimeSinceResetAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTimeSinceResetAttribute(minInterval: Int, maxInterval: Int): ULong { // 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 = 55u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt index fea630a32e28c0..50126d392ae8e3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt @@ -20,374 +20,247 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class FanControlCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 514u - } + class PercentSettingAttribute(val value: UByte?) - fun step( - callback: DefaultClusterCallback, - direction: Integer, - wrap: Boolean?, - lowestOff: Boolean? - ) { - // Implementation needs to be added here - } + class SpeedSettingAttribute(val value: UByte?) - fun step( - callback: DefaultClusterCallback, - direction: Integer, - wrap: Boolean?, - lowestOff: Boolean?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class GeneratedCommandListAttribute(val value: ArrayList) - interface PercentSettingAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface SpeedSettingAttributeCallback { - 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) - } - - 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) + suspend fun step( + direction: UInt, + wrap: Boolean?, + lowestOff: Boolean?, + timedInvokeTimeoutMs: Int? = null + ) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readFanModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readFanModeAttribute(): UByte { // Implementation needs to be added here } - fun writeFanModeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeFanModeAttribute(value: UInt) { // Implementation needs to be added here } - fun writeFanModeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeFanModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeFanModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFanModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readFanModeSequenceAttribute(callback: IntegerAttributeCallback) { + suspend fun readFanModeSequenceAttribute(): UByte { // Implementation needs to be added here } - fun writeFanModeSequenceAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeFanModeSequenceAttribute(value: UInt) { // Implementation needs to be added here } - fun writeFanModeSequenceAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeFanModeSequenceAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeFanModeSequenceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFanModeSequenceAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readPercentSettingAttribute(callback: PercentSettingAttributeCallback) { + suspend fun readPercentSettingAttribute(): PercentSettingAttribute { // Implementation needs to be added here } - fun writePercentSettingAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writePercentSettingAttribute(value: UByte) { // Implementation needs to be added here } - fun writePercentSettingAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writePercentSettingAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribePercentSettingAttribute( - callback: PercentSettingAttributeCallback, + suspend fun subscribePercentSettingAttribute( minInterval: Int, maxInterval: Int - ) { + ): PercentSettingAttribute { // Implementation needs to be added here } - fun readPercentCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readPercentCurrentAttribute(): UByte { // Implementation needs to be added here } - fun subscribePercentCurrentAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePercentCurrentAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readSpeedMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readSpeedMaxAttribute(): UByte { // Implementation needs to be added here } - fun subscribeSpeedMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSpeedMaxAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readSpeedSettingAttribute(callback: SpeedSettingAttributeCallback) { + suspend fun readSpeedSettingAttribute(): SpeedSettingAttribute { // Implementation needs to be added here } - fun writeSpeedSettingAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeSpeedSettingAttribute(value: UByte) { // Implementation needs to be added here } - fun writeSpeedSettingAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSpeedSettingAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeSpeedSettingAttribute( - callback: SpeedSettingAttributeCallback, + suspend fun subscribeSpeedSettingAttribute( minInterval: Int, maxInterval: Int - ) { + ): SpeedSettingAttribute { // Implementation needs to be added here } - fun readSpeedCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readSpeedCurrentAttribute(): UByte { // Implementation needs to be added here } - fun subscribeSpeedCurrentAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSpeedCurrentAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readRockSupportAttribute(callback: IntegerAttributeCallback) { + suspend fun readRockSupportAttribute(): UByte { // Implementation needs to be added here } - fun subscribeRockSupportAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRockSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readRockSettingAttribute(callback: IntegerAttributeCallback) { + suspend fun readRockSettingAttribute(): UByte { // Implementation needs to be added here } - fun writeRockSettingAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeRockSettingAttribute(value: UInt) { // Implementation needs to be added here } - fun writeRockSettingAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRockSettingAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeRockSettingAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRockSettingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readWindSupportAttribute(callback: IntegerAttributeCallback) { + suspend fun readWindSupportAttribute(): UByte { // Implementation needs to be added here } - fun subscribeWindSupportAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWindSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readWindSettingAttribute(callback: IntegerAttributeCallback) { + suspend fun readWindSettingAttribute(): UByte { // Implementation needs to be added here } - fun writeWindSettingAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeWindSettingAttribute(value: UInt) { // Implementation needs to be added here } - fun writeWindSettingAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeWindSettingAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeWindSettingAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWindSettingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readAirflowDirectionAttribute(callback: IntegerAttributeCallback) { + suspend fun readAirflowDirectionAttribute(): UByte { // Implementation needs to be added here } - fun writeAirflowDirectionAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeAirflowDirectionAttribute(value: UInt) { // Implementation needs to be added here } - fun writeAirflowDirectionAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeAirflowDirectionAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeAirflowDirectionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAirflowDirectionAttribute(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 = 514u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt index e7fe9587313e38..2caa5da496557a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt @@ -20,153 +20,100 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class FaultInjectionCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 4294048774u - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun failAtFault( - callback: DefaultClusterCallback, - type: Integer, - id: Long, - numCallsToSkip: Long, - numCallsToFail: Long, - takeMutex: Boolean - ) { - // Implementation needs to be added here - } + class AcceptedCommandListAttribute(val value: ArrayList) - fun failAtFault( - callback: DefaultClusterCallback, - type: Integer, - id: Long, - numCallsToSkip: Long, - numCallsToFail: Long, - takeMutex: Boolean, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class EventListAttribute(val value: ArrayList) - fun failRandomlyAtFault( - callback: DefaultClusterCallback, - type: Integer, - id: Long, - percentage: Integer - ) { - // Implementation needs to be added here - } + class AttributeListAttribute(val value: ArrayList) - fun failRandomlyAtFault( - callback: DefaultClusterCallback, - type: Integer, - id: Long, - percentage: Integer, - timedInvokeTimeoutMs: Int + suspend fun failAtFault( + type: UInt, + id: UInt, + numCallsToSkip: UInt, + numCallsToFail: UInt, + takeMutex: Boolean, + timedInvokeTimeoutMs: Int? = null ) { - // 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) - - 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) + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun failRandomlyAtFault( + type: UInt, + id: UInt, + percentage: UByte, + 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 = 4294048774u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt index bab84393fc7fd2..f57fc133305b04 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt @@ -20,131 +20,82 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class FixedLabelCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 64u - } - - interface LabelListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class LabelListAttribute(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) - - 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) - } - - fun readLabelListAttribute(callback: LabelListAttributeCallback) { + suspend fun readLabelListAttribute(): LabelListAttribute { // Implementation needs to be added here } - fun subscribeLabelListAttribute( - callback: LabelListAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLabelListAttribute(minInterval: Int, maxInterval: Int): LabelListAttribute { // 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 = 64u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt index f1075fa6282d2b..68704d81bc332c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt @@ -20,183 +20,119 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class FlowMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1028u - } - - interface MeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) + class MeasuredValueAttribute(val value: UShort?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MinMeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MinMeasuredValueAttribute(val value: UShort?) - interface MaxMeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) + class MaxMeasuredValueAttribute(val value: UShort?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(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) - } + 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) - } - - 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 readToleranceAttribute(callback: IntegerAttributeCallback) { + suspend fun readToleranceAttribute(): UShort { // Implementation needs to be added here } - fun subscribeToleranceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeToleranceAttribute(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 = 1028u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt index 5ab1994b688368..a609f5446fb170 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt @@ -20,283 +20,188 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1067u - } - - 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 = 1067u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt index de430114295af6..3ba91b04a0d7a2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt @@ -20,256 +20,171 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class GeneralCommissioningCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 48u - } - - fun armFailSafe( - callback: ArmFailSafeResponseCallback, - expiryLengthSeconds: Integer, - breadcrumb: Long - ) { - // Implementation needs to be added here - } - - fun armFailSafe( - callback: ArmFailSafeResponseCallback, - expiryLengthSeconds: Integer, - breadcrumb: Long, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun setRegulatoryConfig( - callback: SetRegulatoryConfigResponseCallback, - newRegulatoryConfig: Integer, - countryCode: String, - breadcrumb: Long - ) { - // Implementation needs to be added here - } - - fun setRegulatoryConfig( - callback: SetRegulatoryConfigResponseCallback, - newRegulatoryConfig: Integer, - countryCode: String, - breadcrumb: Long, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun commissioningComplete(callback: CommissioningCompleteResponseCallback) { - // Implementation needs to be added here - } - - fun commissioningComplete( - callback: CommissioningCompleteResponseCallback, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - interface ArmFailSafeResponseCallback { - fun onSuccess(errorCode: Integer, debugText: String) - - fun onError(error: Exception) - } - - interface SetRegulatoryConfigResponseCallback { - fun onSuccess(errorCode: Integer, debugText: String) - - fun onError(error: Exception) - } - - interface CommissioningCompleteResponseCallback { - fun onSuccess(errorCode: Integer, debugText: String) + class ArmFailSafeResponse(val errorCode: UInt, val debugText: String) - fun onError(error: Exception) - } + class SetRegulatoryConfigResponse(val errorCode: UInt, val debugText: String) - interface BasicCommissioningInfoAttributeCallback { - fun onSuccess(value: ChipStructs.GeneralCommissioningClusterBasicCommissioningInfo) + class CommissioningCompleteResponse(val errorCode: UInt, val debugText: String) - fun onError(ex: Exception) + class BasicCommissioningInfoAttribute( + val value: ChipStructs.GeneralCommissioningClusterBasicCommissioningInfo + ) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class GeneratedCommandListAttribute(val value: ArrayList) - 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 armFailSafe( + expiryLengthSeconds: UShort, + breadcrumb: ULong, + timedInvokeTimeoutMs: Int? = null + ): ArmFailSafeResponse { + 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 setRegulatoryConfig( + newRegulatoryConfig: UInt, + countryCode: String, + breadcrumb: ULong, + timedInvokeTimeoutMs: Int? = null + ): SetRegulatoryConfigResponse { + 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 commissioningComplete( + timedInvokeTimeoutMs: Int? = null + ): CommissioningCompleteResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readBreadcrumbAttribute(callback: LongAttributeCallback) { + suspend fun readBreadcrumbAttribute(): ULong { // Implementation needs to be added here } - fun writeBreadcrumbAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeBreadcrumbAttribute(value: ULong) { // Implementation needs to be added here } - fun writeBreadcrumbAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBreadcrumbAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeBreadcrumbAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBreadcrumbAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readBasicCommissioningInfoAttribute(callback: BasicCommissioningInfoAttributeCallback) { + suspend fun readBasicCommissioningInfoAttribute(): BasicCommissioningInfoAttribute { // Implementation needs to be added here } - fun subscribeBasicCommissioningInfoAttribute( - callback: BasicCommissioningInfoAttributeCallback, + suspend fun subscribeBasicCommissioningInfoAttribute( minInterval: Int, maxInterval: Int - ) { + ): BasicCommissioningInfoAttribute { // Implementation needs to be added here } - fun readRegulatoryConfigAttribute(callback: IntegerAttributeCallback) { + suspend fun readRegulatoryConfigAttribute(): UByte { // Implementation needs to be added here } - fun subscribeRegulatoryConfigAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRegulatoryConfigAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readLocationCapabilityAttribute(callback: IntegerAttributeCallback) { + suspend fun readLocationCapabilityAttribute(): UByte { // Implementation needs to be added here } - fun subscribeLocationCapabilityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLocationCapabilityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readSupportsConcurrentConnectionAttribute(callback: BooleanAttributeCallback) { + suspend fun readSupportsConcurrentConnectionAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeSupportsConcurrentConnectionAttribute( - callback: BooleanAttributeCallback, + suspend fun subscribeSupportsConcurrentConnectionAttribute( 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 = 48u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt index 931f3f1904afd6..83b0786c2ac77f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt @@ -20,276 +20,189 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class GeneralDiagnosticsCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 51u - } - - fun testEventTrigger(callback: DefaultClusterCallback, enableKey: ByteArray, eventTrigger: Long) { - // Implementation needs to be added here - } - - fun testEventTrigger( - callback: DefaultClusterCallback, - enableKey: ByteArray, - eventTrigger: Long, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - interface NetworkInterfacesAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ActiveHardwareFaultsAttributeCallback { - fun onSuccess(value: ArrayList?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ActiveRadioFaultsAttributeCallback { - fun onSuccess(value: ArrayList?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ActiveNetworkFaultsAttributeCallback { - fun onSuccess(value: ArrayList?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NetworkInterfacesAttribute( + val value: ArrayList + ) - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class ActiveHardwareFaultsAttribute(val value: ArrayList?) - fun onError(ex: Exception) + class ActiveRadioFaultsAttribute(val value: ArrayList?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class ActiveNetworkFaultsAttribute(val value: ArrayList?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class AcceptedCommandListAttribute(val value: ArrayList) - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class AttributeListAttribute(val value: ArrayList) - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun testEventTrigger( + enableKey: ByteArray, + eventTrigger: ULong, + timedInvokeTimeoutMs: Int? = null + ) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readNetworkInterfacesAttribute(callback: NetworkInterfacesAttributeCallback) { + suspend fun readNetworkInterfacesAttribute(): NetworkInterfacesAttribute { // Implementation needs to be added here } - fun subscribeNetworkInterfacesAttribute( - callback: NetworkInterfacesAttributeCallback, + suspend fun subscribeNetworkInterfacesAttribute( minInterval: Int, maxInterval: Int - ) { + ): NetworkInterfacesAttribute { // Implementation needs to be added here } - fun readRebootCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readRebootCountAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRebootCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRebootCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readUpTimeAttribute(callback: LongAttributeCallback) { + suspend fun readUpTimeAttribute(): ULong { // Implementation needs to be added here } - fun subscribeUpTimeAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeUpTimeAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readTotalOperationalHoursAttribute(callback: LongAttributeCallback) { + suspend fun readTotalOperationalHoursAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTotalOperationalHoursAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTotalOperationalHoursAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readBootReasonAttribute(callback: IntegerAttributeCallback) { + suspend fun readBootReasonAttribute(): UByte { // Implementation needs to be added here } - fun subscribeBootReasonAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBootReasonAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readActiveHardwareFaultsAttribute(callback: ActiveHardwareFaultsAttributeCallback) { + suspend fun readActiveHardwareFaultsAttribute(): ActiveHardwareFaultsAttribute { // Implementation needs to be added here } - fun subscribeActiveHardwareFaultsAttribute( - callback: ActiveHardwareFaultsAttributeCallback, + suspend fun subscribeActiveHardwareFaultsAttribute( minInterval: Int, maxInterval: Int - ) { + ): ActiveHardwareFaultsAttribute { // Implementation needs to be added here } - fun readActiveRadioFaultsAttribute(callback: ActiveRadioFaultsAttributeCallback) { + suspend fun readActiveRadioFaultsAttribute(): ActiveRadioFaultsAttribute { // Implementation needs to be added here } - fun subscribeActiveRadioFaultsAttribute( - callback: ActiveRadioFaultsAttributeCallback, + suspend fun subscribeActiveRadioFaultsAttribute( minInterval: Int, maxInterval: Int - ) { + ): ActiveRadioFaultsAttribute { // Implementation needs to be added here } - fun readActiveNetworkFaultsAttribute(callback: ActiveNetworkFaultsAttributeCallback) { + suspend fun readActiveNetworkFaultsAttribute(): ActiveNetworkFaultsAttribute { // Implementation needs to be added here } - fun subscribeActiveNetworkFaultsAttribute( - callback: ActiveNetworkFaultsAttributeCallback, + suspend fun subscribeActiveNetworkFaultsAttribute( minInterval: Int, maxInterval: Int - ) { + ): ActiveNetworkFaultsAttribute { // Implementation needs to be added here } - fun readTestEventTriggersEnabledAttribute(callback: BooleanAttributeCallback) { + suspend fun readTestEventTriggersEnabledAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeTestEventTriggersEnabledAttribute( - callback: BooleanAttributeCallback, + suspend fun subscribeTestEventTriggersEnabledAttribute( minInterval: Int, maxInterval: Int - ) { + ): Boolean { // Implementation needs to be added here } - fun readAverageWearCountAttribute(callback: LongAttributeCallback) { + suspend fun readAverageWearCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeAverageWearCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAverageWearCountAttribute(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 = 51u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt index 724e266df3b59f..11ca30cc8f5a3f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt @@ -20,266 +20,187 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class GroupKeyManagementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 63u - } + class KeySetReadResponse(val groupKeySet: ChipStructs.GroupKeyManagementClusterGroupKeySetStruct) - fun keySetWrite( - callback: DefaultClusterCallback, - groupKeySet: ChipStructs.GroupKeyManagementClusterGroupKeySetStruct - ) { - // Implementation needs to be added here - } + class KeySetReadAllIndicesResponse(val groupKeySetIDs: ArrayList) - fun keySetWrite( - callback: DefaultClusterCallback, - groupKeySet: ChipStructs.GroupKeyManagementClusterGroupKeySetStruct, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class GroupKeyMapAttribute( + val value: ArrayList + ) - fun keySetRead(callback: KeySetReadResponseCallback, groupKeySetID: Integer) { - // Implementation needs to be added here - } + class GroupTableAttribute( + val value: ArrayList + ) - fun keySetRead( - callback: KeySetReadResponseCallback, - groupKeySetID: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun keySetRemove(callback: DefaultClusterCallback, groupKeySetID: Integer) { - // Implementation needs to be added here - } + class AcceptedCommandListAttribute(val value: ArrayList) - fun keySetRemove( - callback: DefaultClusterCallback, - groupKeySetID: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class EventListAttribute(val value: ArrayList) - fun keySetReadAllIndices(callback: KeySetReadAllIndicesResponseCallback) { - // Implementation needs to be added here - } + class AttributeListAttribute(val value: ArrayList) - fun keySetReadAllIndices( - callback: KeySetReadAllIndicesResponseCallback, - timedInvokeTimeoutMs: Int + suspend fun keySetWrite( + groupKeySet: ChipStructs.GroupKeyManagementClusterGroupKeySetStruct, + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - interface KeySetReadResponseCallback { - fun onSuccess(groupKeySet: ChipStructs.GroupKeyManagementClusterGroupKeySetStruct) - - fun onError(error: Exception) - } - - interface KeySetReadAllIndicesResponseCallback { - fun onSuccess(groupKeySetIDs: ArrayList) - - fun onError(error: Exception) - } - - interface GroupKeyMapAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface GroupTableAttributeCallback { - fun onSuccess(value: ArrayList) - - 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 keySetRead( + groupKeySetID: UShort, + timedInvokeTimeoutMs: Int? = null + ): KeySetReadResponse { + 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 keySetRemove(groupKeySetID: UShort, 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 keySetReadAllIndices( + timedInvokeTimeoutMs: Int? = null + ): KeySetReadAllIndicesResponse { + 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) - } - - fun readGroupKeyMapAttribute(callback: GroupKeyMapAttributeCallback) { + suspend fun readGroupKeyMapAttribute(): GroupKeyMapAttribute { // Implementation needs to be added here } - fun readGroupKeyMapAttributeWithFabricFilter( - callback: GroupKeyMapAttributeCallback, + suspend fun readGroupKeyMapAttributeWithFabricFilter( isFabricFiltered: Boolean - ) { + ): GroupKeyMapAttribute { // Implementation needs to be added here } - fun writeGroupKeyMapAttribute( - callback: DefaultClusterCallback, + suspend fun writeGroupKeyMapAttribute( value: ArrayList ) { // Implementation needs to be added here } - fun writeGroupKeyMapAttribute( - callback: DefaultClusterCallback, + suspend fun writeGroupKeyMapAttribute( value: ArrayList, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeGroupKeyMapAttribute( - callback: GroupKeyMapAttributeCallback, + suspend fun subscribeGroupKeyMapAttribute( minInterval: Int, maxInterval: Int - ) { + ): GroupKeyMapAttribute { // Implementation needs to be added here } - fun readGroupTableAttribute(callback: GroupTableAttributeCallback) { + suspend fun readGroupTableAttribute(): GroupTableAttribute { // Implementation needs to be added here } - fun readGroupTableAttributeWithFabricFilter( - callback: GroupTableAttributeCallback, + suspend fun readGroupTableAttributeWithFabricFilter( isFabricFiltered: Boolean - ) { + ): GroupTableAttribute { // Implementation needs to be added here } - fun subscribeGroupTableAttribute( - callback: GroupTableAttributeCallback, + suspend fun subscribeGroupTableAttribute( minInterval: Int, maxInterval: Int - ) { + ): GroupTableAttribute { // Implementation needs to be added here } - fun readMaxGroupsPerFabricAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxGroupsPerFabricAttribute(): UShort { // Implementation needs to be added here } - fun subscribeMaxGroupsPerFabricAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxGroupsPerFabricAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readMaxGroupKeysPerFabricAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxGroupKeysPerFabricAttribute(): UShort { // Implementation needs to be added here } - fun subscribeMaxGroupKeysPerFabricAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxGroupKeysPerFabricAttribute(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 = 63u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt index 95af698e4a9098..01c1dec237e116 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt @@ -20,216 +20,147 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class GroupsCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 4u - } + class AddGroupResponse(val status: UInt, val groupID: UShort) - fun addGroup(callback: AddGroupResponseCallback, groupID: Integer, groupName: String) { - // Implementation needs to be added here - } + class ViewGroupResponse(val status: UInt, val groupID: UShort, val groupName: String) - fun addGroup( - callback: AddGroupResponseCallback, - groupID: Integer, - groupName: String, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class GetGroupMembershipResponse(val capacity: UByte?, val groupList: ArrayList) - fun viewGroup(callback: ViewGroupResponseCallback, groupID: Integer) { - // Implementation needs to be added here - } + class RemoveGroupResponse(val status: UInt, val groupID: UShort) - fun viewGroup(callback: ViewGroupResponseCallback, groupID: Integer, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun getGroupMembership( - callback: GetGroupMembershipResponseCallback, - groupList: ArrayList - ) { - // Implementation needs to be added here - } + class AcceptedCommandListAttribute(val value: ArrayList) - fun getGroupMembership( - callback: GetGroupMembershipResponseCallback, - groupList: ArrayList, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class EventListAttribute(val value: ArrayList) - fun removeGroup(callback: RemoveGroupResponseCallback, groupID: Integer) { - // Implementation needs to be added here - } + class AttributeListAttribute(val value: ArrayList) - fun removeGroup( - callback: RemoveGroupResponseCallback, - groupID: Integer, - timedInvokeTimeoutMs: Int + suspend fun addGroup( + groupID: UShort, + groupName: String, + timedInvokeTimeoutMs: Int? = null + ): AddGroupResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun viewGroup(groupID: UShort, timedInvokeTimeoutMs: Int? = null): ViewGroupResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun getGroupMembership( + groupList: ArrayList, + timedInvokeTimeoutMs: Int? = null + ): GetGroupMembershipResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun removeGroup(groupID: UShort, timedInvokeTimeoutMs: Int? = null): RemoveGroupResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun removeAllGroups(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun addGroupIfIdentifying( + groupID: UShort, + groupName: String, + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - fun removeAllGroups(callback: DefaultClusterCallback) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun removeAllGroups(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun readNameSupportAttribute(): UByte { // Implementation needs to be added here } - fun addGroupIfIdentifying(callback: DefaultClusterCallback, groupID: Integer, groupName: String) { + suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun addGroupIfIdentifying( - callback: DefaultClusterCallback, - groupID: Integer, - groupName: String, - timedInvokeTimeoutMs: Int - ) { + suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here } - interface AddGroupResponseCallback { - fun onSuccess(status: Integer, groupID: Integer) - - fun onError(error: Exception) - } - - interface ViewGroupResponseCallback { - fun onSuccess(status: Integer, groupID: Integer, groupName: String) - - fun onError(error: Exception) - } - - interface GetGroupMembershipResponseCallback { - fun onSuccess(capacity: Integer?, groupList: ArrayList) - - fun onError(error: Exception) - } - - interface RemoveGroupResponseCallback { - fun onSuccess(status: Integer, groupID: Integer) - - fun onError(error: Exception) - } - - 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 readNameSupportAttribute(callback: IntegerAttributeCallback) { - // Implementation needs to be added here - } - - fun subscribeNameSupportAttribute( - callback: IntegerAttributeCallback, + 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 = 4u } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt index 197ec7b96c2d35..261d7a1740d98b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt @@ -20,221 +20,148 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class HepaFilterMonitoringCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 113u - } - - 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 = 113u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt index 5356755c8cab03..124385d641dd9f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt @@ -20,250 +20,194 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class IcdManagementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 70u - } + class RegisterClientResponse(val ICDCounter: UInt) - fun registerClient( - callback: RegisterClientResponseCallback, - checkInNodeID: Long, - monitoredSubject: Long, - key: ByteArray, - verificationKey: ByteArray? - ) { - // Implementation needs to be added here - } + class RegisteredClientsAttribute( + val value: ArrayList? + ) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) - fun registerClient( - callback: RegisterClientResponseCallback, - checkInNodeID: Long, - monitoredSubject: Long, + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun registerClient( + checkInNodeID: ULong, + monitoredSubject: ULong, key: ByteArray, verificationKey: ByteArray?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here + timedInvokeTimeoutMs: Int? = null + ): RegisterClientResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun unregisterClient( - callback: DefaultClusterCallback, - checkInNodeID: Long, - verificationKey: ByteArray? - ) { - // Implementation needs to be added here - } - - fun unregisterClient( - callback: DefaultClusterCallback, - checkInNodeID: Long, + suspend fun unregisterClient( + checkInNodeID: ULong, verificationKey: ByteArray?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun stayActiveRequest(callback: DefaultClusterCallback) { - // Implementation needs to be added here + suspend fun stayActiveRequest(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun stayActiveRequest(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun readIdleModeDurationAttribute(): UInt { // Implementation needs to be added here } - interface RegisterClientResponseCallback { - fun onSuccess(ICDCounter: Long) - - fun onError(error: Exception) - } - - interface RegisteredClientsAttributeCallback { - 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) + suspend fun subscribeIdleModeDurationAttribute(minInterval: Int, maxInterval: Int): UInt { + // Implementation needs to be added here } - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun readActiveModeDurationAttribute(): UInt { + // Implementation needs to be added here } - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun subscribeActiveModeDurationAttribute(minInterval: Int, maxInterval: Int): UInt { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun readActiveModeThresholdAttribute(): UShort { + // Implementation needs to be added here } - fun readIdleModeDurationAttribute(callback: LongAttributeCallback) { + suspend fun subscribeActiveModeThresholdAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun subscribeIdleModeDurationAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun readRegisteredClientsAttribute(): RegisteredClientsAttribute { // Implementation needs to be added here } - fun readActiveModeDurationAttribute(callback: LongAttributeCallback) { + suspend fun readRegisteredClientsAttributeWithFabricFilter( + isFabricFiltered: Boolean + ): RegisteredClientsAttribute { // Implementation needs to be added here } - fun subscribeActiveModeDurationAttribute( - callback: LongAttributeCallback, + suspend fun subscribeRegisteredClientsAttribute( minInterval: Int, maxInterval: Int - ) { - // Implementation needs to be added here - } - - fun readActiveModeThresholdAttribute(callback: IntegerAttributeCallback) { + ): RegisteredClientsAttribute { // Implementation needs to be added here } - fun subscribeActiveModeThresholdAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun readICDCounterAttribute(): UInt { // Implementation needs to be added here } - fun readRegisteredClientsAttribute(callback: RegisteredClientsAttributeCallback) { + suspend fun subscribeICDCounterAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRegisteredClientsAttributeWithFabricFilter( - callback: RegisteredClientsAttributeCallback, - isFabricFiltered: Boolean - ) { + suspend fun readClientsSupportedPerFabricAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRegisteredClientsAttribute( - callback: RegisteredClientsAttributeCallback, + suspend fun subscribeClientsSupportedPerFabricAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readICDCounterAttribute(callback: LongAttributeCallback) { + suspend fun readUserActiveModeTriggerHintAttribute(): UInt { // Implementation needs to be added here } - fun subscribeICDCounterAttribute( - callback: LongAttributeCallback, + suspend fun subscribeUserActiveModeTriggerHintAttribute( minInterval: Int, maxInterval: Int - ) { + ): UInt { // Implementation needs to be added here } - fun readClientsSupportedPerFabricAttribute(callback: IntegerAttributeCallback) { + suspend fun readUserActiveModeTriggerInstructionAttribute(): CharString { // Implementation needs to be added here } - fun subscribeClientsSupportedPerFabricAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeUserActiveModeTriggerInstructionAttribute( 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 = 70u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt index be3173b944c2f3..1726a21d39257d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt @@ -20,172 +20,116 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class IdentifyCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 3u - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun identify(callback: DefaultClusterCallback, identifyTime: Integer) { - // Implementation needs to be added here - } + class AcceptedCommandListAttribute(val value: ArrayList) - fun identify(callback: DefaultClusterCallback, identifyTime: Integer, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class EventListAttribute(val value: ArrayList) - fun triggerEffect( - callback: DefaultClusterCallback, - effectIdentifier: Integer, - effectVariant: Integer - ) { - // Implementation needs to be added here - } + class AttributeListAttribute(val value: ArrayList) - fun triggerEffect( - callback: DefaultClusterCallback, - effectIdentifier: Integer, - effectVariant: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here + suspend fun identify(identifyTime: UShort, 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) - } - - 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) + suspend fun triggerEffect( + effectIdentifier: UInt, + effectVariant: UInt, + timedInvokeTimeoutMs: Int? = null + ) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readIdentifyTimeAttribute(callback: IntegerAttributeCallback) { + suspend fun readIdentifyTimeAttribute(): UShort { // Implementation needs to be added here } - fun writeIdentifyTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeIdentifyTimeAttribute(value: UShort) { // Implementation needs to be added here } - fun writeIdentifyTimeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeIdentifyTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeIdentifyTimeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeIdentifyTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readIdentifyTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readIdentifyTypeAttribute(): UByte { // Implementation needs to be added here } - fun subscribeIdentifyTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeIdentifyTypeAttribute(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 = 3u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt index ddd3a319e7954c..5c00ce53208a43 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt @@ -20,203 +20,132 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class IlluminanceMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1024u - } - - interface MeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MinMeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MaxMeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface LightSensorTypeAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class MeasuredValueAttribute(val value: UShort?) - fun onError(ex: Exception) + class MinMeasuredValueAttribute(val value: UShort?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MaxMeasuredValueAttribute(val value: UShort?) - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) + class LightSensorTypeAttribute(val value: UInt?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - 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 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 readToleranceAttribute(callback: IntegerAttributeCallback) { + suspend fun readToleranceAttribute(): UShort { // Implementation needs to be added here } - fun subscribeToleranceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readLightSensorTypeAttribute(callback: LightSensorTypeAttributeCallback) { + suspend fun readLightSensorTypeAttribute(): LightSensorTypeAttribute { // Implementation needs to be added here } - fun subscribeLightSensorTypeAttribute( - callback: LightSensorTypeAttributeCallback, + suspend fun subscribeLightSensorTypeAttribute( minInterval: Int, maxInterval: Int - ) { + ): LightSensorTypeAttribute { // 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 = 1024u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt index cb3b2175937043..bf2b852f33a5b3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt @@ -20,125 +20,82 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class KeypadInputCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1289u - } - - fun sendKey(callback: SendKeyResponseCallback, keyCode: Integer) { - // Implementation needs to be added here - } - - fun sendKey(callback: SendKeyResponseCallback, keyCode: Integer, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - interface SendKeyResponseCallback { - fun onSuccess(status: Integer) - - fun onError(error: Exception) - } - - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class SendKeyResponse(val status: UInt) - 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) - } - - 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 sendKey(keyCode: UInt, timedInvokeTimeoutMs: Int? = null): SendKeyResponse { + 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 = 1289u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt index 525094a60feb69..e9f6ffa9de625a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt @@ -20,207 +20,135 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class LaundryWasherControlsCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 83u - } - - interface SpinSpeedsAttributeCallback { - fun onSuccess(value: ArrayList?) - - fun onError(ex: Exception) + class SpinSpeedsAttribute(val value: ArrayList?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface SpinSpeedCurrentAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class SpinSpeedCurrentAttribute(val value: UByte?) - interface SupportedRinsesAttributeCallback { - fun onSuccess(value: ArrayList?) + class SupportedRinsesAttribute(val value: ArrayList?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(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) - } + 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) - } - - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - fun readSpinSpeedsAttribute(callback: SpinSpeedsAttributeCallback) { + suspend fun readSpinSpeedsAttribute(): SpinSpeedsAttribute { // Implementation needs to be added here } - fun subscribeSpinSpeedsAttribute( - callback: SpinSpeedsAttributeCallback, + suspend fun subscribeSpinSpeedsAttribute( minInterval: Int, maxInterval: Int - ) { + ): SpinSpeedsAttribute { // Implementation needs to be added here } - fun readSpinSpeedCurrentAttribute(callback: SpinSpeedCurrentAttributeCallback) { + suspend fun readSpinSpeedCurrentAttribute(): SpinSpeedCurrentAttribute { // Implementation needs to be added here } - fun writeSpinSpeedCurrentAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeSpinSpeedCurrentAttribute(value: UByte) { // Implementation needs to be added here } - fun writeSpinSpeedCurrentAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSpinSpeedCurrentAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeSpinSpeedCurrentAttribute( - callback: SpinSpeedCurrentAttributeCallback, + suspend fun subscribeSpinSpeedCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): SpinSpeedCurrentAttribute { // Implementation needs to be added here } - fun readNumberOfRinsesAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfRinsesAttribute(): UByte { // Implementation needs to be added here } - fun writeNumberOfRinsesAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeNumberOfRinsesAttribute(value: UInt) { // Implementation needs to be added here } - fun writeNumberOfRinsesAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNumberOfRinsesAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNumberOfRinsesAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeNumberOfRinsesAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readSupportedRinsesAttribute(callback: SupportedRinsesAttributeCallback) { + suspend fun readSupportedRinsesAttribute(): SupportedRinsesAttribute { // Implementation needs to be added here } - fun subscribeSupportedRinsesAttribute( - callback: SupportedRinsesAttributeCallback, + suspend fun subscribeSupportedRinsesAttribute( minInterval: Int, maxInterval: Int - ) { + ): SupportedRinsesAttribute { // 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 = 83u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt index 0064e8588a5bc3..7e41ed91ea99e2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt @@ -20,225 +20,147 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class LaundryWasherModeCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 81u - } - - 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 = 81u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt index fd0c0ecd34dc6c..c60bb74c788614 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt @@ -20,583 +20,381 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class LevelControlCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 8u - } + class CurrentLevelAttribute(val value: UByte?) - fun moveToLevel( - callback: DefaultClusterCallback, - level: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer - ) { - // Implementation needs to be added here - } + class OnLevelAttribute(val value: UByte?) - fun moveToLevel( - callback: DefaultClusterCallback, - level: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class OnTransitionTimeAttribute(val value: UShort?) - fun move( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer?, - optionsMask: Integer, - optionsOverride: Integer - ) { - // Implementation needs to be added here - } - - fun move( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer?, - optionsMask: Integer, - optionsOverride: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class OffTransitionTimeAttribute(val value: UShort?) - fun step( - callback: DefaultClusterCallback, - stepMode: Integer, - stepSize: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer - ) { - // Implementation needs to be added here - } + class DefaultMoveRateAttribute(val value: UByte?) - fun step( - callback: DefaultClusterCallback, - stepMode: Integer, - stepSize: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class StartUpCurrentLevelAttribute(val value: UByte?) - fun stop(callback: DefaultClusterCallback, optionsMask: Integer, optionsOverride: Integer) { - // Implementation needs to be added here - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun stop( - callback: DefaultClusterCallback, - optionsMask: Integer, - optionsOverride: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class AcceptedCommandListAttribute(val value: ArrayList) - fun moveToLevelWithOnOff( - callback: DefaultClusterCallback, - level: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer - ) { - // Implementation needs to be added here - } + class EventListAttribute(val value: ArrayList) - fun moveToLevelWithOnOff( - callback: DefaultClusterCallback, - level: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class AttributeListAttribute(val value: ArrayList) - fun moveWithOnOff( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer?, - optionsMask: Integer, - optionsOverride: Integer + suspend fun moveToLevel( + level: 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 moveWithOnOff( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer?, - optionsMask: Integer, - optionsOverride: Integer, - timedInvokeTimeoutMs: Int + suspend fun move( + 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 stepWithOnOff( - callback: DefaultClusterCallback, - stepMode: Integer, - stepSize: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer + suspend fun step( + stepMode: UInt, + stepSize: 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 stepWithOnOff( - callback: DefaultClusterCallback, - stepMode: Integer, - stepSize: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here + suspend fun stop(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun stopWithOnOff( - callback: DefaultClusterCallback, - optionsMask: Integer, - optionsOverride: Integer + suspend fun moveToLevelWithOnOff( + level: 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 stopWithOnOff( - callback: DefaultClusterCallback, - optionsMask: Integer, - optionsOverride: Integer, - timedInvokeTimeoutMs: Int + suspend fun moveWithOnOff( + moveMode: UInt, + rate: UByte?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - fun moveToClosestFrequency(callback: DefaultClusterCallback, frequency: Integer) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun moveToClosestFrequency( - callback: DefaultClusterCallback, - frequency: Integer, - timedInvokeTimeoutMs: Int + suspend fun stepWithOnOff( + stepMode: UInt, + stepSize: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - interface CurrentLevelAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface OnLevelAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface OnTransitionTimeAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface OffTransitionTimeAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface DefaultMoveRateAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface StartUpCurrentLevelAttributeCallback { - 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 stopWithOnOff( + optionsMask: UInt, + optionsOverride: UInt, + 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 moveToClosestFrequency(frequency: UShort, 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 readCurrentLevelAttribute(): CurrentLevelAttribute { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - fun readCurrentLevelAttribute(callback: CurrentLevelAttributeCallback) { - // Implementation needs to be added here - } - - fun subscribeCurrentLevelAttribute( - callback: CurrentLevelAttributeCallback, + suspend fun subscribeCurrentLevelAttribute( minInterval: Int, maxInterval: Int - ) { + ): CurrentLevelAttribute { // Implementation needs to be added here } - fun readRemainingTimeAttribute(callback: IntegerAttributeCallback) { + suspend fun readRemainingTimeAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRemainingTimeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readMinLevelAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinLevelAttribute(): UByte { // 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 subscribeMaxLevelAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readCurrentFrequencyAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentFrequencyAttribute(): UShort { // Implementation needs to be added here } - fun subscribeCurrentFrequencyAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readMinFrequencyAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinFrequencyAttribute(): UShort { // Implementation needs to be added here } - fun subscribeMinFrequencyAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMinFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readMaxFrequencyAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxFrequencyAttribute(): UShort { // Implementation needs to be added here } - fun subscribeMaxFrequencyAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readOptionsAttribute(callback: IntegerAttributeCallback) { + suspend fun readOptionsAttribute(): UByte { // Implementation needs to be added here } - fun writeOptionsAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOptionsAttribute(value: UInt) { // Implementation needs to be added here } - fun writeOptionsAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOptionsAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOptionsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOptionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readOnOffTransitionTimeAttribute(callback: IntegerAttributeCallback) { + suspend fun readOnOffTransitionTimeAttribute(): UShort { // Implementation needs to be added here } - fun writeOnOffTransitionTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOnOffTransitionTimeAttribute(value: UShort) { // Implementation needs to be added here } - fun writeOnOffTransitionTimeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnOffTransitionTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOnOffTransitionTimeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOnOffTransitionTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readOnLevelAttribute(callback: OnLevelAttributeCallback) { + suspend fun readOnLevelAttribute(): OnLevelAttribute { // Implementation needs to be added here } - fun writeOnLevelAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOnLevelAttribute(value: UByte) { // Implementation needs to be added here } - fun writeOnLevelAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnLevelAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOnLevelAttribute( - callback: OnLevelAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOnLevelAttribute(minInterval: Int, maxInterval: Int): OnLevelAttribute { // Implementation needs to be added here } - fun readOnTransitionTimeAttribute(callback: OnTransitionTimeAttributeCallback) { + suspend fun readOnTransitionTimeAttribute(): OnTransitionTimeAttribute { // Implementation needs to be added here } - fun writeOnTransitionTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOnTransitionTimeAttribute(value: UShort) { // Implementation needs to be added here } - fun writeOnTransitionTimeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnTransitionTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOnTransitionTimeAttribute( - callback: OnTransitionTimeAttributeCallback, + suspend fun subscribeOnTransitionTimeAttribute( minInterval: Int, maxInterval: Int - ) { + ): OnTransitionTimeAttribute { // Implementation needs to be added here } - fun readOffTransitionTimeAttribute(callback: OffTransitionTimeAttributeCallback) { + suspend fun readOffTransitionTimeAttribute(): OffTransitionTimeAttribute { // Implementation needs to be added here } - fun writeOffTransitionTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOffTransitionTimeAttribute(value: UShort) { // Implementation needs to be added here } - fun writeOffTransitionTimeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOffTransitionTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOffTransitionTimeAttribute( - callback: OffTransitionTimeAttributeCallback, + suspend fun subscribeOffTransitionTimeAttribute( minInterval: Int, maxInterval: Int - ) { + ): OffTransitionTimeAttribute { // Implementation needs to be added here } - fun readDefaultMoveRateAttribute(callback: DefaultMoveRateAttributeCallback) { + suspend fun readDefaultMoveRateAttribute(): DefaultMoveRateAttribute { // Implementation needs to be added here } - fun writeDefaultMoveRateAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeDefaultMoveRateAttribute(value: UByte) { // Implementation needs to be added here } - fun writeDefaultMoveRateAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeDefaultMoveRateAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeDefaultMoveRateAttribute( - callback: DefaultMoveRateAttributeCallback, + suspend fun subscribeDefaultMoveRateAttribute( minInterval: Int, maxInterval: Int - ) { + ): DefaultMoveRateAttribute { // Implementation needs to be added here } - fun readStartUpCurrentLevelAttribute(callback: StartUpCurrentLevelAttributeCallback) { + suspend fun readStartUpCurrentLevelAttribute(): StartUpCurrentLevelAttribute { // Implementation needs to be added here } - fun writeStartUpCurrentLevelAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeStartUpCurrentLevelAttribute(value: UByte) { // Implementation needs to be added here } - fun writeStartUpCurrentLevelAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeStartUpCurrentLevelAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeStartUpCurrentLevelAttribute( - callback: StartUpCurrentLevelAttributeCallback, + suspend fun subscribeStartUpCurrentLevelAttribute( minInterval: Int, maxInterval: Int - ) { + ): StartUpCurrentLevelAttribute { // 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 = 8u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt index f83ccd57f56f5d..60b89689489ade 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt @@ -20,155 +20,101 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class LocalizationConfigurationCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 43u - } - - interface SupportedLocalesAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class SupportedLocalesAttribute(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) - - 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) - } - - fun readActiveLocaleAttribute(callback: CharStringAttributeCallback) { + suspend fun readActiveLocaleAttribute(): CharString { // Implementation needs to be added here } - fun writeActiveLocaleAttribute(callback: DefaultClusterCallback, value: String) { + suspend fun writeActiveLocaleAttribute(value: String) { // Implementation needs to be added here } - fun writeActiveLocaleAttribute( - callback: DefaultClusterCallback, - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeActiveLocaleAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeActiveLocaleAttribute( - callback: CharStringAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActiveLocaleAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } - fun readSupportedLocalesAttribute(callback: SupportedLocalesAttributeCallback) { + suspend fun readSupportedLocalesAttribute(): SupportedLocalesAttribute { // Implementation needs to be added here } - fun subscribeSupportedLocalesAttribute( - callback: SupportedLocalesAttributeCallback, + suspend fun subscribeSupportedLocalesAttribute( minInterval: Int, maxInterval: Int - ) { + ): SupportedLocalesAttribute { // 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 = 43u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt index b21f9f213b3bf0..4dca4c58fe9beb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt @@ -20,119 +20,80 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class LowPowerCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1288u - } - - fun sleep(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun sleep(callback: DefaultClusterCallback, 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) - - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - 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 sleep(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 = 1288u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt index 27482138fe32a0..5e013126be4f21 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt @@ -20,180 +20,122 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class MediaInputCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1287u - } + class InputListAttribute(val value: ArrayList) - fun selectInput(callback: DefaultClusterCallback, index: Integer) { - // Implementation needs to be added here - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun selectInput(callback: DefaultClusterCallback, index: Integer, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class AcceptedCommandListAttribute(val value: ArrayList) - fun showInputStatus(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } + class EventListAttribute(val value: ArrayList) - fun showInputStatus(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class AttributeListAttribute(val value: ArrayList) - fun hideInputStatus(callback: DefaultClusterCallback) { - // Implementation needs to be added here + suspend fun selectInput(index: UByte, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun hideInputStatus(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun showInputStatus(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun renameInput(callback: DefaultClusterCallback, index: Integer, name: String) { - // Implementation needs to be added here - } - - fun renameInput( - callback: DefaultClusterCallback, - index: Integer, - name: String, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - interface InputListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun hideInputStatus(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 renameInput(index: UByte, name: String, 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 readInputListAttribute(callback: InputListAttributeCallback) { + suspend fun readInputListAttribute(): InputListAttribute { // Implementation needs to be added here } - fun subscribeInputListAttribute( - callback: InputListAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInputListAttribute(minInterval: Int, maxInterval: Int): InputListAttribute { // Implementation needs to be added here } - fun readCurrentInputAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentInputAttribute(): UByte { // Implementation needs to be added here } - fun subscribeCurrentInputAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentInputAttribute(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 = 1287u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt index cfceceef431065..3769725825a9c5 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt @@ -20,337 +20,245 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class MediaPlaybackCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1286u - } + class PlaybackResponse(val status: UInt, val data: String?) - fun play(callback: PlaybackResponseCallback) { - // Implementation needs to be added here - } + class StartTimeAttribute(val value: ULong?) - fun play(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class DurationAttribute(val value: ULong?) - fun pause(callback: PlaybackResponseCallback) { - // Implementation needs to be added here - } + class SampledPositionAttribute( + val value: ChipStructs.MediaPlaybackClusterPlaybackPositionStruct? + ) - fun pause(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class SeekRangeEndAttribute(val value: ULong?) - fun stop(callback: PlaybackResponseCallback) { - // Implementation needs to be added here - } + class SeekRangeStartAttribute(val value: ULong?) - fun stop(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun startOver(callback: PlaybackResponseCallback) { - // Implementation needs to be added here - } + class AcceptedCommandListAttribute(val value: ArrayList) - fun startOver(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class EventListAttribute(val value: ArrayList) - fun previous(callback: PlaybackResponseCallback) { - // Implementation needs to be added here - } + class AttributeListAttribute(val value: ArrayList) - fun previous(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun play(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun next(callback: PlaybackResponseCallback) { - // Implementation needs to be added here + suspend fun pause(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun next(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun stop(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun rewind(callback: PlaybackResponseCallback) { - // Implementation needs to be added here + suspend fun startOver(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun rewind(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun previous(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun fastForward(callback: PlaybackResponseCallback) { - // Implementation needs to be added here + suspend fun next(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun fastForward(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun rewind(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun skipForward(callback: PlaybackResponseCallback, deltaPositionMilliseconds: Long) { - // Implementation needs to be added here + suspend fun fastForward(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun skipForward( - callback: PlaybackResponseCallback, - deltaPositionMilliseconds: Long, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here + suspend fun skipForward( + deltaPositionMilliseconds: ULong, + timedInvokeTimeoutMs: Int? = null + ): PlaybackResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun skipBackward(callback: PlaybackResponseCallback, deltaPositionMilliseconds: Long) { - // Implementation needs to be added here + suspend fun skipBackward( + deltaPositionMilliseconds: ULong, + timedInvokeTimeoutMs: Int? = null + ): PlaybackResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun skipBackward( - callback: PlaybackResponseCallback, - deltaPositionMilliseconds: Long, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here + suspend fun seek(position: ULong, timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun seek(callback: PlaybackResponseCallback, position: Long) { + suspend fun readCurrentStateAttribute(): UByte { // Implementation needs to be added here } - fun seek(callback: PlaybackResponseCallback, position: Long, timedInvokeTimeoutMs: Int) { + suspend fun subscribeCurrentStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - interface PlaybackResponseCallback { - fun onSuccess(status: Integer, data: String?) - - fun onError(error: Exception) - } - - interface StartTimeAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface DurationAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface SampledPositionAttributeCallback { - fun onSuccess(value: ChipStructs.MediaPlaybackClusterPlaybackPositionStruct?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface SeekRangeEndAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface SeekRangeStartAttributeCallback { - fun onSuccess(value: Long?) - - 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 readCurrentStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readStartTimeAttribute(): StartTimeAttribute { // Implementation needs to be added here } - fun subscribeCurrentStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeStartTimeAttribute(minInterval: Int, maxInterval: Int): StartTimeAttribute { // Implementation needs to be added here } - fun readStartTimeAttribute(callback: StartTimeAttributeCallback) { + suspend fun readDurationAttribute(): DurationAttribute { // Implementation needs to be added here } - fun subscribeStartTimeAttribute( - callback: StartTimeAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDurationAttribute(minInterval: Int, maxInterval: Int): DurationAttribute { // Implementation needs to be added here } - fun readDurationAttribute(callback: DurationAttributeCallback) { + suspend fun readSampledPositionAttribute(): SampledPositionAttribute { // Implementation needs to be added here } - fun subscribeDurationAttribute( - callback: DurationAttributeCallback, + suspend fun subscribeSampledPositionAttribute( minInterval: Int, maxInterval: Int - ) { + ): SampledPositionAttribute { // Implementation needs to be added here } - fun readSampledPositionAttribute(callback: SampledPositionAttributeCallback) { + suspend fun readPlaybackSpeedAttribute(): Float { // Implementation needs to be added here } - fun subscribeSampledPositionAttribute( - callback: SampledPositionAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePlaybackSpeedAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } - fun readPlaybackSpeedAttribute(callback: FloatAttributeCallback) { + suspend fun readSeekRangeEndAttribute(): SeekRangeEndAttribute { // Implementation needs to be added here } - fun subscribePlaybackSpeedAttribute( - callback: FloatAttributeCallback, + suspend fun subscribeSeekRangeEndAttribute( minInterval: Int, maxInterval: Int - ) { + ): SeekRangeEndAttribute { // Implementation needs to be added here } - fun readSeekRangeEndAttribute(callback: SeekRangeEndAttributeCallback) { + suspend fun readSeekRangeStartAttribute(): SeekRangeStartAttribute { // Implementation needs to be added here } - fun subscribeSeekRangeEndAttribute( - callback: SeekRangeEndAttributeCallback, + suspend fun subscribeSeekRangeStartAttribute( minInterval: Int, maxInterval: Int - ) { + ): SeekRangeStartAttribute { // Implementation needs to be added here } - fun readSeekRangeStartAttribute(callback: SeekRangeStartAttributeCallback) { + suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here } - fun subscribeSeekRangeStartAttribute( - callback: SeekRangeStartAttributeCallback, + 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 - ) { - // Implementation needs to be added here - } - - fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + ): AttributeListAttribute { // 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 = 1286u } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt index a54d83e4866bba..7b32db37c44eb0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt @@ -20,247 +20,163 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class ModeSelectCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 80u - } - - fun changeToMode(callback: DefaultClusterCallback, newMode: Integer) { - // Implementation needs to be added here - } - - fun changeToMode(callback: DefaultClusterCallback, newMode: Integer, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - interface StandardNamespaceAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface SupportedModesAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - 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) - } - - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class StandardNamespaceAttribute(val value: UInt?) - fun onError(ex: Exception) + class SupportedModesAttribute( + val value: ArrayList + ) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class StartUpModeAttribute(val value: UByte?) - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) + class OnModeAttribute(val value: UByte?) - 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 changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readDescriptionAttribute(callback: CharStringAttributeCallback) { + suspend fun readDescriptionAttribute(): CharString { // 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 readStandardNamespaceAttribute(callback: StandardNamespaceAttributeCallback) { + suspend fun readStandardNamespaceAttribute(): StandardNamespaceAttribute { // Implementation needs to be added here } - fun subscribeStandardNamespaceAttribute( - callback: StandardNamespaceAttributeCallback, + suspend fun subscribeStandardNamespaceAttribute( minInterval: Int, maxInterval: Int - ) { + ): StandardNamespaceAttribute { // Implementation needs to be added here } - 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 = 80u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt index a946c8cb89c8b7..c3ffa0cd078e4a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt @@ -20,422 +20,290 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class NetworkCommissioningCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 49u - } - - fun scanNetworks(callback: ScanNetworksResponseCallback, ssid: ByteArray?, breadcrumb: Long?) { - // Implementation needs to be added here - } - - fun scanNetworks( - callback: ScanNetworksResponseCallback, - ssid: ByteArray?, - breadcrumb: Long?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun addOrUpdateWiFiNetwork( - callback: NetworkConfigResponseCallback, - ssid: ByteArray, - credentials: ByteArray, - breadcrumb: Long? - ) { - // Implementation needs to be added here - } - - fun addOrUpdateWiFiNetwork( - callback: NetworkConfigResponseCallback, - ssid: ByteArray, - credentials: ByteArray, - breadcrumb: Long?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun addOrUpdateThreadNetwork( - callback: NetworkConfigResponseCallback, - operationalDataset: ByteArray, - breadcrumb: Long? - ) { - // Implementation needs to be added here - } - - fun addOrUpdateThreadNetwork( - callback: NetworkConfigResponseCallback, - operationalDataset: ByteArray, - breadcrumb: Long?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun removeNetwork( - callback: NetworkConfigResponseCallback, - networkID: ByteArray, - breadcrumb: Long? - ) { - // Implementation needs to be added here - } - - fun removeNetwork( - callback: NetworkConfigResponseCallback, - networkID: ByteArray, - breadcrumb: Long?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun connectNetwork( - callback: ConnectNetworkResponseCallback, - networkID: ByteArray, - breadcrumb: Long? - ) { - // Implementation needs to be added here - } + class ScanNetworksResponse( + val networkingStatus: UInt, + val debugText: String?, + val wiFiScanResults: + ArrayList?, + val threadScanResults: + ArrayList? + ) - fun connectNetwork( - callback: ConnectNetworkResponseCallback, - networkID: ByteArray, - breadcrumb: Long?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class NetworkConfigResponse( + val networkingStatus: UInt, + val debugText: String?, + val networkIndex: UByte? + ) - fun reorderNetwork( - callback: NetworkConfigResponseCallback, - networkID: ByteArray, - networkIndex: Integer, - breadcrumb: Long? - ) { - // Implementation needs to be added here - } + class ConnectNetworkResponse( + val networkingStatus: UInt, + val debugText: String?, + val errorValue: Int? + ) - fun reorderNetwork( - callback: NetworkConfigResponseCallback, - networkID: ByteArray, - networkIndex: Integer, - breadcrumb: Long?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class NetworksAttribute( + val value: ArrayList + ) - interface ScanNetworksResponseCallback { - fun onSuccess( - networkingStatus: Integer, - debugText: String?, - wiFiScanResults: - ArrayList?, - threadScanResults: - ArrayList? - ) + class LastNetworkingStatusAttribute(val value: UInt?) - fun onError(error: Exception) - } + class LastNetworkIDAttribute(val value: ByteArray?) - interface NetworkConfigResponseCallback { - fun onSuccess(networkingStatus: Integer, debugText: String?, networkIndex: Integer?) + class LastConnectErrorValueAttribute(val value: Int?) - fun onError(error: Exception) - } + class SupportedWiFiBandsAttribute(val value: ArrayList?) - interface ConnectNetworkResponseCallback { - fun onSuccess(networkingStatus: Integer, debugText: String?, errorValue: Long?) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onError(error: Exception) - } + class AcceptedCommandListAttribute(val value: ArrayList) - interface NetworksAttributeCallback { - fun onSuccess(value: ArrayList) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class AttributeListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface LastNetworkingStatusAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface LastNetworkIDAttributeCallback { - fun onSuccess(value: ByteArray?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface LastConnectErrorValueAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun scanNetworks( + ssid: ByteArray?, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): ScanNetworksResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface SupportedWiFiBandsAttributeCallback { - fun onSuccess(value: ArrayList?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun addOrUpdateWiFiNetwork( + ssid: ByteArray, + credentials: ByteArray, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): NetworkConfigResponse { + 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 addOrUpdateThreadNetwork( + operationalDataset: ByteArray, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): NetworkConfigResponse { + 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 removeNetwork( + networkID: ByteArray, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): NetworkConfigResponse { + 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 connectNetwork( + networkID: ByteArray, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): ConnectNetworkResponse { + 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 reorderNetwork( + networkID: ByteArray, + networkIndex: UByte, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): NetworkConfigResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readMaxNetworksAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxNetworksAttribute(): UByte { // Implementation needs to be added here } - fun subscribeMaxNetworksAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxNetworksAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readNetworksAttribute(callback: NetworksAttributeCallback) { + suspend fun readNetworksAttribute(): NetworksAttribute { // Implementation needs to be added here } - fun subscribeNetworksAttribute( - callback: NetworksAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeNetworksAttribute(minInterval: Int, maxInterval: Int): NetworksAttribute { // Implementation needs to be added here } - fun readScanMaxTimeSecondsAttribute(callback: IntegerAttributeCallback) { + suspend fun readScanMaxTimeSecondsAttribute(): UByte { // Implementation needs to be added here } - fun subscribeScanMaxTimeSecondsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeScanMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readConnectMaxTimeSecondsAttribute(callback: IntegerAttributeCallback) { + suspend fun readConnectMaxTimeSecondsAttribute(): UByte { // Implementation needs to be added here } - fun subscribeConnectMaxTimeSecondsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeConnectMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readInterfaceEnabledAttribute(callback: BooleanAttributeCallback) { + suspend fun readInterfaceEnabledAttribute(): Boolean { // Implementation needs to be added here } - fun writeInterfaceEnabledAttribute(callback: DefaultClusterCallback, value: Boolean) { + suspend fun writeInterfaceEnabledAttribute(value: Boolean) { // Implementation needs to be added here } - fun writeInterfaceEnabledAttribute( - callback: DefaultClusterCallback, - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInterfaceEnabledAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInterfaceEnabledAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInterfaceEnabledAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readLastNetworkingStatusAttribute(callback: LastNetworkingStatusAttributeCallback) { + suspend fun readLastNetworkingStatusAttribute(): LastNetworkingStatusAttribute { // Implementation needs to be added here } - fun subscribeLastNetworkingStatusAttribute( - callback: LastNetworkingStatusAttributeCallback, + suspend fun subscribeLastNetworkingStatusAttribute( minInterval: Int, maxInterval: Int - ) { + ): LastNetworkingStatusAttribute { // Implementation needs to be added here } - fun readLastNetworkIDAttribute(callback: LastNetworkIDAttributeCallback) { + suspend fun readLastNetworkIDAttribute(): LastNetworkIDAttribute { // Implementation needs to be added here } - fun subscribeLastNetworkIDAttribute( - callback: LastNetworkIDAttributeCallback, + suspend fun subscribeLastNetworkIDAttribute( minInterval: Int, maxInterval: Int - ) { + ): LastNetworkIDAttribute { // Implementation needs to be added here } - fun readLastConnectErrorValueAttribute(callback: LastConnectErrorValueAttributeCallback) { + suspend fun readLastConnectErrorValueAttribute(): LastConnectErrorValueAttribute { // Implementation needs to be added here } - fun subscribeLastConnectErrorValueAttribute( - callback: LastConnectErrorValueAttributeCallback, + suspend fun subscribeLastConnectErrorValueAttribute( minInterval: Int, maxInterval: Int - ) { + ): LastConnectErrorValueAttribute { // Implementation needs to be added here } - fun readSupportedWiFiBandsAttribute(callback: SupportedWiFiBandsAttributeCallback) { + suspend fun readSupportedWiFiBandsAttribute(): SupportedWiFiBandsAttribute { // Implementation needs to be added here } - fun subscribeSupportedWiFiBandsAttribute( - callback: SupportedWiFiBandsAttributeCallback, + suspend fun subscribeSupportedWiFiBandsAttribute( minInterval: Int, maxInterval: Int - ) { + ): SupportedWiFiBandsAttribute { // Implementation needs to be added here } - fun readSupportedThreadFeaturesAttribute(callback: IntegerAttributeCallback) { + suspend fun readSupportedThreadFeaturesAttribute(): UShort { // Implementation needs to be added here } - fun subscribeSupportedThreadFeaturesAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeSupportedThreadFeaturesAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readThreadVersionAttribute(callback: IntegerAttributeCallback) { + suspend fun readThreadVersionAttribute(): UShort { // Implementation needs to be added here } - fun subscribeThreadVersionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeThreadVersionAttribute(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 = 49u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt index 5d1496588b3d58..a7b9f91a0db969 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt @@ -20,283 +20,188 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1043u - } - - 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 = 1043u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt index f6fbba4620386b..b1e422f9a6d427 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt @@ -20,386 +20,291 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class OccupancySensingCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1030u - } - - 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 readOccupancyAttribute(callback: IntegerAttributeCallback) { + suspend fun readOccupancyAttribute(): UByte { // Implementation needs to be added here } - fun subscribeOccupancyAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readOccupancySensorTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readOccupancySensorTypeAttribute(): UByte { // Implementation needs to be added here } - fun subscribeOccupancySensorTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOccupancySensorTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readOccupancySensorTypeBitmapAttribute(callback: IntegerAttributeCallback) { + suspend fun readOccupancySensorTypeBitmapAttribute(): UByte { // Implementation needs to be added here } - fun subscribeOccupancySensorTypeBitmapAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeOccupancySensorTypeBitmapAttribute( minInterval: Int, maxInterval: Int - ) { + ): UByte { // Implementation needs to be added here } - fun readPIROccupiedToUnoccupiedDelayAttribute(callback: IntegerAttributeCallback) { + suspend fun readPIROccupiedToUnoccupiedDelayAttribute(): UShort { // Implementation needs to be added here } - fun writePIROccupiedToUnoccupiedDelayAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writePIROccupiedToUnoccupiedDelayAttribute(value: UShort) { // Implementation needs to be added here } - fun writePIROccupiedToUnoccupiedDelayAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writePIROccupiedToUnoccupiedDelayAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribePIROccupiedToUnoccupiedDelayAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePIROccupiedToUnoccupiedDelayAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readPIRUnoccupiedToOccupiedDelayAttribute(callback: IntegerAttributeCallback) { + suspend fun readPIRUnoccupiedToOccupiedDelayAttribute(): UShort { // Implementation needs to be added here } - fun writePIRUnoccupiedToOccupiedDelayAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writePIRUnoccupiedToOccupiedDelayAttribute(value: UShort) { // Implementation needs to be added here } - fun writePIRUnoccupiedToOccupiedDelayAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writePIRUnoccupiedToOccupiedDelayAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribePIRUnoccupiedToOccupiedDelayAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePIRUnoccupiedToOccupiedDelayAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readPIRUnoccupiedToOccupiedThresholdAttribute(callback: IntegerAttributeCallback) { + suspend fun readPIRUnoccupiedToOccupiedThresholdAttribute(): UByte { // Implementation needs to be added here } - fun writePIRUnoccupiedToOccupiedThresholdAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writePIRUnoccupiedToOccupiedThresholdAttribute(value: UByte) { // Implementation needs to be added here } - fun writePIRUnoccupiedToOccupiedThresholdAttribute( - callback: DefaultClusterCallback, - value: Integer, + suspend fun writePIRUnoccupiedToOccupiedThresholdAttribute( + value: UByte, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribePIRUnoccupiedToOccupiedThresholdAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePIRUnoccupiedToOccupiedThresholdAttribute( minInterval: Int, maxInterval: Int - ) { + ): UByte { // Implementation needs to be added here } - fun readUltrasonicOccupiedToUnoccupiedDelayAttribute(callback: IntegerAttributeCallback) { + suspend fun readUltrasonicOccupiedToUnoccupiedDelayAttribute(): UShort { // Implementation needs to be added here } - fun writeUltrasonicOccupiedToUnoccupiedDelayAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writeUltrasonicOccupiedToUnoccupiedDelayAttribute(value: UShort) { // Implementation needs to be added here } - fun writeUltrasonicOccupiedToUnoccupiedDelayAttribute( - callback: DefaultClusterCallback, - value: Integer, + suspend fun writeUltrasonicOccupiedToUnoccupiedDelayAttribute( + value: UShort, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeUltrasonicOccupiedToUnoccupiedDelayAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeUltrasonicOccupiedToUnoccupiedDelayAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readUltrasonicUnoccupiedToOccupiedDelayAttribute(callback: IntegerAttributeCallback) { + suspend fun readUltrasonicUnoccupiedToOccupiedDelayAttribute(): UShort { // Implementation needs to be added here } - fun writeUltrasonicUnoccupiedToOccupiedDelayAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writeUltrasonicUnoccupiedToOccupiedDelayAttribute(value: UShort) { // Implementation needs to be added here } - fun writeUltrasonicUnoccupiedToOccupiedDelayAttribute( - callback: DefaultClusterCallback, - value: Integer, + suspend fun writeUltrasonicUnoccupiedToOccupiedDelayAttribute( + value: UShort, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeUltrasonicUnoccupiedToOccupiedDelayAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeUltrasonicUnoccupiedToOccupiedDelayAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readUltrasonicUnoccupiedToOccupiedThresholdAttribute(callback: IntegerAttributeCallback) { + suspend fun readUltrasonicUnoccupiedToOccupiedThresholdAttribute(): UByte { // Implementation needs to be added here } - fun writeUltrasonicUnoccupiedToOccupiedThresholdAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writeUltrasonicUnoccupiedToOccupiedThresholdAttribute(value: UByte) { // Implementation needs to be added here } - fun writeUltrasonicUnoccupiedToOccupiedThresholdAttribute( - callback: DefaultClusterCallback, - value: Integer, + suspend fun writeUltrasonicUnoccupiedToOccupiedThresholdAttribute( + value: UByte, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeUltrasonicUnoccupiedToOccupiedThresholdAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeUltrasonicUnoccupiedToOccupiedThresholdAttribute( minInterval: Int, maxInterval: Int - ) { + ): UByte { // Implementation needs to be added here } - fun readPhysicalContactOccupiedToUnoccupiedDelayAttribute(callback: IntegerAttributeCallback) { + suspend fun readPhysicalContactOccupiedToUnoccupiedDelayAttribute(): UShort { // Implementation needs to be added here } - fun writePhysicalContactOccupiedToUnoccupiedDelayAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writePhysicalContactOccupiedToUnoccupiedDelayAttribute(value: UShort) { // Implementation needs to be added here } - fun writePhysicalContactOccupiedToUnoccupiedDelayAttribute( - callback: DefaultClusterCallback, - value: Integer, + suspend fun writePhysicalContactOccupiedToUnoccupiedDelayAttribute( + value: UShort, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribePhysicalContactOccupiedToUnoccupiedDelayAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePhysicalContactOccupiedToUnoccupiedDelayAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readPhysicalContactUnoccupiedToOccupiedDelayAttribute(callback: IntegerAttributeCallback) { + suspend fun readPhysicalContactUnoccupiedToOccupiedDelayAttribute(): UShort { // Implementation needs to be added here } - fun writePhysicalContactUnoccupiedToOccupiedDelayAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writePhysicalContactUnoccupiedToOccupiedDelayAttribute(value: UShort) { // Implementation needs to be added here } - fun writePhysicalContactUnoccupiedToOccupiedDelayAttribute( - callback: DefaultClusterCallback, - value: Integer, + suspend fun writePhysicalContactUnoccupiedToOccupiedDelayAttribute( + value: UShort, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribePhysicalContactUnoccupiedToOccupiedDelayAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePhysicalContactUnoccupiedToOccupiedDelayAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readPhysicalContactUnoccupiedToOccupiedThresholdAttribute( - callback: IntegerAttributeCallback - ) { + suspend fun readPhysicalContactUnoccupiedToOccupiedThresholdAttribute(): UByte { // Implementation needs to be added here } - fun writePhysicalContactUnoccupiedToOccupiedThresholdAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writePhysicalContactUnoccupiedToOccupiedThresholdAttribute(value: UByte) { // Implementation needs to be added here } - fun writePhysicalContactUnoccupiedToOccupiedThresholdAttribute( - callback: DefaultClusterCallback, - value: Integer, + suspend fun writePhysicalContactUnoccupiedToOccupiedThresholdAttribute( + value: UByte, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribePhysicalContactUnoccupiedToOccupiedThresholdAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePhysicalContactUnoccupiedToOccupiedThresholdAttribute( 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 = 1030u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt index 85474449bd5c4d..1a664fcca03619 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt @@ -20,283 +20,198 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class OnOffCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 6u - } + class StartUpOnOffAttribute(val value: UInt?) - fun off(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun off(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class AcceptedCommandListAttribute(val value: ArrayList) - fun on(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } + class EventListAttribute(val value: ArrayList) - fun on(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class AttributeListAttribute(val value: ArrayList) - fun toggle(callback: DefaultClusterCallback) { - // Implementation needs to be added here + suspend fun off(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun toggle(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun on(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun offWithEffect( - callback: DefaultClusterCallback, - effectIdentifier: Integer, - effectVariant: Integer - ) { - // Implementation needs to be added here + suspend fun toggle(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun offWithEffect( - callback: DefaultClusterCallback, - effectIdentifier: Integer, - effectVariant: Integer, - timedInvokeTimeoutMs: Int + suspend fun offWithEffect( + effectIdentifier: UInt, + effectVariant: UByte, + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun onWithRecallGlobalScene(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun onWithRecallGlobalScene(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun onWithRecallGlobalScene(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun onWithTimedOff( - callback: DefaultClusterCallback, - onOffControl: Integer, - onTime: Integer, - offWaitTime: Integer + suspend fun onWithTimedOff( + onOffControl: UInt, + onTime: UShort, + offWaitTime: 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 onWithTimedOff( - callback: DefaultClusterCallback, - onOffControl: Integer, - onTime: Integer, - offWaitTime: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun readOnOffAttribute(): Boolean { // Implementation needs to be added here } - interface StartUpOnOffAttributeCallback { - 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 readOnOffAttribute(callback: BooleanAttributeCallback) { + suspend fun subscribeOnOffAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun subscribeOnOffAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun readGlobalSceneControlAttribute(): Boolean { // Implementation needs to be added here } - fun readGlobalSceneControlAttribute(callback: BooleanAttributeCallback) { + suspend fun subscribeGlobalSceneControlAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun subscribeGlobalSceneControlAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun readOnTimeAttribute(): UShort { // Implementation needs to be added here } - fun readOnTimeAttribute(callback: IntegerAttributeCallback) { + suspend fun writeOnTimeAttribute(value: UShort) { // Implementation needs to be added here } - fun writeOnTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOnTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun writeOnTimeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun subscribeOnTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun subscribeOnTimeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun readOffWaitTimeAttribute(): UShort { // Implementation needs to be added here } - fun readOffWaitTimeAttribute(callback: IntegerAttributeCallback) { + suspend fun writeOffWaitTimeAttribute(value: UShort) { // Implementation needs to be added here } - fun writeOffWaitTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOffWaitTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun writeOffWaitTimeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun subscribeOffWaitTimeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOffWaitTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readStartUpOnOffAttribute(callback: StartUpOnOffAttributeCallback) { + suspend fun readStartUpOnOffAttribute(): StartUpOnOffAttribute { // Implementation needs to be added here } - fun writeStartUpOnOffAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeStartUpOnOffAttribute(value: UInt) { // Implementation needs to be added here } - fun writeStartUpOnOffAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeStartUpOnOffAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeStartUpOnOffAttribute( - callback: StartUpOnOffAttributeCallback, + suspend fun subscribeStartUpOnOffAttribute( minInterval: Int, maxInterval: Int - ) { + ): StartUpOnOffAttribute { // 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 = 6u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt index b7317187237aca..6db5a92ae7ec92 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt @@ -20,147 +20,96 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class OnOffSwitchConfigurationCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 7u - } - - 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 readSwitchTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readSwitchTypeAttribute(): UByte { // Implementation needs to be added here } - fun subscribeSwitchTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSwitchTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readSwitchActionsAttribute(callback: IntegerAttributeCallback) { + suspend fun readSwitchActionsAttribute(): UByte { // Implementation needs to be added here } - fun writeSwitchActionsAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeSwitchActionsAttribute(value: UInt) { // Implementation needs to be added here } - fun writeSwitchActionsAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSwitchActionsAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeSwitchActionsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSwitchActionsAttribute(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 = 7u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt index 7bb50af382d269..f63ff9156c4845 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt @@ -20,345 +20,238 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class OperationalCredentialsCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 62u - } + class AttestationResponse( + val attestationElements: ByteArray, + val attestationSignature: ByteArray + ) - fun attestationRequest(callback: AttestationResponseCallback, attestationNonce: ByteArray) { - // Implementation needs to be added here - } + class CertificateChainResponse(val certificate: ByteArray) - fun attestationRequest( - callback: AttestationResponseCallback, - attestationNonce: ByteArray, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class CSRResponse(val NOCSRElements: ByteArray, val attestationSignature: ByteArray) - fun certificateChainRequest( - callback: CertificateChainResponseCallback, - certificateType: Integer - ) { - // Implementation needs to be added here - } + class NOCResponse(val statusCode: UInt, val fabricIndex: UByte?, val debugText: String?) - fun certificateChainRequest( - callback: CertificateChainResponseCallback, - certificateType: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class NOCsAttribute(val value: ArrayList) - fun CSRRequest(callback: CSRResponseCallback, CSRNonce: ByteArray, isForUpdateNOC: Boolean?) { - // Implementation needs to be added here - } + class FabricsAttribute( + val value: ArrayList + ) + + class TrustedRootCertificatesAttribute(val value: ArrayList) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) - fun CSRRequest( - callback: CSRResponseCallback, + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun attestationRequest( + attestationNonce: ByteArray, + timedInvokeTimeoutMs: Int? = null + ): AttestationResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun certificateChainRequest( + certificateType: UInt, + timedInvokeTimeoutMs: Int? = null + ): CertificateChainResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun CSRRequest( CSRNonce: ByteArray, isForUpdateNOC: Boolean?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun addNOC( - callback: NOCResponseCallback, - NOCValue: ByteArray, - ICACValue: ByteArray?, - IPKValue: ByteArray, - caseAdminSubject: Long, - adminVendorId: Integer - ) { - // Implementation needs to be added here + timedInvokeTimeoutMs: Int? = null + ): CSRResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun addNOC( - callback: NOCResponseCallback, + suspend fun addNOC( NOCValue: ByteArray, ICACValue: ByteArray?, IPKValue: ByteArray, - caseAdminSubject: Long, - adminVendorId: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun updateNOC(callback: NOCResponseCallback, NOCValue: ByteArray, ICACValue: ByteArray?) { - // Implementation needs to be added here - } - - fun updateNOC( - callback: NOCResponseCallback, + caseAdminSubject: ULong, + adminVendorId: UShort, + timedInvokeTimeoutMs: Int? = null + ): NOCResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun updateNOC( NOCValue: ByteArray, ICACValue: ByteArray?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun updateFabricLabel(callback: NOCResponseCallback, label: String) { - // Implementation needs to be added here + timedInvokeTimeoutMs: Int? = null + ): NOCResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun updateFabricLabel(callback: NOCResponseCallback, label: String, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun updateFabricLabel(label: String, timedInvokeTimeoutMs: Int? = null): NOCResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun removeFabric(callback: NOCResponseCallback, fabricIndex: Integer) { - // Implementation needs to be added here + suspend fun removeFabric(fabricIndex: UByte, timedInvokeTimeoutMs: Int? = null): NOCResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun removeFabric(callback: NOCResponseCallback, fabricIndex: Integer, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun addTrustedRootCertificate(callback: DefaultClusterCallback, rootCACertificate: ByteArray) { - // Implementation needs to be added here - } - - fun addTrustedRootCertificate( - callback: DefaultClusterCallback, + suspend fun addTrustedRootCertificate( rootCACertificate: ByteArray, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - interface AttestationResponseCallback { - fun onSuccess(attestationElements: ByteArray, attestationSignature: ByteArray) - - fun onError(error: Exception) - } - - interface CertificateChainResponseCallback { - fun onSuccess(certificate: ByteArray) - - fun onError(error: Exception) - } - - interface CSRResponseCallback { - fun onSuccess(NOCSRElements: ByteArray, attestationSignature: ByteArray) - - fun onError(error: Exception) + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface NOCResponseCallback { - fun onSuccess(statusCode: Integer, fabricIndex: Integer?, debugText: String?) - - fun onError(error: Exception) - } - - interface NOCsAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface FabricsAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface TrustedRootCertificatesAttributeCallback { - 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 readNOCsAttribute(callback: NOCsAttributeCallback) { + suspend fun readNOCsAttribute(): NOCsAttribute { // Implementation needs to be added here } - fun readNOCsAttributeWithFabricFilter( - callback: NOCsAttributeCallback, - isFabricFiltered: Boolean - ) { + suspend fun readNOCsAttributeWithFabricFilter(isFabricFiltered: Boolean): NOCsAttribute { // Implementation needs to be added here } - fun subscribeNOCsAttribute(callback: NOCsAttributeCallback, minInterval: Int, maxInterval: Int) { + suspend fun subscribeNOCsAttribute(minInterval: Int, maxInterval: Int): NOCsAttribute { // Implementation needs to be added here } - fun readFabricsAttribute(callback: FabricsAttributeCallback) { + suspend fun readFabricsAttribute(): FabricsAttribute { // Implementation needs to be added here } - fun readFabricsAttributeWithFabricFilter( - callback: FabricsAttributeCallback, - isFabricFiltered: Boolean - ) { + suspend fun readFabricsAttributeWithFabricFilter(isFabricFiltered: Boolean): FabricsAttribute { // Implementation needs to be added here } - fun subscribeFabricsAttribute( - callback: FabricsAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFabricsAttribute(minInterval: Int, maxInterval: Int): FabricsAttribute { // Implementation needs to be added here } - fun readSupportedFabricsAttribute(callback: IntegerAttributeCallback) { + suspend fun readSupportedFabricsAttribute(): UByte { // Implementation needs to be added here } - fun subscribeSupportedFabricsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSupportedFabricsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readCommissionedFabricsAttribute(callback: IntegerAttributeCallback) { + suspend fun readCommissionedFabricsAttribute(): UByte { // Implementation needs to be added here } - fun subscribeCommissionedFabricsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCommissionedFabricsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readTrustedRootCertificatesAttribute(callback: TrustedRootCertificatesAttributeCallback) { + suspend fun readTrustedRootCertificatesAttribute(): TrustedRootCertificatesAttribute { // Implementation needs to be added here } - fun subscribeTrustedRootCertificatesAttribute( - callback: TrustedRootCertificatesAttributeCallback, + suspend fun subscribeTrustedRootCertificatesAttribute( minInterval: Int, maxInterval: Int - ) { + ): TrustedRootCertificatesAttribute { // Implementation needs to be added here } - fun readCurrentFabricIndexAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentFabricIndexAttribute(): UByte { // Implementation needs to be added here } - fun subscribeCurrentFabricIndexAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentFabricIndexAttribute(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 = 62u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt index df377c879437b6..67a438780eb9d3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt @@ -20,261 +20,180 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class OperationalStateCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 96u - } - - fun pause(callback: OperationalCommandResponseCallback) { - // Implementation needs to be added here - } - - fun pause(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun stop(callback: OperationalCommandResponseCallback) { - // Implementation needs to be added here - } + class OperationalCommandResponse( + val commandResponseState: ChipStructs.OperationalStateClusterErrorStateStruct + ) - fun stop(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class PhaseListAttribute(val value: ArrayList?) - fun start(callback: OperationalCommandResponseCallback) { - // Implementation needs to be added here - } + class CurrentPhaseAttribute(val value: UByte?) - fun start(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class CountdownTimeAttribute(val value: UInt?) - fun resume(callback: OperationalCommandResponseCallback) { - // Implementation needs to be added here - } + class OperationalStateListAttribute( + val value: ArrayList + ) - fun resume(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class OperationalErrorAttribute(val value: ChipStructs.OperationalStateClusterErrorStateStruct) - interface OperationalCommandResponseCallback { - fun onSuccess(commandResponseState: ChipStructs.OperationalStateClusterErrorStateStruct) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onError(error: Exception) - } + class AcceptedCommandListAttribute(val value: ArrayList) - interface PhaseListAttributeCallback { - fun onSuccess(value: ArrayList?) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class AttributeListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun pause(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface CurrentPhaseAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun stop(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface CountdownTimeAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun start(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface OperationalStateListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resume(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface OperationalErrorAttributeCallback { - fun onSuccess(value: ChipStructs.OperationalStateClusterErrorStateStruct) - - 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 readPhaseListAttribute(callback: PhaseListAttributeCallback) { + suspend fun readPhaseListAttribute(): PhaseListAttribute { // Implementation needs to be added here } - fun subscribePhaseListAttribute( - callback: PhaseListAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePhaseListAttribute(minInterval: Int, maxInterval: Int): PhaseListAttribute { // Implementation needs to be added here } - fun readCurrentPhaseAttribute(callback: CurrentPhaseAttributeCallback) { + suspend fun readCurrentPhaseAttribute(): CurrentPhaseAttribute { // Implementation needs to be added here } - fun subscribeCurrentPhaseAttribute( - callback: CurrentPhaseAttributeCallback, + suspend fun subscribeCurrentPhaseAttribute( minInterval: Int, maxInterval: Int - ) { + ): CurrentPhaseAttribute { // Implementation needs to be added here } - fun readCountdownTimeAttribute(callback: CountdownTimeAttributeCallback) { + suspend fun readCountdownTimeAttribute(): CountdownTimeAttribute { // Implementation needs to be added here } - fun subscribeCountdownTimeAttribute( - callback: CountdownTimeAttributeCallback, + suspend fun subscribeCountdownTimeAttribute( minInterval: Int, maxInterval: Int - ) { + ): CountdownTimeAttribute { // Implementation needs to be added here } - fun readOperationalStateListAttribute(callback: OperationalStateListAttributeCallback) { + suspend fun readOperationalStateListAttribute(): OperationalStateListAttribute { // Implementation needs to be added here } - fun subscribeOperationalStateListAttribute( - callback: OperationalStateListAttributeCallback, + suspend fun subscribeOperationalStateListAttribute( minInterval: Int, maxInterval: Int - ) { + ): OperationalStateListAttribute { // Implementation needs to be added here } - fun readOperationalStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readOperationalStateAttribute(): UByte { // Implementation needs to be added here } - fun subscribeOperationalStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readOperationalErrorAttribute(callback: OperationalErrorAttributeCallback) { + suspend fun readOperationalErrorAttribute(): OperationalErrorAttribute { // Implementation needs to be added here } - fun subscribeOperationalErrorAttribute( - callback: OperationalErrorAttributeCallback, + suspend fun subscribeOperationalErrorAttribute( minInterval: Int, maxInterval: Int - ) { + ): OperationalErrorAttribute { // 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 = 96u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt index 04a51a0416f34d..7b252ac5dc8fac 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt @@ -20,195 +20,127 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class OtaSoftwareUpdateProviderCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 41u - } + class QueryImageResponse( + val status: UInt, + val delayedActionTime: UInt?, + val imageURI: String?, + val softwareVersion: UInt?, + val softwareVersionString: String?, + val updateToken: ByteArray?, + val userConsentNeeded: Boolean?, + val metadataForRequestor: ByteArray? + ) - fun queryImage( - callback: QueryImageResponseCallback, - vendorID: Integer, - productID: Integer, - softwareVersion: Long, - protocolsSupported: ArrayList, - hardwareVersion: Integer?, - location: String?, - requestorCanConsent: Boolean?, - metadataForProvider: ByteArray? - ) { - // Implementation needs to be added here - } + class ApplyUpdateResponse(val action: UInt, val delayedActionTime: UInt) + + class GeneratedCommandListAttribute(val value: ArrayList) - fun queryImage( - callback: QueryImageResponseCallback, - vendorID: Integer, - productID: Integer, - softwareVersion: Long, - protocolsSupported: ArrayList, - hardwareVersion: Integer?, + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun queryImage( + vendorID: UShort, + productID: UShort, + softwareVersion: UInt, + protocolsSupported: ArrayList, + hardwareVersion: UShort?, location: String?, requestorCanConsent: Boolean?, metadataForProvider: ByteArray?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here + timedInvokeTimeoutMs: Int? = null + ): QueryImageResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun applyUpdateRequest( - callback: ApplyUpdateResponseCallback, + suspend fun applyUpdateRequest( updateToken: ByteArray, - newVersion: Long - ) { - // Implementation needs to be added here + newVersion: UInt, + timedInvokeTimeoutMs: Int? = null + ): ApplyUpdateResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun applyUpdateRequest( - callback: ApplyUpdateResponseCallback, + suspend fun notifyUpdateApplied( updateToken: ByteArray, - newVersion: Long, - timedInvokeTimeoutMs: Int + softwareVersion: 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 notifyUpdateApplied( - callback: DefaultClusterCallback, - updateToken: ByteArray, - softwareVersion: Long - ) { - // Implementation needs to be added here - } - - fun notifyUpdateApplied( - callback: DefaultClusterCallback, - updateToken: ByteArray, - softwareVersion: Long, - timedInvokeTimeoutMs: Int - ) { + suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here } - interface QueryImageResponseCallback { - fun onSuccess( - status: Integer, - delayedActionTime: Long?, - imageURI: String?, - softwareVersion: Long?, - softwareVersionString: String?, - updateToken: ByteArray?, - userConsentNeeded: Boolean?, - metadataForRequestor: ByteArray? - ) - - fun onError(error: Exception) - } - - interface ApplyUpdateResponseCallback { - fun onSuccess(action: Integer, delayedActionTime: Long) - - fun onError(error: Exception) - } - - 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 readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { - // 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 = 41u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt index 6085a4e7e6d2d3..0073fd7f2b621b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt @@ -20,220 +20,150 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class OtaSoftwareUpdateRequestorCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 42u - } + class DefaultOTAProvidersAttribute( + val value: ArrayList + ) - fun announceOTAProvider( - callback: DefaultClusterCallback, - providerNodeID: Long, - vendorID: Integer, - announcementReason: Integer, - metadataForNode: ByteArray?, - endpoint: Integer - ) { - // Implementation needs to be added here - } + class UpdateStateProgressAttribute(val value: UByte?) - fun announceOTAProvider( - callback: DefaultClusterCallback, - providerNodeID: Long, - vendorID: Integer, - announcementReason: Integer, - metadataForNode: ByteArray?, - endpoint: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - interface DefaultOTAProvidersAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class GeneratedCommandListAttribute(val value: ArrayList) - interface UpdateStateProgressAttributeCallback { - fun onSuccess(value: Integer?) + class AcceptedCommandListAttribute(val 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) - } + 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 announceOTAProvider( + providerNodeID: ULong, + vendorID: UShort, + announcementReason: UInt, + metadataForNode: ByteArray?, + endpoint: UShort, + timedInvokeTimeoutMs: Int? = null + ) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readDefaultOTAProvidersAttribute(callback: DefaultOTAProvidersAttributeCallback) { + suspend fun readDefaultOTAProvidersAttribute(): DefaultOTAProvidersAttribute { // Implementation needs to be added here } - fun readDefaultOTAProvidersAttributeWithFabricFilter( - callback: DefaultOTAProvidersAttributeCallback, + suspend fun readDefaultOTAProvidersAttributeWithFabricFilter( isFabricFiltered: Boolean - ) { + ): DefaultOTAProvidersAttribute { // Implementation needs to be added here } - fun writeDefaultOTAProvidersAttribute( - callback: DefaultClusterCallback, + suspend fun writeDefaultOTAProvidersAttribute( value: ArrayList ) { // Implementation needs to be added here } - fun writeDefaultOTAProvidersAttribute( - callback: DefaultClusterCallback, + suspend fun writeDefaultOTAProvidersAttribute( value: ArrayList, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeDefaultOTAProvidersAttribute( - callback: DefaultOTAProvidersAttributeCallback, + suspend fun subscribeDefaultOTAProvidersAttribute( minInterval: Int, maxInterval: Int - ) { + ): DefaultOTAProvidersAttribute { // Implementation needs to be added here } - fun readUpdatePossibleAttribute(callback: BooleanAttributeCallback) { + suspend fun readUpdatePossibleAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeUpdatePossibleAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeUpdatePossibleAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readUpdateStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readUpdateStateAttribute(): UByte { // Implementation needs to be added here } - fun subscribeUpdateStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeUpdateStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readUpdateStateProgressAttribute(callback: UpdateStateProgressAttributeCallback) { + suspend fun readUpdateStateProgressAttribute(): UpdateStateProgressAttribute { // Implementation needs to be added here } - fun subscribeUpdateStateProgressAttribute( - callback: UpdateStateProgressAttributeCallback, + suspend fun subscribeUpdateStateProgressAttribute( minInterval: Int, maxInterval: Int - ) { + ): UpdateStateProgressAttribute { // 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 = 42u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt index b63a519ed9b572..8a9f00bcb930ee 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt @@ -20,283 +20,188 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1045u - } - - 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 = 1045u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt index c700eb641f2fb9..5c62e414efbcd4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt @@ -20,283 +20,188 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1069u - } - - 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 = 1069u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt index 5a3c72eb8e30dc..8cfae81b81c12b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt @@ -20,283 +20,188 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1068u - } - - 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 = 1068u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt index cd979770c0f4f5..bcc05a26a5f124 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt @@ -20,283 +20,188 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1066u - } - - 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 = 1066u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt index b2e21c408b0e8c..a1a4ca2b53c0a1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt @@ -20,593 +20,394 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class PowerSourceCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 47u - } + class WiredAssessedInputVoltageAttribute(val value: UInt?) - interface WiredAssessedInputVoltageAttributeCallback { - fun onSuccess(value: Long?) + class WiredAssessedInputFrequencyAttribute(val value: UShort?) - fun onError(ex: Exception) + class WiredAssessedCurrentAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class ActiveWiredFaultsAttribute(val value: ArrayList?) - interface WiredAssessedInputFrequencyAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class BatVoltageAttribute(val value: UInt?) - interface WiredAssessedCurrentAttributeCallback { - fun onSuccess(value: Long?) + class BatPercentRemainingAttribute(val value: UByte?) - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ActiveWiredFaultsAttributeCallback { - fun onSuccess(value: ArrayList?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface BatVoltageAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface BatPercentRemainingAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface BatTimeRemainingAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ActiveBatFaultsAttributeCallback { - fun onSuccess(value: ArrayList?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface BatTimeToFullChargeAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface BatChargingCurrentAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ActiveBatChargeFaultsAttributeCallback { - fun onSuccess(value: ArrayList?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface EndpointListAttributeCallback { - 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) - } + class BatTimeRemainingAttribute(val value: UInt?) - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class ActiveBatFaultsAttribute(val value: ArrayList?) - fun onError(ex: Exception) + class BatTimeToFullChargeAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class BatChargingCurrentAttribute(val value: UInt?) - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) + class ActiveBatChargeFaultsAttribute(val value: ArrayList?) - fun onError(ex: Exception) + class EndpointListAttribute(val value: ArrayList) - 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 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 readOrderAttribute(callback: IntegerAttributeCallback) { + suspend fun readOrderAttribute(): UByte { // Implementation needs to be added here } - fun subscribeOrderAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOrderAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readDescriptionAttribute(callback: CharStringAttributeCallback) { + suspend fun readDescriptionAttribute(): CharString { // 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 readWiredAssessedInputVoltageAttribute(callback: WiredAssessedInputVoltageAttributeCallback) { + suspend fun readWiredAssessedInputVoltageAttribute(): WiredAssessedInputVoltageAttribute { // Implementation needs to be added here } - fun subscribeWiredAssessedInputVoltageAttribute( - callback: WiredAssessedInputVoltageAttributeCallback, + suspend fun subscribeWiredAssessedInputVoltageAttribute( minInterval: Int, maxInterval: Int - ) { + ): WiredAssessedInputVoltageAttribute { // Implementation needs to be added here } - fun readWiredAssessedInputFrequencyAttribute( - callback: WiredAssessedInputFrequencyAttributeCallback - ) { + suspend fun readWiredAssessedInputFrequencyAttribute(): WiredAssessedInputFrequencyAttribute { // Implementation needs to be added here } - fun subscribeWiredAssessedInputFrequencyAttribute( - callback: WiredAssessedInputFrequencyAttributeCallback, + suspend fun subscribeWiredAssessedInputFrequencyAttribute( minInterval: Int, maxInterval: Int - ) { + ): WiredAssessedInputFrequencyAttribute { // Implementation needs to be added here } - fun readWiredCurrentTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readWiredCurrentTypeAttribute(): UByte { // Implementation needs to be added here } - fun subscribeWiredCurrentTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWiredCurrentTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readWiredAssessedCurrentAttribute(callback: WiredAssessedCurrentAttributeCallback) { + suspend fun readWiredAssessedCurrentAttribute(): WiredAssessedCurrentAttribute { // Implementation needs to be added here } - fun subscribeWiredAssessedCurrentAttribute( - callback: WiredAssessedCurrentAttributeCallback, + suspend fun subscribeWiredAssessedCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): WiredAssessedCurrentAttribute { // Implementation needs to be added here } - fun readWiredNominalVoltageAttribute(callback: LongAttributeCallback) { + suspend fun readWiredNominalVoltageAttribute(): UInt { // Implementation needs to be added here } - fun subscribeWiredNominalVoltageAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWiredNominalVoltageAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readWiredMaximumCurrentAttribute(callback: LongAttributeCallback) { + suspend fun readWiredMaximumCurrentAttribute(): UInt { // Implementation needs to be added here } - fun subscribeWiredMaximumCurrentAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWiredMaximumCurrentAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readWiredPresentAttribute(callback: BooleanAttributeCallback) { + suspend fun readWiredPresentAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeWiredPresentAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWiredPresentAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readActiveWiredFaultsAttribute(callback: ActiveWiredFaultsAttributeCallback) { + suspend fun readActiveWiredFaultsAttribute(): ActiveWiredFaultsAttribute { // Implementation needs to be added here } - fun subscribeActiveWiredFaultsAttribute( - callback: ActiveWiredFaultsAttributeCallback, + suspend fun subscribeActiveWiredFaultsAttribute( minInterval: Int, maxInterval: Int - ) { + ): ActiveWiredFaultsAttribute { // Implementation needs to be added here } - fun readBatVoltageAttribute(callback: BatVoltageAttributeCallback) { + suspend fun readBatVoltageAttribute(): BatVoltageAttribute { // Implementation needs to be added here } - fun subscribeBatVoltageAttribute( - callback: BatVoltageAttributeCallback, + suspend fun subscribeBatVoltageAttribute( minInterval: Int, maxInterval: Int - ) { + ): BatVoltageAttribute { // Implementation needs to be added here } - fun readBatPercentRemainingAttribute(callback: BatPercentRemainingAttributeCallback) { + suspend fun readBatPercentRemainingAttribute(): BatPercentRemainingAttribute { // Implementation needs to be added here } - fun subscribeBatPercentRemainingAttribute( - callback: BatPercentRemainingAttributeCallback, + suspend fun subscribeBatPercentRemainingAttribute( minInterval: Int, maxInterval: Int - ) { + ): BatPercentRemainingAttribute { // Implementation needs to be added here } - fun readBatTimeRemainingAttribute(callback: BatTimeRemainingAttributeCallback) { + suspend fun readBatTimeRemainingAttribute(): BatTimeRemainingAttribute { // Implementation needs to be added here } - fun subscribeBatTimeRemainingAttribute( - callback: BatTimeRemainingAttributeCallback, + suspend fun subscribeBatTimeRemainingAttribute( minInterval: Int, maxInterval: Int - ) { + ): BatTimeRemainingAttribute { // Implementation needs to be added here } - fun readBatChargeLevelAttribute(callback: IntegerAttributeCallback) { + suspend fun readBatChargeLevelAttribute(): UByte { // Implementation needs to be added here } - fun subscribeBatChargeLevelAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatChargeLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readBatReplacementNeededAttribute(callback: BooleanAttributeCallback) { + suspend fun readBatReplacementNeededAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeBatReplacementNeededAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatReplacementNeededAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readBatReplaceabilityAttribute(callback: IntegerAttributeCallback) { + suspend fun readBatReplaceabilityAttribute(): UByte { // Implementation needs to be added here } - fun subscribeBatReplaceabilityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatReplaceabilityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readBatPresentAttribute(callback: BooleanAttributeCallback) { + suspend fun readBatPresentAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeBatPresentAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatPresentAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readActiveBatFaultsAttribute(callback: ActiveBatFaultsAttributeCallback) { + suspend fun readActiveBatFaultsAttribute(): ActiveBatFaultsAttribute { // Implementation needs to be added here } - fun subscribeActiveBatFaultsAttribute( - callback: ActiveBatFaultsAttributeCallback, + suspend fun subscribeActiveBatFaultsAttribute( minInterval: Int, maxInterval: Int - ) { + ): ActiveBatFaultsAttribute { // Implementation needs to be added here } - fun readBatReplacementDescriptionAttribute(callback: CharStringAttributeCallback) { + suspend fun readBatReplacementDescriptionAttribute(): CharString { // Implementation needs to be added here } - fun subscribeBatReplacementDescriptionAttribute( - callback: CharStringAttributeCallback, + suspend fun subscribeBatReplacementDescriptionAttribute( minInterval: Int, maxInterval: Int - ) { + ): CharString { // Implementation needs to be added here } - fun readBatCommonDesignationAttribute(callback: IntegerAttributeCallback) { + suspend fun readBatCommonDesignationAttribute(): UShort { // Implementation needs to be added here } - fun subscribeBatCommonDesignationAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatCommonDesignationAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readBatANSIDesignationAttribute(callback: CharStringAttributeCallback) { + suspend fun readBatANSIDesignationAttribute(): CharString { // Implementation needs to be added here } - fun subscribeBatANSIDesignationAttribute( - callback: CharStringAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatANSIDesignationAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } - fun readBatIECDesignationAttribute(callback: CharStringAttributeCallback) { + suspend fun readBatIECDesignationAttribute(): CharString { // Implementation needs to be added here } - fun subscribeBatIECDesignationAttribute( - callback: CharStringAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatIECDesignationAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } - fun readBatApprovedChemistryAttribute(callback: IntegerAttributeCallback) { + suspend fun readBatApprovedChemistryAttribute(): UShort { // Implementation needs to be added here } - fun subscribeBatApprovedChemistryAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatApprovedChemistryAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readBatCapacityAttribute(callback: LongAttributeCallback) { + suspend fun readBatCapacityAttribute(): UInt { // Implementation needs to be added here } - fun subscribeBatCapacityAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatCapacityAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readBatQuantityAttribute(callback: IntegerAttributeCallback) { + suspend fun readBatQuantityAttribute(): UByte { // Implementation needs to be added here } - fun subscribeBatQuantityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatQuantityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readBatChargeStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readBatChargeStateAttribute(): UByte { // Implementation needs to be added here } - fun subscribeBatChargeStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatChargeStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readBatTimeToFullChargeAttribute(callback: BatTimeToFullChargeAttributeCallback) { + suspend fun readBatTimeToFullChargeAttribute(): BatTimeToFullChargeAttribute { // Implementation needs to be added here } - fun subscribeBatTimeToFullChargeAttribute( - callback: BatTimeToFullChargeAttributeCallback, + suspend fun subscribeBatTimeToFullChargeAttribute( minInterval: Int, maxInterval: Int - ) { + ): BatTimeToFullChargeAttribute { // Implementation needs to be added here } - fun readBatFunctionalWhileChargingAttribute(callback: BooleanAttributeCallback) { + suspend fun readBatFunctionalWhileChargingAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeBatFunctionalWhileChargingAttribute( - callback: BooleanAttributeCallback, + suspend fun subscribeBatFunctionalWhileChargingAttribute( minInterval: Int, maxInterval: Int - ) { + ): Boolean { // Implementation needs to be added here } - fun readBatChargingCurrentAttribute(callback: BatChargingCurrentAttributeCallback) { + suspend fun readBatChargingCurrentAttribute(): BatChargingCurrentAttribute { // Implementation needs to be added here } - fun subscribeBatChargingCurrentAttribute( - callback: BatChargingCurrentAttributeCallback, + suspend fun subscribeBatChargingCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): BatChargingCurrentAttribute { // Implementation needs to be added here } - fun readActiveBatChargeFaultsAttribute(callback: ActiveBatChargeFaultsAttributeCallback) { + suspend fun readActiveBatChargeFaultsAttribute(): ActiveBatChargeFaultsAttribute { // Implementation needs to be added here } - fun subscribeActiveBatChargeFaultsAttribute( - callback: ActiveBatChargeFaultsAttributeCallback, + suspend fun subscribeActiveBatChargeFaultsAttribute( minInterval: Int, maxInterval: Int - ) { + ): ActiveBatChargeFaultsAttribute { // Implementation needs to be added here } - fun readEndpointListAttribute(callback: EndpointListAttributeCallback) { + suspend fun readEndpointListAttribute(): EndpointListAttribute { // Implementation needs to be added here } - fun subscribeEndpointListAttribute( - callback: EndpointListAttributeCallback, + suspend fun subscribeEndpointListAttribute( minInterval: Int, maxInterval: Int - ) { + ): EndpointListAttribute { // 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 = 47u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt index d81ff7109df0b8..465df21407c031 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt @@ -20,131 +20,82 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class PowerSourceConfigurationCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 46u - } - - interface SourcesAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class SourcesAttribute(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) - - 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) - } - - fun readSourcesAttribute(callback: SourcesAttributeCallback) { + suspend fun readSourcesAttribute(): SourcesAttribute { // Implementation needs to be added here } - fun subscribeSourcesAttribute( - callback: SourcesAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSourcesAttribute(minInterval: Int, maxInterval: Int): SourcesAttribute { // 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 = 46u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt index 46a06ca398630e..4bbc2eb021dd60 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt @@ -20,267 +20,174 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class PressureMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1027u - } - - interface MeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MinMeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MaxMeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ScaledValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MinScaledValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MaxScaledValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) + class MeasuredValueAttribute(val value: Short?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class MinMeasuredValueAttribute(val value: Short?) - fun onError(ex: Exception) + class MaxMeasuredValueAttribute(val value: Short?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class ScaledValueAttribute(val value: Short?) - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class MinScaledValueAttribute(val value: Short?) - fun onError(ex: Exception) + class MaxScaledValueAttribute(val value: Short?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class GeneratedCommandListAttribute(val value: ArrayList) - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - 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 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 readToleranceAttribute(callback: IntegerAttributeCallback) { + suspend fun readToleranceAttribute(): UShort { // Implementation needs to be added here } - fun subscribeToleranceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readScaledValueAttribute(callback: ScaledValueAttributeCallback) { + suspend fun readScaledValueAttribute(): ScaledValueAttribute { // Implementation needs to be added here } - fun subscribeScaledValueAttribute( - callback: ScaledValueAttributeCallback, + suspend fun subscribeScaledValueAttribute( minInterval: Int, maxInterval: Int - ) { + ): ScaledValueAttribute { // Implementation needs to be added here } - fun readMinScaledValueAttribute(callback: MinScaledValueAttributeCallback) { + suspend fun readMinScaledValueAttribute(): MinScaledValueAttribute { // Implementation needs to be added here } - fun subscribeMinScaledValueAttribute( - callback: MinScaledValueAttributeCallback, + suspend fun subscribeMinScaledValueAttribute( minInterval: Int, maxInterval: Int - ) { + ): MinScaledValueAttribute { // Implementation needs to be added here } - fun readMaxScaledValueAttribute(callback: MaxScaledValueAttributeCallback) { + suspend fun readMaxScaledValueAttribute(): MaxScaledValueAttribute { // Implementation needs to be added here } - fun subscribeMaxScaledValueAttribute( - callback: MaxScaledValueAttributeCallback, + suspend fun subscribeMaxScaledValueAttribute( minInterval: Int, maxInterval: Int - ) { + ): MaxScaledValueAttribute { // Implementation needs to be added here } - fun readScaledToleranceAttribute(callback: IntegerAttributeCallback) { + suspend fun readScaledToleranceAttribute(): UShort { // Implementation needs to be added here } - fun subscribeScaledToleranceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeScaledToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readScaleAttribute(callback: IntegerAttributeCallback) { + suspend fun readScaleAttribute(): Byte { // Implementation needs to be added here } - fun subscribeScaleAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeScaleAttribute(minInterval: Int, maxInterval: Int): Byte { // 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 = 1027u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt index 6c558514fc7a72..a4ccebc42ac090 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt @@ -20,111 +20,72 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class ProxyConfigurationCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 66u - } - - 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) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - 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 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 = 66u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt index aa4463f9176547..bb36d71e8eb07f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt @@ -20,111 +20,72 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class ProxyDiscoveryCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 67u - } - - 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) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - 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 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 = 67u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt index 7903220186e8c0..9e0e7d84c3a0d0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt @@ -20,111 +20,72 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class ProxyValidCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 68u - } - - 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) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - 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 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 = 68u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt index 1c2a93699d5d41..0183a08f7f10dc 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt @@ -20,111 +20,72 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class PulseWidthModulationCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 28u - } - - 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) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - 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 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 = 28u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt index add5d698398fb5..08f4c5c5c0aab9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt @@ -20,579 +20,363 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class PumpConfigurationAndControlCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 512u - } - - interface MaxPressureAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MaxSpeedAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MaxFlowAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MinConstPressureAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MaxConstPressureAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MinCompPressureAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MaxCompPressureAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MinConstSpeedAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MaxConstSpeedAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MinConstFlowAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MaxConstFlowAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MinConstTempAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MaxPressureAttribute(val value: Short?) - interface MaxConstTempAttributeCallback { - fun onSuccess(value: Integer?) + class MaxSpeedAttribute(val value: UShort?) - fun onError(ex: Exception) + class MaxFlowAttribute(val value: UShort?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MinConstPressureAttribute(val value: Short?) - interface CapacityAttributeCallback { - fun onSuccess(value: Integer?) + class MaxConstPressureAttribute(val value: Short?) - fun onError(ex: Exception) + class MinCompPressureAttribute(val value: Short?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MaxCompPressureAttribute(val value: Short?) - interface SpeedAttributeCallback { - fun onSuccess(value: Integer?) + class MinConstSpeedAttribute(val value: UShort?) - fun onError(ex: Exception) + class MaxConstSpeedAttribute(val value: UShort?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MinConstFlowAttribute(val value: UShort?) - interface LifetimeRunningHoursAttributeCallback { - fun onSuccess(value: Long?) + class MaxConstFlowAttribute(val value: UShort?) - fun onError(ex: Exception) + class MinConstTempAttribute(val value: Short?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MaxConstTempAttribute(val value: Short?) - interface PowerAttributeCallback { - fun onSuccess(value: Long?) + class CapacityAttribute(val value: Short?) - fun onError(ex: Exception) + class SpeedAttribute(val value: UShort?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class LifetimeRunningHoursAttribute(val value: UInt?) - interface LifetimeEnergyConsumedAttributeCallback { - fun onSuccess(value: Long?) + class PowerAttribute(val value: UInt?) - fun onError(ex: Exception) + class LifetimeEnergyConsumedAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class GeneratedCommandListAttribute(val value: ArrayList) - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class AcceptedCommandListAttribute(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 EventListAttribute(val value: ArrayList) - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) + class AttributeListAttribute(val 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 readMaxPressureAttribute(callback: MaxPressureAttributeCallback) { + suspend fun readMaxPressureAttribute(): MaxPressureAttribute { // Implementation needs to be added here } - fun subscribeMaxPressureAttribute( - callback: MaxPressureAttributeCallback, + suspend fun subscribeMaxPressureAttribute( minInterval: Int, maxInterval: Int - ) { + ): MaxPressureAttribute { // Implementation needs to be added here } - fun readMaxSpeedAttribute(callback: MaxSpeedAttributeCallback) { + suspend fun readMaxSpeedAttribute(): MaxSpeedAttribute { // Implementation needs to be added here } - fun subscribeMaxSpeedAttribute( - callback: MaxSpeedAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxSpeedAttribute(minInterval: Int, maxInterval: Int): MaxSpeedAttribute { // Implementation needs to be added here } - fun readMaxFlowAttribute(callback: MaxFlowAttributeCallback) { + suspend fun readMaxFlowAttribute(): MaxFlowAttribute { // Implementation needs to be added here } - fun subscribeMaxFlowAttribute( - callback: MaxFlowAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxFlowAttribute(minInterval: Int, maxInterval: Int): MaxFlowAttribute { // Implementation needs to be added here } - fun readMinConstPressureAttribute(callback: MinConstPressureAttributeCallback) { + suspend fun readMinConstPressureAttribute(): MinConstPressureAttribute { // Implementation needs to be added here } - fun subscribeMinConstPressureAttribute( - callback: MinConstPressureAttributeCallback, + suspend fun subscribeMinConstPressureAttribute( minInterval: Int, maxInterval: Int - ) { + ): MinConstPressureAttribute { // Implementation needs to be added here } - fun readMaxConstPressureAttribute(callback: MaxConstPressureAttributeCallback) { + suspend fun readMaxConstPressureAttribute(): MaxConstPressureAttribute { // Implementation needs to be added here } - fun subscribeMaxConstPressureAttribute( - callback: MaxConstPressureAttributeCallback, + suspend fun subscribeMaxConstPressureAttribute( minInterval: Int, maxInterval: Int - ) { + ): MaxConstPressureAttribute { // Implementation needs to be added here } - fun readMinCompPressureAttribute(callback: MinCompPressureAttributeCallback) { + suspend fun readMinCompPressureAttribute(): MinCompPressureAttribute { // Implementation needs to be added here } - fun subscribeMinCompPressureAttribute( - callback: MinCompPressureAttributeCallback, + suspend fun subscribeMinCompPressureAttribute( minInterval: Int, maxInterval: Int - ) { + ): MinCompPressureAttribute { // Implementation needs to be added here } - fun readMaxCompPressureAttribute(callback: MaxCompPressureAttributeCallback) { + suspend fun readMaxCompPressureAttribute(): MaxCompPressureAttribute { // Implementation needs to be added here } - fun subscribeMaxCompPressureAttribute( - callback: MaxCompPressureAttributeCallback, + suspend fun subscribeMaxCompPressureAttribute( minInterval: Int, maxInterval: Int - ) { + ): MaxCompPressureAttribute { // Implementation needs to be added here } - fun readMinConstSpeedAttribute(callback: MinConstSpeedAttributeCallback) { + suspend fun readMinConstSpeedAttribute(): MinConstSpeedAttribute { // Implementation needs to be added here } - fun subscribeMinConstSpeedAttribute( - callback: MinConstSpeedAttributeCallback, + suspend fun subscribeMinConstSpeedAttribute( minInterval: Int, maxInterval: Int - ) { + ): MinConstSpeedAttribute { // Implementation needs to be added here } - fun readMaxConstSpeedAttribute(callback: MaxConstSpeedAttributeCallback) { + suspend fun readMaxConstSpeedAttribute(): MaxConstSpeedAttribute { // Implementation needs to be added here } - fun subscribeMaxConstSpeedAttribute( - callback: MaxConstSpeedAttributeCallback, + suspend fun subscribeMaxConstSpeedAttribute( minInterval: Int, maxInterval: Int - ) { + ): MaxConstSpeedAttribute { // Implementation needs to be added here } - fun readMinConstFlowAttribute(callback: MinConstFlowAttributeCallback) { + suspend fun readMinConstFlowAttribute(): MinConstFlowAttribute { // Implementation needs to be added here } - fun subscribeMinConstFlowAttribute( - callback: MinConstFlowAttributeCallback, + suspend fun subscribeMinConstFlowAttribute( minInterval: Int, maxInterval: Int - ) { + ): MinConstFlowAttribute { // Implementation needs to be added here } - fun readMaxConstFlowAttribute(callback: MaxConstFlowAttributeCallback) { + suspend fun readMaxConstFlowAttribute(): MaxConstFlowAttribute { // Implementation needs to be added here } - fun subscribeMaxConstFlowAttribute( - callback: MaxConstFlowAttributeCallback, + suspend fun subscribeMaxConstFlowAttribute( minInterval: Int, maxInterval: Int - ) { + ): MaxConstFlowAttribute { // Implementation needs to be added here } - fun readMinConstTempAttribute(callback: MinConstTempAttributeCallback) { + suspend fun readMinConstTempAttribute(): MinConstTempAttribute { // Implementation needs to be added here } - fun subscribeMinConstTempAttribute( - callback: MinConstTempAttributeCallback, + suspend fun subscribeMinConstTempAttribute( minInterval: Int, maxInterval: Int - ) { + ): MinConstTempAttribute { // Implementation needs to be added here } - fun readMaxConstTempAttribute(callback: MaxConstTempAttributeCallback) { + suspend fun readMaxConstTempAttribute(): MaxConstTempAttribute { // Implementation needs to be added here } - fun subscribeMaxConstTempAttribute( - callback: MaxConstTempAttributeCallback, + suspend fun subscribeMaxConstTempAttribute( minInterval: Int, maxInterval: Int - ) { + ): MaxConstTempAttribute { // Implementation needs to be added here } - fun readPumpStatusAttribute(callback: IntegerAttributeCallback) { + suspend fun readPumpStatusAttribute(): UShort { // Implementation needs to be added here } - fun subscribePumpStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePumpStatusAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readEffectiveOperationModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readEffectiveOperationModeAttribute(): UByte { // Implementation needs to be added here } - fun subscribeEffectiveOperationModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEffectiveOperationModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readEffectiveControlModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readEffectiveControlModeAttribute(): UByte { // Implementation needs to be added here } - fun subscribeEffectiveControlModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEffectiveControlModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readCapacityAttribute(callback: CapacityAttributeCallback) { + suspend fun readCapacityAttribute(): CapacityAttribute { // Implementation needs to be added here } - fun subscribeCapacityAttribute( - callback: CapacityAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCapacityAttribute(minInterval: Int, maxInterval: Int): CapacityAttribute { // Implementation needs to be added here } - fun readSpeedAttribute(callback: SpeedAttributeCallback) { + suspend fun readSpeedAttribute(): SpeedAttribute { // Implementation needs to be added here } - fun subscribeSpeedAttribute( - callback: SpeedAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSpeedAttribute(minInterval: Int, maxInterval: Int): SpeedAttribute { // Implementation needs to be added here } - fun readLifetimeRunningHoursAttribute(callback: LifetimeRunningHoursAttributeCallback) { + suspend fun readLifetimeRunningHoursAttribute(): LifetimeRunningHoursAttribute { // Implementation needs to be added here } - fun writeLifetimeRunningHoursAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeLifetimeRunningHoursAttribute(value: UInt) { // Implementation needs to be added here } - fun writeLifetimeRunningHoursAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLifetimeRunningHoursAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeLifetimeRunningHoursAttribute( - callback: LifetimeRunningHoursAttributeCallback, + suspend fun subscribeLifetimeRunningHoursAttribute( minInterval: Int, maxInterval: Int - ) { + ): LifetimeRunningHoursAttribute { // Implementation needs to be added here } - fun readPowerAttribute(callback: PowerAttributeCallback) { + suspend fun readPowerAttribute(): PowerAttribute { // Implementation needs to be added here } - fun subscribePowerAttribute( - callback: PowerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePowerAttribute(minInterval: Int, maxInterval: Int): PowerAttribute { // Implementation needs to be added here } - fun readLifetimeEnergyConsumedAttribute(callback: LifetimeEnergyConsumedAttributeCallback) { + suspend fun readLifetimeEnergyConsumedAttribute(): LifetimeEnergyConsumedAttribute { // Implementation needs to be added here } - fun writeLifetimeEnergyConsumedAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeLifetimeEnergyConsumedAttribute(value: UInt) { // Implementation needs to be added here } - fun writeLifetimeEnergyConsumedAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLifetimeEnergyConsumedAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeLifetimeEnergyConsumedAttribute( - callback: LifetimeEnergyConsumedAttributeCallback, + suspend fun subscribeLifetimeEnergyConsumedAttribute( minInterval: Int, maxInterval: Int - ) { + ): LifetimeEnergyConsumedAttribute { // Implementation needs to be added here } - fun readOperationModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readOperationModeAttribute(): UByte { // Implementation needs to be added here } - fun writeOperationModeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOperationModeAttribute(value: UInt) { // Implementation needs to be added here } - fun writeOperationModeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOperationModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOperationModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOperationModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readControlModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readControlModeAttribute(): UByte { // Implementation needs to be added here } - fun writeControlModeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeControlModeAttribute(value: UInt) { // Implementation needs to be added here } - fun writeControlModeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeControlModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeControlModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeControlModeAttribute(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 = 512u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt index 53454570dcc3c5..945e652210361b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt @@ -20,283 +20,188 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1071u - } - - 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 = 1071u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt index f401bcd1ad70bf..817abe4adb6e3a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt @@ -20,139 +20,96 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class RefrigeratorAlarmCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 87u - } - - 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 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 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 = 87u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt index bbb249603c474c..f36b82ceee2fb7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt @@ -20,230 +20,148 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 82u - } - - 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< - ChipStructs.RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct - > - ) + 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 = 82u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt index 7efad29eaaf8f0..d33ab1e6c9a7a4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt @@ -20,183 +20,119 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class RelativeHumidityMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1029u - } - - interface MeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) + class MeasuredValueAttribute(val value: UShort?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MinMeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MinMeasuredValueAttribute(val value: UShort?) - interface MaxMeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) + class MaxMeasuredValueAttribute(val value: UShort?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(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) - } + 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) - } - - 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 readToleranceAttribute(callback: IntegerAttributeCallback) { + suspend fun readToleranceAttribute(): UShort { // Implementation needs to be added here } - fun subscribeToleranceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeToleranceAttribute(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 = 1029u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt index f51c947cd1c472..3265616a9ed3dd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt @@ -20,193 +20,126 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class RvcCleanModeCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 85u - } - - fun changeToMode(callback: ChangeToModeResponseCallback, newMode: Integer) { - // Implementation needs to be added here - } - - fun changeToMode( - callback: ChangeToModeResponseCallback, - newMode: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - interface ChangeToModeResponseCallback { - fun onSuccess(status: Integer, statusText: String?) - - fun onError(error: Exception) - } - - interface SupportedModesAttributeCallback { - fun onSuccess(value: ArrayList) - - 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) + class ChangeToModeResponse(val status: UInt, val statusText: String?) - fun onError(ex: Exception) + class SupportedModesAttribute( + val value: ArrayList + ) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class OnModeAttribute(val value: UByte?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - 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 changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { + 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) - } - - 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 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 = 85u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt index dab1335f74f2cd..913d76d7375be9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt @@ -20,261 +20,182 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class RvcOperationalStateCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 97u - } - - fun pause(callback: OperationalCommandResponseCallback) { - // Implementation needs to be added here - } - - fun pause(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun stop(callback: OperationalCommandResponseCallback) { - // Implementation needs to be added here - } + class OperationalCommandResponse( + val commandResponseState: ChipStructs.RvcOperationalStateClusterErrorStateStruct + ) - fun stop(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class PhaseListAttribute(val value: ArrayList?) - fun start(callback: OperationalCommandResponseCallback) { - // Implementation needs to be added here - } + class CurrentPhaseAttribute(val value: UByte?) - fun start(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class CountdownTimeAttribute(val value: UInt?) - fun resume(callback: OperationalCommandResponseCallback) { - // Implementation needs to be added here - } + class OperationalStateListAttribute( + val value: ArrayList + ) - fun resume(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class OperationalErrorAttribute( + val value: ChipStructs.RvcOperationalStateClusterErrorStateStruct + ) - interface OperationalCommandResponseCallback { - fun onSuccess(commandResponseState: ChipStructs.RvcOperationalStateClusterErrorStateStruct) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onError(error: Exception) - } + class AcceptedCommandListAttribute(val value: ArrayList) - interface PhaseListAttributeCallback { - fun onSuccess(value: ArrayList?) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class AttributeListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun pause(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface CurrentPhaseAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun stop(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface CountdownTimeAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun start(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface OperationalStateListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resume(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface OperationalErrorAttributeCallback { - fun onSuccess(value: ChipStructs.RvcOperationalStateClusterErrorStateStruct) - - 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 readPhaseListAttribute(callback: PhaseListAttributeCallback) { + suspend fun readPhaseListAttribute(): PhaseListAttribute { // Implementation needs to be added here } - fun subscribePhaseListAttribute( - callback: PhaseListAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePhaseListAttribute(minInterval: Int, maxInterval: Int): PhaseListAttribute { // Implementation needs to be added here } - fun readCurrentPhaseAttribute(callback: CurrentPhaseAttributeCallback) { + suspend fun readCurrentPhaseAttribute(): CurrentPhaseAttribute { // Implementation needs to be added here } - fun subscribeCurrentPhaseAttribute( - callback: CurrentPhaseAttributeCallback, + suspend fun subscribeCurrentPhaseAttribute( minInterval: Int, maxInterval: Int - ) { + ): CurrentPhaseAttribute { // Implementation needs to be added here } - fun readCountdownTimeAttribute(callback: CountdownTimeAttributeCallback) { + suspend fun readCountdownTimeAttribute(): CountdownTimeAttribute { // Implementation needs to be added here } - fun subscribeCountdownTimeAttribute( - callback: CountdownTimeAttributeCallback, + suspend fun subscribeCountdownTimeAttribute( minInterval: Int, maxInterval: Int - ) { + ): CountdownTimeAttribute { // Implementation needs to be added here } - fun readOperationalStateListAttribute(callback: OperationalStateListAttributeCallback) { + suspend fun readOperationalStateListAttribute(): OperationalStateListAttribute { // Implementation needs to be added here } - fun subscribeOperationalStateListAttribute( - callback: OperationalStateListAttributeCallback, + suspend fun subscribeOperationalStateListAttribute( minInterval: Int, maxInterval: Int - ) { + ): OperationalStateListAttribute { // Implementation needs to be added here } - fun readOperationalStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readOperationalStateAttribute(): UByte { // Implementation needs to be added here } - fun subscribeOperationalStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readOperationalErrorAttribute(callback: OperationalErrorAttributeCallback) { + suspend fun readOperationalErrorAttribute(): OperationalErrorAttribute { // Implementation needs to be added here } - fun subscribeOperationalErrorAttribute( - callback: OperationalErrorAttributeCallback, + suspend fun subscribeOperationalErrorAttribute( minInterval: Int, maxInterval: Int - ) { + ): OperationalErrorAttribute { // 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 = 97u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt index 0160a183f48e96..045aab80dd57c2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt @@ -20,193 +20,126 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class RvcRunModeCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 84u - } - - fun changeToMode(callback: ChangeToModeResponseCallback, newMode: Integer) { - // Implementation needs to be added here - } - - fun changeToMode( - callback: ChangeToModeResponseCallback, - newMode: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - interface ChangeToModeResponseCallback { - fun onSuccess(status: Integer, statusText: String?) - - fun onError(error: Exception) - } - - interface SupportedModesAttributeCallback { - fun onSuccess(value: ArrayList) - - 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) + class ChangeToModeResponse(val status: UInt, val statusText: String?) - fun onError(ex: Exception) + class SupportedModesAttribute( + val value: ArrayList + ) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class OnModeAttribute(val value: UByte?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - 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 changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { + 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) - } - - 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 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 = 84u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt index 37d98e704f5d10..3453b23490904b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt @@ -20,162 +20,110 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class SampleMeiCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 4294048800u - } - - fun ping(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun ping(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun addArguments(callback: AddArgumentsResponseCallback, arg1: Integer, arg2: Integer) { - // Implementation needs to be added here - } - - fun addArguments( - callback: AddArgumentsResponseCallback, - arg1: Integer, - arg2: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - interface AddArgumentsResponseCallback { - fun onSuccess(returnValue: Integer) - - fun onError(error: Exception) - } - - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class AddArgumentsResponse(val returnValue: UByte) - 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) - } + 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 ping(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 addArguments( + arg1: UByte, + arg2: UByte, + timedInvokeTimeoutMs: Int? = null + ): AddArgumentsResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readFlipFlopAttribute(callback: BooleanAttributeCallback) { + suspend fun readFlipFlopAttribute(): Boolean { // Implementation needs to be added here } - fun writeFlipFlopAttribute(callback: DefaultClusterCallback, value: Boolean) { + suspend fun writeFlipFlopAttribute(value: Boolean) { // Implementation needs to be added here } - fun writeFlipFlopAttribute( - callback: DefaultClusterCallback, - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeFlipFlopAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeFlipFlopAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFlipFlopAttribute(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 = 4294048800u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt index a075d23e1129ae..11d3113f504488 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt @@ -20,456 +20,310 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class ScenesCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 5u - } + class AddSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) - fun addScene( - callback: AddSceneResponseCallback, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer, - sceneName: String, - extensionFieldSets: ArrayList - ) { - // Implementation needs to be added here - } - - fun addScene( - callback: AddSceneResponseCallback, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer, - sceneName: String, - extensionFieldSets: ArrayList, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class ViewSceneResponse( + val status: UShort, + val groupID: UShort, + val sceneID: UByte, + val transitionTime: UShort?, + val sceneName: String?, + val extensionFieldSets: ArrayList? + ) - fun viewScene(callback: ViewSceneResponseCallback, groupID: Integer, sceneID: Integer) { - // Implementation needs to be added here - } + class RemoveSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) - fun viewScene( - callback: ViewSceneResponseCallback, - groupID: Integer, - sceneID: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class RemoveAllScenesResponse(val status: UShort, val groupID: UShort) - fun removeScene(callback: RemoveSceneResponseCallback, groupID: Integer, sceneID: Integer) { - // Implementation needs to be added here - } + class StoreSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) - fun removeScene( - callback: RemoveSceneResponseCallback, - groupID: Integer, - sceneID: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class GetSceneMembershipResponse( + val status: UShort, + val capacity: UByte?, + val groupID: UShort, + val sceneList: ArrayList? + ) - fun removeAllScenes(callback: RemoveAllScenesResponseCallback, groupID: Integer) { - // Implementation needs to be added here - } + class EnhancedAddSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) - fun removeAllScenes( - callback: RemoveAllScenesResponseCallback, - groupID: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class EnhancedViewSceneResponse( + val status: UShort, + val groupID: UShort, + val sceneID: UByte, + val transitionTime: UShort?, + val sceneName: String?, + val extensionFieldSets: ArrayList? + ) - fun storeScene(callback: StoreSceneResponseCallback, groupID: Integer, sceneID: Integer) { - // Implementation needs to be added here - } + class CopySceneResponse( + val status: UShort, + val groupIdentifierFrom: UShort, + val sceneIdentifierFrom: UByte + ) - fun storeScene( - callback: StoreSceneResponseCallback, - groupID: Integer, - sceneID: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class LastConfiguredByAttribute(val value: ULong?) - fun recallScene( - callback: DefaultClusterCallback, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer? - ) { - // Implementation needs to be added here - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun recallScene( - callback: DefaultClusterCallback, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class AcceptedCommandListAttribute(val value: ArrayList) - fun getSceneMembership(callback: GetSceneMembershipResponseCallback, groupID: Integer) { - // Implementation needs to be added here - } + class EventListAttribute(val value: ArrayList) - fun getSceneMembership( - callback: GetSceneMembershipResponseCallback, - groupID: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class AttributeListAttribute(val value: ArrayList) - fun enhancedAddScene( - callback: EnhancedAddSceneResponseCallback, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer, + suspend fun addScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort, sceneName: String, - extensionFieldSets: ArrayList + extensionFieldSets: ArrayList, + timedInvokeTimeoutMs: Int? = null + ): AddSceneResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun viewScene( + groupID: UShort, + sceneID: UByte, + timedInvokeTimeoutMs: Int? = null + ): ViewSceneResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun removeScene( + groupID: UShort, + sceneID: UByte, + timedInvokeTimeoutMs: Int? = null + ): RemoveSceneResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun removeAllScenes( + groupID: UShort, + timedInvokeTimeoutMs: Int? = null + ): RemoveAllScenesResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun storeScene( + groupID: UShort, + sceneID: UByte, + timedInvokeTimeoutMs: Int? = null + ): StoreSceneResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun recallScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort?, + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - fun enhancedAddScene( - callback: EnhancedAddSceneResponseCallback, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer, + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun getSceneMembership( + groupID: UShort, + timedInvokeTimeoutMs: Int? = null + ): GetSceneMembershipResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun enhancedAddScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort, sceneName: String, extensionFieldSets: ArrayList, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here + timedInvokeTimeoutMs: Int? = null + ): EnhancedAddSceneResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun enhancedViewScene( - callback: EnhancedViewSceneResponseCallback, - groupID: Integer, - sceneID: Integer - ) { - // Implementation needs to be added here + suspend fun enhancedViewScene( + groupID: UShort, + sceneID: UByte, + timedInvokeTimeoutMs: Int? = null + ): EnhancedViewSceneResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun enhancedViewScene( - callback: EnhancedViewSceneResponseCallback, - groupID: Integer, - sceneID: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here + suspend fun copyScene( + mode: UInt, + groupIdentifierFrom: UShort, + sceneIdentifierFrom: UByte, + groupIdentifierTo: UShort, + sceneIdentifierTo: UByte, + timedInvokeTimeoutMs: Int? = null + ): CopySceneResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun copyScene( - callback: CopySceneResponseCallback, - mode: Integer, - groupIdentifierFrom: Integer, - sceneIdentifierFrom: Integer, - groupIdentifierTo: Integer, - sceneIdentifierTo: Integer - ) { + suspend fun readSceneCountAttribute(): UByte { // Implementation needs to be added here } - fun copyScene( - callback: CopySceneResponseCallback, - mode: Integer, - groupIdentifierFrom: Integer, - sceneIdentifierFrom: Integer, - groupIdentifierTo: Integer, - sceneIdentifierTo: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun subscribeSceneCountAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - interface AddSceneResponseCallback { - fun onSuccess(status: Integer, groupID: Integer, sceneID: Integer) - - fun onError(error: Exception) - } - - interface ViewSceneResponseCallback { - fun onSuccess( - status: Integer, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer?, - sceneName: String?, - extensionFieldSets: ArrayList? - ) - - fun onError(error: Exception) - } - - interface RemoveSceneResponseCallback { - fun onSuccess(status: Integer, groupID: Integer, sceneID: Integer) - - fun onError(error: Exception) - } - - interface RemoveAllScenesResponseCallback { - fun onSuccess(status: Integer, groupID: Integer) - - fun onError(error: Exception) - } - - interface StoreSceneResponseCallback { - fun onSuccess(status: Integer, groupID: Integer, sceneID: Integer) - - fun onError(error: Exception) - } - - interface GetSceneMembershipResponseCallback { - fun onSuccess( - status: Integer, - capacity: Integer?, - groupID: Integer, - sceneList: ArrayList? - ) - - fun onError(error: Exception) - } - - interface EnhancedAddSceneResponseCallback { - fun onSuccess(status: Integer, groupID: Integer, sceneID: Integer) - - fun onError(error: Exception) - } - - interface EnhancedViewSceneResponseCallback { - fun onSuccess( - status: Integer, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer?, - sceneName: String?, - extensionFieldSets: ArrayList? - ) - - fun onError(error: Exception) - } - - interface CopySceneResponseCallback { - fun onSuccess(status: Integer, groupIdentifierFrom: Integer, sceneIdentifierFrom: Integer) - - fun onError(error: Exception) - } - - interface LastConfiguredByAttributeCallback { - fun onSuccess(value: Long?) - - 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 readSceneCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentSceneAttribute(): UByte { // Implementation needs to be added here } - fun subscribeSceneCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentSceneAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readCurrentSceneAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentGroupAttribute(): UShort { // Implementation needs to be added here } - fun subscribeCurrentSceneAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentGroupAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readCurrentGroupAttribute(callback: IntegerAttributeCallback) { + suspend fun readSceneValidAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeCurrentGroupAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSceneValidAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readSceneValidAttribute(callback: BooleanAttributeCallback) { + suspend fun readNameSupportAttribute(): UByte { // Implementation needs to be added here } - fun subscribeSceneValidAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readNameSupportAttribute(callback: IntegerAttributeCallback) { + suspend fun readLastConfiguredByAttribute(): LastConfiguredByAttribute { // Implementation needs to be added here } - fun subscribeNameSupportAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeLastConfiguredByAttribute( minInterval: Int, maxInterval: Int - ) { + ): LastConfiguredByAttribute { // Implementation needs to be added here } - fun readLastConfiguredByAttribute(callback: LastConfiguredByAttributeCallback) { + suspend fun readSceneTableSizeAttribute(): UShort { // Implementation needs to be added here } - fun subscribeLastConfiguredByAttribute( - callback: LastConfiguredByAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSceneTableSizeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readSceneTableSizeAttribute(callback: IntegerAttributeCallback) { + suspend fun readRemainingCapacityAttribute(): UByte { // Implementation needs to be added here } - fun subscribeSceneTableSizeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRemainingCapacityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readRemainingCapacityAttribute(callback: IntegerAttributeCallback) { + suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here } - fun subscribeRemainingCapacityAttribute( - callback: IntegerAttributeCallback, + 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) { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - fun subscribeAttributeListAttribute( - callback: AttributeListAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readFeatureMapAttribute(callback: LongAttributeCallback) { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { - // 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 = 5u } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt index eae9b36d990a6d..3b0e50ed0434ee 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt @@ -20,287 +20,192 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class SmokeCoAlarmCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 92u - } - - fun selfTestRequest(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun selfTestRequest(callback: DefaultClusterCallback, 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) - } - - 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 selfTestRequest(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) - } - - fun readExpressedStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readExpressedStateAttribute(): UByte { // Implementation needs to be added here } - fun subscribeExpressedStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeExpressedStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readSmokeStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readSmokeStateAttribute(): UByte { // Implementation needs to be added here } - fun subscribeSmokeStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSmokeStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readCOStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readCOStateAttribute(): UByte { // Implementation needs to be added here } - fun subscribeCOStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCOStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readBatteryAlertAttribute(callback: IntegerAttributeCallback) { + suspend fun readBatteryAlertAttribute(): UByte { // Implementation needs to be added here } - fun subscribeBatteryAlertAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatteryAlertAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readDeviceMutedAttribute(callback: IntegerAttributeCallback) { + suspend fun readDeviceMutedAttribute(): UByte { // Implementation needs to be added here } - fun subscribeDeviceMutedAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDeviceMutedAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readTestInProgressAttribute(callback: BooleanAttributeCallback) { + suspend fun readTestInProgressAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeTestInProgressAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTestInProgressAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readHardwareFaultAlertAttribute(callback: BooleanAttributeCallback) { + suspend fun readHardwareFaultAlertAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeHardwareFaultAlertAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeHardwareFaultAlertAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readEndOfServiceAlertAttribute(callback: IntegerAttributeCallback) { + suspend fun readEndOfServiceAlertAttribute(): UByte { // Implementation needs to be added here } - fun subscribeEndOfServiceAlertAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEndOfServiceAlertAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readInterconnectSmokeAlarmAttribute(callback: IntegerAttributeCallback) { + suspend fun readInterconnectSmokeAlarmAttribute(): UByte { // Implementation needs to be added here } - fun subscribeInterconnectSmokeAlarmAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInterconnectSmokeAlarmAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readInterconnectCOAlarmAttribute(callback: IntegerAttributeCallback) { + suspend fun readInterconnectCOAlarmAttribute(): UByte { // Implementation needs to be added here } - fun subscribeInterconnectCOAlarmAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInterconnectCOAlarmAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readContaminationStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readContaminationStateAttribute(): UByte { // Implementation needs to be added here } - fun subscribeContaminationStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeContaminationStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readSmokeSensitivityLevelAttribute(callback: IntegerAttributeCallback) { + suspend fun readSmokeSensitivityLevelAttribute(): UByte { // Implementation needs to be added here } - fun writeSmokeSensitivityLevelAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeSmokeSensitivityLevelAttribute(value: UInt) { // Implementation needs to be added here } - fun writeSmokeSensitivityLevelAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSmokeSensitivityLevelAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeSmokeSensitivityLevelAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSmokeSensitivityLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readExpiryDateAttribute(callback: LongAttributeCallback) { + suspend fun readExpiryDateAttribute(): UInt { // Implementation needs to be added here } - fun subscribeExpiryDateAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeExpiryDateAttribute(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 = 92u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt index 79c817ba943239..7188448084f1db 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt @@ -20,175 +20,122 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class SoftwareDiagnosticsCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 52u - } - - fun resetWatermarks(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun resetWatermarks(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - interface ThreadMetricsAttributeCallback { - fun onSuccess(value: ArrayList?) + class ThreadMetricsAttribute( + val value: ArrayList? + ) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(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) - } + 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 resetWatermarks(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) - } - - fun readThreadMetricsAttribute(callback: ThreadMetricsAttributeCallback) { + suspend fun readThreadMetricsAttribute(): ThreadMetricsAttribute { // Implementation needs to be added here } - fun subscribeThreadMetricsAttribute( - callback: ThreadMetricsAttributeCallback, + suspend fun subscribeThreadMetricsAttribute( minInterval: Int, maxInterval: Int - ) { + ): ThreadMetricsAttribute { // Implementation needs to be added here } - fun readCurrentHeapFreeAttribute(callback: LongAttributeCallback) { + suspend fun readCurrentHeapFreeAttribute(): ULong { // Implementation needs to be added here } - fun subscribeCurrentHeapFreeAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentHeapFreeAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readCurrentHeapUsedAttribute(callback: LongAttributeCallback) { + suspend fun readCurrentHeapUsedAttribute(): ULong { // Implementation needs to be added here } - fun subscribeCurrentHeapUsedAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentHeapUsedAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readCurrentHeapHighWatermarkAttribute(callback: LongAttributeCallback) { + suspend fun readCurrentHeapHighWatermarkAttribute(): ULong { // Implementation needs to be added here } - fun subscribeCurrentHeapHighWatermarkAttribute( - callback: LongAttributeCallback, + suspend fun subscribeCurrentHeapHighWatermarkAttribute( minInterval: Int, maxInterval: Int - ) { + ): ULong { // 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 = 52u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt index 7d9685744e2ffc..a7d2a5eaac0e94 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt @@ -20,147 +20,96 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class SwitchCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 59u - } - - 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) - } - - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class AttributeListAttribute(val value: ArrayList) - fun readNumberOfPositionsAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfPositionsAttribute(): UByte { // Implementation needs to be added here } - fun subscribeNumberOfPositionsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeNumberOfPositionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readCurrentPositionAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentPositionAttribute(): UByte { // Implementation needs to be added here } - fun subscribeCurrentPositionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentPositionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readMultiPressMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readMultiPressMaxAttribute(): UByte { // Implementation needs to be added here } - fun subscribeMultiPressMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMultiPressMaxAttribute(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 = 59u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt index 11eebe726ebc63..1f74204e4b7ee1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt @@ -20,162 +20,109 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class TargetNavigatorCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1285u - } - - fun navigateTarget(callback: NavigateTargetResponseCallback, target: Integer, data: String?) { - // Implementation needs to be added here - } - - fun navigateTarget( - callback: NavigateTargetResponseCallback, - target: Integer, - data: String?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class NavigateTargetResponse(val status: UInt, val data: String?) - interface NavigateTargetResponseCallback { - fun onSuccess(status: Integer, data: String?) + class TargetListAttribute( + val value: ArrayList + ) - fun onError(error: Exception) - } - - interface TargetListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class GeneratedCommandListAttribute(val value: ArrayList) - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class AcceptedCommandListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class EventListAttribute(val value: ArrayList) - 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) + suspend fun navigateTarget( + target: UByte, + data: String?, + timedInvokeTimeoutMs: Int? = null + ): NavigateTargetResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readTargetListAttribute(callback: TargetListAttributeCallback) { + suspend fun readTargetListAttribute(): TargetListAttribute { // Implementation needs to be added here } - fun subscribeTargetListAttribute( - callback: TargetListAttributeCallback, + suspend fun subscribeTargetListAttribute( minInterval: Int, maxInterval: Int - ) { + ): TargetListAttribute { // Implementation needs to be added here } - fun readCurrentTargetAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentTargetAttribute(): UByte { // Implementation needs to be added here } - fun subscribeCurrentTargetAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentTargetAttribute(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 = 1285u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt index e828002cddf0b8..eeb0afbba7a049 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt @@ -20,210 +20,140 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class TemperatureControlCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 86u - } + class SupportedTemperatureLevelsAttribute(val value: ArrayList?) - fun setTemperature( - callback: DefaultClusterCallback, - targetTemperature: Integer?, - targetTemperatureLevel: Integer? - ) { - // Implementation needs to be added here - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun setTemperature( - callback: DefaultClusterCallback, - targetTemperature: Integer?, - targetTemperatureLevel: Integer?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - interface SupportedTemperatureLevelsAttributeCallback { - fun onSuccess(value: ArrayList?) + class AcceptedCommandListAttribute(val value: ArrayList) - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class EventListAttribute(val value: ArrayList) - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class AttributeListAttribute(val value: ArrayList) - 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) + suspend fun setTemperature( + targetTemperature: Short?, + targetTemperatureLevel: UByte?, + timedInvokeTimeoutMs: Int? = null + ) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readTemperatureSetpointAttribute(callback: IntegerAttributeCallback) { + suspend fun readTemperatureSetpointAttribute(): Short { // Implementation needs to be added here } - fun subscribeTemperatureSetpointAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTemperatureSetpointAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readMinTemperatureAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinTemperatureAttribute(): Short { // Implementation needs to be added here } - fun subscribeMinTemperatureAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMinTemperatureAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readMaxTemperatureAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxTemperatureAttribute(): Short { // Implementation needs to be added here } - fun subscribeMaxTemperatureAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxTemperatureAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readStepAttribute(callback: IntegerAttributeCallback) { + suspend fun readStepAttribute(): Short { // Implementation needs to be added here } - fun subscribeStepAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeStepAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readSelectedTemperatureLevelAttribute(callback: IntegerAttributeCallback) { + suspend fun readSelectedTemperatureLevelAttribute(): UByte { // Implementation needs to be added here } - fun subscribeSelectedTemperatureLevelAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeSelectedTemperatureLevelAttribute( minInterval: Int, maxInterval: Int - ) { + ): UByte { // Implementation needs to be added here } - fun readSupportedTemperatureLevelsAttribute( - callback: SupportedTemperatureLevelsAttributeCallback - ) { + suspend fun readSupportedTemperatureLevelsAttribute(): SupportedTemperatureLevelsAttribute { // Implementation needs to be added here } - fun subscribeSupportedTemperatureLevelsAttribute( - callback: SupportedTemperatureLevelsAttributeCallback, + suspend fun subscribeSupportedTemperatureLevelsAttribute( minInterval: Int, maxInterval: Int - ) { + ): SupportedTemperatureLevelsAttribute { // 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 = 86u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt index cda7f5102d348b..e7e758d9d92a39 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt @@ -20,183 +20,119 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class TemperatureMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1026u - } - - interface MeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) + class MeasuredValueAttribute(val value: Short?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MinMeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MinMeasuredValueAttribute(val value: Short?) - interface MaxMeasuredValueAttributeCallback { - fun onSuccess(value: Integer?) + class MaxMeasuredValueAttribute(val value: Short?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(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) - } + 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) - } - - 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 readToleranceAttribute(callback: IntegerAttributeCallback) { + suspend fun readToleranceAttribute(): UShort { // Implementation needs to be added here } - fun subscribeToleranceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeToleranceAttribute(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 = 1026u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt index efe49d68aa9df2..857a84b6ff9430 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt @@ -20,1189 +20,818 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class ThermostatCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 513u - } - - fun setpointRaiseLower(callback: DefaultClusterCallback, mode: Integer, amount: Integer) { - // Implementation needs to be added here - } - - fun setpointRaiseLower( - callback: DefaultClusterCallback, - mode: Integer, - amount: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun setWeeklySchedule( - callback: DefaultClusterCallback, - numberOfTransitionsForSequence: Integer, - dayOfWeekForSequence: Integer, - modeForSequence: Integer, - transitions: ArrayList - ) { - // Implementation needs to be added here - } - - fun setWeeklySchedule( - callback: DefaultClusterCallback, - numberOfTransitionsForSequence: Integer, - dayOfWeekForSequence: Integer, - modeForSequence: Integer, - transitions: ArrayList, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun getWeeklySchedule( - callback: GetWeeklyScheduleResponseCallback, - daysToReturn: Integer, - modeToReturn: Integer - ) { - // Implementation needs to be added here - } - - fun getWeeklySchedule( - callback: GetWeeklyScheduleResponseCallback, - daysToReturn: Integer, - modeToReturn: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun clearWeeklySchedule(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } + class GetWeeklyScheduleResponse( + val numberOfTransitionsForSequence: UByte, + val dayOfWeekForSequence: UInt, + val modeForSequence: UInt, + val transitions: ArrayList + ) - fun clearWeeklySchedule(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - interface GetWeeklyScheduleResponseCallback { - fun onSuccess( - numberOfTransitionsForSequence: Integer, - dayOfWeekForSequence: Integer, - modeForSequence: Integer, - transitions: ArrayList - ) - - fun onError(error: Exception) - } - - interface LocalTemperatureAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface OutdoorTemperatureAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface TemperatureSetpointHoldDurationAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface SetpointChangeAmountAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface OccupiedSetbackAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface OccupiedSetbackMinAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface OccupiedSetbackMaxAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class LocalTemperatureAttribute(val value: Short?) - interface UnoccupiedSetbackAttributeCallback { - fun onSuccess(value: Integer?) + class OutdoorTemperatureAttribute(val value: Short?) - fun onError(ex: Exception) + class TemperatureSetpointHoldDurationAttribute(val value: UShort?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class SetpointChangeAmountAttribute(val value: Short?) - interface UnoccupiedSetbackMinAttributeCallback { - fun onSuccess(value: Integer?) + class OccupiedSetbackAttribute(val value: UByte?) - fun onError(ex: Exception) + class OccupiedSetbackMinAttribute(val value: UByte?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class OccupiedSetbackMaxAttribute(val value: UByte?) - interface UnoccupiedSetbackMaxAttributeCallback { - fun onSuccess(value: Integer?) + class UnoccupiedSetbackAttribute(val value: UByte?) - fun onError(ex: Exception) + class UnoccupiedSetbackMinAttribute(val value: UByte?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class UnoccupiedSetbackMaxAttribute(val value: UByte?) - interface ACCoilTemperatureAttributeCallback { - fun onSuccess(value: Integer?) + class ACCoilTemperatureAttribute(val value: Short?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class AcceptedCommandListAttribute(val value: ArrayList) - 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 setpointRaiseLower(mode: UInt, amount: Byte, 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 setWeeklySchedule( + numberOfTransitionsForSequence: UByte, + dayOfWeekForSequence: UInt, + modeForSequence: UInt, + transitions: ArrayList, + 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 getWeeklySchedule( + daysToReturn: UInt, + modeToReturn: UInt, + timedInvokeTimeoutMs: Int? = null + ): GetWeeklyScheduleResponse { + 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 clearWeeklySchedule(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readLocalTemperatureAttribute(callback: LocalTemperatureAttributeCallback) { + suspend fun readLocalTemperatureAttribute(): LocalTemperatureAttribute { // Implementation needs to be added here } - fun subscribeLocalTemperatureAttribute( - callback: LocalTemperatureAttributeCallback, + suspend fun subscribeLocalTemperatureAttribute( minInterval: Int, maxInterval: Int - ) { + ): LocalTemperatureAttribute { // Implementation needs to be added here } - fun readOutdoorTemperatureAttribute(callback: OutdoorTemperatureAttributeCallback) { + suspend fun readOutdoorTemperatureAttribute(): OutdoorTemperatureAttribute { // Implementation needs to be added here } - fun subscribeOutdoorTemperatureAttribute( - callback: OutdoorTemperatureAttributeCallback, + suspend fun subscribeOutdoorTemperatureAttribute( minInterval: Int, maxInterval: Int - ) { + ): OutdoorTemperatureAttribute { // Implementation needs to be added here } - fun readOccupancyAttribute(callback: IntegerAttributeCallback) { + suspend fun readOccupancyAttribute(): UByte { // Implementation needs to be added here } - fun subscribeOccupancyAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readAbsMinHeatSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readAbsMinHeatSetpointLimitAttribute(): Short { // Implementation needs to be added here } - fun subscribeAbsMinHeatSetpointLimitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAbsMinHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readAbsMaxHeatSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readAbsMaxHeatSetpointLimitAttribute(): Short { // Implementation needs to be added here } - fun subscribeAbsMaxHeatSetpointLimitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAbsMaxHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readAbsMinCoolSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readAbsMinCoolSetpointLimitAttribute(): Short { // Implementation needs to be added here } - fun subscribeAbsMinCoolSetpointLimitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAbsMinCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readAbsMaxCoolSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readAbsMaxCoolSetpointLimitAttribute(): Short { // Implementation needs to be added here } - fun subscribeAbsMaxCoolSetpointLimitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAbsMaxCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readPICoolingDemandAttribute(callback: IntegerAttributeCallback) { + suspend fun readPICoolingDemandAttribute(): UByte { // Implementation needs to be added here } - fun subscribePICoolingDemandAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePICoolingDemandAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readPIHeatingDemandAttribute(callback: IntegerAttributeCallback) { + suspend fun readPIHeatingDemandAttribute(): UByte { // Implementation needs to be added here } - fun subscribePIHeatingDemandAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePIHeatingDemandAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readHVACSystemTypeConfigurationAttribute(callback: IntegerAttributeCallback) { + suspend fun readHVACSystemTypeConfigurationAttribute(): UByte { // Implementation needs to be added here } - fun writeHVACSystemTypeConfigurationAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeHVACSystemTypeConfigurationAttribute(value: UInt) { // Implementation needs to be added here } - fun writeHVACSystemTypeConfigurationAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeHVACSystemTypeConfigurationAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeHVACSystemTypeConfigurationAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeHVACSystemTypeConfigurationAttribute( minInterval: Int, maxInterval: Int - ) { + ): UByte { // Implementation needs to be added here } - fun readLocalTemperatureCalibrationAttribute(callback: IntegerAttributeCallback) { + suspend fun readLocalTemperatureCalibrationAttribute(): Byte { // Implementation needs to be added here } - fun writeLocalTemperatureCalibrationAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeLocalTemperatureCalibrationAttribute(value: Byte) { // Implementation needs to be added here } - fun writeLocalTemperatureCalibrationAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLocalTemperatureCalibrationAttribute(value: Byte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeLocalTemperatureCalibrationAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeLocalTemperatureCalibrationAttribute( minInterval: Int, maxInterval: Int - ) { + ): Byte { // Implementation needs to be added here } - fun readOccupiedCoolingSetpointAttribute(callback: IntegerAttributeCallback) { + suspend fun readOccupiedCoolingSetpointAttribute(): Short { // Implementation needs to be added here } - fun writeOccupiedCoolingSetpointAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOccupiedCoolingSetpointAttribute(value: Short) { // Implementation needs to be added here } - fun writeOccupiedCoolingSetpointAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOccupiedCoolingSetpointAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOccupiedCoolingSetpointAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOccupiedCoolingSetpointAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readOccupiedHeatingSetpointAttribute(callback: IntegerAttributeCallback) { + suspend fun readOccupiedHeatingSetpointAttribute(): Short { // Implementation needs to be added here } - fun writeOccupiedHeatingSetpointAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOccupiedHeatingSetpointAttribute(value: Short) { // Implementation needs to be added here } - fun writeOccupiedHeatingSetpointAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOccupiedHeatingSetpointAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOccupiedHeatingSetpointAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOccupiedHeatingSetpointAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readUnoccupiedCoolingSetpointAttribute(callback: IntegerAttributeCallback) { + suspend fun readUnoccupiedCoolingSetpointAttribute(): Short { // Implementation needs to be added here } - fun writeUnoccupiedCoolingSetpointAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeUnoccupiedCoolingSetpointAttribute(value: Short) { // Implementation needs to be added here } - fun writeUnoccupiedCoolingSetpointAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeUnoccupiedCoolingSetpointAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeUnoccupiedCoolingSetpointAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeUnoccupiedCoolingSetpointAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readUnoccupiedHeatingSetpointAttribute(callback: IntegerAttributeCallback) { + suspend fun readUnoccupiedHeatingSetpointAttribute(): Short { // Implementation needs to be added here } - fun writeUnoccupiedHeatingSetpointAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeUnoccupiedHeatingSetpointAttribute(value: Short) { // Implementation needs to be added here } - fun writeUnoccupiedHeatingSetpointAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeUnoccupiedHeatingSetpointAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeUnoccupiedHeatingSetpointAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeUnoccupiedHeatingSetpointAttribute( minInterval: Int, maxInterval: Int - ) { + ): Short { // Implementation needs to be added here } - fun readMinHeatSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinHeatSetpointLimitAttribute(): Short { // Implementation needs to be added here } - fun writeMinHeatSetpointLimitAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeMinHeatSetpointLimitAttribute(value: Short) { // Implementation needs to be added here } - fun writeMinHeatSetpointLimitAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeMinHeatSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeMinHeatSetpointLimitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMinHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readMaxHeatSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxHeatSetpointLimitAttribute(): Short { // Implementation needs to be added here } - fun writeMaxHeatSetpointLimitAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeMaxHeatSetpointLimitAttribute(value: Short) { // Implementation needs to be added here } - fun writeMaxHeatSetpointLimitAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeMaxHeatSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeMaxHeatSetpointLimitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readMinCoolSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinCoolSetpointLimitAttribute(): Short { // Implementation needs to be added here } - fun writeMinCoolSetpointLimitAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeMinCoolSetpointLimitAttribute(value: Short) { // Implementation needs to be added here } - fun writeMinCoolSetpointLimitAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeMinCoolSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeMinCoolSetpointLimitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMinCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readMaxCoolSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxCoolSetpointLimitAttribute(): Short { // Implementation needs to be added here } - fun writeMaxCoolSetpointLimitAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeMaxCoolSetpointLimitAttribute(value: Short) { // Implementation needs to be added here } - fun writeMaxCoolSetpointLimitAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeMaxCoolSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeMaxCoolSetpointLimitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readMinSetpointDeadBandAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinSetpointDeadBandAttribute(): Byte { // Implementation needs to be added here } - fun writeMinSetpointDeadBandAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeMinSetpointDeadBandAttribute(value: Byte) { // Implementation needs to be added here } - fun writeMinSetpointDeadBandAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeMinSetpointDeadBandAttribute(value: Byte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeMinSetpointDeadBandAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMinSetpointDeadBandAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } - fun readRemoteSensingAttribute(callback: IntegerAttributeCallback) { + suspend fun readRemoteSensingAttribute(): UByte { // Implementation needs to be added here } - fun writeRemoteSensingAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeRemoteSensingAttribute(value: UInt) { // Implementation needs to be added here } - fun writeRemoteSensingAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRemoteSensingAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeRemoteSensingAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRemoteSensingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readControlSequenceOfOperationAttribute(callback: IntegerAttributeCallback) { + suspend fun readControlSequenceOfOperationAttribute(): UByte { // Implementation needs to be added here } - fun writeControlSequenceOfOperationAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeControlSequenceOfOperationAttribute(value: UInt) { // Implementation needs to be added here } - fun writeControlSequenceOfOperationAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeControlSequenceOfOperationAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeControlSequenceOfOperationAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeControlSequenceOfOperationAttribute( minInterval: Int, maxInterval: Int - ) { + ): UByte { // Implementation needs to be added here } - fun readSystemModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readSystemModeAttribute(): UByte { // Implementation needs to be added here } - fun writeSystemModeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeSystemModeAttribute(value: UInt) { // Implementation needs to be added here } - fun writeSystemModeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSystemModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeSystemModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSystemModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readThermostatRunningModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readThermostatRunningModeAttribute(): UByte { // Implementation needs to be added here } - fun subscribeThermostatRunningModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeThermostatRunningModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readStartOfWeekAttribute(callback: IntegerAttributeCallback) { + suspend fun readStartOfWeekAttribute(): UByte { // Implementation needs to be added here } - fun subscribeStartOfWeekAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeStartOfWeekAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readNumberOfWeeklyTransitionsAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfWeeklyTransitionsAttribute(): UByte { // Implementation needs to be added here } - fun subscribeNumberOfWeeklyTransitionsAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfWeeklyTransitionsAttribute( minInterval: Int, maxInterval: Int - ) { + ): UByte { // Implementation needs to be added here } - fun readNumberOfDailyTransitionsAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfDailyTransitionsAttribute(): UByte { // Implementation needs to be added here } - fun subscribeNumberOfDailyTransitionsAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfDailyTransitionsAttribute( minInterval: Int, maxInterval: Int - ) { + ): UByte { // Implementation needs to be added here } - fun readTemperatureSetpointHoldAttribute(callback: IntegerAttributeCallback) { + suspend fun readTemperatureSetpointHoldAttribute(): UByte { // Implementation needs to be added here } - fun writeTemperatureSetpointHoldAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeTemperatureSetpointHoldAttribute(value: UInt) { // Implementation needs to be added here } - fun writeTemperatureSetpointHoldAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeTemperatureSetpointHoldAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeTemperatureSetpointHoldAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTemperatureSetpointHoldAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readTemperatureSetpointHoldDurationAttribute( - callback: TemperatureSetpointHoldDurationAttributeCallback - ) { + suspend fun readTemperatureSetpointHoldDurationAttribute(): + TemperatureSetpointHoldDurationAttribute { // Implementation needs to be added here } - fun writeTemperatureSetpointHoldDurationAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writeTemperatureSetpointHoldDurationAttribute(value: UShort) { // Implementation needs to be added here } - fun writeTemperatureSetpointHoldDurationAttribute( - callback: DefaultClusterCallback, - value: Integer, + suspend fun writeTemperatureSetpointHoldDurationAttribute( + value: UShort, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeTemperatureSetpointHoldDurationAttribute( - callback: TemperatureSetpointHoldDurationAttributeCallback, + suspend fun subscribeTemperatureSetpointHoldDurationAttribute( minInterval: Int, maxInterval: Int - ) { + ): TemperatureSetpointHoldDurationAttribute { // Implementation needs to be added here } - fun readThermostatProgrammingOperationModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readThermostatProgrammingOperationModeAttribute(): UByte { // Implementation needs to be added here } - fun writeThermostatProgrammingOperationModeAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writeThermostatProgrammingOperationModeAttribute(value: UInt) { // Implementation needs to be added here } - fun writeThermostatProgrammingOperationModeAttribute( - callback: DefaultClusterCallback, - value: Integer, + suspend fun writeThermostatProgrammingOperationModeAttribute( + value: UInt, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeThermostatProgrammingOperationModeAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeThermostatProgrammingOperationModeAttribute( minInterval: Int, maxInterval: Int - ) { + ): UByte { // Implementation needs to be added here } - fun readThermostatRunningStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readThermostatRunningStateAttribute(): UShort { // Implementation needs to be added here } - fun subscribeThermostatRunningStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeThermostatRunningStateAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readSetpointChangeSourceAttribute(callback: IntegerAttributeCallback) { + suspend fun readSetpointChangeSourceAttribute(): UByte { // Implementation needs to be added here } - fun subscribeSetpointChangeSourceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSetpointChangeSourceAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readSetpointChangeAmountAttribute(callback: SetpointChangeAmountAttributeCallback) { + suspend fun readSetpointChangeAmountAttribute(): SetpointChangeAmountAttribute { // Implementation needs to be added here } - fun subscribeSetpointChangeAmountAttribute( - callback: SetpointChangeAmountAttributeCallback, + suspend fun subscribeSetpointChangeAmountAttribute( minInterval: Int, maxInterval: Int - ) { + ): SetpointChangeAmountAttribute { // Implementation needs to be added here } - fun readSetpointChangeSourceTimestampAttribute(callback: LongAttributeCallback) { + suspend fun readSetpointChangeSourceTimestampAttribute(): UInt { // Implementation needs to be added here } - fun subscribeSetpointChangeSourceTimestampAttribute( - callback: LongAttributeCallback, + suspend fun subscribeSetpointChangeSourceTimestampAttribute( minInterval: Int, maxInterval: Int - ) { + ): UInt { // Implementation needs to be added here } - fun readOccupiedSetbackAttribute(callback: OccupiedSetbackAttributeCallback) { + suspend fun readOccupiedSetbackAttribute(): OccupiedSetbackAttribute { // Implementation needs to be added here } - fun writeOccupiedSetbackAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOccupiedSetbackAttribute(value: UByte) { // Implementation needs to be added here } - fun writeOccupiedSetbackAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOccupiedSetbackAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOccupiedSetbackAttribute( - callback: OccupiedSetbackAttributeCallback, + suspend fun subscribeOccupiedSetbackAttribute( minInterval: Int, maxInterval: Int - ) { + ): OccupiedSetbackAttribute { // Implementation needs to be added here } - fun readOccupiedSetbackMinAttribute(callback: OccupiedSetbackMinAttributeCallback) { + suspend fun readOccupiedSetbackMinAttribute(): OccupiedSetbackMinAttribute { // Implementation needs to be added here } - fun subscribeOccupiedSetbackMinAttribute( - callback: OccupiedSetbackMinAttributeCallback, + suspend fun subscribeOccupiedSetbackMinAttribute( minInterval: Int, maxInterval: Int - ) { + ): OccupiedSetbackMinAttribute { // Implementation needs to be added here } - fun readOccupiedSetbackMaxAttribute(callback: OccupiedSetbackMaxAttributeCallback) { + suspend fun readOccupiedSetbackMaxAttribute(): OccupiedSetbackMaxAttribute { // Implementation needs to be added here } - fun subscribeOccupiedSetbackMaxAttribute( - callback: OccupiedSetbackMaxAttributeCallback, + suspend fun subscribeOccupiedSetbackMaxAttribute( minInterval: Int, maxInterval: Int - ) { + ): OccupiedSetbackMaxAttribute { // Implementation needs to be added here } - fun readUnoccupiedSetbackAttribute(callback: UnoccupiedSetbackAttributeCallback) { + suspend fun readUnoccupiedSetbackAttribute(): UnoccupiedSetbackAttribute { // Implementation needs to be added here } - fun writeUnoccupiedSetbackAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeUnoccupiedSetbackAttribute(value: UByte) { // Implementation needs to be added here } - fun writeUnoccupiedSetbackAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeUnoccupiedSetbackAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeUnoccupiedSetbackAttribute( - callback: UnoccupiedSetbackAttributeCallback, + suspend fun subscribeUnoccupiedSetbackAttribute( minInterval: Int, maxInterval: Int - ) { + ): UnoccupiedSetbackAttribute { // Implementation needs to be added here } - fun readUnoccupiedSetbackMinAttribute(callback: UnoccupiedSetbackMinAttributeCallback) { + suspend fun readUnoccupiedSetbackMinAttribute(): UnoccupiedSetbackMinAttribute { // Implementation needs to be added here } - fun subscribeUnoccupiedSetbackMinAttribute( - callback: UnoccupiedSetbackMinAttributeCallback, + suspend fun subscribeUnoccupiedSetbackMinAttribute( minInterval: Int, maxInterval: Int - ) { + ): UnoccupiedSetbackMinAttribute { // Implementation needs to be added here } - fun readUnoccupiedSetbackMaxAttribute(callback: UnoccupiedSetbackMaxAttributeCallback) { + suspend fun readUnoccupiedSetbackMaxAttribute(): UnoccupiedSetbackMaxAttribute { // Implementation needs to be added here } - fun subscribeUnoccupiedSetbackMaxAttribute( - callback: UnoccupiedSetbackMaxAttributeCallback, + suspend fun subscribeUnoccupiedSetbackMaxAttribute( minInterval: Int, maxInterval: Int - ) { + ): UnoccupiedSetbackMaxAttribute { // Implementation needs to be added here } - fun readEmergencyHeatDeltaAttribute(callback: IntegerAttributeCallback) { + suspend fun readEmergencyHeatDeltaAttribute(): UByte { // Implementation needs to be added here } - fun writeEmergencyHeatDeltaAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeEmergencyHeatDeltaAttribute(value: UByte) { // Implementation needs to be added here } - fun writeEmergencyHeatDeltaAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEmergencyHeatDeltaAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeEmergencyHeatDeltaAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEmergencyHeatDeltaAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readACTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readACTypeAttribute(): UByte { // Implementation needs to be added here } - fun writeACTypeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeACTypeAttribute(value: UInt) { // Implementation needs to be added here } - fun writeACTypeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACTypeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeACTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeACTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readACCapacityAttribute(callback: IntegerAttributeCallback) { + suspend fun readACCapacityAttribute(): UShort { // Implementation needs to be added here } - fun writeACCapacityAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeACCapacityAttribute(value: UShort) { // Implementation needs to be added here } - fun writeACCapacityAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACCapacityAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeACCapacityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeACCapacityAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readACRefrigerantTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readACRefrigerantTypeAttribute(): UByte { // Implementation needs to be added here } - fun writeACRefrigerantTypeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeACRefrigerantTypeAttribute(value: UInt) { // Implementation needs to be added here } - fun writeACRefrigerantTypeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACRefrigerantTypeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeACRefrigerantTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeACRefrigerantTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readACCompressorTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readACCompressorTypeAttribute(): UByte { // Implementation needs to be added here } - fun writeACCompressorTypeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeACCompressorTypeAttribute(value: UInt) { // Implementation needs to be added here } - fun writeACCompressorTypeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACCompressorTypeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeACCompressorTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeACCompressorTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readACErrorCodeAttribute(callback: LongAttributeCallback) { + suspend fun readACErrorCodeAttribute(): UInt { // Implementation needs to be added here } - fun writeACErrorCodeAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeACErrorCodeAttribute(value: ULong) { // Implementation needs to be added here } - fun writeACErrorCodeAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACErrorCodeAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeACErrorCodeAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeACErrorCodeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readACLouverPositionAttribute(callback: IntegerAttributeCallback) { + suspend fun readACLouverPositionAttribute(): UByte { // Implementation needs to be added here } - fun writeACLouverPositionAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeACLouverPositionAttribute(value: UInt) { // Implementation needs to be added here } - fun writeACLouverPositionAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACLouverPositionAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeACLouverPositionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeACLouverPositionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readACCoilTemperatureAttribute(callback: ACCoilTemperatureAttributeCallback) { + suspend fun readACCoilTemperatureAttribute(): ACCoilTemperatureAttribute { // Implementation needs to be added here } - fun subscribeACCoilTemperatureAttribute( - callback: ACCoilTemperatureAttributeCallback, + suspend fun subscribeACCoilTemperatureAttribute( minInterval: Int, maxInterval: Int - ) { + ): ACCoilTemperatureAttribute { // Implementation needs to be added here } - fun readACCapacityformatAttribute(callback: IntegerAttributeCallback) { + suspend fun readACCapacityformatAttribute(): UByte { // Implementation needs to be added here } - fun writeACCapacityformatAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeACCapacityformatAttribute(value: UInt) { // Implementation needs to be added here } - fun writeACCapacityformatAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACCapacityformatAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeACCapacityformatAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeACCapacityformatAttribute(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 = 513u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt index c1d944c7854743..78192bd598e59a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt @@ -20,186 +20,123 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 516u - } - - 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 readTemperatureDisplayModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readTemperatureDisplayModeAttribute(): UByte { // Implementation needs to be added here } - fun writeTemperatureDisplayModeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeTemperatureDisplayModeAttribute(value: UInt) { // Implementation needs to be added here } - fun writeTemperatureDisplayModeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeTemperatureDisplayModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeTemperatureDisplayModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTemperatureDisplayModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readKeypadLockoutAttribute(callback: IntegerAttributeCallback) { + suspend fun readKeypadLockoutAttribute(): UByte { // Implementation needs to be added here } - fun writeKeypadLockoutAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeKeypadLockoutAttribute(value: UInt) { // Implementation needs to be added here } - fun writeKeypadLockoutAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeKeypadLockoutAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeKeypadLockoutAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeKeypadLockoutAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readScheduleProgrammingVisibilityAttribute(callback: IntegerAttributeCallback) { + suspend fun readScheduleProgrammingVisibilityAttribute(): UByte { // Implementation needs to be added here } - fun writeScheduleProgrammingVisibilityAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writeScheduleProgrammingVisibilityAttribute(value: UInt) { // Implementation needs to be added here } - fun writeScheduleProgrammingVisibilityAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeScheduleProgrammingVisibilityAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeScheduleProgrammingVisibilityAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeScheduleProgrammingVisibilityAttribute( 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 = 516u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt index 2050e5b5dcc69a..bf26e9cf3dc874 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt @@ -20,1037 +20,692 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 53u - } - - fun resetCounts(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun resetCounts(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - interface ChannelAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface RoutingRoleAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NetworkNameAttributeCallback { - fun onSuccess(value: String?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface PanIdAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ExtendedPanIdAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface MeshLocalPrefixAttributeCallback { - fun onSuccess(value: ByteArray?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NeighborTableAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface RouteTableAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface PartitionIdAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface WeightingAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface DataVersionAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface StableDataVersionAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface LeaderRouterIdAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ActiveTimestampAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface PendingTimestampAttributeCallback { - fun onSuccess(value: Long?) + class ChannelAttribute(val value: UShort?) - fun onError(ex: Exception) + class RoutingRoleAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface DelayAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) + class NetworkNameAttribute(val value: String?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class PanIdAttribute(val value: UShort?) - interface SecurityPolicyAttributeCallback { - fun onSuccess(value: ChipStructs.ThreadNetworkDiagnosticsClusterSecurityPolicy?) + class ExtendedPanIdAttribute(val value: ULong?) - fun onError(ex: Exception) + class MeshLocalPrefixAttribute(val value: ByteArray?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NeighborTableAttribute( + val value: ArrayList + ) - interface ChannelPage0MaskAttributeCallback { - fun onSuccess(value: ByteArray?) + class RouteTableAttribute( + val value: ArrayList + ) - fun onError(ex: Exception) + class PartitionIdAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class WeightingAttribute(val value: UByte?) - interface OperationalDatasetComponentsAttributeCallback { - fun onSuccess(value: ChipStructs.ThreadNetworkDiagnosticsClusterOperationalDatasetComponents?) + class DataVersionAttribute(val value: UByte?) - fun onError(ex: Exception) + class StableDataVersionAttribute(val value: UByte?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ActiveNetworkFaultsListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class LeaderRouterIdAttribute(val value: UByte?) - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class ActiveTimestampAttribute(val value: ULong?) - fun onError(ex: Exception) + class PendingTimestampAttribute(val value: ULong?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class DelayAttribute(val value: UInt?) - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class SecurityPolicyAttribute( + val value: ChipStructs.ThreadNetworkDiagnosticsClusterSecurityPolicy? + ) - fun onError(ex: Exception) + class ChannelPage0MaskAttribute(val value: ByteArray?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class OperationalDatasetComponentsAttribute( + val value: ChipStructs.ThreadNetworkDiagnosticsClusterOperationalDatasetComponents? + ) - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) + class ActiveNetworkFaultsListAttribute(val 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 resetCounts(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readChannelAttribute(callback: ChannelAttributeCallback) { + suspend fun readChannelAttribute(): ChannelAttribute { // Implementation needs to be added here } - fun subscribeChannelAttribute( - callback: ChannelAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeChannelAttribute(minInterval: Int, maxInterval: Int): ChannelAttribute { // Implementation needs to be added here } - fun readRoutingRoleAttribute(callback: RoutingRoleAttributeCallback) { + suspend fun readRoutingRoleAttribute(): RoutingRoleAttribute { // Implementation needs to be added here } - fun subscribeRoutingRoleAttribute( - callback: RoutingRoleAttributeCallback, + suspend fun subscribeRoutingRoleAttribute( minInterval: Int, maxInterval: Int - ) { + ): RoutingRoleAttribute { // Implementation needs to be added here } - fun readNetworkNameAttribute(callback: NetworkNameAttributeCallback) { + suspend fun readNetworkNameAttribute(): NetworkNameAttribute { // Implementation needs to be added here } - fun subscribeNetworkNameAttribute( - callback: NetworkNameAttributeCallback, + suspend fun subscribeNetworkNameAttribute( minInterval: Int, maxInterval: Int - ) { + ): NetworkNameAttribute { // Implementation needs to be added here } - fun readPanIdAttribute(callback: PanIdAttributeCallback) { + suspend fun readPanIdAttribute(): PanIdAttribute { // Implementation needs to be added here } - fun subscribePanIdAttribute( - callback: PanIdAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePanIdAttribute(minInterval: Int, maxInterval: Int): PanIdAttribute { // Implementation needs to be added here } - fun readExtendedPanIdAttribute(callback: ExtendedPanIdAttributeCallback) { + suspend fun readExtendedPanIdAttribute(): ExtendedPanIdAttribute { // Implementation needs to be added here } - fun subscribeExtendedPanIdAttribute( - callback: ExtendedPanIdAttributeCallback, + suspend fun subscribeExtendedPanIdAttribute( minInterval: Int, maxInterval: Int - ) { + ): ExtendedPanIdAttribute { // Implementation needs to be added here } - fun readMeshLocalPrefixAttribute(callback: MeshLocalPrefixAttributeCallback) { + suspend fun readMeshLocalPrefixAttribute(): MeshLocalPrefixAttribute { // Implementation needs to be added here } - fun subscribeMeshLocalPrefixAttribute( - callback: MeshLocalPrefixAttributeCallback, + suspend fun subscribeMeshLocalPrefixAttribute( minInterval: Int, maxInterval: Int - ) { + ): MeshLocalPrefixAttribute { // Implementation needs to be added here } - fun readOverrunCountAttribute(callback: LongAttributeCallback) { + suspend fun readOverrunCountAttribute(): ULong { // Implementation needs to be added here } - fun subscribeOverrunCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readNeighborTableAttribute(callback: NeighborTableAttributeCallback) { + suspend fun readNeighborTableAttribute(): NeighborTableAttribute { // Implementation needs to be added here } - fun subscribeNeighborTableAttribute( - callback: NeighborTableAttributeCallback, + suspend fun subscribeNeighborTableAttribute( minInterval: Int, maxInterval: Int - ) { + ): NeighborTableAttribute { // Implementation needs to be added here } - fun readRouteTableAttribute(callback: RouteTableAttributeCallback) { + suspend fun readRouteTableAttribute(): RouteTableAttribute { // Implementation needs to be added here } - fun subscribeRouteTableAttribute( - callback: RouteTableAttributeCallback, + suspend fun subscribeRouteTableAttribute( minInterval: Int, maxInterval: Int - ) { + ): RouteTableAttribute { // Implementation needs to be added here } - fun readPartitionIdAttribute(callback: PartitionIdAttributeCallback) { + suspend fun readPartitionIdAttribute(): PartitionIdAttribute { // Implementation needs to be added here } - fun subscribePartitionIdAttribute( - callback: PartitionIdAttributeCallback, + suspend fun subscribePartitionIdAttribute( minInterval: Int, maxInterval: Int - ) { + ): PartitionIdAttribute { // Implementation needs to be added here } - fun readWeightingAttribute(callback: WeightingAttributeCallback) { + suspend fun readWeightingAttribute(): WeightingAttribute { // Implementation needs to be added here } - fun subscribeWeightingAttribute( - callback: WeightingAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWeightingAttribute(minInterval: Int, maxInterval: Int): WeightingAttribute { // Implementation needs to be added here } - fun readDataVersionAttribute(callback: DataVersionAttributeCallback) { + suspend fun readDataVersionAttribute(): DataVersionAttribute { // Implementation needs to be added here } - fun subscribeDataVersionAttribute( - callback: DataVersionAttributeCallback, + suspend fun subscribeDataVersionAttribute( minInterval: Int, maxInterval: Int - ) { + ): DataVersionAttribute { // Implementation needs to be added here } - fun readStableDataVersionAttribute(callback: StableDataVersionAttributeCallback) { + suspend fun readStableDataVersionAttribute(): StableDataVersionAttribute { // Implementation needs to be added here } - fun subscribeStableDataVersionAttribute( - callback: StableDataVersionAttributeCallback, + suspend fun subscribeStableDataVersionAttribute( minInterval: Int, maxInterval: Int - ) { + ): StableDataVersionAttribute { // Implementation needs to be added here } - fun readLeaderRouterIdAttribute(callback: LeaderRouterIdAttributeCallback) { + suspend fun readLeaderRouterIdAttribute(): LeaderRouterIdAttribute { // Implementation needs to be added here } - fun subscribeLeaderRouterIdAttribute( - callback: LeaderRouterIdAttributeCallback, + suspend fun subscribeLeaderRouterIdAttribute( minInterval: Int, maxInterval: Int - ) { + ): LeaderRouterIdAttribute { // Implementation needs to be added here } - fun readDetachedRoleCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readDetachedRoleCountAttribute(): UShort { // Implementation needs to be added here } - fun subscribeDetachedRoleCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDetachedRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readChildRoleCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readChildRoleCountAttribute(): UShort { // Implementation needs to be added here } - fun subscribeChildRoleCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeChildRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRouterRoleCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readRouterRoleCountAttribute(): UShort { // Implementation needs to be added here } - fun subscribeRouterRoleCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRouterRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readLeaderRoleCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readLeaderRoleCountAttribute(): UShort { // Implementation needs to be added here } - fun subscribeLeaderRoleCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLeaderRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readAttachAttemptCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readAttachAttemptCountAttribute(): UShort { // Implementation needs to be added here } - fun subscribeAttachAttemptCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAttachAttemptCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readPartitionIdChangeCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readPartitionIdChangeCountAttribute(): UShort { // Implementation needs to be added here } - fun subscribePartitionIdChangeCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePartitionIdChangeCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readBetterPartitionAttachAttemptCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readBetterPartitionAttachAttemptCountAttribute(): UShort { // Implementation needs to be added here } - fun subscribeBetterPartitionAttachAttemptCountAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeBetterPartitionAttachAttemptCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readParentChangeCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readParentChangeCountAttribute(): UShort { // Implementation needs to be added here } - fun subscribeParentChangeCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeParentChangeCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readTxTotalCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxTotalCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxTotalCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxTotalCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxUnicastCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxUnicastCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxUnicastCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxUnicastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxBroadcastCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxBroadcastCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxBroadcastCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxAckRequestedCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxAckRequestedCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxAckRequestedCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxAckedCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxAckedCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxAckedCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxAckedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxNoAckRequestedCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxNoAckRequestedCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxNoAckRequestedCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxNoAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxDataCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxDataCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxDataCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxDataCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxDataPollCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxDataPollCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxDataPollCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxDataPollCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxBeaconCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxBeaconCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxBeaconCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxBeaconCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxBeaconRequestCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxBeaconRequestCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxBeaconRequestCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxOtherCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxOtherCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxOtherCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxRetryCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxRetryCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxRetryCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxRetryCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxDirectMaxRetryExpiryCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxDirectMaxRetryExpiryCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxDirectMaxRetryExpiryCountAttribute( - callback: LongAttributeCallback, + suspend fun subscribeTxDirectMaxRetryExpiryCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): UInt { // Implementation needs to be added here } - fun readTxIndirectMaxRetryExpiryCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxIndirectMaxRetryExpiryCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxIndirectMaxRetryExpiryCountAttribute( - callback: LongAttributeCallback, + suspend fun subscribeTxIndirectMaxRetryExpiryCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): UInt { // Implementation needs to be added here } - fun readTxErrCcaCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxErrCcaCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxErrCcaCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxErrCcaCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxErrAbortCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxErrAbortCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxErrAbortCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxErrAbortCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readTxErrBusyChannelCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxErrBusyChannelCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeTxErrBusyChannelCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxErrBusyChannelCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxTotalCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxTotalCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxTotalCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxTotalCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxUnicastCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxUnicastCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxUnicastCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxUnicastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxBroadcastCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxBroadcastCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxBroadcastCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxDataCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxDataCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxDataCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxDataCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxDataPollCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxDataPollCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxDataPollCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxDataPollCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxBeaconCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxBeaconCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxBeaconCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxBeaconCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxBeaconRequestCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxBeaconRequestCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxBeaconRequestCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxOtherCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxOtherCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxOtherCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxAddressFilteredCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxAddressFilteredCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxAddressFilteredCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxAddressFilteredCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxDestAddrFilteredCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxDestAddrFilteredCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxDestAddrFilteredCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxDestAddrFilteredCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxDuplicatedCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxDuplicatedCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxDuplicatedCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxDuplicatedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxErrNoFrameCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxErrNoFrameCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxErrNoFrameCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxErrNoFrameCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxErrUnknownNeighborCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxErrUnknownNeighborCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxErrUnknownNeighborCountAttribute( - callback: LongAttributeCallback, + suspend fun subscribeRxErrUnknownNeighborCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): UInt { // Implementation needs to be added here } - fun readRxErrInvalidSrcAddrCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxErrInvalidSrcAddrCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxErrInvalidSrcAddrCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxErrInvalidSrcAddrCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxErrSecCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxErrSecCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxErrSecCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxErrSecCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxErrFcsCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxErrFcsCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxErrFcsCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxErrFcsCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readRxErrOtherCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxErrOtherCountAttribute(): UInt { // Implementation needs to be added here } - fun subscribeRxErrOtherCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxErrOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readActiveTimestampAttribute(callback: ActiveTimestampAttributeCallback) { + suspend fun readActiveTimestampAttribute(): ActiveTimestampAttribute { // Implementation needs to be added here } - fun subscribeActiveTimestampAttribute( - callback: ActiveTimestampAttributeCallback, + suspend fun subscribeActiveTimestampAttribute( minInterval: Int, maxInterval: Int - ) { + ): ActiveTimestampAttribute { // Implementation needs to be added here } - fun readPendingTimestampAttribute(callback: PendingTimestampAttributeCallback) { + suspend fun readPendingTimestampAttribute(): PendingTimestampAttribute { // Implementation needs to be added here } - fun subscribePendingTimestampAttribute( - callback: PendingTimestampAttributeCallback, + suspend fun subscribePendingTimestampAttribute( minInterval: Int, maxInterval: Int - ) { + ): PendingTimestampAttribute { // Implementation needs to be added here } - fun readDelayAttribute(callback: DelayAttributeCallback) { + suspend fun readDelayAttribute(): DelayAttribute { // Implementation needs to be added here } - fun subscribeDelayAttribute( - callback: DelayAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDelayAttribute(minInterval: Int, maxInterval: Int): DelayAttribute { // Implementation needs to be added here } - fun readSecurityPolicyAttribute(callback: SecurityPolicyAttributeCallback) { + suspend fun readSecurityPolicyAttribute(): SecurityPolicyAttribute { // Implementation needs to be added here } - fun subscribeSecurityPolicyAttribute( - callback: SecurityPolicyAttributeCallback, + suspend fun subscribeSecurityPolicyAttribute( minInterval: Int, maxInterval: Int - ) { + ): SecurityPolicyAttribute { // Implementation needs to be added here } - fun readChannelPage0MaskAttribute(callback: ChannelPage0MaskAttributeCallback) { + suspend fun readChannelPage0MaskAttribute(): ChannelPage0MaskAttribute { // Implementation needs to be added here } - fun subscribeChannelPage0MaskAttribute( - callback: ChannelPage0MaskAttributeCallback, + suspend fun subscribeChannelPage0MaskAttribute( minInterval: Int, maxInterval: Int - ) { + ): ChannelPage0MaskAttribute { // Implementation needs to be added here } - fun readOperationalDatasetComponentsAttribute( - callback: OperationalDatasetComponentsAttributeCallback - ) { + suspend fun readOperationalDatasetComponentsAttribute(): OperationalDatasetComponentsAttribute { // Implementation needs to be added here } - fun subscribeOperationalDatasetComponentsAttribute( - callback: OperationalDatasetComponentsAttributeCallback, + suspend fun subscribeOperationalDatasetComponentsAttribute( minInterval: Int, maxInterval: Int - ) { + ): OperationalDatasetComponentsAttribute { // Implementation needs to be added here } - fun readActiveNetworkFaultsListAttribute(callback: ActiveNetworkFaultsListAttributeCallback) { + suspend fun readActiveNetworkFaultsListAttribute(): ActiveNetworkFaultsListAttribute { // Implementation needs to be added here } - fun subscribeActiveNetworkFaultsListAttribute( - callback: ActiveNetworkFaultsListAttributeCallback, + suspend fun subscribeActiveNetworkFaultsListAttribute( minInterval: Int, maxInterval: Int - ) { + ): ActiveNetworkFaultsListAttribute { // 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 = 53u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt index 040b51246a2cf4..593223c563e697 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt @@ -20,179 +20,117 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class TimeFormatLocalizationCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 44u - } + class SupportedCalendarTypesAttribute(val value: ArrayList?) - interface SupportedCalendarTypesAttributeCallback { - fun onSuccess(value: ArrayList?) + class GeneratedCommandListAttribute(val 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) - } + 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 readHourFormatAttribute(callback: IntegerAttributeCallback) { + suspend fun readHourFormatAttribute(): UByte { // Implementation needs to be added here } - fun writeHourFormatAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeHourFormatAttribute(value: UInt) { // Implementation needs to be added here } - fun writeHourFormatAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeHourFormatAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeHourFormatAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeHourFormatAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readActiveCalendarTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readActiveCalendarTypeAttribute(): UByte { // Implementation needs to be added here } - fun writeActiveCalendarTypeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeActiveCalendarTypeAttribute(value: UInt) { // Implementation needs to be added here } - fun writeActiveCalendarTypeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeActiveCalendarTypeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeActiveCalendarTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActiveCalendarTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readSupportedCalendarTypesAttribute(callback: SupportedCalendarTypesAttributeCallback) { + suspend fun readSupportedCalendarTypesAttribute(): SupportedCalendarTypesAttribute { // Implementation needs to be added here } - fun subscribeSupportedCalendarTypesAttribute( - callback: SupportedCalendarTypesAttributeCallback, + suspend fun subscribeSupportedCalendarTypesAttribute( minInterval: Int, maxInterval: Int - ) { + ): SupportedCalendarTypesAttribute { // 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 = 44u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt index 4d7b431cc9d501..478d89838c3120 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt @@ -20,397 +20,256 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class TimeSynchronizationCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 56u - } + class SetTimeZoneResponse(val DSTOffsetRequired: Boolean) - fun setUTCTime( - callback: DefaultClusterCallback, - UTCTime: Long, - granularity: Integer, - timeSource: Integer? - ) { - // Implementation needs to be added here - } + class UTCTimeAttribute(val value: ULong?) - fun setUTCTime( - callback: DefaultClusterCallback, - UTCTime: Long, - granularity: Integer, - timeSource: Integer?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class TrustedTimeSourceAttribute( + val value: ChipStructs.TimeSynchronizationClusterTrustedTimeSourceStruct? + ) - fun setTrustedTimeSource( - callback: DefaultClusterCallback, - trustedTimeSource: ChipStructs.TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct? - ) { - // Implementation needs to be added here - } + class DefaultNTPAttribute(val value: String?) - fun setTrustedTimeSource( - callback: DefaultClusterCallback, - trustedTimeSource: ChipStructs.TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class TimeZoneAttribute( + val value: ArrayList? + ) - fun setTimeZone( - callback: SetTimeZoneResponseCallback, - timeZone: ArrayList - ) { - // Implementation needs to be added here - } + class DSTOffsetAttribute( + val value: ArrayList? + ) - fun setTimeZone( - callback: SetTimeZoneResponseCallback, - timeZone: ArrayList, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class LocalTimeAttribute(val value: ULong?) - fun setDSTOffset( - callback: DefaultClusterCallback, - DSTOffset: ArrayList - ) { - // Implementation needs to be added here - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun setDSTOffset( - callback: DefaultClusterCallback, - DSTOffset: ArrayList, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class AcceptedCommandListAttribute(val value: ArrayList) - fun setDefaultNTP(callback: DefaultClusterCallback, defaultNTP: String?) { - // Implementation needs to be added here - } + class EventListAttribute(val value: ArrayList) - fun setDefaultNTP( - callback: DefaultClusterCallback, - defaultNTP: String?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - interface SetTimeZoneResponseCallback { - fun onSuccess(DSTOffsetRequired: Boolean) - - fun onError(error: Exception) - } - - interface UTCTimeAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface TrustedTimeSourceAttributeCallback { - fun onSuccess(value: ChipStructs.TimeSynchronizationClusterTrustedTimeSourceStruct?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface DefaultNTPAttributeCallback { - fun onSuccess(value: String?) - - fun onError(ex: Exception) + class AttributeListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface TimeZoneAttributeCallback { - fun onSuccess(value: ArrayList?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface DSTOffsetAttributeCallback { - fun onSuccess(value: ArrayList?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface LocalTimeAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun setUTCTime( + UTCTime: ULong, + granularity: UInt, + timeSource: UInt?, + 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 setTrustedTimeSource( + trustedTimeSource: ChipStructs.TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct?, + 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 setTimeZone( + timeZone: ArrayList, + timedInvokeTimeoutMs: Int? = null + ): SetTimeZoneResponse { + 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 setDSTOffset( + DSTOffset: ArrayList, + 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 setDefaultNTP(defaultNTP: String?, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readUTCTimeAttribute(callback: UTCTimeAttributeCallback) { + suspend fun readUTCTimeAttribute(): UTCTimeAttribute { // Implementation needs to be added here } - fun subscribeUTCTimeAttribute( - callback: UTCTimeAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeUTCTimeAttribute(minInterval: Int, maxInterval: Int): UTCTimeAttribute { // Implementation needs to be added here } - fun readGranularityAttribute(callback: IntegerAttributeCallback) { + suspend fun readGranularityAttribute(): UByte { // Implementation needs to be added here } - fun subscribeGranularityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeGranularityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readTimeSourceAttribute(callback: IntegerAttributeCallback) { + suspend fun readTimeSourceAttribute(): UByte { // Implementation needs to be added here } - fun subscribeTimeSourceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTimeSourceAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readTrustedTimeSourceAttribute(callback: TrustedTimeSourceAttributeCallback) { + suspend fun readTrustedTimeSourceAttribute(): TrustedTimeSourceAttribute { // Implementation needs to be added here } - fun subscribeTrustedTimeSourceAttribute( - callback: TrustedTimeSourceAttributeCallback, + suspend fun subscribeTrustedTimeSourceAttribute( minInterval: Int, maxInterval: Int - ) { + ): TrustedTimeSourceAttribute { // Implementation needs to be added here } - fun readDefaultNTPAttribute(callback: DefaultNTPAttributeCallback) { + suspend fun readDefaultNTPAttribute(): DefaultNTPAttribute { // Implementation needs to be added here } - fun subscribeDefaultNTPAttribute( - callback: DefaultNTPAttributeCallback, + suspend fun subscribeDefaultNTPAttribute( minInterval: Int, maxInterval: Int - ) { + ): DefaultNTPAttribute { // Implementation needs to be added here } - fun readTimeZoneAttribute(callback: TimeZoneAttributeCallback) { + suspend fun readTimeZoneAttribute(): TimeZoneAttribute { // Implementation needs to be added here } - fun subscribeTimeZoneAttribute( - callback: TimeZoneAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTimeZoneAttribute(minInterval: Int, maxInterval: Int): TimeZoneAttribute { // Implementation needs to be added here } - fun readDSTOffsetAttribute(callback: DSTOffsetAttributeCallback) { + suspend fun readDSTOffsetAttribute(): DSTOffsetAttribute { // Implementation needs to be added here } - fun subscribeDSTOffsetAttribute( - callback: DSTOffsetAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDSTOffsetAttribute(minInterval: Int, maxInterval: Int): DSTOffsetAttribute { // Implementation needs to be added here } - fun readLocalTimeAttribute(callback: LocalTimeAttributeCallback) { + suspend fun readLocalTimeAttribute(): LocalTimeAttribute { // Implementation needs to be added here } - fun subscribeLocalTimeAttribute( - callback: LocalTimeAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLocalTimeAttribute(minInterval: Int, maxInterval: Int): LocalTimeAttribute { // Implementation needs to be added here } - fun readTimeZoneDatabaseAttribute(callback: IntegerAttributeCallback) { + suspend fun readTimeZoneDatabaseAttribute(): UByte { // Implementation needs to be added here } - fun subscribeTimeZoneDatabaseAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTimeZoneDatabaseAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readNTPServerAvailableAttribute(callback: BooleanAttributeCallback) { + suspend fun readNTPServerAvailableAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeNTPServerAvailableAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeNTPServerAvailableAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readTimeZoneListMaxSizeAttribute(callback: IntegerAttributeCallback) { + suspend fun readTimeZoneListMaxSizeAttribute(): UByte { // Implementation needs to be added here } - fun subscribeTimeZoneListMaxSizeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTimeZoneListMaxSizeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readDSTOffsetListMaxSizeAttribute(callback: IntegerAttributeCallback) { + suspend fun readDSTOffsetListMaxSizeAttribute(): UByte { // Implementation needs to be added here } - fun subscribeDSTOffsetListMaxSizeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDSTOffsetListMaxSizeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readSupportsDNSResolveAttribute(callback: BooleanAttributeCallback) { + suspend fun readSupportsDNSResolveAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeSupportsDNSResolveAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSupportsDNSResolveAttribute(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 = 56u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt index a212e62b2059a5..948d6a51054a07 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt @@ -20,283 +20,188 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1070u - } - - 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 = 1070u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt index f72c32be0af306..515723d09d1391 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt @@ -20,135 +20,88 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class UnitLocalizationCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 45u - } - - 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 readTemperatureUnitAttribute(callback: IntegerAttributeCallback) { + suspend fun readTemperatureUnitAttribute(): UByte { // Implementation needs to be added here } - fun writeTemperatureUnitAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeTemperatureUnitAttribute(value: UInt) { // Implementation needs to be added here } - fun writeTemperatureUnitAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeTemperatureUnitAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeTemperatureUnitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTemperatureUnitAttribute(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 = 45u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt index 16e4708245a97b..c66214714089f9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt @@ -20,2855 +20,1923 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class UnitTestingCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 4294048773u - } - - fun test(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun test(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun testNotHandled(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun testNotHandled(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun testSpecific(callback: TestSpecificResponseCallback) { - // Implementation needs to be added here - } - - fun testSpecific(callback: TestSpecificResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun testUnknownCommand(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun testUnknownCommand(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun testAddArguments(callback: TestAddArgumentsResponseCallback, arg1: Integer, arg2: Integer) { - // Implementation needs to be added here - } - - fun testAddArguments( - callback: TestAddArgumentsResponseCallback, - arg1: Integer, - arg2: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testSimpleArgumentRequest(callback: TestSimpleArgumentResponseCallback, arg1: Boolean) { - // Implementation needs to be added here - } - - fun testSimpleArgumentRequest( - callback: TestSimpleArgumentResponseCallback, - arg1: Boolean, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testStructArrayArgumentRequest( - callback: TestStructArrayArgumentResponseCallback, - arg1: ArrayList, - arg2: ArrayList, - arg3: ArrayList, - arg4: ArrayList, - arg5: Integer, - arg6: Boolean - ) { - // Implementation needs to be added here - } - - fun testStructArrayArgumentRequest( - callback: TestStructArrayArgumentResponseCallback, - arg1: ArrayList, - arg2: ArrayList, - arg3: ArrayList, - arg4: ArrayList, - arg5: Integer, - arg6: Boolean, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testStructArgumentRequest( - callback: BooleanResponseCallback, - arg1: ChipStructs.UnitTestingClusterSimpleStruct - ) { - // Implementation needs to be added here - } - - fun testStructArgumentRequest( - callback: BooleanResponseCallback, - arg1: ChipStructs.UnitTestingClusterSimpleStruct, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testNestedStructArgumentRequest( - callback: BooleanResponseCallback, - arg1: ChipStructs.UnitTestingClusterNestedStruct - ) { - // Implementation needs to be added here - } - - fun testNestedStructArgumentRequest( - callback: BooleanResponseCallback, - arg1: ChipStructs.UnitTestingClusterNestedStruct, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testListStructArgumentRequest( - callback: BooleanResponseCallback, - arg1: ArrayList - ) { - // Implementation needs to be added here - } - - fun testListStructArgumentRequest( - callback: BooleanResponseCallback, - arg1: ArrayList, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testListInt8UArgumentRequest(callback: BooleanResponseCallback, arg1: ArrayList) { - // Implementation needs to be added here - } - - fun testListInt8UArgumentRequest( - callback: BooleanResponseCallback, - arg1: ArrayList, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testNestedStructListArgumentRequest( - callback: BooleanResponseCallback, - arg1: ChipStructs.UnitTestingClusterNestedStructList - ) { - // Implementation needs to be added here - } - - fun testNestedStructListArgumentRequest( - callback: BooleanResponseCallback, - arg1: ChipStructs.UnitTestingClusterNestedStructList, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testListNestedStructListArgumentRequest( - callback: BooleanResponseCallback, - arg1: ArrayList - ) { - // Implementation needs to be added here - } - - fun testListNestedStructListArgumentRequest( - callback: BooleanResponseCallback, - arg1: ArrayList, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testListInt8UReverseRequest( - callback: TestListInt8UReverseResponseCallback, - arg1: ArrayList - ) { - // Implementation needs to be added here - } - - fun testListInt8UReverseRequest( - callback: TestListInt8UReverseResponseCallback, - arg1: ArrayList, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testEnumsRequest(callback: TestEnumsResponseCallback, arg1: Integer, arg2: Integer) { - // Implementation needs to be added here - } - - fun testEnumsRequest( - callback: TestEnumsResponseCallback, - arg1: Integer, - arg2: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testNullableOptionalRequest(callback: TestNullableOptionalResponseCallback, arg1: Integer?) { - // Implementation needs to be added here - } - - fun testNullableOptionalRequest( - callback: TestNullableOptionalResponseCallback, - arg1: Integer?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testComplexNullableOptionalRequest( - callback: TestComplexNullableOptionalResponseCallback, - nullableInt: Integer?, - optionalInt: Integer?, - nullableOptionalInt: Integer?, - nullableString: String?, - optionalString: String?, - nullableOptionalString: String?, - nullableStruct: ChipStructs.UnitTestingClusterSimpleStruct?, - optionalStruct: ChipStructs.UnitTestingClusterSimpleStruct?, - nullableOptionalStruct: ChipStructs.UnitTestingClusterSimpleStruct?, - nullableList: ArrayList?, - optionalList: ArrayList?, - nullableOptionalList: ArrayList? - ) { - // Implementation needs to be added here - } - - fun testComplexNullableOptionalRequest( - callback: TestComplexNullableOptionalResponseCallback, - nullableInt: Integer?, - optionalInt: Integer?, - nullableOptionalInt: Integer?, - nullableString: String?, - optionalString: String?, - nullableOptionalString: String?, - nullableStruct: ChipStructs.UnitTestingClusterSimpleStruct?, - optionalStruct: ChipStructs.UnitTestingClusterSimpleStruct?, - nullableOptionalStruct: ChipStructs.UnitTestingClusterSimpleStruct?, - nullableList: ArrayList?, - optionalList: ArrayList?, - nullableOptionalList: ArrayList?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun simpleStructEchoRequest( - callback: SimpleStructResponseCallback, - arg1: ChipStructs.UnitTestingClusterSimpleStruct - ) { - // Implementation needs to be added here - } - - fun simpleStructEchoRequest( - callback: SimpleStructResponseCallback, - arg1: ChipStructs.UnitTestingClusterSimpleStruct, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun timedInvokeRequest(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun testSimpleOptionalArgumentRequest(callback: DefaultClusterCallback, arg1: Boolean?) { - // Implementation needs to be added here - } - - fun testSimpleOptionalArgumentRequest( - callback: DefaultClusterCallback, - arg1: Boolean?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testEmitTestEventRequest( - callback: TestEmitTestEventResponseCallback, - arg1: Integer, - arg2: Integer, - arg3: Boolean - ) { - // Implementation needs to be added here - } - - fun testEmitTestEventRequest( - callback: TestEmitTestEventResponseCallback, - arg1: Integer, - arg2: Integer, - arg3: Boolean, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun testEmitTestFabricScopedEventRequest( - callback: TestEmitTestFabricScopedEventResponseCallback, - arg1: Integer - ) { - // Implementation needs to be added here - } - - fun testEmitTestFabricScopedEventRequest( - callback: TestEmitTestFabricScopedEventResponseCallback, - arg1: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - interface TestSpecificResponseCallback { - fun onSuccess(returnValue: Integer) - - fun onError(error: Exception) - } - - interface TestAddArgumentsResponseCallback { - fun onSuccess(returnValue: Integer) - - fun onError(error: Exception) - } - - interface TestSimpleArgumentResponseCallback { - fun onSuccess(returnValue: Boolean) - - fun onError(error: Exception) - } - - interface TestStructArrayArgumentResponseCallback { - fun onSuccess( - arg1: ArrayList, - arg2: ArrayList, - arg3: ArrayList, - arg4: ArrayList, - arg5: Integer, - arg6: Boolean - ) - - fun onError(error: Exception) - } - - interface BooleanResponseCallback { - fun onSuccess(value: Boolean) - - fun onError(error: Exception) - } - - interface TestListInt8UReverseResponseCallback { - fun onSuccess(arg1: ArrayList) - - fun onError(error: Exception) - } - - interface TestEnumsResponseCallback { - fun onSuccess(arg1: Integer, arg2: Integer) - - fun onError(error: Exception) - } - - interface TestNullableOptionalResponseCallback { - fun onSuccess(wasPresent: Boolean, wasNull: Boolean?, value: Integer?, originalValue: Integer?) - - fun onError(error: Exception) - } - - interface TestComplexNullableOptionalResponseCallback { - fun onSuccess( - nullableIntWasNull: Boolean, - nullableIntValue: Integer?, - optionalIntWasPresent: Boolean, - optionalIntValue: Integer?, - nullableOptionalIntWasPresent: Boolean, - nullableOptionalIntWasNull: Boolean?, - nullableOptionalIntValue: Integer?, - nullableStringWasNull: Boolean, - nullableStringValue: String?, - optionalStringWasPresent: Boolean, - optionalStringValue: String?, - nullableOptionalStringWasPresent: Boolean, - nullableOptionalStringWasNull: Boolean?, - nullableOptionalStringValue: String?, - nullableStructWasNull: Boolean, - nullableStructValue: ChipStructs.UnitTestingClusterSimpleStruct?, - optionalStructWasPresent: Boolean, - optionalStructValue: ChipStructs.UnitTestingClusterSimpleStruct?, - nullableOptionalStructWasPresent: Boolean, - nullableOptionalStructWasNull: Boolean?, - nullableOptionalStructValue: ChipStructs.UnitTestingClusterSimpleStruct?, - nullableListWasNull: Boolean, - nullableListValue: ArrayList?, - optionalListWasPresent: Boolean, - optionalListValue: ArrayList?, - nullableOptionalListWasPresent: Boolean, - nullableOptionalListWasNull: Boolean?, - nullableOptionalListValue: ArrayList? - ) - - fun onError(error: Exception) - } - - interface SimpleStructResponseCallback { - fun onSuccess(arg1: ChipStructs.UnitTestingClusterSimpleStruct) + class TestSpecificResponse(val returnValue: UByte) - fun onError(error: Exception) - } - - interface TestEmitTestEventResponseCallback { - fun onSuccess(value: Long) - - fun onError(error: Exception) - } - - interface TestEmitTestFabricScopedEventResponseCallback { - fun onSuccess(value: Long) - - fun onError(error: Exception) - } - - interface ListInt8uAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ListOctetStringAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ListStructOctetStringAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ListNullablesAndOptionalsStructAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface StructAttrAttributeCallback { - fun onSuccess(value: ChipStructs.UnitTestingClusterSimpleStruct) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ListLongOctetStringAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ListFabricScopedAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableBooleanAttributeCallback { - fun onSuccess(value: Boolean?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableBitmap8AttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableBitmap16AttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableBitmap32AttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableBitmap64AttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class TestAddArgumentsResponse(val returnValue: UByte) - interface NullableInt8uAttributeCallback { - fun onSuccess(value: Integer?) + class TestSimpleArgumentResponse(val returnValue: Boolean) - fun onError(ex: Exception) + class TestStructArrayArgumentResponse( + val arg1: ArrayList, + val arg2: ArrayList, + val arg3: ArrayList, + val arg4: ArrayList, + val arg5: UInt, + val arg6: Boolean + ) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class BooleanResponse(val value: Boolean) - interface NullableInt16uAttributeCallback { - fun onSuccess(value: Integer?) + class TestListInt8UReverseResponse(val arg1: ArrayList) - fun onError(ex: Exception) + class TestEnumsResponse(val arg1: UShort, val arg2: UInt) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class TestNullableOptionalResponse( + val wasPresent: Boolean, + val wasNull: Boolean?, + val value: UByte?, + val originalValue: UByte? + ) - interface NullableInt24uAttributeCallback { - fun onSuccess(value: Long?) + class TestComplexNullableOptionalResponse( + val nullableIntWasNull: Boolean, + val nullableIntValue: UShort?, + val optionalIntWasPresent: Boolean, + val optionalIntValue: UShort?, + val nullableOptionalIntWasPresent: Boolean, + val nullableOptionalIntWasNull: Boolean?, + val nullableOptionalIntValue: UShort?, + val nullableStringWasNull: Boolean, + val nullableStringValue: String?, + val optionalStringWasPresent: Boolean, + val optionalStringValue: String?, + val nullableOptionalStringWasPresent: Boolean, + val nullableOptionalStringWasNull: Boolean?, + val nullableOptionalStringValue: String?, + val nullableStructWasNull: Boolean, + val nullableStructValue: ChipStructs.UnitTestingClusterSimpleStruct?, + val optionalStructWasPresent: Boolean, + val optionalStructValue: ChipStructs.UnitTestingClusterSimpleStruct?, + val nullableOptionalStructWasPresent: Boolean, + val nullableOptionalStructWasNull: Boolean?, + val nullableOptionalStructValue: ChipStructs.UnitTestingClusterSimpleStruct?, + val nullableListWasNull: Boolean, + val nullableListValue: ArrayList?, + val optionalListWasPresent: Boolean, + val optionalListValue: ArrayList?, + val nullableOptionalListWasPresent: Boolean, + val nullableOptionalListWasNull: Boolean?, + val nullableOptionalListValue: ArrayList? + ) - fun onError(ex: Exception) + class SimpleStructResponse(val arg1: ChipStructs.UnitTestingClusterSimpleStruct) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class TestEmitTestEventResponse(val value: ULong) - interface NullableInt32uAttributeCallback { - fun onSuccess(value: Long?) + class TestEmitTestFabricScopedEventResponse(val value: ULong) - fun onError(ex: Exception) + class ListInt8uAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class ListOctetStringAttribute(val value: ArrayList) - interface NullableInt40uAttributeCallback { - fun onSuccess(value: Long?) + class ListStructOctetStringAttribute( + val value: ArrayList + ) - fun onError(ex: Exception) + class ListNullablesAndOptionalsStructAttribute( + val value: ArrayList + ) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class StructAttrAttribute(val value: ChipStructs.UnitTestingClusterSimpleStruct) - interface NullableInt48uAttributeCallback { - fun onSuccess(value: Long?) + class ListLongOctetStringAttribute(val value: ArrayList) - fun onError(ex: Exception) + class ListFabricScopedAttribute( + val value: ArrayList + ) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NullableBooleanAttribute(val value: Boolean?) - interface NullableInt56uAttributeCallback { - fun onSuccess(value: Long?) + class NullableBitmap8Attribute(val value: UInt?) - fun onError(ex: Exception) + class NullableBitmap16Attribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NullableBitmap32Attribute(val value: ULong?) - interface NullableInt64uAttributeCallback { - fun onSuccess(value: Long?) + class NullableBitmap64Attribute(val value: ULong?) - fun onError(ex: Exception) + class NullableInt8uAttribute(val value: UByte?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NullableInt16uAttribute(val value: UShort?) - interface NullableInt8sAttributeCallback { - fun onSuccess(value: Integer?) + class NullableInt24uAttribute(val value: UInt?) - fun onError(ex: Exception) + class NullableInt32uAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NullableInt40uAttribute(val value: ULong?) - interface NullableInt16sAttributeCallback { - fun onSuccess(value: Integer?) + class NullableInt48uAttribute(val value: ULong?) - fun onError(ex: Exception) + class NullableInt56uAttribute(val value: ULong?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NullableInt64uAttribute(val value: ULong?) - interface NullableInt24sAttributeCallback { - fun onSuccess(value: Long?) + class NullableInt8sAttribute(val value: Byte?) - fun onError(ex: Exception) + class NullableInt16sAttribute(val value: Short?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NullableInt24sAttribute(val value: Int?) - interface NullableInt32sAttributeCallback { - fun onSuccess(value: Long?) + class NullableInt32sAttribute(val value: Int?) - fun onError(ex: Exception) + class NullableInt40sAttribute(val value: Long?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NullableInt48sAttribute(val value: Long?) - interface NullableInt40sAttributeCallback { - fun onSuccess(value: Long?) + class NullableInt56sAttribute(val value: Long?) - fun onError(ex: Exception) + class NullableInt64sAttribute(val value: Long?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NullableEnum8Attribute(val value: UInt?) - interface NullableInt48sAttributeCallback { - fun onSuccess(value: Long?) + class NullableEnum16Attribute(val value: UInt?) - fun onError(ex: Exception) + class NullableFloatSingleAttribute(val value: Float?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt56sAttributeCallback { - fun onSuccess(value: Long?) + class NullableFloatDoubleAttribute(val value: Double?) - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NullableOctetStringAttribute(val value: ByteArray?) - interface NullableInt64sAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NullableCharStringAttribute(val value: String?) - interface NullableEnum8AttributeCallback { - fun onSuccess(value: Integer?) + class NullableEnumAttrAttribute(val value: UInt?) - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableEnum16AttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NullableStructAttribute(val value: ChipStructs.UnitTestingClusterSimpleStruct?) - interface NullableFloatSingleAttributeCallback { - fun onSuccess(value: Float?) + class NullableRangeRestrictedInt8uAttribute(val value: UByte?) - fun onError(ex: Exception) + class NullableRangeRestrictedInt8sAttribute(val value: Byte?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NullableRangeRestrictedInt16uAttribute(val value: UShort?) - interface NullableFloatDoubleAttributeCallback { - fun onSuccess(value: Double?) + class NullableRangeRestrictedInt16sAttribute(val value: Short?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class AcceptedCommandListAttribute(val value: ArrayList) - interface NullableOctetStringAttributeCallback { - fun onSuccess(value: ByteArray?) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class AttributeListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun test(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface NullableCharStringAttributeCallback { - fun onSuccess(value: String?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun testNotHandled(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface NullableEnumAttrAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun testSpecific(timedInvokeTimeoutMs: Int? = null): TestSpecificResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface NullableStructAttributeCallback { - fun onSuccess(value: ChipStructs.UnitTestingClusterSimpleStruct?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun testUnknownCommand(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface NullableRangeRestrictedInt8uAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun testAddArguments( + arg1: UByte, + arg2: UByte, + timedInvokeTimeoutMs: Int? = null + ): TestAddArgumentsResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface NullableRangeRestrictedInt8sAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun testSimpleArgumentRequest( + arg1: Boolean, + timedInvokeTimeoutMs: Int? = null + ): TestSimpleArgumentResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface NullableRangeRestrictedInt16uAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun testStructArrayArgumentRequest( + arg1: ArrayList, + arg2: ArrayList, + arg3: ArrayList, + arg4: ArrayList, + arg5: UInt, + arg6: Boolean, + timedInvokeTimeoutMs: Int? = null + ): TestStructArrayArgumentResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface NullableRangeRestrictedInt16sAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun testStructArgumentRequest( + arg1: ChipStructs.UnitTestingClusterSimpleStruct, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { + 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 testNestedStructArgumentRequest( + arg1: ChipStructs.UnitTestingClusterNestedStruct, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { + 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 testListStructArgumentRequest( + arg1: ArrayList, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun testListInt8UArgumentRequest( + arg1: ArrayList, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun testNestedStructListArgumentRequest( + arg1: ChipStructs.UnitTestingClusterNestedStructList, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { + 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 testListNestedStructListArgumentRequest( + arg1: ArrayList, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun testListInt8UReverseRequest( + arg1: ArrayList, + timedInvokeTimeoutMs: Int? = null + ): TestListInt8UReverseResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun testEnumsRequest( + arg1: UShort, + arg2: UInt, + timedInvokeTimeoutMs: Int? = null + ): TestEnumsResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun testNullableOptionalRequest( + arg1: UByte?, + timedInvokeTimeoutMs: Int? = null + ): TestNullableOptionalResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun testComplexNullableOptionalRequest( + nullableInt: UShort?, + optionalInt: UShort?, + nullableOptionalInt: UShort?, + nullableString: String?, + optionalString: String?, + nullableOptionalString: String?, + nullableStruct: ChipStructs.UnitTestingClusterSimpleStruct?, + optionalStruct: ChipStructs.UnitTestingClusterSimpleStruct?, + nullableOptionalStruct: ChipStructs.UnitTestingClusterSimpleStruct?, + nullableList: ArrayList?, + optionalList: ArrayList?, + nullableOptionalList: ArrayList?, + timedInvokeTimeoutMs: Int? = null + ): TestComplexNullableOptionalResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun simpleStructEchoRequest( + arg1: ChipStructs.UnitTestingClusterSimpleStruct, + timedInvokeTimeoutMs: Int? = null + ): SimpleStructResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun timedInvokeRequest(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun testSimpleOptionalArgumentRequest(arg1: Boolean?, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun testEmitTestEventRequest( + arg1: UByte, + arg2: UInt, + arg3: Boolean, + timedInvokeTimeoutMs: Int? = null + ): TestEmitTestEventResponse { + 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 testEmitTestFabricScopedEventRequest( + arg1: UByte, + timedInvokeTimeoutMs: Int? = null + ): TestEmitTestFabricScopedEventResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readBooleanAttribute(callback: BooleanAttributeCallback) { + suspend fun readBooleanAttribute(): Boolean { // Implementation needs to be added here } - fun writeBooleanAttribute(callback: DefaultClusterCallback, value: Boolean) { + suspend fun writeBooleanAttribute(value: Boolean) { // Implementation needs to be added here } - fun writeBooleanAttribute( - callback: DefaultClusterCallback, - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeBooleanAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readBitmap8Attribute(callback: IntegerAttributeCallback) { + suspend fun readBitmap8Attribute(): UByte { // Implementation needs to be added here } - fun writeBitmap8Attribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeBitmap8Attribute(value: UInt) { // Implementation needs to be added here } - fun writeBitmap8Attribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBitmap8Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeBitmap8Attribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBitmap8Attribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readBitmap16Attribute(callback: IntegerAttributeCallback) { + suspend fun readBitmap16Attribute(): UShort { // Implementation needs to be added here } - fun writeBitmap16Attribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeBitmap16Attribute(value: UInt) { // Implementation needs to be added here } - fun writeBitmap16Attribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBitmap16Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeBitmap16Attribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBitmap16Attribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readBitmap32Attribute(callback: LongAttributeCallback) { + suspend fun readBitmap32Attribute(): UInt { // Implementation needs to be added here } - fun writeBitmap32Attribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeBitmap32Attribute(value: ULong) { // Implementation needs to be added here } - fun writeBitmap32Attribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBitmap32Attribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeBitmap32Attribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBitmap32Attribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readBitmap64Attribute(callback: LongAttributeCallback) { + suspend fun readBitmap64Attribute(): ULong { // Implementation needs to be added here } - fun writeBitmap64Attribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeBitmap64Attribute(value: ULong) { // Implementation needs to be added here } - fun writeBitmap64Attribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBitmap64Attribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeBitmap64Attribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBitmap64Attribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readInt8uAttribute(callback: IntegerAttributeCallback) { + suspend fun readInt8uAttribute(): UByte { // Implementation needs to be added here } - fun writeInt8uAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeInt8uAttribute(value: UByte) { // Implementation needs to be added here } - fun writeInt8uAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt8uAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readInt16uAttribute(callback: IntegerAttributeCallback) { + suspend fun readInt16uAttribute(): UShort { // Implementation needs to be added here } - fun writeInt16uAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeInt16uAttribute(value: UShort) { // Implementation needs to be added here } - fun writeInt16uAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt16uAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt16uAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readInt24uAttribute(callback: LongAttributeCallback) { + suspend fun readInt24uAttribute(): UInt { // Implementation needs to be added here } - fun writeInt24uAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeInt24uAttribute(value: UInt) { // Implementation needs to be added here } - fun writeInt24uAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt24uAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt24uAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt24uAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readInt32uAttribute(callback: LongAttributeCallback) { + suspend fun readInt32uAttribute(): UInt { // Implementation needs to be added here } - fun writeInt32uAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeInt32uAttribute(value: UInt) { // Implementation needs to be added here } - fun writeInt32uAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt32uAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt32uAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt32uAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readInt40uAttribute(callback: LongAttributeCallback) { + suspend fun readInt40uAttribute(): ULong { // Implementation needs to be added here } - fun writeInt40uAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeInt40uAttribute(value: ULong) { // Implementation needs to be added here } - fun writeInt40uAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt40uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt40uAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt40uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readInt48uAttribute(callback: LongAttributeCallback) { + suspend fun readInt48uAttribute(): ULong { // Implementation needs to be added here } - fun writeInt48uAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeInt48uAttribute(value: ULong) { // Implementation needs to be added here } - fun writeInt48uAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt48uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt48uAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt48uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readInt56uAttribute(callback: LongAttributeCallback) { + suspend fun readInt56uAttribute(): ULong { // Implementation needs to be added here } - fun writeInt56uAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeInt56uAttribute(value: ULong) { // Implementation needs to be added here } - fun writeInt56uAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt56uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt56uAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt56uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readInt64uAttribute(callback: LongAttributeCallback) { + suspend fun readInt64uAttribute(): ULong { // Implementation needs to be added here } - fun writeInt64uAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeInt64uAttribute(value: ULong) { // Implementation needs to be added here } - fun writeInt64uAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt64uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt64uAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt64uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readInt8sAttribute(callback: IntegerAttributeCallback) { + suspend fun readInt8sAttribute(): Byte { // Implementation needs to be added here } - fun writeInt8sAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeInt8sAttribute(value: Byte) { // Implementation needs to be added here } - fun writeInt8sAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt8sAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt8sAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } - fun readInt16sAttribute(callback: IntegerAttributeCallback) { + suspend fun readInt16sAttribute(): Short { // Implementation needs to be added here } - fun writeInt16sAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeInt16sAttribute(value: Short) { // Implementation needs to be added here } - fun writeInt16sAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt16sAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt16sAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt16sAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readInt24sAttribute(callback: LongAttributeCallback) { + suspend fun readInt24sAttribute(): Int { // Implementation needs to be added here } - fun writeInt24sAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeInt24sAttribute(value: Int) { // Implementation needs to be added here } - fun writeInt24sAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt24sAttribute(value: Int, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt24sAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt24sAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } - fun readInt32sAttribute(callback: LongAttributeCallback) { + suspend fun readInt32sAttribute(): Int { // Implementation needs to be added here } - fun writeInt32sAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeInt32sAttribute(value: Int) { // Implementation needs to be added here } - fun writeInt32sAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt32sAttribute(value: Int, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt32sAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt32sAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } - fun readInt40sAttribute(callback: LongAttributeCallback) { + suspend fun readInt40sAttribute(): Long { // Implementation needs to be added here } - fun writeInt40sAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeInt40sAttribute(value: Long) { // Implementation needs to be added here } - fun writeInt40sAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt40sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt40sAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt40sAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readInt48sAttribute(callback: LongAttributeCallback) { + suspend fun readInt48sAttribute(): Long { // Implementation needs to be added here } - fun writeInt48sAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeInt48sAttribute(value: Long) { // Implementation needs to be added here } - fun writeInt48sAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt48sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt48sAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt48sAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readInt56sAttribute(callback: LongAttributeCallback) { + suspend fun readInt56sAttribute(): Long { // Implementation needs to be added here } - fun writeInt56sAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeInt56sAttribute(value: Long) { // Implementation needs to be added here } - fun writeInt56sAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt56sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt56sAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt56sAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readInt64sAttribute(callback: LongAttributeCallback) { + suspend fun readInt64sAttribute(): Long { // Implementation needs to be added here } - fun writeInt64sAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeInt64sAttribute(value: Long) { // Implementation needs to be added here } - fun writeInt64sAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt64sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeInt64sAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInt64sAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readEnum8Attribute(callback: IntegerAttributeCallback) { + suspend fun readEnum8Attribute(): UByte { // Implementation needs to be added here } - fun writeEnum8Attribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeEnum8Attribute(value: UInt) { // Implementation needs to be added here } - fun writeEnum8Attribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEnum8Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeEnum8Attribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEnum8Attribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readEnum16Attribute(callback: IntegerAttributeCallback) { + suspend fun readEnum16Attribute(): UShort { // Implementation needs to be added here } - fun writeEnum16Attribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeEnum16Attribute(value: UInt) { // Implementation needs to be added here } - fun writeEnum16Attribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEnum16Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeEnum16Attribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEnum16Attribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readFloatSingleAttribute(callback: FloatAttributeCallback) { + suspend fun readFloatSingleAttribute(): Float { // Implementation needs to be added here } - fun writeFloatSingleAttribute(callback: DefaultClusterCallback, value: Float) { + suspend fun writeFloatSingleAttribute(value: Float) { // Implementation needs to be added here } - fun writeFloatSingleAttribute( - callback: DefaultClusterCallback, - value: Float, - timedWriteTimeoutMs: Int - ) { + suspend fun writeFloatSingleAttribute(value: Float, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeFloatSingleAttribute( - callback: FloatAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFloatSingleAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } - fun readFloatDoubleAttribute(callback: DoubleAttributeCallback) { + suspend fun readFloatDoubleAttribute(): Double { // Implementation needs to be added here } - fun writeFloatDoubleAttribute(callback: DefaultClusterCallback, value: Double) { + suspend fun writeFloatDoubleAttribute(value: Double) { // Implementation needs to be added here } - fun writeFloatDoubleAttribute( - callback: DefaultClusterCallback, - value: Double, - timedWriteTimeoutMs: Int - ) { + suspend fun writeFloatDoubleAttribute(value: Double, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeFloatDoubleAttribute( - callback: DoubleAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFloatDoubleAttribute(minInterval: Int, maxInterval: Int): Double { // Implementation needs to be added here } - fun readOctetStringAttribute(callback: OctetStringAttributeCallback) { + suspend fun readOctetStringAttribute(): OctetString { // Implementation needs to be added here } - fun writeOctetStringAttribute(callback: DefaultClusterCallback, value: ByteArray) { + suspend fun writeOctetStringAttribute(value: ByteArray) { // Implementation needs to be added here } - fun writeOctetStringAttribute( - callback: DefaultClusterCallback, - value: ByteArray, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOctetStringAttribute(value: ByteArray, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOctetStringAttribute( - callback: OctetStringAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOctetStringAttribute(minInterval: Int, maxInterval: Int): OctetString { // Implementation needs to be added here } - fun readListInt8uAttribute(callback: ListInt8uAttributeCallback) { + suspend fun readListInt8uAttribute(): ListInt8uAttribute { // Implementation needs to be added here } - fun writeListInt8uAttribute(callback: DefaultClusterCallback, value: ArrayList) { + suspend fun writeListInt8uAttribute(value: ArrayList) { // Implementation needs to be added here } - fun writeListInt8uAttribute( - callback: DefaultClusterCallback, - value: ArrayList, - timedWriteTimeoutMs: Int - ) { + suspend fun writeListInt8uAttribute(value: ArrayList, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeListInt8uAttribute( - callback: ListInt8uAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeListInt8uAttribute(minInterval: Int, maxInterval: Int): ListInt8uAttribute { // Implementation needs to be added here } - fun readListOctetStringAttribute(callback: ListOctetStringAttributeCallback) { + suspend fun readListOctetStringAttribute(): ListOctetStringAttribute { // Implementation needs to be added here } - fun writeListOctetStringAttribute(callback: DefaultClusterCallback, value: ArrayList) { + suspend fun writeListOctetStringAttribute(value: ArrayList) { // Implementation needs to be added here } - fun writeListOctetStringAttribute( - callback: DefaultClusterCallback, - value: ArrayList, - timedWriteTimeoutMs: Int - ) { + suspend fun writeListOctetStringAttribute(value: ArrayList, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeListOctetStringAttribute( - callback: ListOctetStringAttributeCallback, + suspend fun subscribeListOctetStringAttribute( minInterval: Int, maxInterval: Int - ) { + ): ListOctetStringAttribute { // Implementation needs to be added here } - fun readListStructOctetStringAttribute(callback: ListStructOctetStringAttributeCallback) { + suspend fun readListStructOctetStringAttribute(): ListStructOctetStringAttribute { // Implementation needs to be added here } - fun writeListStructOctetStringAttribute( - callback: DefaultClusterCallback, + suspend fun writeListStructOctetStringAttribute( value: ArrayList ) { // Implementation needs to be added here } - fun writeListStructOctetStringAttribute( - callback: DefaultClusterCallback, + suspend fun writeListStructOctetStringAttribute( value: ArrayList, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeListStructOctetStringAttribute( - callback: ListStructOctetStringAttributeCallback, + suspend fun subscribeListStructOctetStringAttribute( minInterval: Int, maxInterval: Int - ) { + ): ListStructOctetStringAttribute { // Implementation needs to be added here } - fun readLongOctetStringAttribute(callback: OctetStringAttributeCallback) { + suspend fun readLongOctetStringAttribute(): OctetString { // Implementation needs to be added here } - fun writeLongOctetStringAttribute(callback: DefaultClusterCallback, value: ByteArray) { + suspend fun writeLongOctetStringAttribute(value: ByteArray) { // Implementation needs to be added here } - fun writeLongOctetStringAttribute( - callback: DefaultClusterCallback, - value: ByteArray, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLongOctetStringAttribute(value: ByteArray, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeLongOctetStringAttribute( - callback: OctetStringAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLongOctetStringAttribute(minInterval: Int, maxInterval: Int): OctetString { // Implementation needs to be added here } - fun readCharStringAttribute(callback: CharStringAttributeCallback) { + suspend fun readCharStringAttribute(): CharString { // Implementation needs to be added here } - fun writeCharStringAttribute(callback: DefaultClusterCallback, value: String) { + suspend fun writeCharStringAttribute(value: String) { // Implementation needs to be added here } - fun writeCharStringAttribute( - callback: DefaultClusterCallback, - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeCharStringAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeCharStringAttribute( - callback: CharStringAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCharStringAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } - fun readLongCharStringAttribute(callback: CharStringAttributeCallback) { + suspend fun readLongCharStringAttribute(): CharString { // Implementation needs to be added here } - fun writeLongCharStringAttribute(callback: DefaultClusterCallback, value: String) { + suspend fun writeLongCharStringAttribute(value: String) { // Implementation needs to be added here } - fun writeLongCharStringAttribute( - callback: DefaultClusterCallback, - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLongCharStringAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeLongCharStringAttribute( - callback: CharStringAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLongCharStringAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } - fun readEpochUsAttribute(callback: LongAttributeCallback) { + suspend fun readEpochUsAttribute(): ULong { // Implementation needs to be added here } - fun writeEpochUsAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeEpochUsAttribute(value: ULong) { // Implementation needs to be added here } - fun writeEpochUsAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEpochUsAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeEpochUsAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEpochUsAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - fun readEpochSAttribute(callback: LongAttributeCallback) { + suspend fun readEpochSAttribute(): UInt { // Implementation needs to be added here } - fun writeEpochSAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeEpochSAttribute(value: UInt) { // Implementation needs to be added here } - fun writeEpochSAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEpochSAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeEpochSAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEpochSAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - fun readVendorIdAttribute(callback: IntegerAttributeCallback) { + suspend fun readVendorIdAttribute(): UShort { // Implementation needs to be added here } - fun writeVendorIdAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeVendorIdAttribute(value: UShort) { // Implementation needs to be added here } - fun writeVendorIdAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeVendorIdAttribute(value: UShort, timedWriteTimeoutMs: Int) { // 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 readListNullablesAndOptionalsStructAttribute( - callback: ListNullablesAndOptionalsStructAttributeCallback - ) { + suspend fun readListNullablesAndOptionalsStructAttribute(): + ListNullablesAndOptionalsStructAttribute { // Implementation needs to be added here } - fun writeListNullablesAndOptionalsStructAttribute( - callback: DefaultClusterCallback, + suspend fun writeListNullablesAndOptionalsStructAttribute( value: ArrayList ) { // Implementation needs to be added here } - fun writeListNullablesAndOptionalsStructAttribute( - callback: DefaultClusterCallback, + suspend fun writeListNullablesAndOptionalsStructAttribute( value: ArrayList, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeListNullablesAndOptionalsStructAttribute( - callback: ListNullablesAndOptionalsStructAttributeCallback, + suspend fun subscribeListNullablesAndOptionalsStructAttribute( minInterval: Int, maxInterval: Int - ) { + ): ListNullablesAndOptionalsStructAttribute { // Implementation needs to be added here } - fun readEnumAttrAttribute(callback: IntegerAttributeCallback) { + suspend fun readEnumAttrAttribute(): UByte { // Implementation needs to be added here } - fun writeEnumAttrAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeEnumAttrAttribute(value: UInt) { // Implementation needs to be added here } - fun writeEnumAttrAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEnumAttrAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeEnumAttrAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEnumAttrAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readStructAttrAttribute(callback: StructAttrAttributeCallback) { + suspend fun readStructAttrAttribute(): StructAttrAttribute { // Implementation needs to be added here } - fun writeStructAttrAttribute( - callback: DefaultClusterCallback, - value: ChipStructs.UnitTestingClusterSimpleStruct - ) { + suspend fun writeStructAttrAttribute(value: ChipStructs.UnitTestingClusterSimpleStruct) { // Implementation needs to be added here } - fun writeStructAttrAttribute( - callback: DefaultClusterCallback, + suspend fun writeStructAttrAttribute( value: ChipStructs.UnitTestingClusterSimpleStruct, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeStructAttrAttribute( - callback: StructAttrAttributeCallback, + suspend fun subscribeStructAttrAttribute( minInterval: Int, maxInterval: Int - ) { + ): StructAttrAttribute { // Implementation needs to be added here } - fun readRangeRestrictedInt8uAttribute(callback: IntegerAttributeCallback) { + suspend fun readRangeRestrictedInt8uAttribute(): UByte { // Implementation needs to be added here } - fun writeRangeRestrictedInt8uAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeRangeRestrictedInt8uAttribute(value: UByte) { // Implementation needs to be added here } - fun writeRangeRestrictedInt8uAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRangeRestrictedInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeRangeRestrictedInt8uAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRangeRestrictedInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readRangeRestrictedInt8sAttribute(callback: IntegerAttributeCallback) { + suspend fun readRangeRestrictedInt8sAttribute(): Byte { // Implementation needs to be added here } - fun writeRangeRestrictedInt8sAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeRangeRestrictedInt8sAttribute(value: Byte) { // Implementation needs to be added here } - fun writeRangeRestrictedInt8sAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRangeRestrictedInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeRangeRestrictedInt8sAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRangeRestrictedInt8sAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } - fun readRangeRestrictedInt16uAttribute(callback: IntegerAttributeCallback) { + suspend fun readRangeRestrictedInt16uAttribute(): UShort { // Implementation needs to be added here } - fun writeRangeRestrictedInt16uAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeRangeRestrictedInt16uAttribute(value: UShort) { // Implementation needs to be added here } - fun writeRangeRestrictedInt16uAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRangeRestrictedInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeRangeRestrictedInt16uAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRangeRestrictedInt16uAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readRangeRestrictedInt16sAttribute(callback: IntegerAttributeCallback) { + suspend fun readRangeRestrictedInt16sAttribute(): Short { // Implementation needs to be added here } - fun writeRangeRestrictedInt16sAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeRangeRestrictedInt16sAttribute(value: Short) { // Implementation needs to be added here } - fun writeRangeRestrictedInt16sAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRangeRestrictedInt16sAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeRangeRestrictedInt16sAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRangeRestrictedInt16sAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - fun readListLongOctetStringAttribute(callback: ListLongOctetStringAttributeCallback) { + suspend fun readListLongOctetStringAttribute(): ListLongOctetStringAttribute { // Implementation needs to be added here } - fun writeListLongOctetStringAttribute( - callback: DefaultClusterCallback, - value: ArrayList - ) { + suspend fun writeListLongOctetStringAttribute(value: ArrayList) { // Implementation needs to be added here } - fun writeListLongOctetStringAttribute( - callback: DefaultClusterCallback, + suspend fun writeListLongOctetStringAttribute( value: ArrayList, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeListLongOctetStringAttribute( - callback: ListLongOctetStringAttributeCallback, + suspend fun subscribeListLongOctetStringAttribute( minInterval: Int, maxInterval: Int - ) { + ): ListLongOctetStringAttribute { // Implementation needs to be added here } - fun readListFabricScopedAttribute(callback: ListFabricScopedAttributeCallback) { + suspend fun readListFabricScopedAttribute(): ListFabricScopedAttribute { // Implementation needs to be added here } - fun readListFabricScopedAttributeWithFabricFilter( - callback: ListFabricScopedAttributeCallback, + suspend fun readListFabricScopedAttributeWithFabricFilter( isFabricFiltered: Boolean - ) { + ): ListFabricScopedAttribute { // Implementation needs to be added here } - fun writeListFabricScopedAttribute( - callback: DefaultClusterCallback, + suspend fun writeListFabricScopedAttribute( value: ArrayList ) { // Implementation needs to be added here } - fun writeListFabricScopedAttribute( - callback: DefaultClusterCallback, + suspend fun writeListFabricScopedAttribute( value: ArrayList, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeListFabricScopedAttribute( - callback: ListFabricScopedAttributeCallback, + suspend fun subscribeListFabricScopedAttribute( minInterval: Int, maxInterval: Int - ) { + ): ListFabricScopedAttribute { // Implementation needs to be added here } - fun readTimedWriteBooleanAttribute(callback: BooleanAttributeCallback) { + suspend fun readTimedWriteBooleanAttribute(): Boolean { // Implementation needs to be added here } - fun writeTimedWriteBooleanAttribute( - callback: DefaultClusterCallback, - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeTimedWriteBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeTimedWriteBooleanAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTimedWriteBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readGeneralErrorBooleanAttribute(callback: BooleanAttributeCallback) { + suspend fun readGeneralErrorBooleanAttribute(): Boolean { // Implementation needs to be added here } - fun writeGeneralErrorBooleanAttribute(callback: DefaultClusterCallback, value: Boolean) { + suspend fun writeGeneralErrorBooleanAttribute(value: Boolean) { // Implementation needs to be added here } - fun writeGeneralErrorBooleanAttribute( - callback: DefaultClusterCallback, - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeGeneralErrorBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeGeneralErrorBooleanAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeGeneralErrorBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readClusterErrorBooleanAttribute(callback: BooleanAttributeCallback) { + suspend fun readClusterErrorBooleanAttribute(): Boolean { // Implementation needs to be added here } - fun writeClusterErrorBooleanAttribute(callback: DefaultClusterCallback, value: Boolean) { + suspend fun writeClusterErrorBooleanAttribute(value: Boolean) { // Implementation needs to be added here } - fun writeClusterErrorBooleanAttribute( - callback: DefaultClusterCallback, - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeClusterErrorBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeClusterErrorBooleanAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterErrorBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readUnsupportedAttribute(callback: BooleanAttributeCallback) { + suspend fun readUnsupportedAttribute(): Boolean { // Implementation needs to be added here } - fun writeUnsupportedAttribute(callback: DefaultClusterCallback, value: Boolean) { + suspend fun writeUnsupportedAttribute(value: Boolean) { // Implementation needs to be added here } - fun writeUnsupportedAttribute( - callback: DefaultClusterCallback, - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeUnsupportedAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeUnsupportedAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeUnsupportedAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readNullableBooleanAttribute(callback: NullableBooleanAttributeCallback) { + suspend fun readNullableBooleanAttribute(): NullableBooleanAttribute { // Implementation needs to be added here } - fun writeNullableBooleanAttribute(callback: DefaultClusterCallback, value: Boolean) { + suspend fun writeNullableBooleanAttribute(value: Boolean) { // Implementation needs to be added here } - fun writeNullableBooleanAttribute( - callback: DefaultClusterCallback, - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableBooleanAttribute( - callback: NullableBooleanAttributeCallback, + suspend fun subscribeNullableBooleanAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableBooleanAttribute { // Implementation needs to be added here } - fun readNullableBitmap8Attribute(callback: NullableBitmap8AttributeCallback) { + suspend fun readNullableBitmap8Attribute(): NullableBitmap8Attribute { // Implementation needs to be added here } - fun writeNullableBitmap8Attribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeNullableBitmap8Attribute(value: UInt) { // Implementation needs to be added here } - fun writeNullableBitmap8Attribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableBitmap8Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableBitmap8Attribute( - callback: NullableBitmap8AttributeCallback, + suspend fun subscribeNullableBitmap8Attribute( minInterval: Int, maxInterval: Int - ) { + ): NullableBitmap8Attribute { // Implementation needs to be added here } - fun readNullableBitmap16Attribute(callback: NullableBitmap16AttributeCallback) { + suspend fun readNullableBitmap16Attribute(): NullableBitmap16Attribute { // Implementation needs to be added here } - fun writeNullableBitmap16Attribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeNullableBitmap16Attribute(value: UInt) { // Implementation needs to be added here } - fun writeNullableBitmap16Attribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableBitmap16Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableBitmap16Attribute( - callback: NullableBitmap16AttributeCallback, + suspend fun subscribeNullableBitmap16Attribute( minInterval: Int, maxInterval: Int - ) { + ): NullableBitmap16Attribute { // Implementation needs to be added here } - fun readNullableBitmap32Attribute(callback: NullableBitmap32AttributeCallback) { + suspend fun readNullableBitmap32Attribute(): NullableBitmap32Attribute { // Implementation needs to be added here } - fun writeNullableBitmap32Attribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableBitmap32Attribute(value: ULong) { // Implementation needs to be added here } - fun writeNullableBitmap32Attribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableBitmap32Attribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableBitmap32Attribute( - callback: NullableBitmap32AttributeCallback, + suspend fun subscribeNullableBitmap32Attribute( minInterval: Int, maxInterval: Int - ) { + ): NullableBitmap32Attribute { // Implementation needs to be added here } - fun readNullableBitmap64Attribute(callback: NullableBitmap64AttributeCallback) { + suspend fun readNullableBitmap64Attribute(): NullableBitmap64Attribute { // Implementation needs to be added here } - fun writeNullableBitmap64Attribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableBitmap64Attribute(value: ULong) { // Implementation needs to be added here } - fun writeNullableBitmap64Attribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableBitmap64Attribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableBitmap64Attribute( - callback: NullableBitmap64AttributeCallback, + suspend fun subscribeNullableBitmap64Attribute( minInterval: Int, maxInterval: Int - ) { + ): NullableBitmap64Attribute { // Implementation needs to be added here } - fun readNullableInt8uAttribute(callback: NullableInt8uAttributeCallback) { + suspend fun readNullableInt8uAttribute(): NullableInt8uAttribute { // Implementation needs to be added here } - fun writeNullableInt8uAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeNullableInt8uAttribute(value: UByte) { // Implementation needs to be added here } - fun writeNullableInt8uAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt8uAttribute( - callback: NullableInt8uAttributeCallback, + suspend fun subscribeNullableInt8uAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt8uAttribute { // Implementation needs to be added here } - fun readNullableInt16uAttribute(callback: NullableInt16uAttributeCallback) { + suspend fun readNullableInt16uAttribute(): NullableInt16uAttribute { // Implementation needs to be added here } - fun writeNullableInt16uAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeNullableInt16uAttribute(value: UShort) { // Implementation needs to be added here } - fun writeNullableInt16uAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt16uAttribute( - callback: NullableInt16uAttributeCallback, + suspend fun subscribeNullableInt16uAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt16uAttribute { // Implementation needs to be added here } - fun readNullableInt24uAttribute(callback: NullableInt24uAttributeCallback) { + suspend fun readNullableInt24uAttribute(): NullableInt24uAttribute { // Implementation needs to be added here } - fun writeNullableInt24uAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableInt24uAttribute(value: UInt) { // Implementation needs to be added here } - fun writeNullableInt24uAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt24uAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt24uAttribute( - callback: NullableInt24uAttributeCallback, + suspend fun subscribeNullableInt24uAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt24uAttribute { // Implementation needs to be added here } - fun readNullableInt32uAttribute(callback: NullableInt32uAttributeCallback) { + suspend fun readNullableInt32uAttribute(): NullableInt32uAttribute { // Implementation needs to be added here } - fun writeNullableInt32uAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableInt32uAttribute(value: UInt) { // Implementation needs to be added here } - fun writeNullableInt32uAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt32uAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt32uAttribute( - callback: NullableInt32uAttributeCallback, + suspend fun subscribeNullableInt32uAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt32uAttribute { // Implementation needs to be added here } - fun readNullableInt40uAttribute(callback: NullableInt40uAttributeCallback) { + suspend fun readNullableInt40uAttribute(): NullableInt40uAttribute { // Implementation needs to be added here } - fun writeNullableInt40uAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableInt40uAttribute(value: ULong) { // Implementation needs to be added here } - fun writeNullableInt40uAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt40uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt40uAttribute( - callback: NullableInt40uAttributeCallback, + suspend fun subscribeNullableInt40uAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt40uAttribute { // Implementation needs to be added here } - fun readNullableInt48uAttribute(callback: NullableInt48uAttributeCallback) { + suspend fun readNullableInt48uAttribute(): NullableInt48uAttribute { // Implementation needs to be added here } - fun writeNullableInt48uAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableInt48uAttribute(value: ULong) { // Implementation needs to be added here } - fun writeNullableInt48uAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt48uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt48uAttribute( - callback: NullableInt48uAttributeCallback, + suspend fun subscribeNullableInt48uAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt48uAttribute { // Implementation needs to be added here } - fun readNullableInt56uAttribute(callback: NullableInt56uAttributeCallback) { + suspend fun readNullableInt56uAttribute(): NullableInt56uAttribute { // Implementation needs to be added here } - fun writeNullableInt56uAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableInt56uAttribute(value: ULong) { // Implementation needs to be added here } - fun writeNullableInt56uAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt56uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt56uAttribute( - callback: NullableInt56uAttributeCallback, + suspend fun subscribeNullableInt56uAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt56uAttribute { // Implementation needs to be added here } - fun readNullableInt64uAttribute(callback: NullableInt64uAttributeCallback) { + suspend fun readNullableInt64uAttribute(): NullableInt64uAttribute { // Implementation needs to be added here } - fun writeNullableInt64uAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableInt64uAttribute(value: ULong) { // Implementation needs to be added here } - fun writeNullableInt64uAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt64uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt64uAttribute( - callback: NullableInt64uAttributeCallback, + suspend fun subscribeNullableInt64uAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt64uAttribute { // Implementation needs to be added here } - fun readNullableInt8sAttribute(callback: NullableInt8sAttributeCallback) { + suspend fun readNullableInt8sAttribute(): NullableInt8sAttribute { // Implementation needs to be added here } - fun writeNullableInt8sAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeNullableInt8sAttribute(value: Byte) { // Implementation needs to be added here } - fun writeNullableInt8sAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt8sAttribute( - callback: NullableInt8sAttributeCallback, + suspend fun subscribeNullableInt8sAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt8sAttribute { // Implementation needs to be added here } - fun readNullableInt16sAttribute(callback: NullableInt16sAttributeCallback) { + suspend fun readNullableInt16sAttribute(): NullableInt16sAttribute { // Implementation needs to be added here } - fun writeNullableInt16sAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeNullableInt16sAttribute(value: Short) { // Implementation needs to be added here } - fun writeNullableInt16sAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt16sAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt16sAttribute( - callback: NullableInt16sAttributeCallback, + suspend fun subscribeNullableInt16sAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt16sAttribute { // Implementation needs to be added here } - fun readNullableInt24sAttribute(callback: NullableInt24sAttributeCallback) { + suspend fun readNullableInt24sAttribute(): NullableInt24sAttribute { // Implementation needs to be added here } - fun writeNullableInt24sAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableInt24sAttribute(value: Int) { // Implementation needs to be added here } - fun writeNullableInt24sAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt24sAttribute(value: Int, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt24sAttribute( - callback: NullableInt24sAttributeCallback, + suspend fun subscribeNullableInt24sAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt24sAttribute { // Implementation needs to be added here } - fun readNullableInt32sAttribute(callback: NullableInt32sAttributeCallback) { + suspend fun readNullableInt32sAttribute(): NullableInt32sAttribute { // Implementation needs to be added here } - fun writeNullableInt32sAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableInt32sAttribute(value: Int) { // Implementation needs to be added here } - fun writeNullableInt32sAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt32sAttribute(value: Int, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt32sAttribute( - callback: NullableInt32sAttributeCallback, + suspend fun subscribeNullableInt32sAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt32sAttribute { // Implementation needs to be added here } - fun readNullableInt40sAttribute(callback: NullableInt40sAttributeCallback) { + suspend fun readNullableInt40sAttribute(): NullableInt40sAttribute { // Implementation needs to be added here } - fun writeNullableInt40sAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableInt40sAttribute(value: Long) { // Implementation needs to be added here } - fun writeNullableInt40sAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt40sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt40sAttribute( - callback: NullableInt40sAttributeCallback, + suspend fun subscribeNullableInt40sAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt40sAttribute { // Implementation needs to be added here } - fun readNullableInt48sAttribute(callback: NullableInt48sAttributeCallback) { + suspend fun readNullableInt48sAttribute(): NullableInt48sAttribute { // Implementation needs to be added here } - fun writeNullableInt48sAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableInt48sAttribute(value: Long) { // Implementation needs to be added here } - fun writeNullableInt48sAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt48sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt48sAttribute( - callback: NullableInt48sAttributeCallback, + suspend fun subscribeNullableInt48sAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt48sAttribute { // Implementation needs to be added here } - fun readNullableInt56sAttribute(callback: NullableInt56sAttributeCallback) { + suspend fun readNullableInt56sAttribute(): NullableInt56sAttribute { // Implementation needs to be added here } - fun writeNullableInt56sAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableInt56sAttribute(value: Long) { // Implementation needs to be added here } - fun writeNullableInt56sAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt56sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt56sAttribute( - callback: NullableInt56sAttributeCallback, + suspend fun subscribeNullableInt56sAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt56sAttribute { // Implementation needs to be added here } - fun readNullableInt64sAttribute(callback: NullableInt64sAttributeCallback) { + suspend fun readNullableInt64sAttribute(): NullableInt64sAttribute { // Implementation needs to be added here } - fun writeNullableInt64sAttribute(callback: DefaultClusterCallback, value: Long) { + suspend fun writeNullableInt64sAttribute(value: Long) { // Implementation needs to be added here } - fun writeNullableInt64sAttribute( - callback: DefaultClusterCallback, - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt64sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableInt64sAttribute( - callback: NullableInt64sAttributeCallback, + suspend fun subscribeNullableInt64sAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableInt64sAttribute { // Implementation needs to be added here } - fun readNullableEnum8Attribute(callback: NullableEnum8AttributeCallback) { + suspend fun readNullableEnum8Attribute(): NullableEnum8Attribute { // Implementation needs to be added here } - fun writeNullableEnum8Attribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeNullableEnum8Attribute(value: UInt) { // Implementation needs to be added here } - fun writeNullableEnum8Attribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableEnum8Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableEnum8Attribute( - callback: NullableEnum8AttributeCallback, + suspend fun subscribeNullableEnum8Attribute( minInterval: Int, maxInterval: Int - ) { + ): NullableEnum8Attribute { // Implementation needs to be added here } - fun readNullableEnum16Attribute(callback: NullableEnum16AttributeCallback) { + suspend fun readNullableEnum16Attribute(): NullableEnum16Attribute { // Implementation needs to be added here } - fun writeNullableEnum16Attribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeNullableEnum16Attribute(value: UInt) { // Implementation needs to be added here } - fun writeNullableEnum16Attribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableEnum16Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableEnum16Attribute( - callback: NullableEnum16AttributeCallback, + suspend fun subscribeNullableEnum16Attribute( minInterval: Int, maxInterval: Int - ) { + ): NullableEnum16Attribute { // Implementation needs to be added here } - fun readNullableFloatSingleAttribute(callback: NullableFloatSingleAttributeCallback) { + suspend fun readNullableFloatSingleAttribute(): NullableFloatSingleAttribute { // Implementation needs to be added here } - fun writeNullableFloatSingleAttribute(callback: DefaultClusterCallback, value: Float) { + suspend fun writeNullableFloatSingleAttribute(value: Float) { // Implementation needs to be added here } - fun writeNullableFloatSingleAttribute( - callback: DefaultClusterCallback, - value: Float, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableFloatSingleAttribute(value: Float, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableFloatSingleAttribute( - callback: NullableFloatSingleAttributeCallback, + suspend fun subscribeNullableFloatSingleAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableFloatSingleAttribute { // Implementation needs to be added here } - fun readNullableFloatDoubleAttribute(callback: NullableFloatDoubleAttributeCallback) { + suspend fun readNullableFloatDoubleAttribute(): NullableFloatDoubleAttribute { // Implementation needs to be added here } - fun writeNullableFloatDoubleAttribute(callback: DefaultClusterCallback, value: Double) { + suspend fun writeNullableFloatDoubleAttribute(value: Double) { // Implementation needs to be added here } - fun writeNullableFloatDoubleAttribute( - callback: DefaultClusterCallback, - value: Double, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableFloatDoubleAttribute(value: Double, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableFloatDoubleAttribute( - callback: NullableFloatDoubleAttributeCallback, + suspend fun subscribeNullableFloatDoubleAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableFloatDoubleAttribute { // Implementation needs to be added here } - fun readNullableOctetStringAttribute(callback: NullableOctetStringAttributeCallback) { + suspend fun readNullableOctetStringAttribute(): NullableOctetStringAttribute { // Implementation needs to be added here } - fun writeNullableOctetStringAttribute(callback: DefaultClusterCallback, value: ByteArray) { + suspend fun writeNullableOctetStringAttribute(value: ByteArray) { // Implementation needs to be added here } - fun writeNullableOctetStringAttribute( - callback: DefaultClusterCallback, - value: ByteArray, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableOctetStringAttribute(value: ByteArray, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableOctetStringAttribute( - callback: NullableOctetStringAttributeCallback, + suspend fun subscribeNullableOctetStringAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableOctetStringAttribute { // Implementation needs to be added here } - fun readNullableCharStringAttribute(callback: NullableCharStringAttributeCallback) { + suspend fun readNullableCharStringAttribute(): NullableCharStringAttribute { // Implementation needs to be added here } - fun writeNullableCharStringAttribute(callback: DefaultClusterCallback, value: String) { + suspend fun writeNullableCharStringAttribute(value: String) { // Implementation needs to be added here } - fun writeNullableCharStringAttribute( - callback: DefaultClusterCallback, - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableCharStringAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableCharStringAttribute( - callback: NullableCharStringAttributeCallback, + suspend fun subscribeNullableCharStringAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableCharStringAttribute { // Implementation needs to be added here } - fun readNullableEnumAttrAttribute(callback: NullableEnumAttrAttributeCallback) { + suspend fun readNullableEnumAttrAttribute(): NullableEnumAttrAttribute { // Implementation needs to be added here } - fun writeNullableEnumAttrAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeNullableEnumAttrAttribute(value: UInt) { // Implementation needs to be added here } - fun writeNullableEnumAttrAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableEnumAttrAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableEnumAttrAttribute( - callback: NullableEnumAttrAttributeCallback, + suspend fun subscribeNullableEnumAttrAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableEnumAttrAttribute { // Implementation needs to be added here } - fun readNullableStructAttribute(callback: NullableStructAttributeCallback) { + suspend fun readNullableStructAttribute(): NullableStructAttribute { // Implementation needs to be added here } - fun writeNullableStructAttribute( - callback: DefaultClusterCallback, - value: ChipStructs.UnitTestingClusterSimpleStruct - ) { + suspend fun writeNullableStructAttribute(value: ChipStructs.UnitTestingClusterSimpleStruct) { // Implementation needs to be added here } - fun writeNullableStructAttribute( - callback: DefaultClusterCallback, + suspend fun writeNullableStructAttribute( value: ChipStructs.UnitTestingClusterSimpleStruct, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeNullableStructAttribute( - callback: NullableStructAttributeCallback, + suspend fun subscribeNullableStructAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableStructAttribute { // Implementation needs to be added here } - fun readNullableRangeRestrictedInt8uAttribute( - callback: NullableRangeRestrictedInt8uAttributeCallback - ) { + suspend fun readNullableRangeRestrictedInt8uAttribute(): NullableRangeRestrictedInt8uAttribute { // Implementation needs to be added here } - fun writeNullableRangeRestrictedInt8uAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeNullableRangeRestrictedInt8uAttribute(value: UByte) { // Implementation needs to be added here } - fun writeNullableRangeRestrictedInt8uAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableRangeRestrictedInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableRangeRestrictedInt8uAttribute( - callback: NullableRangeRestrictedInt8uAttributeCallback, + suspend fun subscribeNullableRangeRestrictedInt8uAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableRangeRestrictedInt8uAttribute { // Implementation needs to be added here } - fun readNullableRangeRestrictedInt8sAttribute( - callback: NullableRangeRestrictedInt8sAttributeCallback - ) { + suspend fun readNullableRangeRestrictedInt8sAttribute(): NullableRangeRestrictedInt8sAttribute { // Implementation needs to be added here } - fun writeNullableRangeRestrictedInt8sAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeNullableRangeRestrictedInt8sAttribute(value: Byte) { // Implementation needs to be added here } - fun writeNullableRangeRestrictedInt8sAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableRangeRestrictedInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableRangeRestrictedInt8sAttribute( - callback: NullableRangeRestrictedInt8sAttributeCallback, + suspend fun subscribeNullableRangeRestrictedInt8sAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableRangeRestrictedInt8sAttribute { // Implementation needs to be added here } - fun readNullableRangeRestrictedInt16uAttribute( - callback: NullableRangeRestrictedInt16uAttributeCallback - ) { + suspend fun readNullableRangeRestrictedInt16uAttribute(): NullableRangeRestrictedInt16uAttribute { // Implementation needs to be added here } - fun writeNullableRangeRestrictedInt16uAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writeNullableRangeRestrictedInt16uAttribute(value: UShort) { // Implementation needs to be added here } - fun writeNullableRangeRestrictedInt16uAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableRangeRestrictedInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableRangeRestrictedInt16uAttribute( - callback: NullableRangeRestrictedInt16uAttributeCallback, + suspend fun subscribeNullableRangeRestrictedInt16uAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableRangeRestrictedInt16uAttribute { // Implementation needs to be added here } - fun readNullableRangeRestrictedInt16sAttribute( - callback: NullableRangeRestrictedInt16sAttributeCallback - ) { + suspend fun readNullableRangeRestrictedInt16sAttribute(): NullableRangeRestrictedInt16sAttribute { // Implementation needs to be added here } - fun writeNullableRangeRestrictedInt16sAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writeNullableRangeRestrictedInt16sAttribute(value: Short) { // Implementation needs to be added here } - fun writeNullableRangeRestrictedInt16sAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableRangeRestrictedInt16sAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeNullableRangeRestrictedInt16sAttribute( - callback: NullableRangeRestrictedInt16sAttributeCallback, + suspend fun subscribeNullableRangeRestrictedInt16sAttribute( minInterval: Int, maxInterval: Int - ) { + ): NullableRangeRestrictedInt16sAttribute { // Implementation needs to be added here } - fun readWriteOnlyInt8uAttribute(callback: IntegerAttributeCallback) { + suspend fun readWriteOnlyInt8uAttribute(): UByte { // Implementation needs to be added here } - fun writeWriteOnlyInt8uAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeWriteOnlyInt8uAttribute(value: UByte) { // Implementation needs to be added here } - fun writeWriteOnlyInt8uAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeWriteOnlyInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeWriteOnlyInt8uAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWriteOnlyInt8uAttribute(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 = 4294048773u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt index 25b36155c2cdd1..e15bdfef926b4f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt @@ -20,146 +20,93 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class UserLabelCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 65u - } - - interface LabelListAttributeCallback { - 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 LabelListAttribute(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 readLabelListAttribute(callback: LabelListAttributeCallback) { + suspend fun readLabelListAttribute(): LabelListAttribute { // Implementation needs to be added here } - fun writeLabelListAttribute( - callback: DefaultClusterCallback, - value: ArrayList - ) { + suspend fun writeLabelListAttribute(value: ArrayList) { // Implementation needs to be added here } - fun writeLabelListAttribute( - callback: DefaultClusterCallback, + suspend fun writeLabelListAttribute( value: ArrayList, timedWriteTimeoutMs: Int ) { // Implementation needs to be added here } - fun subscribeLabelListAttribute( - callback: LabelListAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLabelListAttribute(minInterval: Int, maxInterval: Int): LabelListAttribute { // 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 = 65u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt index 267032c85e34f1..7cd24e24c08de1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt @@ -20,123 +20,80 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class WakeOnLanCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1283u - } - - 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 readMACAddressAttribute(callback: CharStringAttributeCallback) { + suspend fun readMACAddressAttribute(): CharString { // Implementation needs to be added here } - fun subscribeMACAddressAttribute( - callback: CharStringAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMACAddressAttribute(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 = 1283u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt index bdb5a96acc96b7..fa61490a6f8145 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt @@ -20,375 +20,243 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class WiFiNetworkDiagnosticsCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 54u - } - - fun resetCounts(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun resetCounts(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - interface BssidAttributeCallback { - fun onSuccess(value: ByteArray?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface SecurityTypeAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface WiFiVersionAttributeCallback { - fun onSuccess(value: Integer?) + class BssidAttribute(val value: ByteArray?) - fun onError(ex: Exception) + class SecurityTypeAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ChannelNumberAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface RssiAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class WiFiVersionAttribute(val value: UInt?) - interface BeaconLostCountAttributeCallback { - fun onSuccess(value: Long?) + class ChannelNumberAttribute(val value: UShort?) - fun onError(ex: Exception) + class RssiAttribute(val value: Byte?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class BeaconLostCountAttribute(val value: UInt?) - interface BeaconRxCountAttributeCallback { - fun onSuccess(value: Long?) + class BeaconRxCountAttribute(val value: UInt?) - fun onError(ex: Exception) + class PacketMulticastRxCountAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class PacketMulticastTxCountAttribute(val value: UInt?) - interface PacketMulticastRxCountAttributeCallback { - fun onSuccess(value: Long?) + class PacketUnicastRxCountAttribute(val value: UInt?) - fun onError(ex: Exception) + class PacketUnicastTxCountAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class CurrentMaxRateAttribute(val value: ULong?) - interface PacketMulticastTxCountAttributeCallback { - fun onSuccess(value: Long?) + class OverrunCountAttribute(val value: ULong?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class AcceptedCommandListAttribute(val value: ArrayList) - interface PacketUnicastRxCountAttributeCallback { - fun onSuccess(value: Long?) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class AttributeListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface PacketUnicastTxCountAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface CurrentMaxRateAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface OverrunCountAttributeCallback { - fun onSuccess(value: Long?) - - 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 readBssidAttribute(callback: BssidAttributeCallback) { + suspend fun readBssidAttribute(): BssidAttribute { // Implementation needs to be added here } - fun subscribeBssidAttribute( - callback: BssidAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBssidAttribute(minInterval: Int, maxInterval: Int): BssidAttribute { // Implementation needs to be added here } - fun readSecurityTypeAttribute(callback: SecurityTypeAttributeCallback) { + suspend fun readSecurityTypeAttribute(): SecurityTypeAttribute { // Implementation needs to be added here } - fun subscribeSecurityTypeAttribute( - callback: SecurityTypeAttributeCallback, + suspend fun subscribeSecurityTypeAttribute( minInterval: Int, maxInterval: Int - ) { + ): SecurityTypeAttribute { // Implementation needs to be added here } - fun readWiFiVersionAttribute(callback: WiFiVersionAttributeCallback) { + suspend fun readWiFiVersionAttribute(): WiFiVersionAttribute { // Implementation needs to be added here } - fun subscribeWiFiVersionAttribute( - callback: WiFiVersionAttributeCallback, + suspend fun subscribeWiFiVersionAttribute( minInterval: Int, maxInterval: Int - ) { + ): WiFiVersionAttribute { // Implementation needs to be added here } - fun readChannelNumberAttribute(callback: ChannelNumberAttributeCallback) { + suspend fun readChannelNumberAttribute(): ChannelNumberAttribute { // Implementation needs to be added here } - fun subscribeChannelNumberAttribute( - callback: ChannelNumberAttributeCallback, + suspend fun subscribeChannelNumberAttribute( minInterval: Int, maxInterval: Int - ) { + ): ChannelNumberAttribute { // Implementation needs to be added here } - fun readRssiAttribute(callback: RssiAttributeCallback) { + suspend fun readRssiAttribute(): RssiAttribute { // Implementation needs to be added here } - fun subscribeRssiAttribute(callback: RssiAttributeCallback, minInterval: Int, maxInterval: Int) { + suspend fun subscribeRssiAttribute(minInterval: Int, maxInterval: Int): RssiAttribute { // Implementation needs to be added here } - fun readBeaconLostCountAttribute(callback: BeaconLostCountAttributeCallback) { + suspend fun readBeaconLostCountAttribute(): BeaconLostCountAttribute { // Implementation needs to be added here } - fun subscribeBeaconLostCountAttribute( - callback: BeaconLostCountAttributeCallback, + suspend fun subscribeBeaconLostCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): BeaconLostCountAttribute { // Implementation needs to be added here } - fun readBeaconRxCountAttribute(callback: BeaconRxCountAttributeCallback) { + suspend fun readBeaconRxCountAttribute(): BeaconRxCountAttribute { // Implementation needs to be added here } - fun subscribeBeaconRxCountAttribute( - callback: BeaconRxCountAttributeCallback, + suspend fun subscribeBeaconRxCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): BeaconRxCountAttribute { // Implementation needs to be added here } - fun readPacketMulticastRxCountAttribute(callback: PacketMulticastRxCountAttributeCallback) { + suspend fun readPacketMulticastRxCountAttribute(): PacketMulticastRxCountAttribute { // Implementation needs to be added here } - fun subscribePacketMulticastRxCountAttribute( - callback: PacketMulticastRxCountAttributeCallback, + suspend fun subscribePacketMulticastRxCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): PacketMulticastRxCountAttribute { // Implementation needs to be added here } - fun readPacketMulticastTxCountAttribute(callback: PacketMulticastTxCountAttributeCallback) { + suspend fun readPacketMulticastTxCountAttribute(): PacketMulticastTxCountAttribute { // Implementation needs to be added here } - fun subscribePacketMulticastTxCountAttribute( - callback: PacketMulticastTxCountAttributeCallback, + suspend fun subscribePacketMulticastTxCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): PacketMulticastTxCountAttribute { // Implementation needs to be added here } - fun readPacketUnicastRxCountAttribute(callback: PacketUnicastRxCountAttributeCallback) { + suspend fun readPacketUnicastRxCountAttribute(): PacketUnicastRxCountAttribute { // Implementation needs to be added here } - fun subscribePacketUnicastRxCountAttribute( - callback: PacketUnicastRxCountAttributeCallback, + suspend fun subscribePacketUnicastRxCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): PacketUnicastRxCountAttribute { // Implementation needs to be added here } - fun readPacketUnicastTxCountAttribute(callback: PacketUnicastTxCountAttributeCallback) { + suspend fun readPacketUnicastTxCountAttribute(): PacketUnicastTxCountAttribute { // Implementation needs to be added here } - fun subscribePacketUnicastTxCountAttribute( - callback: PacketUnicastTxCountAttributeCallback, + suspend fun subscribePacketUnicastTxCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): PacketUnicastTxCountAttribute { // Implementation needs to be added here } - fun readCurrentMaxRateAttribute(callback: CurrentMaxRateAttributeCallback) { + suspend fun readCurrentMaxRateAttribute(): CurrentMaxRateAttribute { // Implementation needs to be added here } - fun subscribeCurrentMaxRateAttribute( - callback: CurrentMaxRateAttributeCallback, + suspend fun subscribeCurrentMaxRateAttribute( minInterval: Int, maxInterval: Int - ) { + ): CurrentMaxRateAttribute { // Implementation needs to be added here } - fun readOverrunCountAttribute(callback: OverrunCountAttributeCallback) { + suspend fun readOverrunCountAttribute(): OverrunCountAttribute { // Implementation needs to be added here } - fun subscribeOverrunCountAttribute( - callback: OverrunCountAttributeCallback, + suspend fun subscribeOverrunCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): OverrunCountAttribute { // 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 = 54u + } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt index c57ba09b1f33d7..d8a5453d7ff335 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt @@ -20,535 +20,374 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class WindowCoveringCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 258u - } - - fun upOrOpen(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun upOrOpen(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun downOrClose(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun downOrClose(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun stopMotion(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } - - fun stopMotion(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun goToLiftValue(callback: DefaultClusterCallback, liftValue: Integer) { - // Implementation needs to be added here - } - - fun goToLiftValue( - callback: DefaultClusterCallback, - liftValue: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - fun goToLiftPercentage(callback: DefaultClusterCallback, liftPercent100thsValue: Integer) { - // Implementation needs to be added here - } - - fun goToLiftPercentage( - callback: DefaultClusterCallback, - liftPercent100thsValue: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class CurrentPositionLiftAttribute(val value: UShort?) - fun goToTiltValue(callback: DefaultClusterCallback, tiltValue: Integer) { - // Implementation needs to be added here - } + class CurrentPositionTiltAttribute(val value: UShort?) - fun goToTiltValue( - callback: DefaultClusterCallback, - tiltValue: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class CurrentPositionLiftPercentageAttribute(val value: UByte?) - fun goToTiltPercentage(callback: DefaultClusterCallback, tiltPercent100thsValue: Integer) { - // Implementation needs to be added here - } - - fun goToTiltPercentage( - callback: DefaultClusterCallback, - tiltPercent100thsValue: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class CurrentPositionTiltPercentageAttribute(val value: UByte?) - interface CurrentPositionLiftAttributeCallback { - fun onSuccess(value: Integer?) + class TargetPositionLiftPercent100thsAttribute(val value: UShort?) - fun onError(ex: Exception) + class TargetPositionTiltPercent100thsAttribute(val value: UShort?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class CurrentPositionLiftPercent100thsAttribute(val value: UShort?) - interface CurrentPositionTiltAttributeCallback { - fun onSuccess(value: Integer?) + class CurrentPositionTiltPercent100thsAttribute(val value: UShort?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class AcceptedCommandListAttribute(val value: ArrayList) - interface CurrentPositionLiftPercentageAttributeCallback { - fun onSuccess(value: Integer?) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class AttributeListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun upOrOpen(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface CurrentPositionTiltPercentageAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun downOrClose(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface TargetPositionLiftPercent100thsAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun stopMotion(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - interface TargetPositionTiltPercent100thsAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface CurrentPositionLiftPercent100thsAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface CurrentPositionTiltPercent100thsAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun goToLiftValue(liftValue: UShort, 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 goToLiftPercentage( + liftPercent100thsValue: UShort, + 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 goToTiltValue(tiltValue: UShort, 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) + suspend fun goToTiltPercentage( + tiltPercent100thsValue: UShort, + timedInvokeTimeoutMs: Int? = null + ) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - fun readTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readTypeAttribute(): UByte { // Implementation needs to be added here } - fun subscribeTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readPhysicalClosedLimitLiftAttribute(callback: IntegerAttributeCallback) { + suspend fun readPhysicalClosedLimitLiftAttribute(): UShort { // Implementation needs to be added here } - fun subscribePhysicalClosedLimitLiftAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePhysicalClosedLimitLiftAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readPhysicalClosedLimitTiltAttribute(callback: IntegerAttributeCallback) { + suspend fun readPhysicalClosedLimitTiltAttribute(): UShort { // Implementation needs to be added here } - fun subscribePhysicalClosedLimitTiltAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePhysicalClosedLimitTiltAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readCurrentPositionLiftAttribute(callback: CurrentPositionLiftAttributeCallback) { + suspend fun readCurrentPositionLiftAttribute(): CurrentPositionLiftAttribute { // Implementation needs to be added here } - fun subscribeCurrentPositionLiftAttribute( - callback: CurrentPositionLiftAttributeCallback, + suspend fun subscribeCurrentPositionLiftAttribute( minInterval: Int, maxInterval: Int - ) { + ): CurrentPositionLiftAttribute { // Implementation needs to be added here } - fun readCurrentPositionTiltAttribute(callback: CurrentPositionTiltAttributeCallback) { + suspend fun readCurrentPositionTiltAttribute(): CurrentPositionTiltAttribute { // Implementation needs to be added here } - fun subscribeCurrentPositionTiltAttribute( - callback: CurrentPositionTiltAttributeCallback, + suspend fun subscribeCurrentPositionTiltAttribute( minInterval: Int, maxInterval: Int - ) { + ): CurrentPositionTiltAttribute { // Implementation needs to be added here } - fun readNumberOfActuationsLiftAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfActuationsLiftAttribute(): UShort { // Implementation needs to be added here } - fun subscribeNumberOfActuationsLiftAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeNumberOfActuationsLiftAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readNumberOfActuationsTiltAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfActuationsTiltAttribute(): UShort { // Implementation needs to be added here } - fun subscribeNumberOfActuationsTiltAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeNumberOfActuationsTiltAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readConfigStatusAttribute(callback: IntegerAttributeCallback) { + suspend fun readConfigStatusAttribute(): UByte { // Implementation needs to be added here } - fun subscribeConfigStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeConfigStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readCurrentPositionLiftPercentageAttribute( - callback: CurrentPositionLiftPercentageAttributeCallback - ) { + suspend fun readCurrentPositionLiftPercentageAttribute(): CurrentPositionLiftPercentageAttribute { // Implementation needs to be added here } - fun subscribeCurrentPositionLiftPercentageAttribute( - callback: CurrentPositionLiftPercentageAttributeCallback, + suspend fun subscribeCurrentPositionLiftPercentageAttribute( minInterval: Int, maxInterval: Int - ) { + ): CurrentPositionLiftPercentageAttribute { // Implementation needs to be added here } - fun readCurrentPositionTiltPercentageAttribute( - callback: CurrentPositionTiltPercentageAttributeCallback - ) { + suspend fun readCurrentPositionTiltPercentageAttribute(): CurrentPositionTiltPercentageAttribute { // Implementation needs to be added here } - fun subscribeCurrentPositionTiltPercentageAttribute( - callback: CurrentPositionTiltPercentageAttributeCallback, + suspend fun subscribeCurrentPositionTiltPercentageAttribute( minInterval: Int, maxInterval: Int - ) { + ): CurrentPositionTiltPercentageAttribute { // Implementation needs to be added here } - fun readOperationalStatusAttribute(callback: IntegerAttributeCallback) { + suspend fun readOperationalStatusAttribute(): UByte { // Implementation needs to be added here } - fun subscribeOperationalStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOperationalStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readTargetPositionLiftPercent100thsAttribute( - callback: TargetPositionLiftPercent100thsAttributeCallback - ) { + suspend fun readTargetPositionLiftPercent100thsAttribute(): + TargetPositionLiftPercent100thsAttribute { // Implementation needs to be added here } - fun subscribeTargetPositionLiftPercent100thsAttribute( - callback: TargetPositionLiftPercent100thsAttributeCallback, + suspend fun subscribeTargetPositionLiftPercent100thsAttribute( minInterval: Int, maxInterval: Int - ) { + ): TargetPositionLiftPercent100thsAttribute { // Implementation needs to be added here } - fun readTargetPositionTiltPercent100thsAttribute( - callback: TargetPositionTiltPercent100thsAttributeCallback - ) { + suspend fun readTargetPositionTiltPercent100thsAttribute(): + TargetPositionTiltPercent100thsAttribute { // Implementation needs to be added here } - fun subscribeTargetPositionTiltPercent100thsAttribute( - callback: TargetPositionTiltPercent100thsAttributeCallback, + suspend fun subscribeTargetPositionTiltPercent100thsAttribute( minInterval: Int, maxInterval: Int - ) { + ): TargetPositionTiltPercent100thsAttribute { // Implementation needs to be added here } - fun readEndProductTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readEndProductTypeAttribute(): UByte { // Implementation needs to be added here } - fun subscribeEndProductTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEndProductTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readCurrentPositionLiftPercent100thsAttribute( - callback: CurrentPositionLiftPercent100thsAttributeCallback - ) { + suspend fun readCurrentPositionLiftPercent100thsAttribute(): + CurrentPositionLiftPercent100thsAttribute { // Implementation needs to be added here } - fun subscribeCurrentPositionLiftPercent100thsAttribute( - callback: CurrentPositionLiftPercent100thsAttributeCallback, + suspend fun subscribeCurrentPositionLiftPercent100thsAttribute( minInterval: Int, maxInterval: Int - ) { + ): CurrentPositionLiftPercent100thsAttribute { // Implementation needs to be added here } - fun readCurrentPositionTiltPercent100thsAttribute( - callback: CurrentPositionTiltPercent100thsAttributeCallback - ) { + suspend fun readCurrentPositionTiltPercent100thsAttribute(): + CurrentPositionTiltPercent100thsAttribute { // Implementation needs to be added here } - fun subscribeCurrentPositionTiltPercent100thsAttribute( - callback: CurrentPositionTiltPercent100thsAttributeCallback, + suspend fun subscribeCurrentPositionTiltPercent100thsAttribute( minInterval: Int, maxInterval: Int - ) { + ): CurrentPositionTiltPercent100thsAttribute { // Implementation needs to be added here } - fun readInstalledOpenLimitLiftAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstalledOpenLimitLiftAttribute(): UShort { // Implementation needs to be added here } - fun subscribeInstalledOpenLimitLiftAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInstalledOpenLimitLiftAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readInstalledClosedLimitLiftAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstalledClosedLimitLiftAttribute(): UShort { // Implementation needs to be added here } - fun subscribeInstalledClosedLimitLiftAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInstalledClosedLimitLiftAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readInstalledOpenLimitTiltAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstalledOpenLimitTiltAttribute(): UShort { // Implementation needs to be added here } - fun subscribeInstalledOpenLimitTiltAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInstalledOpenLimitTiltAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - fun readInstalledClosedLimitTiltAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstalledClosedLimitTiltAttribute(): UShort { // Implementation needs to be added here } - fun subscribeInstalledClosedLimitTiltAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInstalledClosedLimitTiltAttribute( minInterval: Int, maxInterval: Int - ) { + ): UShort { // Implementation needs to be added here } - fun readModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readModeAttribute(): UByte { // Implementation needs to be added here } - fun writeModeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeModeAttribute(value: UInt) { // Implementation needs to be added here } - fun writeModeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - fun readSafetyStatusAttribute(callback: IntegerAttributeCallback) { + suspend fun readSafetyStatusAttribute(): UShort { // Implementation needs to be added here } - fun subscribeSafetyStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSafetyStatusAttribute(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 = 258u + } } diff --git a/src/controller/java/zap-generated/CHIPClientCallbacks.h b/src/controller/java/zap-generated/CHIPClientCallbacks.h index 86e49bd6d3f36c..ed4ee39880b20d 100644 --- a/src/controller/java/zap-generated/CHIPClientCallbacks.h +++ b/src/controller/java/zap-generated/CHIPClientCallbacks.h @@ -210,8 +210,8 @@ typedef void (*UnitLocalizationEventListListAttributeCallback)(void * context, const chip::app::DataModel::DecodableList & data); typedef void (*UnitLocalizationAttributeListListAttributeCallback)( void * context, const chip::app::DataModel::DecodableList & data); -typedef void (*PowerSourceConfigurationSourcesListAttributeCallback)(void * context, - const chip::app::DataModel::DecodableList & data); +typedef void (*PowerSourceConfigurationSourcesListAttributeCallback)( + void * context, const chip::app::DataModel::DecodableList & data); typedef void (*PowerSourceConfigurationGeneratedCommandListListAttributeCallback)( void * context, const chip::app::DataModel::DecodableList & data); typedef void (*PowerSourceConfigurationAcceptedCommandListListAttributeCallback)( diff --git a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp index 910e775bf4a755..ffdfff59553ddf 100644 --- a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp +++ b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp @@ -7218,8 +7218,8 @@ CHIPPowerSourceConfigurationSourcesAttributeCallback::~CHIPPowerSourceConfigurat env->DeleteGlobalRef(javaCallbackRef); } -void CHIPPowerSourceConfigurationSourcesAttributeCallback::CallbackFn(void * context, - const chip::app::DataModel::DecodableList & list) +void CHIPPowerSourceConfigurationSourcesAttributeCallback::CallbackFn( + void * context, const chip::app::DataModel::DecodableList & list) { chip::DeviceLayer::StackUnlock unlock; CHIP_ERROR err = CHIP_NO_ERROR; diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index a6f7e0a5866742..788dbd7f9a1ab9 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -27821,7 +27821,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="measuredValue", Tag=0x00000000, Type=typing.Union[Nullable, int]), ClusterObjectFieldDescriptor(Label="minMeasuredValue", Tag=0x00000001, Type=typing.Union[Nullable, int]), ClusterObjectFieldDescriptor(Label="maxMeasuredValue", Tag=0x00000002, Type=typing.Union[Nullable, int]), - ClusterObjectFieldDescriptor(Label="tolerance", Tag=0x00000003, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="tolerance", Tag=0x00000003, Type=typing.Optional[int]), ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="eventList", Tag=0x0000FFFA, Type=typing.List[uint]), @@ -27833,7 +27833,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: measuredValue: 'typing.Union[Nullable, int]' = None minMeasuredValue: 'typing.Union[Nullable, int]' = None maxMeasuredValue: 'typing.Union[Nullable, int]' = None - tolerance: 'typing.Optional[uint]' = None + tolerance: 'typing.Optional[int]' = None generatedCommandList: 'typing.List[uint]' = None acceptedCommandList: 'typing.List[uint]' = None eventList: 'typing.List[uint]' = None @@ -27902,9 +27902,9 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[int]) - value: 'typing.Optional[uint]' = None + value: 'typing.Optional[int]' = None @dataclass class GeneratedCommandList(ClusterAttributeDescriptor): diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm index 2b93126e5f90af..dccc553914815f 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm @@ -1830,7 +1830,7 @@ static id _Nullable DecodeAttributeValueForPowerSourceConfigurationCluster(Attri while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); NSNumber * newElement_0; - newElement_0 = [NSNumber numberWithUnsignedChar:entry_0]; + newElement_0 = [NSNumber numberWithUnsignedShort:entry_0]; [array_0 addObject:newElement_0]; } CHIP_ERROR err = iter_0.GetStatus(); @@ -10019,7 +10019,7 @@ static id _Nullable DecodeAttributeValueForTemperatureMeasurementCluster(Attribu return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedShort:cppValue]; + value = [NSNumber numberWithShort:cppValue]; return value; } default: { diff --git a/src/lib/shell/streamer_esp32.cpp b/src/lib/shell/streamer_esp32.cpp index 5f71279a0cc0bc..c92170ec730812 100644 --- a/src/lib/shell/streamer_esp32.cpp +++ b/src/lib/shell/streamer_esp32.cpp @@ -95,8 +95,8 @@ int streamer_esp32_init(streamer_t * streamer) esp_vfs_dev_uart_register(); #endif // CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG esp_console_config_t console_config = { - .max_cmdline_length = 256, - .max_cmdline_args = 32, + .max_cmdline_length = CONFIG_CHIP_SHELL_CMD_LINE_BUF_MAX_LENGTH, + .max_cmdline_args = CONFIG_CHIP_SHELL_CMD_LINE_ARG_MAX_COUNT, }; ESP_ERROR_CHECK(esp_console_init(&console_config)); linenoiseSetMultiLine(1); diff --git a/third_party/imgui/repo b/third_party/imgui/repo index 001f102f3871a1..88fec097158867 160000 --- a/third_party/imgui/repo +++ b/third_party/imgui/repo @@ -1 +1 @@ -Subproject commit 001f102f3871a175a2b83b6ef99babab7d579a1d +Subproject commit 88fec097158867edf7753fe0d842d23d67e7966d diff --git a/third_party/libwebsockets/repo b/third_party/libwebsockets/repo index a1cbc02aeb2830..816544f1d6d05c 160000 --- a/third_party/libwebsockets/repo +++ b/third_party/libwebsockets/repo @@ -1 +1 @@ -Subproject commit a1cbc02aeb28303a22781f3a37730fefbf2d6fce +Subproject commit 816544f1d6d05cfa5d9fa5875f38e218c56285b3 diff --git a/third_party/ot-br-posix/repo b/third_party/ot-br-posix/repo index 69ce2a57f59142..184d2982d28c28 160000 --- a/third_party/ot-br-posix/repo +++ b/third_party/ot-br-posix/repo @@ -1 +1 @@ -Subproject commit 69ce2a57f59142d705f29757721653e0b32610db +Subproject commit 184d2982d28c289420df74453b941cce93e297a8 diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp index 16156072f9af85..a47101fcb38ed2 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp @@ -17826,7 +17826,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } EmberAfStatus SetNull(chip::EndpointId endpoint) @@ -17835,7 +17835,7 @@ EmberAfStatus SetNull(chip::EndpointId endpoint) Traits::StorageType value; Traits::SetNull(value); uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) @@ -17879,7 +17879,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } EmberAfStatus SetNull(chip::EndpointId endpoint) @@ -17888,7 +17888,7 @@ EmberAfStatus SetNull(chip::EndpointId endpoint) Traits::StorageType value; Traits::SetNull(value); uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) @@ -17932,7 +17932,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } EmberAfStatus SetNull(chip::EndpointId endpoint) @@ -17941,7 +17941,7 @@ EmberAfStatus SetNull(chip::EndpointId endpoint) Traits::StorageType value; Traits::SetNull(value); uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) @@ -17958,9 +17958,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullabl namespace Tolerance { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, readable, sizeof(temp)); @@ -17972,9 +17972,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -17982,7 +17982,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace Tolerance diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h index 0012a1ac2dc277..c7b8c30dcfc5c6 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h @@ -3148,29 +3148,29 @@ namespace TemperatureMeasurement { namespace Attributes { namespace MeasuredValue { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); EmberAfStatus SetNull(chip::EndpointId endpoint); EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); } // namespace MeasuredValue namespace MinMeasuredValue { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); EmberAfStatus SetNull(chip::EndpointId endpoint); EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); } // namespace MinMeasuredValue namespace MaxMeasuredValue { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); EmberAfStatus SetNull(chip::EndpointId endpoint); EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); } // namespace MaxMeasuredValue namespace Tolerance { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature +EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace Tolerance namespace FeatureMap { diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h index 4f85e537c08d68..a32dc77e19d875 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h @@ -6128,9 +6128,9 @@ namespace Attributes { namespace Sources { struct TypeInfo { - using Type = chip::app::DataModel::List; - using DecodableType = chip::app::DataModel::DecodableList; - using DecodableArgType = const chip::app::DataModel::DecodableList &; + using Type = chip::app::DataModel::List; + using DecodableType = chip::app::DataModel::DecodableList; + using DecodableArgType = const chip::app::DataModel::DecodableList &; static constexpr ClusterId GetClusterId() { return Clusters::PowerSourceConfiguration::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::Sources::Id; } @@ -25204,9 +25204,9 @@ struct TypeInfo namespace Tolerance { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = int16_t; + using DecodableType = int16_t; + using DecodableArgType = int16_t; static constexpr ClusterId GetClusterId() { return Clusters::TemperatureMeasurement::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; } @@ -25261,7 +25261,7 @@ struct TypeInfo Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue; Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue; Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue; - Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); + Attributes::Tolerance::TypeInfo::DecodableType tolerance = static_cast(0); Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; Attributes::EventList::TypeInfo::DecodableType eventList; diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h index 92984055f5ba5d..62932be1aef34f 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h @@ -12972,7 +12972,7 @@ void registerClusterPowerSourceConfiguration(Commands & commands, CredentialIssu make_unique(Id, "feature-map", Attributes::FeatureMap::Id, credsIssuerConfig), // make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), // make_unique>(Id, credsIssuerConfig), // - make_unique>>( + make_unique>>( Id, "sources", Attributes::Sources::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, @@ -18211,8 +18211,8 @@ void registerClusterTemperatureMeasurement(Commands & commands, CredentialIssuer make_unique>>(Id, "max-measured-value", INT16_MIN, INT16_MAX, Attributes::MaxMeasuredValue::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // - make_unique>(Id, "tolerance", 0, UINT16_MAX, Attributes::Tolerance::Id, - WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>(Id, "tolerance", INT16_MIN, INT16_MAX, Attributes::Tolerance::Id, + WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp index 358aff6576ef5a..a3d89b6e2b34c2 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp +++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp @@ -6174,7 +6174,7 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP switch (path.mAttributeId) { case PowerSourceConfiguration::Attributes::Sources::Id: { - chip::app::DataModel::DecodableList value; + chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("Sources", 1, value); } @@ -10594,7 +10594,7 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP return DataModelLogger::LogValue("MaxMeasuredValue", 1, value); } case TemperatureMeasurement::Attributes::Tolerance::Id: { - uint16_t value; + int16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("Tolerance", 1, value); } diff --git a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h index 5cce9bf5cd4a62..fe9d1ee034da7c 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -93594,7 +93594,7 @@ class Test_TC_TMP_2_1 : public TestCommandBridge { if (value != nil) { - VerifyOrReturn(CheckConstraintType("minMeasuredValue", "int16s", "int16s")); + VerifyOrReturn(CheckConstraintType("minMeasuredValue", "temperature", "int16s")); VerifyOrReturn(CheckConstraintMinValue("minMeasuredValue", [value shortValue], -27315)); VerifyOrReturn(CheckConstraintMaxValue("minMeasuredValue", [value shortValue], 32766)); } @@ -93623,7 +93623,7 @@ class Test_TC_TMP_2_1 : public TestCommandBridge { if (value != nil) { - VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "int16s", "int16s")); + VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "temperature", "int16s")); VerifyOrReturn(CheckConstraintMinValue("maxMeasuredValue", [value shortValue], CurrentMinMeasured)); VerifyOrReturn(CheckConstraintMaxValue("maxMeasuredValue", [value shortValue], 32767)); } @@ -93651,7 +93651,7 @@ class Test_TC_TMP_2_1 : public TestCommandBridge { if (value != nil) { - VerifyOrReturn(CheckConstraintType("measuredValue", "int16s", "int16s")); + VerifyOrReturn(CheckConstraintType("measuredValue", "temperature", "int16s")); VerifyOrReturn(CheckConstraintMinValue("measuredValue", [value shortValue], CurrentMinMeasured)); VerifyOrReturn(CheckConstraintMaxValue("measuredValue", [value shortValue], CurrentMaxMeasured)); } @@ -93674,9 +93674,9 @@ class Test_TC_TMP_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("tolerance", "int16u", "int16u")); - VerifyOrReturn(CheckConstraintMinValue("tolerance", [value unsignedShortValue], 0U)); - VerifyOrReturn(CheckConstraintMaxValue("tolerance", [value unsignedShortValue], 2048U)); + VerifyOrReturn(CheckConstraintType("tolerance", "temperature", "int16u")); + VerifyOrReturn(CheckConstraintMinValue("tolerance", [value shortValue], 0)); + VerifyOrReturn(CheckConstraintMaxValue("tolerance", [value shortValue], 2048)); NextTest(); }];