From a7565c5066cfa2c9a9fe971cdefafd91fb8be0be Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 12:59:39 +0000 Subject: [PATCH 01/11] Bump third_party/imgui/repo from `001f102` to `88fec09` (#30086) Bumps [third_party/imgui/repo](https://github.com/ocornut/imgui) from `001f102` to `88fec09`. - [Release notes](https://github.com/ocornut/imgui/releases) - [Commits](https://github.com/ocornut/imgui/compare/001f102f3871a175a2b83b6ef99babab7d579a1d...88fec097158867edf7753fe0d842d23d67e7966d) --- updated-dependencies: - dependency-name: third_party/imgui/repo dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- third_party/imgui/repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 8fdf5f1930162bd0a786ea7627be763c9170c50c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 12:59:55 +0000 Subject: [PATCH 02/11] Bump third_party/libwebsockets/repo from `a1cbc02` to `816544f` (#30083) Bumps [third_party/libwebsockets/repo](https://github.com/warmcat/libwebsockets) from `a1cbc02` to `816544f`. - [Commits](https://github.com/warmcat/libwebsockets/compare/a1cbc02aeb28303a22781f3a37730fefbf2d6fce...816544f1d6d05cfa5d9fa5875f38e218c56285b3) --- updated-dependencies: - dependency-name: third_party/libwebsockets/repo dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- third_party/libwebsockets/repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 6394d3e4986718cad0b509d7a1ae173a81d5d63f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 09:00:08 -0400 Subject: [PATCH 03/11] Bump third_party/ot-br-posix/repo from `69ce2a5` to `184d298` (#30084) Bumps [third_party/ot-br-posix/repo](https://github.com/openthread/ot-br-posix) from `69ce2a5` to `184d298`. - [Release notes](https://github.com/openthread/ot-br-posix/releases) - [Commits](https://github.com/openthread/ot-br-posix/compare/69ce2a57f59142d705f29757721653e0b32610db...184d2982d28c289420df74453b941cce93e297a8) --- updated-dependencies: - dependency-name: third_party/ot-br-posix/repo dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- third_party/ot-br-posix/repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 6c024ee467b0467d918c111526c1141e63092dfa Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 30 Oct 2023 09:59:10 -0400 Subject: [PATCH 04/11] Make `Power source configuration cluster` match the spec (minor type change) (#30062) * Type of sources should be endpoint_no instead of raw int8u * Zap regen --- .../all-clusters-common/all-clusters-app.matter | 2 +- .../data-model/chip/power-source-configuration-cluster.xml | 2 +- src/controller/data_model/controller-clusters.matter | 2 +- src/controller/java/zap-generated/CHIPClientCallbacks.h | 4 ++-- src/controller/java/zap-generated/CHIPReadCallbacks.cpp | 4 ++-- .../CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm | 2 +- .../app-common/app-common/zap-generated/cluster-objects.h | 6 +++--- zzz_generated/chip-tool/zap-generated/cluster/Commands.h | 2 +- .../zap-generated/cluster/logging/DataModelLogger.cpp | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 817358feb53ac2..51fd32910ae167 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 @@ -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; 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/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index ac1a41fba7c22c..fc1d1b2a9658ba 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -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; diff --git a/src/controller/java/zap-generated/CHIPClientCallbacks.h b/src/controller/java/zap-generated/CHIPClientCallbacks.h index 76f215309f6705..30c2b580433cd9 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 23ceb0dfcdfa32..f71fce0e5c8de4 100644 --- a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp +++ b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp @@ -7193,8 +7193,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/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm index 5ce56aaa434625..0d2a197ad2cdda 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(); 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 e0ded3fa26632b..53ad0bc00adb44 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; } diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h index 8b0b717eb30aae..0dfa96f5ed563d 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h @@ -12870,7 +12870,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, 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 037fd3a4af6e9b..820f5680f25761 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); } From dd920f214ab1a8f1ec22e0038dbd817c24f531bb Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 30 Oct 2023 10:14:57 -0400 Subject: [PATCH 05/11] Make `Localization Configuration Cluster` match the spec (#30058) * Switch XML to get manage privilege for activeLocale write * ZAP regen --- .../all-clusters-common/all-clusters-app.matter | 2 +- .../all-clusters-common/all-clusters-minimal-app.matter | 2 +- examples/bridge-app/bridge-common/bridge-app.matter | 2 +- .../devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter | 2 +- .../chef/devices/rootnode_airqualitysensor_e63187f6c9.matter | 2 +- .../chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter | 2 +- .../chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter | 2 +- .../chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter | 2 +- examples/chef/devices/rootnode_dishwasher_cc105034fe.matter | 2 +- examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter | 2 +- .../devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter | 2 +- examples/chef/devices/rootnode_fan_7N2TobIlOX.matter | 2 +- examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter | 2 +- .../devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter | 2 +- .../chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter | 2 +- .../chef/devices/rootnode_laundrywasher_fb10d238c8.matter | 2 +- examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter | 2 +- .../chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter | 2 +- examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter | 2 +- examples/chef/devices/rootnode_onofflight_samplemei.matter | 2 +- .../chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter | 2 +- .../chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter | 2 +- .../chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter | 2 +- examples/chef/devices/rootnode_pump_5f904818cc.matter | 2 +- examples/chef/devices/rootnode_pump_a811bb33a0.matter | 2 +- ...ledcabinet_temperaturecontrolledcabinet_ffdb696680.matter | 2 +- examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter | 2 +- .../devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter | 2 +- examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter | 2 +- .../chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter | 2 +- .../contact-sensor-common/contact-sensor-app.matter | 2 +- .../dishwasher-app/dishwasher-common/dishwasher-app.matter | 2 +- .../light-switch-common/light-switch-app.matter | 2 +- .../bouffalolab/data_model/lighting-app-ethernet.matter | 2 +- .../bouffalolab/data_model/lighting-app-thread.matter | 2 +- .../bouffalolab/data_model/lighting-app-wifi.matter | 2 +- examples/lighting-app/lighting-common/lighting-app.matter | 2 +- .../silabs/data_model/lighting-thread-app.matter | 2 +- .../lighting-app/silabs/data_model/lighting-wifi-app.matter | 2 +- examples/lock-app/lock-common/lock-app.matter | 2 +- .../ota-provider-common/ota-provider-app.matter | 2 +- .../ota-requestor-common/ota-requestor-app.matter | 2 +- examples/placeholder/linux/apps/app1/config.matter | 4 ++-- examples/placeholder/linux/apps/app2/config.matter | 2 +- .../refrigerator-common/refrigerator-app.matter | 2 +- .../resource-monitoring-app.matter | 2 +- .../smoke-co-alarm-common/smoke-co-alarm-app.matter | 2 +- .../temperature-measurement.matter | 2 +- examples/thermostat/nxp/zap/thermostat_matter_thread.matter | 2 +- examples/thermostat/nxp/zap/thermostat_matter_wifi.matter | 2 +- examples/thermostat/thermostat-common/thermostat.matter | 2 +- examples/tv-app/tv-common/tv-app.matter | 2 +- .../tv-casting-app/tv-casting-common/tv-casting-app.matter | 2 +- .../virtual-device-common/virtual-device-app.matter | 2 +- examples/window-app/common/window-app.matter | 2 +- .../tests/outputs/all-clusters-app/app-templates/access.h | 3 +++ .../zap/tests/outputs/lighting-app/app-templates/access.h | 3 +++ .../data-model/chip/localization-configuration-cluster.xml | 5 ++++- src/controller/data_model/controller-clusters.matter | 2 +- 59 files changed, 67 insertions(+), 58 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 51fd32910ae167..dba512b0bd986c 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; 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..9253007d08e616 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; diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter index f0d2924b7cae14..4b6e552b10cc92 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; 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_airqualitysensor_e63187f6c9.matter b/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter index 0ad1f526250985..38eda3781d4801 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; 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..dcccce26d70827 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; 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..7f88ae608aeabf 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; diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter index f40c788dcde83b..b34d514d77fd7a 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; 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/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/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/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index 056976a11f7684..bf42f6c10610c6 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; diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index 76bf39117b7fb4..ffb7febbab9470 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; 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/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..d7d7e77f8c931a 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; 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/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/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/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index fc1d1b2a9658ba..6e5b4327b8c240 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; From 268951cc191783b08705c9b3fd2b97d34a257355 Mon Sep 17 00:00:00 2001 From: adabreuti <76965454+adabreuti@users.noreply.github.com> Date: Mon, 30 Oct 2023 09:47:19 -0500 Subject: [PATCH 06/11] [TI] Feature ti sysconfig 1 16 2 update (#30073) * Update README Files to reference latest SYSCONFIG Version * Update Sysconfig version for CI * Update docker version --- examples/all-clusters-app/cc13x2x7_26x2x7/README.md | 10 +++++----- examples/all-clusters-app/cc13x4_26x4/README.md | 12 ++++++------ examples/lighting-app/cc13x2x7_26x2x7/README.md | 12 ++++++------ examples/lighting-app/cc13x4_26x4/README.md | 12 ++++++------ examples/lock-app/cc13x2x7_26x2x7/README.md | 12 ++++++------ examples/lock-app/cc13x4_26x4/README.md | 12 ++++++------ .../persistent-storage/cc13x2x7_26x2x7/README.md | 4 ++-- examples/pump-app/cc13x2x7_26x2x7/README.md | 12 ++++++------ examples/pump-app/cc13x4_26x4/README.md | 12 ++++++------ .../pump-controller-app/cc13x2x7_26x2x7/README.md | 12 ++++++------ examples/pump-controller-app/cc13x4_26x4/README.md | 12 ++++++------ examples/shell/cc13x2x7_26x2x7/README.md | 12 ++++++------ examples/shell/cc13x4_26x4/README.md | 12 ++++++------ integrations/docker/images/base/chip-build/version | 2 +- .../docker/images/stage-2/chip-build-ti/Dockerfile | 8 ++++---- .../images/vscode/chip-build-vscode/Dockerfile | 4 ++-- 16 files changed, 80 insertions(+), 80 deletions(-) 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/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/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/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/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-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/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/integrations/docker/images/base/chip-build/version b/integrations/docker/images/base/chip-build/version index 70c0f8738d6b29..d9efef43fe6d6d 100644 --- a/integrations/docker/images/base/chip-build/version +++ b/integrations/docker/images/base/chip-build/version @@ -1 +1 @@ -22 : [Telink] Cleanup Docker image +23 : [TI] Update Sysconfig version 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..fbe5986187ca6d 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,7 +120,7 @@ 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_TOOLCHAIN_VARIANT=gnuarmemb From 1d28109748c82c350ad2a000f121a329930979f9 Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Mon, 30 Oct 2023 10:04:29 -0700 Subject: [PATCH 07/11] [Kotlin] Uses Kotlin's coroutines to handle the asynchronous operation and returns the result directly (#30082) * Update the kotlin type mapping * Remove callback from fun --- .../generators/kotlin/MatterClusters.jinja | 119 +- .../matter_idl/generators/kotlin/__init__.py | 68 +- .../cluster/clusters/AccessControlCluster.kt | 157 +- .../cluster/clusters/AccountLoginCluster.kt | 113 +- .../cluster/clusters/ActionsCluster.kt | 278 +-- .../ActivatedCarbonFilterMonitoringCluster.kt | 168 +- .../AdministratorCommissioningCluster.kt | 149 +- .../cluster/clusters/AirQualityCluster.kt | 93 +- .../clusters/ApplicationBasicCluster.kt | 163 +- .../clusters/ApplicationLauncherCluster.kt | 169 +- .../cluster/clusters/AudioOutputCluster.kt | 129 +- .../clusters/BallastConfigurationCluster.kt | 312 +-- .../cluster/clusters/BarrierControlCluster.kt | 229 +- .../clusters/BasicInformationCluster.kt | 301 +-- .../clusters/BinaryInputBasicCluster.kt | 205 +- .../cluster/clusters/BindingCluster.kt | 114 +- .../cluster/clusters/BooleanStateCluster.kt | 93 +- .../BridgedDeviceBasicInformationCluster.kt | 228 +- ...nDioxideConcentrationMeasurementCluster.kt | 207 +- ...MonoxideConcentrationMeasurementCluster.kt | 207 +- .../cluster/clusters/ChannelCluster.kt | 176 +- .../cluster/clusters/ColorControlCluster.kt | 1180 +++------ .../clusters/ContentLauncherCluster.kt | 151 +- .../cluster/clusters/DescriptorCluster.kt | 164 +- .../cluster/clusters/DiagnosticLogsCluster.kt | 122 +- .../clusters/DishwasherAlarmCluster.kt | 119 +- .../cluster/clusters/DishwasherModeCluster.kt | 175 +- .../cluster/clusters/DoorLockCluster.kt | 873 +++---- .../clusters/ElectricalMeasurementCluster.kt | 1168 +++------ .../EthernetNetworkDiagnosticsCluster.kt | 187 +- .../cluster/clusters/FanControlCluster.kt | 273 +- .../cluster/clusters/FaultInjectionCluster.kt | 129 +- .../cluster/clusters/FixedLabelCluster.kt | 101 +- .../clusters/FlowMeasurementCluster.kt | 138 +- ...aldehydeConcentrationMeasurementCluster.kt | 207 +- .../clusters/GeneralCommissioningCluster.kt | 213 +- .../clusters/GeneralDiagnosticsCluster.kt | 211 +- .../clusters/GroupKeyManagementCluster.kt | 208 +- .../cluster/clusters/GroupsCluster.kt | 177 +- .../clusters/HepaFilterMonitoringCluster.kt | 167 +- .../cluster/clusters/IcdManagementCluster.kt | 197 +- .../cluster/clusters/IdentifyCluster.kt | 132 +- .../clusters/IlluminanceMeasurementCluster.kt | 153 +- .../cluster/clusters/KeypadInputCluster.kt | 99 +- .../clusters/LaundryWasherControlsCluster.kt | 154 +- .../clusters/LaundryWasherModeCluster.kt | 175 +- .../cluster/clusters/LevelControlCluster.kt | 481 ++-- .../LocalizationConfigurationCluster.kt | 116 +- .../cluster/clusters/LowPowerCluster.kt | 93 +- .../cluster/clusters/MediaInputCluster.kt | 138 +- .../cluster/clusters/MediaPlaybackCluster.kt | 258 +- .../cluster/clusters/ModeSelectCluster.kt | 188 +- .../clusters/NetworkCommissioningCluster.kt | 361 +-- ...nDioxideConcentrationMeasurementCluster.kt | 207 +- .../clusters/OccupancySensingCluster.kt | 259 +- .../cluster/clusters/OnOffCluster.kt | 209 +- .../OnOffSwitchConfigurationCluster.kt | 109 +- .../clusters/OperationalCredentialsCluster.kt | 278 +-- .../clusters/OperationalStateCluster.kt | 211 +- .../OtaSoftwareUpdateProviderCluster.kt | 179 +- .../OtaSoftwareUpdateRequestorCluster.kt | 176 +- .../OzoneConcentrationMeasurementCluster.kt | 207 +- .../Pm10ConcentrationMeasurementCluster.kt | 207 +- .../Pm1ConcentrationMeasurementCluster.kt | 207 +- .../Pm25ConcentrationMeasurementCluster.kt | 207 +- .../cluster/clusters/PowerSourceCluster.kt | 425 +--- .../PowerSourceConfigurationCluster.kt | 101 +- .../clusters/PressureMeasurementCluster.kt | 199 +- .../clusters/ProxyConfigurationCluster.kt | 85 +- .../cluster/clusters/ProxyDiscoveryCluster.kt | 85 +- .../cluster/clusters/ProxyValidCluster.kt | 85 +- .../clusters/PulseWidthModulationCluster.kt | 85 +- .../PumpConfigurationAndControlCluster.kt | 431 +--- .../RadonConcentrationMeasurementCluster.kt | 207 +- .../clusters/RefrigeratorAlarmCluster.kt | 101 +- ...TemperatureControlledCabinetModeCluster.kt | 181 +- .../RelativeHumidityMeasurementCluster.kt | 138 +- .../cluster/clusters/RvcCleanModeCluster.kt | 152 +- .../clusters/RvcOperationalStateCluster.kt | 213 +- .../cluster/clusters/RvcRunModeCluster.kt | 152 +- .../cluster/clusters/SampleMeiCluster.kt | 130 +- .../cluster/clusters/ScenesCluster.kt | 433 ++-- .../cluster/clusters/SmokeCoAlarmCluster.kt | 204 +- .../clusters/SoftwareDiagnosticsCluster.kt | 134 +- .../cluster/clusters/SwitchCluster.kt | 109 +- .../clusters/TargetNavigatorCluster.kt | 133 +- .../clusters/TemperatureControlCluster.kt | 162 +- .../clusters/TemperatureMeasurementCluster.kt | 138 +- .../cluster/clusters/ThermostatCluster.kt | 850 ++----- ...mostatUserInterfaceConfigurationCluster.kt | 134 +- .../ThreadNetworkDiagnosticsCluster.kt | 746 ++---- .../clusters/TimeFormatLocalizationCluster.kt | 132 +- .../clusters/TimeSynchronizationCluster.kt | 313 +-- ...ompoundsConcentrationMeasurementCluster.kt | 207 +- .../clusters/UnitLocalizationCluster.kt | 101 +- .../cluster/clusters/UnitTestingCluster.kt | 2186 +++++------------ .../cluster/clusters/UserLabelCluster.kt | 109 +- .../cluster/clusters/WakeOnLanCluster.kt | 93 +- .../clusters/WiFiNetworkDiagnosticsCluster.kt | 286 +-- .../cluster/clusters/WindowCoveringCluster.kt | 399 +-- 100 files changed, 7129 insertions(+), 17152 deletions(-) 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..2562d5faf2245b 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,84 @@ 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() -%} +{%- if not command.is_timed_invoke %} + 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 -%} +{%- endif -%} + ) +{%- if command | hasResponse -%} + : {{callbackName}} { +{%- else %} { +{%- endif %} + // Implementation needs to be added here + } +{%- endif %} + + 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) +{%- else -%} + timedInvokeTimeoutMs: Int) +{%- endif -%} +{%- if command | hasResponse -%} + : {{callbackName}} { +{%- else %} { +{%- endif %} + // Implementation needs to be added here + } +{% 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 +147,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 +161,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..0650d8c1b5e080 100644 --- a/scripts/py_matter_idl/matter_idl/generators/kotlin/__init__.py +++ b/scripts/py_matter_idl/matter_idl/generators/kotlin/__init__.py @@ -212,9 +212,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 +404,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 +418,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 +583,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 +622,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/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..bb31661959c92c 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(): Integer { // Implementation needs to be added here } - fun subscribeSubjectsPerAccessControlEntryAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeSubjectsPerAccessControlEntryAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readTargetsPerAccessControlEntryAttribute(callback: IntegerAttributeCallback) { + suspend fun readTargetsPerAccessControlEntryAttribute(): Integer { // Implementation needs to be added here } - fun subscribeTargetsPerAccessControlEntryAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeTargetsPerAccessControlEntryAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readAccessControlEntriesPerFabricAttribute(callback: IntegerAttributeCallback) { + suspend fun readAccessControlEntriesPerFabricAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAccessControlEntriesPerFabricAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAccessControlEntriesPerFabricAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..5c7ee571556c36 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,89 @@ 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) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) - fun login( - callback: DefaultClusterCallback, + suspend fun getSetupPIN( tempAccountIdentifier: String, - setupPIN: String, timedInvokeTimeoutMs: Int - ) { + ): GetSetupPINResponse { // Implementation needs to be added here } - fun logout(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun login(tempAccountIdentifier: String, setupPIN: String, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - interface GetSetupPINResponseCallback { - fun onSuccess(setupPIN: String) - - 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) + suspend fun logout(timedInvokeTimeoutMs: Int) { + // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..112a217dfa2bba 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,231 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class ActionsCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 37u - } + class ActionListAttribute(val value: ArrayList) + + class EndpointListsAttribute(val value: ArrayList) + + class GeneratedCommandListAttribute(val value: ArrayList) - fun instantAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun instantAction(actionID: UShort, invokeID: UInt?) { // Implementation needs to be added here } - fun instantAction( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - timedInvokeTimeoutMs: Int - ) { + suspend fun instantAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun instantActionWithTransition( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - transitionTime: Integer + suspend fun instantActionWithTransition( + actionID: UShort, + invokeID: UInt?, + transitionTime: UShort ) { // Implementation needs to be added here } - fun instantActionWithTransition( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - transitionTime: Integer, + suspend fun instantActionWithTransition( + actionID: UShort, + invokeID: UInt?, + transitionTime: UShort, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun startAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + suspend fun startAction(actionID: UShort, invokeID: UInt?) { // Implementation needs to be added here } - fun startAction( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - timedInvokeTimeoutMs: Int - ) { + suspend fun startAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun startActionWithDuration( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - duration: Long - ) { + suspend fun startActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt) { // Implementation needs to be added here } - fun startActionWithDuration( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - duration: Long, + suspend fun startActionWithDuration( + actionID: UShort, + invokeID: UInt?, + duration: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun stopAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + suspend fun stopAction(actionID: UShort, invokeID: UInt?) { // Implementation needs to be added here } - fun stopAction( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - timedInvokeTimeoutMs: Int - ) { + suspend fun stopAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun pauseAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + suspend fun pauseAction(actionID: UShort, invokeID: UInt?) { // Implementation needs to be added here } - fun pauseAction( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - timedInvokeTimeoutMs: Int - ) { + suspend fun pauseAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun pauseActionWithDuration( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - duration: Long - ) { + suspend fun pauseActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt) { // Implementation needs to be added here } - fun pauseActionWithDuration( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - duration: Long, + suspend fun pauseActionWithDuration( + actionID: UShort, + invokeID: UInt?, + duration: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun resumeAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + suspend fun resumeAction(actionID: UShort, invokeID: UInt?) { // Implementation needs to be added here } - fun resumeAction( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - timedInvokeTimeoutMs: Int - ) { + suspend fun resumeAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun enableAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + suspend fun enableAction(actionID: UShort, invokeID: UInt?) { // Implementation needs to be added here } - fun enableAction( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - timedInvokeTimeoutMs: Int - ) { + suspend fun enableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun enableActionWithDuration( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - duration: Long - ) { + suspend fun enableActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt) { // Implementation needs to be added here } - fun enableActionWithDuration( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - duration: Long, + suspend fun enableActionWithDuration( + actionID: UShort, + invokeID: UInt?, + duration: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun disableAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + suspend fun disableAction(actionID: UShort, invokeID: UInt?) { // Implementation needs to be added here } - fun disableAction( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - timedInvokeTimeoutMs: Int - ) { + suspend fun disableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun disableActionWithDuration( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - duration: Long - ) { + suspend fun disableActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt) { // Implementation needs to be added here } - fun disableActionWithDuration( - callback: DefaultClusterCallback, - actionID: Integer, - invokeID: Long?, - duration: Long, + suspend fun disableActionWithDuration( + actionID: UShort, + invokeID: UInt?, + duration: UInt, 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) { + suspend fun readActionListAttribute(): ActionListAttribute { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..9f093fa13923f5 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) + class LastChangedTimeAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ReplacementProductListAttributeCallback { - fun onSuccess( - value: ArrayList? - ) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class ReplacementProductListAttribute( + 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) - } + 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 resetCondition() { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resetCondition(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - fun readConditionAttribute(callback: IntegerAttributeCallback) { + suspend fun readConditionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeConditionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDegradationDirectionAttribute(callback: IntegerAttributeCallback) { + suspend fun readDegradationDirectionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDegradationDirectionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readChangeIndicationAttribute(callback: IntegerAttributeCallback) { + suspend fun readChangeIndicationAttribute(): Integer { // Implementation needs to be added here } - fun subscribeChangeIndicationAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..bd60ac30b9f4e1 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,128 @@ 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?) + + class AdminVendorIdAttribute(val value: UShort?) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) - fun openCommissioningWindow( - callback: DefaultClusterCallback, - commissioningTimeout: Integer, + class AttributeListAttribute(val value: ArrayList) + + suspend fun openCommissioningWindow( + commissioningTimeout: UShort, PAKEPasscodeVerifier: ByteArray, - discriminator: Integer, - iterations: Long, + discriminator: UShort, + iterations: UInt, salt: ByteArray, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun openBasicCommissioningWindow( - callback: DefaultClusterCallback, - commissioningTimeout: Integer, + suspend fun openBasicCommissioningWindow( + commissioningTimeout: UShort, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun revokeCommissioning(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun revokeCommissioning(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - interface AdminFabricIndexAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - 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) - } - - 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 readWindowStatusAttribute(callback: IntegerAttributeCallback) { + suspend fun readWindowStatusAttribute(): Integer { // Implementation needs to be added here } - fun subscribeWindowStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWindowStatusAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..4a88ec4d147938 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(): Integer { // Implementation needs to be added here } - fun subscribeAirQualityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAirQualityAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..d02e2dacd7dd53 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(): Integer { // Implementation needs to be added here } - fun subscribeVendorIDAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeProductIDAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..8da3f1866530fc 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,154 @@ 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?) + + class CatalogListAttribute(val value: ArrayList?) + + class CurrentAppAttribute(val value: ChipStructs.ApplicationLauncherClusterApplicationEPStruct?) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) - fun launchApp( - callback: LauncherResponseCallback, + class AttributeListAttribute(val value: ArrayList) + + suspend fun launchApp( application: ChipStructs.ApplicationLauncherClusterApplicationStruct?, data: ByteArray? - ) { + ): LauncherResponse { // Implementation needs to be added here } - fun launchApp( - callback: LauncherResponseCallback, + suspend fun launchApp( application: ChipStructs.ApplicationLauncherClusterApplicationStruct?, data: ByteArray?, timedInvokeTimeoutMs: Int - ) { + ): LauncherResponse { // Implementation needs to be added here } - fun stopApp( - callback: LauncherResponseCallback, + suspend fun stopApp( application: ChipStructs.ApplicationLauncherClusterApplicationStruct? - ) { + ): LauncherResponse { // Implementation needs to be added here } - fun stopApp( - callback: LauncherResponseCallback, + suspend fun stopApp( application: ChipStructs.ApplicationLauncherClusterApplicationStruct?, timedInvokeTimeoutMs: Int - ) { + ): LauncherResponse { // Implementation needs to be added here } - fun hideApp( - callback: LauncherResponseCallback, + suspend fun hideApp( application: ChipStructs.ApplicationLauncherClusterApplicationStruct? - ) { + ): LauncherResponse { // Implementation needs to be added here } - fun hideApp( - callback: LauncherResponseCallback, + suspend fun hideApp( application: ChipStructs.ApplicationLauncherClusterApplicationStruct?, timedInvokeTimeoutMs: Int - ) { + ): LauncherResponse { // 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) - } - - interface CurrentAppAttributeCallback { - fun onSuccess(value: ChipStructs.ApplicationLauncherClusterApplicationEPStruct?) - - 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 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..901b65d253a1e2 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) { + // Implementation needs to be added here } - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun selectOutput(index: UByte, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun renameOutput(index: UByte, name: String) { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun renameOutput(index: UByte, name: String, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - 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(): Integer { // Implementation needs to be added here } - fun subscribeCurrentOutputAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentOutputAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..f931c4c1be0ead 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(): Integer { // Implementation needs to be added here } - fun subscribePhysicalMinLevelAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePhysicalMinLevelAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPhysicalMaxLevelAttribute(callback: IntegerAttributeCallback) { + suspend fun readPhysicalMaxLevelAttribute(): Integer { // Implementation needs to be added here } - fun subscribePhysicalMaxLevelAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePhysicalMaxLevelAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readBallastStatusAttribute(callback: IntegerAttributeCallback) { + suspend fun readBallastStatusAttribute(): Integer { // Implementation needs to be added here } - fun subscribeBallastStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBallastStatusAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMinLevelAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinLevelAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readMaxLevelAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxLevelAttribute(): Integer { // 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): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeLampQuantityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLampQuantityAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // 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): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..505fd47478f65a 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) { + suspend fun barrierControlGoToPercent(percentOpen: UByte) { // 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) + suspend fun barrierControlGoToPercent(percentOpen: UByte, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun barrierControlStop() { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun barrierControlStop(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - fun readBarrierMovingStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readBarrierMovingStateAttribute(): Integer { // Implementation needs to be added here } - fun subscribeBarrierMovingStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBarrierMovingStateAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readBarrierSafetyStatusAttribute(callback: IntegerAttributeCallback) { + suspend fun readBarrierSafetyStatusAttribute(): Integer { // Implementation needs to be added here } - fun subscribeBarrierSafetyStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBarrierSafetyStatusAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readBarrierCapabilitiesAttribute(callback: IntegerAttributeCallback) { + suspend fun readBarrierCapabilitiesAttribute(): Integer { // Implementation needs to be added here } - fun subscribeBarrierCapabilitiesAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBarrierCapabilitiesAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readBarrierOpenEventsAttribute(callback: IntegerAttributeCallback) { + suspend fun readBarrierOpenEventsAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readBarrierCloseEventsAttribute(callback: IntegerAttributeCallback) { + suspend fun readBarrierCloseEventsAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readBarrierCommandOpenEventsAttribute(callback: IntegerAttributeCallback) { + suspend fun readBarrierCommandOpenEventsAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readBarrierCommandCloseEventsAttribute(callback: IntegerAttributeCallback) { + suspend fun readBarrierCommandCloseEventsAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readBarrierOpenPeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readBarrierOpenPeriodAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readBarrierClosePeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readBarrierClosePeriodAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readBarrierPositionAttribute(callback: IntegerAttributeCallback) { + suspend fun readBarrierPositionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeBarrierPositionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBarrierPositionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..69dbbdbe4fa6eb 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) - } - - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun mfgSpecificPing() { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun mfgSpecificPing(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - fun readDataModelRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readDataModelRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDataModelRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDataModelRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeVendorIDAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeProductIDAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeHardwareVersionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeSoftwareVersionAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..7fee672d5abae9 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(): Integer { // Implementation needs to be added here } - fun subscribePolarityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePolarityAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readStatusFlagsAttribute(callback: IntegerAttributeCallback) { + suspend fun readStatusFlagsAttribute(): Integer { // Implementation needs to be added here } - fun subscribeStatusFlagsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeStatusFlagsAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readApplicationTypeAttribute(callback: LongAttributeCallback) { + suspend fun readApplicationTypeAttribute(): Long { // Implementation needs to be added here } - fun subscribeApplicationTypeAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeApplicationTypeAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..edc98cfe3ecb9b 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..2ba45f0b6a5dca 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..3c825cc8387b62 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(): Integer { // Implementation needs to be added here } - fun subscribeVendorIDAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeHardwareVersionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeSoftwareVersionAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..4ec67d9b9cb9fe 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(): Long { // Implementation needs to be added here } - fun subscribePeakMeasuredValueWindowAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeAverageMeasuredValueWindowAttribute( - callback: LongAttributeCallback, + suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementUnitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasurementMediumAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementMediumAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + suspend fun readLevelValueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLevelValueAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..30c75be5175ecb 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(): Long { // Implementation needs to be added here } - fun subscribePeakMeasuredValueWindowAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeAverageMeasuredValueWindowAttribute( - callback: LongAttributeCallback, + suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementUnitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasurementMediumAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementMediumAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + suspend fun readLevelValueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLevelValueAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..dc9db0efb936a4 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,138 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class ChannelCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 1284u - } + class ChangeChannelResponse(val status: UInt, val data: String?) + + class ChannelListAttribute(val value: ArrayList?) + + class LineupAttribute(val value: ChipStructs.ChannelClusterLineupInfoStruct?) + + class CurrentChannelAttribute(val value: ChipStructs.ChannelClusterChannelInfoStruct?) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) - fun changeChannel(callback: ChangeChannelResponseCallback, match: String) { + class AttributeListAttribute(val value: ArrayList) + + suspend fun changeChannel(match: String): ChangeChannelResponse { // Implementation needs to be added here } - fun changeChannel( - callback: ChangeChannelResponseCallback, - match: String, - timedInvokeTimeoutMs: Int - ) { + suspend fun changeChannel(match: String, timedInvokeTimeoutMs: Int): ChangeChannelResponse { // Implementation needs to be added here } - fun changeChannelByNumber( - callback: DefaultClusterCallback, - majorNumber: Integer, - minorNumber: Integer - ) { + suspend fun changeChannelByNumber(majorNumber: UShort, minorNumber: UShort) { // Implementation needs to be added here } - fun changeChannelByNumber( - callback: DefaultClusterCallback, - majorNumber: Integer, - minorNumber: Integer, + suspend fun changeChannelByNumber( + majorNumber: UShort, + minorNumber: UShort, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun skipChannel(callback: DefaultClusterCallback, count: Integer) { + suspend fun skipChannel(count: Short) { // Implementation needs to be added here } - fun skipChannel(callback: DefaultClusterCallback, count: Integer, timedInvokeTimeoutMs: Int) { + suspend fun skipChannel(count: Short, 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) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface CurrentChannelAttributeCallback { - fun onSuccess(value: ChipStructs.ChannelClusterChannelInfoStruct?) - - 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 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..4312bfe45a4f5c 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,1039 @@ 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?) + + class Primary1IntensityAttribute(val value: UByte?) + + class Primary2IntensityAttribute(val value: UByte?) + + class Primary3IntensityAttribute(val value: UByte?) + + class Primary4IntensityAttribute(val value: UByte?) + + class Primary5IntensityAttribute(val value: UByte?) + + class Primary6IntensityAttribute(val value: UByte?) + + class ColorPointRIntensityAttribute(val value: UByte?) + + class ColorPointGIntensityAttribute(val value: UByte?) + + class ColorPointBIntensityAttribute(val value: UByte?) + + class StartUpColorTemperatureMiredsAttribute(val value: UShort?) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) - fun moveToHue( - callback: DefaultClusterCallback, - hue: Integer, - direction: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun moveToHue( + hue: UByte, + direction: UInt, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun moveToHue( - callback: DefaultClusterCallback, - hue: Integer, - direction: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun moveToHue( + hue: UByte, + direction: UInt, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun moveHue( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer, - optionsMask: Integer, - optionsOverride: Integer - ) { + suspend fun moveHue(moveMode: UInt, rate: UByte, optionsMask: UInt, optionsOverride: UInt) { // Implementation needs to be added here } - fun moveHue( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun moveHue( + moveMode: UInt, + rate: UByte, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun stepHue( - callback: DefaultClusterCallback, - stepMode: Integer, - stepSize: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun stepHue( + stepMode: UInt, + stepSize: UByte, + transitionTime: UByte, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun stepHue( - callback: DefaultClusterCallback, - stepMode: Integer, - stepSize: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun stepHue( + stepMode: UInt, + stepSize: UByte, + transitionTime: UByte, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun moveToSaturation( - callback: DefaultClusterCallback, - saturation: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun moveToSaturation( + saturation: UByte, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun moveToSaturation( - callback: DefaultClusterCallback, - saturation: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun moveToSaturation( + saturation: UByte, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun moveSaturation( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun moveSaturation( + moveMode: UInt, + rate: UByte, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun moveSaturation( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun moveSaturation( + moveMode: UInt, + rate: UByte, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun stepSaturation( - callback: DefaultClusterCallback, - stepMode: Integer, - stepSize: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun stepSaturation( + stepMode: UInt, + stepSize: UByte, + transitionTime: UByte, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun stepSaturation( - callback: DefaultClusterCallback, - stepMode: Integer, - stepSize: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun stepSaturation( + stepMode: UInt, + stepSize: UByte, + transitionTime: UByte, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun moveToHueAndSaturation( - callback: DefaultClusterCallback, - hue: Integer, - saturation: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun moveToHueAndSaturation( + hue: UByte, + saturation: UByte, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun moveToHueAndSaturation( - callback: DefaultClusterCallback, - hue: Integer, - saturation: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun moveToHueAndSaturation( + hue: UByte, + saturation: UByte, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun moveToColor( - callback: DefaultClusterCallback, - colorX: Integer, - colorY: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun moveToColor( + colorX: UShort, + colorY: UShort, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun moveToColor( - callback: DefaultClusterCallback, - colorX: Integer, - colorY: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun moveToColor( + colorX: UShort, + colorY: UShort, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun moveColor( - callback: DefaultClusterCallback, - rateX: Integer, - rateY: Integer, - optionsMask: Integer, - optionsOverride: Integer - ) { + suspend fun moveColor(rateX: Short, rateY: Short, optionsMask: UInt, optionsOverride: UInt) { // Implementation needs to be added here } - fun moveColor( - callback: DefaultClusterCallback, - rateX: Integer, - rateY: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun moveColor( + rateX: Short, + rateY: Short, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun stepColor( - callback: DefaultClusterCallback, - stepX: Integer, - stepY: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun stepColor( + stepX: Short, + stepY: Short, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun stepColor( - callback: DefaultClusterCallback, - stepX: Integer, - stepY: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun stepColor( + stepX: Short, + stepY: Short, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun moveToColorTemperature( - callback: DefaultClusterCallback, - colorTemperatureMireds: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun moveToColorTemperature( + colorTemperatureMireds: UShort, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun moveToColorTemperature( - callback: DefaultClusterCallback, - colorTemperatureMireds: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun moveToColorTemperature( + colorTemperatureMireds: UShort, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun enhancedMoveToHue( - callback: DefaultClusterCallback, - enhancedHue: Integer, - direction: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun enhancedMoveToHue( + enhancedHue: UShort, + direction: UInt, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun enhancedMoveToHue( - callback: DefaultClusterCallback, - enhancedHue: Integer, - direction: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun enhancedMoveToHue( + enhancedHue: UShort, + direction: UInt, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun enhancedMoveHue( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun enhancedMoveHue( + moveMode: UInt, + rate: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun enhancedMoveHue( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun enhancedMoveHue( + moveMode: UInt, + rate: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun enhancedStepHue( - callback: DefaultClusterCallback, - stepMode: Integer, - stepSize: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun enhancedStepHue( + stepMode: UInt, + stepSize: UShort, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun enhancedStepHue( - callback: DefaultClusterCallback, - stepMode: Integer, - stepSize: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun enhancedStepHue( + stepMode: UInt, + stepSize: UShort, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun enhancedMoveToHueAndSaturation( - callback: DefaultClusterCallback, - enhancedHue: Integer, - saturation: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun enhancedMoveToHueAndSaturation( + enhancedHue: UShort, + saturation: UByte, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun enhancedMoveToHueAndSaturation( - callback: DefaultClusterCallback, - enhancedHue: Integer, - saturation: Integer, - transitionTime: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun enhancedMoveToHueAndSaturation( + enhancedHue: UShort, + saturation: UByte, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // 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 colorLoopSet( + updateFlags: UInt, + action: UInt, + direction: UInt, + time: UShort, + startHue: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // 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 colorLoopSet( + updateFlags: UInt, + action: UInt, + direction: UInt, + time: UShort, + startHue: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun stopMoveStep( - callback: DefaultClusterCallback, - optionsMask: Integer, - optionsOverride: Integer - ) { + suspend fun stopMoveStep(optionsMask: UInt, optionsOverride: UInt) { // Implementation needs to be added here } - fun stopMoveStep( - callback: DefaultClusterCallback, - optionsMask: Integer, - optionsOverride: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun stopMoveStep(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun moveColorTemperature( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer, - colorTemperatureMinimumMireds: Integer, - colorTemperatureMaximumMireds: Integer, - optionsMask: Integer, - optionsOverride: Integer + suspend fun moveColorTemperature( + moveMode: UInt, + rate: UShort, + colorTemperatureMinimumMireds: UShort, + colorTemperatureMaximumMireds: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun moveColorTemperature( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer, - colorTemperatureMinimumMireds: Integer, - colorTemperatureMaximumMireds: Integer, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun moveColorTemperature( + moveMode: UInt, + rate: UShort, + colorTemperatureMinimumMireds: UShort, + colorTemperatureMaximumMireds: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // 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 stepColorTemperature( + stepMode: UInt, + stepSize: UShort, + transitionTime: UShort, + colorTemperatureMinimumMireds: UShort, + colorTemperatureMaximumMireds: UShort, + optionsMask: UInt, + optionsOverride: UInt ) { // 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 stepColorTemperature( + stepMode: UInt, + stepSize: UShort, + transitionTime: UShort, + colorTemperatureMinimumMireds: UShort, + colorTemperatureMaximumMireds: UShort, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // 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) { + suspend fun readCurrentHueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCurrentHueAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentHueAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readCurrentSaturationAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentSaturationAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCurrentSaturationAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentSaturationAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRemainingTimeAttribute(callback: IntegerAttributeCallback) { + suspend fun readRemainingTimeAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRemainingTimeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readCurrentXAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentXAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCurrentXAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentXAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readCurrentYAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentYAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCurrentYAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentYAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDriftCompensationAttribute(callback: IntegerAttributeCallback) { + suspend fun readDriftCompensationAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDriftCompensationAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDriftCompensationAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readCompensationTextAttribute(callback: CharStringAttributeCallback) { + suspend fun readCompensationTextAttribute(): CharString { // Implementation needs to be added here } - fun subscribeCompensationTextAttribute( - callback: CharStringAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCompensationTextAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } - fun readColorTemperatureMiredsAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorTemperatureMiredsAttribute(): Integer { // Implementation needs to be added here } - fun subscribeColorTemperatureMiredsAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeColorTemperatureMiredsAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readColorModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorModeAttribute(): Integer { // Implementation needs to be added here } - fun subscribeColorModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeColorModeAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readOptionsAttribute(callback: IntegerAttributeCallback) { + suspend fun readOptionsAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readNumberOfPrimariesAttribute(callback: NumberOfPrimariesAttributeCallback) { + suspend fun readNumberOfPrimariesAttribute(): NumberOfPrimariesAttribute { // Implementation needs to be added here } - fun subscribeNumberOfPrimariesAttribute( - callback: NumberOfPrimariesAttributeCallback, + suspend fun subscribeNumberOfPrimariesAttribute( minInterval: Int, maxInterval: Int - ) { + ): NumberOfPrimariesAttribute { // Implementation needs to be added here } - fun readPrimary1XAttribute(callback: IntegerAttributeCallback) { + suspend fun readPrimary1XAttribute(): Integer { // Implementation needs to be added here } - fun subscribePrimary1XAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePrimary1XAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPrimary1YAttribute(callback: IntegerAttributeCallback) { + suspend fun readPrimary1YAttribute(): Integer { // Implementation needs to be added here } - fun subscribePrimary1YAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePrimary1YAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPrimary1IntensityAttribute(callback: Primary1IntensityAttributeCallback) { + suspend fun readPrimary1IntensityAttribute(): Primary1IntensityAttribute { // Implementation needs to be added here } - fun subscribePrimary1IntensityAttribute( - callback: Primary1IntensityAttributeCallback, + suspend fun subscribePrimary1IntensityAttribute( minInterval: Int, maxInterval: Int - ) { + ): Primary1IntensityAttribute { // Implementation needs to be added here } - fun readPrimary2XAttribute(callback: IntegerAttributeCallback) { + suspend fun readPrimary2XAttribute(): Integer { // Implementation needs to be added here } - fun subscribePrimary2XAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePrimary2XAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPrimary2YAttribute(callback: IntegerAttributeCallback) { + suspend fun readPrimary2YAttribute(): Integer { // Implementation needs to be added here } - fun subscribePrimary2YAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePrimary2YAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPrimary2IntensityAttribute(callback: Primary2IntensityAttributeCallback) { + suspend fun readPrimary2IntensityAttribute(): Primary2IntensityAttribute { // Implementation needs to be added here } - fun subscribePrimary2IntensityAttribute( - callback: Primary2IntensityAttributeCallback, + suspend fun subscribePrimary2IntensityAttribute( minInterval: Int, maxInterval: Int - ) { + ): Primary2IntensityAttribute { // Implementation needs to be added here } - fun readPrimary3XAttribute(callback: IntegerAttributeCallback) { + suspend fun readPrimary3XAttribute(): Integer { // Implementation needs to be added here } - fun subscribePrimary3XAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePrimary3XAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPrimary3YAttribute(callback: IntegerAttributeCallback) { + suspend fun readPrimary3YAttribute(): Integer { // Implementation needs to be added here } - fun subscribePrimary3YAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePrimary3YAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPrimary3IntensityAttribute(callback: Primary3IntensityAttributeCallback) { + suspend fun readPrimary3IntensityAttribute(): Primary3IntensityAttribute { // Implementation needs to be added here } - fun subscribePrimary3IntensityAttribute( - callback: Primary3IntensityAttributeCallback, + suspend fun subscribePrimary3IntensityAttribute( minInterval: Int, maxInterval: Int - ) { + ): Primary3IntensityAttribute { // Implementation needs to be added here } - fun readPrimary4XAttribute(callback: IntegerAttributeCallback) { + suspend fun readPrimary4XAttribute(): Integer { // Implementation needs to be added here } - fun subscribePrimary4XAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePrimary4XAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPrimary4YAttribute(callback: IntegerAttributeCallback) { + suspend fun readPrimary4YAttribute(): Integer { // Implementation needs to be added here } - fun subscribePrimary4YAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePrimary4YAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPrimary4IntensityAttribute(callback: Primary4IntensityAttributeCallback) { + suspend fun readPrimary4IntensityAttribute(): Primary4IntensityAttribute { // Implementation needs to be added here } - fun subscribePrimary4IntensityAttribute( - callback: Primary4IntensityAttributeCallback, + suspend fun subscribePrimary4IntensityAttribute( minInterval: Int, maxInterval: Int - ) { + ): Primary4IntensityAttribute { // Implementation needs to be added here } - fun readPrimary5XAttribute(callback: IntegerAttributeCallback) { + suspend fun readPrimary5XAttribute(): Integer { // Implementation needs to be added here } - fun subscribePrimary5XAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePrimary5XAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPrimary5YAttribute(callback: IntegerAttributeCallback) { + suspend fun readPrimary5YAttribute(): Integer { // Implementation needs to be added here } - fun subscribePrimary5YAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePrimary5YAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPrimary5IntensityAttribute(callback: Primary5IntensityAttributeCallback) { + suspend fun readPrimary5IntensityAttribute(): Primary5IntensityAttribute { // Implementation needs to be added here } - fun subscribePrimary5IntensityAttribute( - callback: Primary5IntensityAttributeCallback, + suspend fun subscribePrimary5IntensityAttribute( minInterval: Int, maxInterval: Int - ) { + ): Primary5IntensityAttribute { // Implementation needs to be added here } - fun readPrimary6XAttribute(callback: IntegerAttributeCallback) { + suspend fun readPrimary6XAttribute(): Integer { // Implementation needs to be added here } - fun subscribePrimary6XAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePrimary6XAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPrimary6YAttribute(callback: IntegerAttributeCallback) { + suspend fun readPrimary6YAttribute(): Integer { // Implementation needs to be added here } - fun subscribePrimary6YAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePrimary6YAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPrimary6IntensityAttribute(callback: Primary6IntensityAttributeCallback) { + suspend fun readPrimary6IntensityAttribute(): Primary6IntensityAttribute { // Implementation needs to be added here } - fun subscribePrimary6IntensityAttribute( - callback: Primary6IntensityAttributeCallback, + suspend fun subscribePrimary6IntensityAttribute( minInterval: Int, maxInterval: Int - ) { + ): Primary6IntensityAttribute { // Implementation needs to be added here } - fun readWhitePointXAttribute(callback: IntegerAttributeCallback) { + suspend fun readWhitePointXAttribute(): Integer { // Implementation needs to be added here } - fun writeWhitePointXAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeWhitePointXAttribute(value: UShort) { // Implementation needs to be added here } - fun writeWhitePointXAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeWhitePointXAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeWhitePointXAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWhitePointXAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readWhitePointYAttribute(callback: IntegerAttributeCallback) { + suspend fun readWhitePointYAttribute(): Integer { // Implementation needs to be added here } - fun writeWhitePointYAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeWhitePointYAttribute(value: UShort) { // Implementation needs to be added here } - fun writeWhitePointYAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeWhitePointYAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeWhitePointYAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWhitePointYAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readColorPointRXAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorPointRXAttribute(): Integer { // Implementation needs to be added here } - fun writeColorPointRXAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeColorPointRXAttribute(value: UShort) { // Implementation needs to be added here } - fun writeColorPointRXAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointRXAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeColorPointRXAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeColorPointRXAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readColorPointRYAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorPointRYAttribute(): Integer { // Implementation needs to be added here } - fun writeColorPointRYAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeColorPointRYAttribute(value: UShort) { // Implementation needs to be added here } - fun writeColorPointRYAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointRYAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeColorPointRYAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeColorPointRYAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readColorPointRIntensityAttribute(callback: ColorPointRIntensityAttributeCallback) { + suspend fun readColorPointRIntensityAttribute(): ColorPointRIntensityAttribute { // Implementation needs to be added here } - fun writeColorPointRIntensityAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeColorPointRIntensityAttribute(value: UByte) { // Implementation needs to be added here } - fun writeColorPointRIntensityAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointRIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeColorPointRIntensityAttribute( - callback: ColorPointRIntensityAttributeCallback, + suspend fun subscribeColorPointRIntensityAttribute( minInterval: Int, maxInterval: Int - ) { + ): ColorPointRIntensityAttribute { // Implementation needs to be added here } - fun readColorPointGXAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorPointGXAttribute(): Integer { // Implementation needs to be added here } - fun writeColorPointGXAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeColorPointGXAttribute(value: UShort) { // Implementation needs to be added here } - fun writeColorPointGXAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointGXAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeColorPointGXAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeColorPointGXAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readColorPointGYAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorPointGYAttribute(): Integer { // Implementation needs to be added here } - fun writeColorPointGYAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeColorPointGYAttribute(value: UShort) { // Implementation needs to be added here } - fun writeColorPointGYAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointGYAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeColorPointGYAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeColorPointGYAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readColorPointGIntensityAttribute(callback: ColorPointGIntensityAttributeCallback) { + suspend fun readColorPointGIntensityAttribute(): ColorPointGIntensityAttribute { // Implementation needs to be added here } - fun writeColorPointGIntensityAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeColorPointGIntensityAttribute(value: UByte) { // Implementation needs to be added here } - fun writeColorPointGIntensityAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointGIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeColorPointGIntensityAttribute( - callback: ColorPointGIntensityAttributeCallback, + suspend fun subscribeColorPointGIntensityAttribute( minInterval: Int, maxInterval: Int - ) { + ): ColorPointGIntensityAttribute { // Implementation needs to be added here } - fun readColorPointBXAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorPointBXAttribute(): Integer { // Implementation needs to be added here } - fun writeColorPointBXAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeColorPointBXAttribute(value: UShort) { // Implementation needs to be added here } - fun writeColorPointBXAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointBXAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeColorPointBXAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeColorPointBXAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readColorPointBYAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorPointBYAttribute(): Integer { // Implementation needs to be added here } - fun writeColorPointBYAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeColorPointBYAttribute(value: UShort) { // Implementation needs to be added here } - fun writeColorPointBYAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointBYAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeColorPointBYAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeColorPointBYAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readColorPointBIntensityAttribute(callback: ColorPointBIntensityAttributeCallback) { + suspend fun readColorPointBIntensityAttribute(): ColorPointBIntensityAttribute { // Implementation needs to be added here } - fun writeColorPointBIntensityAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeColorPointBIntensityAttribute(value: UByte) { // Implementation needs to be added here } - fun writeColorPointBIntensityAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointBIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeColorPointBIntensityAttribute( - callback: ColorPointBIntensityAttributeCallback, + suspend fun subscribeColorPointBIntensityAttribute( minInterval: Int, maxInterval: Int - ) { + ): ColorPointBIntensityAttribute { // Implementation needs to be added here } - fun readEnhancedCurrentHueAttribute(callback: IntegerAttributeCallback) { + suspend fun readEnhancedCurrentHueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeEnhancedCurrentHueAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEnhancedCurrentHueAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readEnhancedColorModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readEnhancedColorModeAttribute(): Integer { // Implementation needs to be added here } - fun subscribeEnhancedColorModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEnhancedColorModeAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readColorLoopActiveAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorLoopActiveAttribute(): Integer { // Implementation needs to be added here } - fun subscribeColorLoopActiveAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeColorLoopActiveAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readColorLoopDirectionAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorLoopDirectionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeColorLoopDirectionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeColorLoopDirectionAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readColorLoopTimeAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorLoopTimeAttribute(): Integer { // Implementation needs to be added here } - fun subscribeColorLoopTimeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeColorLoopTimeAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readColorLoopStartEnhancedHueAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorLoopStartEnhancedHueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeColorLoopStartEnhancedHueAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeColorLoopStartEnhancedHueAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readColorLoopStoredEnhancedHueAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorLoopStoredEnhancedHueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeColorLoopStoredEnhancedHueAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeColorLoopStoredEnhancedHueAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readColorCapabilitiesAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorCapabilitiesAttribute(): Integer { // Implementation needs to be added here } - fun subscribeColorCapabilitiesAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeColorCapabilitiesAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readColorTempPhysicalMinMiredsAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorTempPhysicalMinMiredsAttribute(): Integer { // Implementation needs to be added here } - fun subscribeColorTempPhysicalMinMiredsAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeColorTempPhysicalMinMiredsAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readColorTempPhysicalMaxMiredsAttribute(callback: IntegerAttributeCallback) { + suspend fun readColorTempPhysicalMaxMiredsAttribute(): Integer { // Implementation needs to be added here } - fun subscribeColorTempPhysicalMaxMiredsAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeColorTempPhysicalMaxMiredsAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readCoupleColorTempToLevelMinMiredsAttribute(callback: IntegerAttributeCallback) { + suspend fun readCoupleColorTempToLevelMinMiredsAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCoupleColorTempToLevelMinMiredsAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeCoupleColorTempToLevelMinMiredsAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readStartUpColorTemperatureMiredsAttribute( - callback: StartUpColorTemperatureMiredsAttributeCallback - ) { + suspend fun readStartUpColorTemperatureMiredsAttribute(): StartUpColorTemperatureMiredsAttribute { // Implementation needs to be added here } - fun writeStartUpColorTemperatureMiredsAttribute( - callback: DefaultClusterCallback, - value: Integer - ) { + suspend fun writeStartUpColorTemperatureMiredsAttribute(value: UShort) { // Implementation needs to be added here } - fun writeStartUpColorTemperatureMiredsAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeStartUpColorTemperatureMiredsAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeStartUpColorTemperatureMiredsAttribute( - callback: StartUpColorTemperatureMiredsAttributeCallback, + suspend fun subscribeStartUpColorTemperatureMiredsAttribute( minInterval: Int, maxInterval: Int - ) { + ): StartUpColorTemperatureMiredsAttribute { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..ee6dcff8f5fd6b 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,140 @@ 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?) + + class AcceptHeaderAttribute(val value: ArrayList?) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) - fun launchContent( - callback: LauncherResponseCallback, + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun launchContent( search: ChipStructs.ContentLauncherClusterContentSearchStruct, autoPlay: Boolean, data: String? - ) { + ): LauncherResponse { // Implementation needs to be added here } - fun launchContent( - callback: LauncherResponseCallback, + suspend fun launchContent( search: ChipStructs.ContentLauncherClusterContentSearchStruct, autoPlay: Boolean, data: String?, timedInvokeTimeoutMs: Int - ) { + ): LauncherResponse { // Implementation needs to be added here } - fun launchURL( - callback: LauncherResponseCallback, + suspend fun launchURL( contentURL: String, displayString: String?, brandingInformation: ChipStructs.ContentLauncherClusterBrandingInformationStruct? - ) { + ): LauncherResponse { // Implementation needs to be added here } - fun launchURL( - callback: LauncherResponseCallback, + suspend fun launchURL( contentURL: String, displayString: String?, brandingInformation: ChipStructs.ContentLauncherClusterBrandingInformationStruct?, timedInvokeTimeoutMs: Int - ) { + ): LauncherResponse { // Implementation needs to be added here } - 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(): Long { // 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 - ) { + ): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..813c7b9d1c51d1 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..af66e72cdc3fe9 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,96 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class DiagnosticLogsCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 50u - } + class RetrieveLogsResponse( + val status: UInt, + val logContent: ByteArray, + val UTCTimeStamp: ULong?, + val timeSinceBoot: ULong? + ) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) - fun retrieveLogsRequest( - callback: RetrieveLogsResponseCallback, - intent: Integer, - requestedProtocol: Integer, + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun retrieveLogsRequest( + intent: UInt, + requestedProtocol: UInt, transferFileDesignator: String? - ) { + ): RetrieveLogsResponse { // Implementation needs to be added here } - fun retrieveLogsRequest( - callback: RetrieveLogsResponseCallback, - intent: Integer, - requestedProtocol: Integer, + suspend fun retrieveLogsRequest( + intent: UInt, + requestedProtocol: UInt, transferFileDesignator: String?, timedInvokeTimeoutMs: Int - ) { + ): RetrieveLogsResponse { // 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) - } - - 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) { + 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..bdfa74c5dd49b2 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 - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun reset(callback: DefaultClusterCallback, alarms: Long) { - // Implementation needs to be added here - } + class AcceptedCommandListAttribute(val value: ArrayList) - fun reset(callback: DefaultClusterCallback, alarms: Long, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class EventListAttribute(val value: ArrayList) - fun modifyEnabledAlarms(callback: DefaultClusterCallback, mask: Long) { - // Implementation needs to be added here - } + class AttributeListAttribute(val value: ArrayList) - fun modifyEnabledAlarms(callback: DefaultClusterCallback, mask: Long, timedInvokeTimeoutMs: Int) { + suspend fun reset(alarms: ULong) { // 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) + suspend fun reset(alarms: ULong, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun modifyEnabledAlarms(mask: ULong) { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun modifyEnabledAlarms(mask: ULong, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - fun readMaskAttribute(callback: LongAttributeCallback) { + suspend fun readMaskAttribute(): Long { // Implementation needs to be added here } - fun subscribeMaskAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) { + suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readLatchAttribute(callback: LongAttributeCallback) { + suspend fun readLatchAttribute(): Long { // Implementation needs to be added here } - fun subscribeLatchAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) { + suspend fun subscribeLatchAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readStateAttribute(callback: LongAttributeCallback) { + suspend fun readStateAttribute(): Long { // Implementation needs to be added here } - fun subscribeStateAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) { + suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readSupportedAttribute(callback: LongAttributeCallback) { + suspend fun readSupportedAttribute(): Long { // Implementation needs to be added here } - fun subscribeSupportedAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..57db5faffaaed2 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,144 @@ 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) - } - - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun changeToMode(newMode: UByte): ChangeToModeResponse { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int): ChangeToModeResponse { + // 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(): Integer { // Implementation needs to be added here } - fun subscribeCurrentModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..851df952f4289a 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,816 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class DoorLockCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 257u - } + 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) - fun lockDoor(callback: DefaultClusterCallback, PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun lockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun unlockDoor(callback: DefaultClusterCallback, PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { + suspend fun unlockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun unlockWithTimeout( - callback: DefaultClusterCallback, - timeout: Integer, - PINCode: ByteArray?, - timedInvokeTimeoutMs: Int - ) { + 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 + suspend fun setWeekDaySchedule( + weekDayIndex: UByte, + userIndex: UShort, + daysMask: UInt, + startHour: UByte, + startMinute: UByte, + endHour: UByte, + endMinute: UByte ) { // Implementation needs to be added here } - fun setWeekDaySchedule( - callback: DefaultClusterCallback, - weekDayIndex: Integer, - userIndex: Integer, - daysMask: Integer, - startHour: Integer, - startMinute: Integer, - endHour: Integer, - endMinute: Integer, + suspend fun setWeekDaySchedule( + weekDayIndex: UByte, + userIndex: UShort, + daysMask: UInt, + startHour: UByte, + startMinute: UByte, + endHour: UByte, + endMinute: UByte, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun getWeekDaySchedule( - callback: GetWeekDayScheduleResponseCallback, - weekDayIndex: Integer, - userIndex: Integer - ) { + suspend fun getWeekDaySchedule( + weekDayIndex: UByte, + userIndex: UShort + ): GetWeekDayScheduleResponse { // Implementation needs to be added here } - fun getWeekDaySchedule( - callback: GetWeekDayScheduleResponseCallback, - weekDayIndex: Integer, - userIndex: Integer, + suspend fun getWeekDaySchedule( + weekDayIndex: UByte, + userIndex: UShort, timedInvokeTimeoutMs: Int - ) { + ): GetWeekDayScheduleResponse { // Implementation needs to be added here } - fun clearWeekDaySchedule( - callback: DefaultClusterCallback, - weekDayIndex: Integer, - userIndex: Integer - ) { + suspend fun clearWeekDaySchedule(weekDayIndex: UByte, userIndex: UShort) { // Implementation needs to be added here } - fun clearWeekDaySchedule( - callback: DefaultClusterCallback, - weekDayIndex: Integer, - userIndex: Integer, + suspend fun clearWeekDaySchedule( + weekDayIndex: UByte, + userIndex: UShort, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun setYearDaySchedule( - callback: DefaultClusterCallback, - yearDayIndex: Integer, - userIndex: Integer, - localStartTime: Long, - localEndTime: Long + suspend fun setYearDaySchedule( + yearDayIndex: UByte, + userIndex: UShort, + localStartTime: UInt, + localEndTime: UInt ) { // Implementation needs to be added here } - fun setYearDaySchedule( - callback: DefaultClusterCallback, - yearDayIndex: Integer, - userIndex: Integer, - localStartTime: Long, - localEndTime: Long, + suspend fun setYearDaySchedule( + yearDayIndex: UByte, + userIndex: UShort, + localStartTime: UInt, + localEndTime: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun getYearDaySchedule( - callback: GetYearDayScheduleResponseCallback, - yearDayIndex: Integer, - userIndex: Integer - ) { + suspend fun getYearDaySchedule( + yearDayIndex: UByte, + userIndex: UShort + ): GetYearDayScheduleResponse { // Implementation needs to be added here } - fun getYearDaySchedule( - callback: GetYearDayScheduleResponseCallback, - yearDayIndex: Integer, - userIndex: Integer, + suspend fun getYearDaySchedule( + yearDayIndex: UByte, + userIndex: UShort, timedInvokeTimeoutMs: Int - ) { + ): GetYearDayScheduleResponse { // Implementation needs to be added here } - fun clearYearDaySchedule( - callback: DefaultClusterCallback, - yearDayIndex: Integer, - userIndex: Integer - ) { + suspend fun clearYearDaySchedule(yearDayIndex: UByte, userIndex: UShort) { // Implementation needs to be added here } - fun clearYearDaySchedule( - callback: DefaultClusterCallback, - yearDayIndex: Integer, - userIndex: Integer, + suspend fun clearYearDaySchedule( + yearDayIndex: UByte, + userIndex: UShort, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun setHolidaySchedule( - callback: DefaultClusterCallback, - holidayIndex: Integer, - localStartTime: Long, - localEndTime: Long, - operatingMode: Integer + suspend fun setHolidaySchedule( + holidayIndex: UByte, + localStartTime: UInt, + localEndTime: UInt, + operatingMode: UInt ) { // Implementation needs to be added here } - fun setHolidaySchedule( - callback: DefaultClusterCallback, - holidayIndex: Integer, - localStartTime: Long, - localEndTime: Long, - operatingMode: Integer, + suspend fun setHolidaySchedule( + holidayIndex: UByte, + localStartTime: UInt, + localEndTime: UInt, + operatingMode: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun getHolidaySchedule(callback: GetHolidayScheduleResponseCallback, holidayIndex: Integer) { + suspend fun getHolidaySchedule(holidayIndex: UByte): GetHolidayScheduleResponse { // Implementation needs to be added here } - fun getHolidaySchedule( - callback: GetHolidayScheduleResponseCallback, - holidayIndex: Integer, + suspend fun getHolidaySchedule( + holidayIndex: UByte, timedInvokeTimeoutMs: Int - ) { + ): GetHolidayScheduleResponse { // Implementation needs to be added here } - fun clearHolidaySchedule(callback: DefaultClusterCallback, holidayIndex: Integer) { + suspend fun clearHolidaySchedule(holidayIndex: UByte) { // Implementation needs to be added here } - fun clearHolidaySchedule( - callback: DefaultClusterCallback, - holidayIndex: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun clearHolidaySchedule(holidayIndex: UByte, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun setUser( - callback: DefaultClusterCallback, - operationType: Integer, - userIndex: Integer, + suspend fun setUser( + operationType: UInt, + userIndex: UShort, userName: String?, - userUniqueID: Long?, - userStatus: Integer?, - userType: Integer?, - credentialRule: Integer?, + userUniqueID: UInt?, + userStatus: UInt?, + userType: UInt?, + credentialRule: UInt?, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun getUser(callback: GetUserResponseCallback, userIndex: Integer) { + suspend fun getUser(userIndex: UShort): GetUserResponse { // Implementation needs to be added here } - fun getUser(callback: GetUserResponseCallback, userIndex: Integer, timedInvokeTimeoutMs: Int) { + suspend fun getUser(userIndex: UShort, timedInvokeTimeoutMs: Int): GetUserResponse { // Implementation needs to be added here } - fun clearUser(callback: DefaultClusterCallback, userIndex: Integer, timedInvokeTimeoutMs: Int) { + suspend fun clearUser(userIndex: UShort, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun setCredential( - callback: SetCredentialResponseCallback, - operationType: Integer, + suspend fun setCredential( + operationType: UInt, credential: ChipStructs.DoorLockClusterCredentialStruct, credentialData: ByteArray, - userIndex: Integer?, - userStatus: Integer?, - userType: Integer?, + userIndex: UShort?, + userStatus: UInt?, + userType: UInt?, timedInvokeTimeoutMs: Int - ) { + ): SetCredentialResponse { // Implementation needs to be added here } - fun getCredentialStatus( - callback: GetCredentialStatusResponseCallback, + suspend fun getCredentialStatus( credential: ChipStructs.DoorLockClusterCredentialStruct - ) { + ): GetCredentialStatusResponse { // Implementation needs to be added here } - fun getCredentialStatus( - callback: GetCredentialStatusResponseCallback, + suspend fun getCredentialStatus( credential: ChipStructs.DoorLockClusterCredentialStruct, timedInvokeTimeoutMs: Int - ) { + ): GetCredentialStatusResponse { // Implementation needs to be added here } - fun clearCredential( - callback: DefaultClusterCallback, + suspend fun clearCredential( credential: ChipStructs.DoorLockClusterCredentialStruct?, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun unboltDoor(callback: DefaultClusterCallback, PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { + suspend fun unboltDoor(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) - } - - 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 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(): Integer { // Implementation needs to be added here } - fun subscribeLockTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLockTypeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // 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): Long { // Implementation needs to be added here } - fun readDoorClosedEventsAttribute(callback: LongAttributeCallback) { + suspend fun readDoorClosedEventsAttribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readOpenPeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readOpenPeriodAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readNumberOfTotalUsersSupportedAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfTotalUsersSupportedAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNumberOfTotalUsersSupportedAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfTotalUsersSupportedAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readNumberOfPINUsersSupportedAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfPINUsersSupportedAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNumberOfPINUsersSupportedAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfPINUsersSupportedAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readNumberOfRFIDUsersSupportedAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfRFIDUsersSupportedAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNumberOfRFIDUsersSupportedAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfRFIDUsersSupportedAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readNumberOfWeekDaySchedulesSupportedPerUserAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfWeekDaySchedulesSupportedPerUserAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNumberOfWeekDaySchedulesSupportedPerUserAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfWeekDaySchedulesSupportedPerUserAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readNumberOfYearDaySchedulesSupportedPerUserAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfYearDaySchedulesSupportedPerUserAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNumberOfYearDaySchedulesSupportedPerUserAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfYearDaySchedulesSupportedPerUserAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readNumberOfHolidaySchedulesSupportedAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfHolidaySchedulesSupportedAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNumberOfHolidaySchedulesSupportedAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfHolidaySchedulesSupportedAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readMaxPINCodeLengthAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxPINCodeLengthAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMaxPINCodeLengthAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMinPINCodeLengthAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinPINCodeLengthAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMinPINCodeLengthAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMinPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMaxRFIDCodeLengthAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxRFIDCodeLengthAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMaxRFIDCodeLengthAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMinRFIDCodeLengthAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinRFIDCodeLengthAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMinRFIDCodeLengthAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMinRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readCredentialRulesSupportAttribute(callback: IntegerAttributeCallback) { + suspend fun readCredentialRulesSupportAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCredentialRulesSupportAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeCredentialRulesSupportAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readNumberOfCredentialsSupportedPerUserAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfCredentialsSupportedPerUserAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNumberOfCredentialsSupportedPerUserAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfCredentialsSupportedPerUserAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // 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(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readAutoRelockTimeAttribute(callback: LongAttributeCallback) { + suspend fun readAutoRelockTimeAttribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readSoundVolumeAttribute(callback: IntegerAttributeCallback) { + suspend fun readSoundVolumeAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readOperatingModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readOperatingModeAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readSupportedOperatingModesAttribute(callback: IntegerAttributeCallback) { + suspend fun readSupportedOperatingModesAttribute(): Integer { // Implementation needs to be added here } - fun subscribeSupportedOperatingModesAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeSupportedOperatingModesAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readDefaultConfigurationRegisterAttribute(callback: IntegerAttributeCallback) { + suspend fun readDefaultConfigurationRegisterAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDefaultConfigurationRegisterAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeDefaultConfigurationRegisterAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // 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(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readWrongCodeEntryLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readWrongCodeEntryLimitAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readUserCodeTemporaryDisableTimeAttribute(callback: IntegerAttributeCallback) { + suspend fun readUserCodeTemporaryDisableTimeAttribute(): Integer { // 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 - ) { + ): Integer { // 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(): Integer { // 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): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..292dfc4797dc83 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,1302 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class ElectricalMeasurementCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 2820u - } + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) - fun getProfileInfoCommand(callback: DefaultClusterCallback) { + suspend fun getProfileInfoCommand() { // Implementation needs to be added here } - fun getProfileInfoCommand(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun getProfileInfoCommand(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun getMeasurementProfileCommand( - callback: DefaultClusterCallback, - attributeId: Integer, - startTime: Long, - numberOfIntervals: Integer + suspend fun getMeasurementProfileCommand( + attributeId: UShort, + startTime: UInt, + numberOfIntervals: UInt ) { // Implementation needs to be added here } - fun getMeasurementProfileCommand( - callback: DefaultClusterCallback, - attributeId: Integer, - startTime: Long, - numberOfIntervals: Integer, + suspend fun getMeasurementProfileCommand( + attributeId: UShort, + startTime: UInt, + numberOfIntervals: UInt, 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) - - 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 readMeasurementTypeAttribute(callback: LongAttributeCallback) { + suspend fun readMeasurementTypeAttribute(): Long { // Implementation needs to be added here } - fun subscribeMeasurementTypeAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementTypeAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readDcVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcVoltageAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcVoltageAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcVoltageAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcVoltageMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcVoltageMinAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcVoltageMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcVoltageMinAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcVoltageMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcVoltageMaxAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcVoltageMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcVoltageMaxAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcCurrentAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcCurrentAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcCurrentMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcCurrentMinAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcCurrentMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcCurrentMinAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcCurrentMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcCurrentMaxAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcCurrentMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcCurrentMaxAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcPowerAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcPowerAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcPowerAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcPowerAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcPowerMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcPowerMinAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcPowerMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcPowerMinAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcPowerMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcPowerMaxAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcPowerMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcPowerMaxAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcVoltageMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcVoltageMultiplierAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcVoltageMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcVoltageDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcVoltageDivisorAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcVoltageDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcCurrentMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcCurrentMultiplierAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcCurrentMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcCurrentDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcCurrentDivisorAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcCurrentDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcPowerMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcPowerMultiplierAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcPowerMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDcPowerDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readDcPowerDivisorAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDcPowerDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcFrequencyAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcFrequencyAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcFrequencyAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcFrequencyAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcFrequencyMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcFrequencyMinAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcFrequencyMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcFrequencyMinAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcFrequencyMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcFrequencyMaxAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcFrequencyMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcFrequencyMaxAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readNeutralCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readNeutralCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNeutralCurrentAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeNeutralCurrentAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readTotalActivePowerAttribute(callback: LongAttributeCallback) { + suspend fun readTotalActivePowerAttribute(): Long { // Implementation needs to be added here } - fun subscribeTotalActivePowerAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTotalActivePowerAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTotalReactivePowerAttribute(callback: LongAttributeCallback) { + suspend fun readTotalReactivePowerAttribute(): Long { // Implementation needs to be added here } - fun subscribeTotalReactivePowerAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTotalReactivePowerAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTotalApparentPowerAttribute(callback: LongAttributeCallback) { + suspend fun readTotalApparentPowerAttribute(): Long { // Implementation needs to be added here } - fun subscribeTotalApparentPowerAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTotalApparentPowerAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readMeasured1stHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasured1stHarmonicCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasured1stHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasured1stHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readMeasured3rdHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasured3rdHarmonicCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasured3rdHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasured3rdHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readMeasured5thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasured5thHarmonicCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasured5thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasured5thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readMeasured7thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasured7thHarmonicCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasured7thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasured7thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readMeasured9thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasured9thHarmonicCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasured9thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasured9thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readMeasured11thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasured11thHarmonicCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasured11thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasured11thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readMeasuredPhase1stHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasuredPhase1stHarmonicCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasuredPhase1stHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasuredPhase1stHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readMeasuredPhase3rdHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasuredPhase3rdHarmonicCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasuredPhase3rdHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasuredPhase3rdHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readMeasuredPhase5thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasuredPhase5thHarmonicCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasuredPhase5thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasuredPhase5thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readMeasuredPhase7thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasuredPhase7thHarmonicCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasuredPhase7thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasuredPhase7thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readMeasuredPhase9thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasuredPhase9thHarmonicCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasuredPhase9thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasuredPhase9thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readMeasuredPhase11thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasuredPhase11thHarmonicCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasuredPhase11thHarmonicCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeMeasuredPhase11thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readAcFrequencyMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcFrequencyMultiplierAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcFrequencyMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcFrequencyMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcFrequencyDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcFrequencyDivisorAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcFrequencyDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcFrequencyDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPowerMultiplierAttribute(callback: LongAttributeCallback) { + suspend fun readPowerMultiplierAttribute(): Long { // Implementation needs to be added here } - fun subscribePowerMultiplierAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePowerMultiplierAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readPowerDivisorAttribute(callback: LongAttributeCallback) { + suspend fun readPowerDivisorAttribute(): Long { // Implementation needs to be added here } - fun subscribePowerDivisorAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePowerDivisorAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readHarmonicCurrentMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readHarmonicCurrentMultiplierAttribute(): Integer { // Implementation needs to be added here } - fun subscribeHarmonicCurrentMultiplierAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeHarmonicCurrentMultiplierAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readPhaseHarmonicCurrentMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readPhaseHarmonicCurrentMultiplierAttribute(): Integer { // Implementation needs to be added here } - fun subscribePhaseHarmonicCurrentMultiplierAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePhaseHarmonicCurrentMultiplierAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readInstantaneousVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstantaneousVoltageAttribute(): Integer { // Implementation needs to be added here } - fun subscribeInstantaneousVoltageAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInstantaneousVoltageAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readInstantaneousLineCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstantaneousLineCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeInstantaneousLineCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInstantaneousLineCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readInstantaneousActiveCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstantaneousActiveCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeInstantaneousActiveCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInstantaneousActiveCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readInstantaneousReactiveCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstantaneousReactiveCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeInstantaneousReactiveCurrentAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInstantaneousReactiveCurrentAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readInstantaneousPowerAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstantaneousPowerAttribute(): Integer { // Implementation needs to be added here } - fun subscribeInstantaneousPowerAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInstantaneousPowerAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsVoltageMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageMinAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageMinAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsVoltageMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageMaxAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageMaxAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsCurrentAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsCurrentAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsCurrentMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentMinAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsCurrentMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentMinAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsCurrentMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentMaxAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsCurrentMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentMaxAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readActivePowerAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerAttribute(): Integer { // Implementation needs to be added here } - fun subscribeActivePowerAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readActivePowerMinAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerMinAttribute(): Integer { // Implementation needs to be added here } - fun subscribeActivePowerMinAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerMinAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readActivePowerMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerMaxAttribute(): Integer { // Implementation needs to be added here } - fun subscribeActivePowerMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerMaxAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readReactivePowerAttribute(callback: IntegerAttributeCallback) { + suspend fun readReactivePowerAttribute(): Integer { // Implementation needs to be added here } - fun subscribeReactivePowerAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeReactivePowerAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readApparentPowerAttribute(callback: IntegerAttributeCallback) { + suspend fun readApparentPowerAttribute(): Integer { // Implementation needs to be added here } - fun subscribeApparentPowerAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeApparentPowerAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPowerFactorAttribute(callback: IntegerAttributeCallback) { + suspend fun readPowerFactorAttribute(): Integer { // Implementation needs to be added here } - fun subscribePowerFactorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePowerFactorAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAverageRmsVoltageMeasurementPeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsVoltageMeasurementPeriodAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readAverageRmsUnderVoltageCounterAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsUnderVoltageCounterAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsExtremeOverVoltagePeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeOverVoltagePeriodAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsExtremeUnderVoltagePeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeUnderVoltagePeriodAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsVoltageSagPeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSagPeriodAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readRmsVoltageSwellPeriodAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSwellPeriodAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readAcVoltageMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcVoltageMultiplierAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcVoltageMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcVoltageDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcVoltageDivisorAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcVoltageDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcCurrentMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcCurrentMultiplierAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcCurrentMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcCurrentDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcCurrentDivisorAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcCurrentDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcPowerMultiplierAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcPowerMultiplierAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcPowerMultiplierAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcPowerDivisorAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcPowerDivisorAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcPowerDivisorAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readOverloadAlarmsMaskAttribute(callback: IntegerAttributeCallback) { + suspend fun readOverloadAlarmsMaskAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readVoltageOverloadAttribute(callback: IntegerAttributeCallback) { + suspend fun readVoltageOverloadAttribute(): Integer { // Implementation needs to be added here } - fun subscribeVoltageOverloadAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readCurrentOverloadAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentOverloadAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCurrentOverloadAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcOverloadAlarmsMaskAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcOverloadAlarmsMaskAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readAcVoltageOverloadAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcVoltageOverloadAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcVoltageOverloadAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcCurrentOverloadAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcCurrentOverloadAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcCurrentOverloadAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcActivePowerOverloadAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcActivePowerOverloadAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcActivePowerOverloadAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAcActivePowerOverloadAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAcReactivePowerOverloadAttribute(callback: IntegerAttributeCallback) { + suspend fun readAcReactivePowerOverloadAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAcReactivePowerOverloadAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAcReactivePowerOverloadAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readAverageRmsOverVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsOverVoltageAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAverageRmsOverVoltageAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAverageRmsOverVoltageAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAverageRmsUnderVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsUnderVoltageAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAverageRmsUnderVoltageAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsUnderVoltageAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsExtremeOverVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeOverVoltageAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsExtremeOverVoltageAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsExtremeOverVoltageAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsExtremeUnderVoltageAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeUnderVoltageAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsExtremeUnderVoltageAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsExtremeUnderVoltageAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsVoltageSagAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSagAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageSagAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageSagAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsVoltageSwellAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSwellAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageSwellAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageSwellAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLineCurrentPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readLineCurrentPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLineCurrentPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLineCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readActiveCurrentPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readActiveCurrentPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeActiveCurrentPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readReactiveCurrentPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readReactiveCurrentPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeReactiveCurrentPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeReactiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsVoltagePhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltagePhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltagePhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltagePhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsVoltageMinPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageMinPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageMinPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageMinPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsVoltageMaxPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageMaxPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageMaxPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsCurrentPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsCurrentPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsCurrentMinPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentMinPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsCurrentMinPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentMinPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsCurrentMaxPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentMaxPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsCurrentMaxPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readActivePowerPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeActivePowerPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readActivePowerMinPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerMinPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeActivePowerMinPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerMinPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readActivePowerMaxPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerMaxPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeActivePowerMaxPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readReactivePowerPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readReactivePowerPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeReactivePowerPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeReactivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readApparentPowerPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readApparentPowerPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeApparentPowerPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeApparentPowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPowerFactorPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readPowerFactorPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribePowerFactorPhaseBAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePowerFactorPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAverageRmsVoltageMeasurementPeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsVoltageMeasurementPeriodPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAverageRmsVoltageMeasurementPeriodPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsVoltageMeasurementPeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readAverageRmsOverVoltageCounterPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsOverVoltageCounterPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAverageRmsOverVoltageCounterPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsOverVoltageCounterPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readAverageRmsUnderVoltageCounterPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsUnderVoltageCounterPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAverageRmsUnderVoltageCounterPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsUnderVoltageCounterPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsExtremeOverVoltagePeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeOverVoltagePeriodPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsExtremeOverVoltagePeriodPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsExtremeOverVoltagePeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsExtremeUnderVoltagePeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeUnderVoltagePeriodPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsExtremeUnderVoltagePeriodPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsExtremeUnderVoltagePeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsVoltageSagPeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSagPeriodPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageSagPeriodPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsVoltageSagPeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsVoltageSwellPeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSwellPeriodPhaseBAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageSwellPeriodPhaseBAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsVoltageSwellPeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readLineCurrentPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readLineCurrentPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLineCurrentPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLineCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readActiveCurrentPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readActiveCurrentPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeActiveCurrentPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readReactiveCurrentPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readReactiveCurrentPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeReactiveCurrentPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeReactiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsVoltagePhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltagePhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltagePhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltagePhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsVoltageMinPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageMinPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageMinPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageMinPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsVoltageMaxPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageMaxPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageMaxPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsVoltageMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsCurrentPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsCurrentPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsCurrentMinPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentMinPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsCurrentMinPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentMinPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRmsCurrentMaxPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsCurrentMaxPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsCurrentMaxPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRmsCurrentMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readActivePowerPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeActivePowerPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readActivePowerMinPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerMinPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeActivePowerMinPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerMinPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readActivePowerMaxPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readActivePowerMaxPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeActivePowerMaxPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeActivePowerMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readReactivePowerPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readReactivePowerPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeReactivePowerPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeReactivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readApparentPowerPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readApparentPowerPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeApparentPowerPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeApparentPowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPowerFactorPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readPowerFactorPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribePowerFactorPhaseCAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePowerFactorPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAverageRmsVoltageMeasurementPeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsVoltageMeasurementPeriodPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAverageRmsVoltageMeasurementPeriodPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsVoltageMeasurementPeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readAverageRmsOverVoltageCounterPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsOverVoltageCounterPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAverageRmsOverVoltageCounterPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsOverVoltageCounterPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readAverageRmsUnderVoltageCounterPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readAverageRmsUnderVoltageCounterPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAverageRmsUnderVoltageCounterPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAverageRmsUnderVoltageCounterPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsExtremeOverVoltagePeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeOverVoltagePeriodPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsExtremeOverVoltagePeriodPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsExtremeOverVoltagePeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsExtremeUnderVoltagePeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsExtremeUnderVoltagePeriodPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsExtremeUnderVoltagePeriodPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsExtremeUnderVoltagePeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsVoltageSagPeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSagPeriodPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageSagPeriodPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsVoltageSagPeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readRmsVoltageSwellPeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + suspend fun readRmsVoltageSwellPeriodPhaseCAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRmsVoltageSwellPeriodPhaseCAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeRmsVoltageSwellPeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..a2dcd32f0c4892 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) - } - - 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) + suspend fun resetCounts() { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resetCounts(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - 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(): Long { // Implementation needs to be added here } - fun subscribePacketRxCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePacketRxCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readPacketTxCountAttribute(callback: LongAttributeCallback) { + suspend fun readPacketTxCountAttribute(): Long { // Implementation needs to be added here } - fun subscribePacketTxCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePacketTxCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxErrCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxErrCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxErrCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxErrCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readCollisionCountAttribute(callback: LongAttributeCallback) { + suspend fun readCollisionCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeCollisionCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCollisionCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readOverrunCountAttribute(callback: LongAttributeCallback) { + suspend fun readOverrunCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeOverrunCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeTimeSinceResetAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTimeSinceResetAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..f4c0799dfd06ce 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,22 +20,24 @@ 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? - ) { + class SpeedSettingAttribute(val value: UByte?) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun step(direction: UInt, wrap: Boolean?, lowestOff: Boolean?) { // Implementation needs to be added here } - fun step( - callback: DefaultClusterCallback, - direction: Integer, + suspend fun step( + direction: UInt, wrap: Boolean?, lowestOff: Boolean?, timedInvokeTimeoutMs: Int @@ -43,351 +45,222 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - 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) - } - - 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 readFanModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readFanModeAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readFanModeSequenceAttribute(callback: IntegerAttributeCallback) { + suspend fun readFanModeSequenceAttribute(): Integer { // 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): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribePercentCurrentAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePercentCurrentAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readSpeedMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readSpeedMaxAttribute(): Integer { // Implementation needs to be added here } - fun subscribeSpeedMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSpeedMaxAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeSpeedCurrentAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSpeedCurrentAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRockSupportAttribute(callback: IntegerAttributeCallback) { + suspend fun readRockSupportAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRockSupportAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRockSupportAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRockSettingAttribute(callback: IntegerAttributeCallback) { + suspend fun readRockSettingAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readWindSupportAttribute(callback: IntegerAttributeCallback) { + suspend fun readWindSupportAttribute(): Integer { // Implementation needs to be added here } - fun subscribeWindSupportAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWindSupportAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readWindSettingAttribute(callback: IntegerAttributeCallback) { + suspend fun readWindSettingAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readAirflowDirectionAttribute(callback: IntegerAttributeCallback) { + suspend fun readAirflowDirectionAttribute(): Integer { // 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): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..6c6c71f2aad3be 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,106 @@ 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) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) - fun failAtFault( - callback: DefaultClusterCallback, - type: Integer, - id: Long, - numCallsToSkip: Long, - numCallsToFail: Long, + class AttributeListAttribute(val value: ArrayList) + + suspend fun failAtFault( + type: UInt, + id: UInt, + numCallsToSkip: UInt, + numCallsToFail: UInt, takeMutex: Boolean ) { // Implementation needs to be added here } - fun failAtFault( - callback: DefaultClusterCallback, - type: Integer, - id: Long, - numCallsToSkip: Long, - numCallsToFail: Long, + suspend fun failAtFault( + type: UInt, + id: UInt, + numCallsToSkip: UInt, + numCallsToFail: UInt, takeMutex: Boolean, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun failRandomlyAtFault( - callback: DefaultClusterCallback, - type: Integer, - id: Long, - percentage: Integer - ) { + suspend fun failRandomlyAtFault(type: UInt, id: UInt, percentage: UByte) { // Implementation needs to be added here } - fun failRandomlyAtFault( - callback: DefaultClusterCallback, - type: Integer, - id: Long, - percentage: Integer, + suspend fun failRandomlyAtFault( + type: UInt, + id: UInt, + percentage: UByte, 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) - - 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) { + 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..cc1cb7c4f5df42 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..ab5c4ca9c43bf0 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(): Integer { // Implementation needs to be added here } - fun subscribeToleranceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..682833546af638 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(): Long { // Implementation needs to be added here } - fun subscribePeakMeasuredValueWindowAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeAverageMeasuredValueWindowAttribute( - callback: LongAttributeCallback, + suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementUnitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasurementMediumAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementMediumAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + suspend fun readLevelValueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLevelValueAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..59cfa7bb125a32 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,173 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class GeneralCommissioningCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 48u - } + class ArmFailSafeResponse(val errorCode: UInt, val debugText: String) + + class SetRegulatoryConfigResponse(val errorCode: UInt, val debugText: String) + + class CommissioningCompleteResponse(val errorCode: UInt, val debugText: String) + + class BasicCommissioningInfoAttribute( + val value: ChipStructs.GeneralCommissioningClusterBasicCommissioningInfo + ) + + class GeneratedCommandListAttribute(val value: ArrayList) - fun armFailSafe( - callback: ArmFailSafeResponseCallback, - expiryLengthSeconds: Integer, - breadcrumb: Long - ) { + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun armFailSafe(expiryLengthSeconds: UShort, breadcrumb: ULong): ArmFailSafeResponse { // Implementation needs to be added here } - fun armFailSafe( - callback: ArmFailSafeResponseCallback, - expiryLengthSeconds: Integer, - breadcrumb: Long, + suspend fun armFailSafe( + expiryLengthSeconds: UShort, + breadcrumb: ULong, timedInvokeTimeoutMs: Int - ) { + ): ArmFailSafeResponse { // Implementation needs to be added here } - fun setRegulatoryConfig( - callback: SetRegulatoryConfigResponseCallback, - newRegulatoryConfig: Integer, + suspend fun setRegulatoryConfig( + newRegulatoryConfig: UInt, countryCode: String, - breadcrumb: Long - ) { + breadcrumb: ULong + ): SetRegulatoryConfigResponse { // Implementation needs to be added here } - fun setRegulatoryConfig( - callback: SetRegulatoryConfigResponseCallback, - newRegulatoryConfig: Integer, + suspend fun setRegulatoryConfig( + newRegulatoryConfig: UInt, countryCode: String, - breadcrumb: Long, + breadcrumb: ULong, timedInvokeTimeoutMs: Int - ) { + ): SetRegulatoryConfigResponse { // Implementation needs to be added here } - fun commissioningComplete(callback: CommissioningCompleteResponseCallback) { + suspend fun commissioningComplete(): CommissioningCompleteResponse { // Implementation needs to be added here } - fun commissioningComplete( - callback: CommissioningCompleteResponseCallback, - timedInvokeTimeoutMs: Int - ) { + suspend fun commissioningComplete(timedInvokeTimeoutMs: Int): CommissioningCompleteResponse { // 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) - - fun onError(error: Exception) - } - - interface BasicCommissioningInfoAttributeCallback { - fun onSuccess(value: ChipStructs.GeneralCommissioningClusterBasicCommissioningInfo) - - 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 readBreadcrumbAttribute(callback: LongAttributeCallback) { + suspend fun readBreadcrumbAttribute(): Long { // 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): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeRegulatoryConfigAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRegulatoryConfigAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLocationCapabilityAttribute(callback: IntegerAttributeCallback) { + suspend fun readLocationCapabilityAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLocationCapabilityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLocationCapabilityAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..dabdd0abaebbe5 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 - } + class NetworkInterfacesAttribute( + val value: ArrayList + ) - fun testEventTrigger(callback: DefaultClusterCallback, enableKey: ByteArray, eventTrigger: Long) { - // Implementation needs to be added here - } + class ActiveHardwareFaultsAttribute(val value: ArrayList?) - fun testEventTrigger( - callback: DefaultClusterCallback, - enableKey: ByteArray, - eventTrigger: Long, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class ActiveRadioFaultsAttribute(val value: ArrayList?) - interface NetworkInterfacesAttributeCallback { - fun onSuccess(value: ArrayList) + class ActiveNetworkFaultsAttribute(val value: ArrayList?) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - 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) - } + class AcceptedCommandListAttribute(val value: ArrayList) - interface ActiveNetworkFaultsAttributeCallback { - fun onSuccess(value: ArrayList?) + 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) - } - - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun testEventTrigger(enableKey: ByteArray, eventTrigger: ULong) { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun testEventTrigger( + enableKey: ByteArray, + eventTrigger: ULong, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here } - 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(): Integer { // Implementation needs to be added here } - fun subscribeRebootCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRebootCountAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readUpTimeAttribute(callback: LongAttributeCallback) { + suspend fun readUpTimeAttribute(): Long { // Implementation needs to be added here } - fun subscribeUpTimeAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeUpTimeAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTotalOperationalHoursAttribute(callback: LongAttributeCallback) { + suspend fun readTotalOperationalHoursAttribute(): Long { // Implementation needs to be added here } - fun subscribeTotalOperationalHoursAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTotalOperationalHoursAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readBootReasonAttribute(callback: IntegerAttributeCallback) { + suspend fun readBootReasonAttribute(): Integer { // Implementation needs to be added here } - fun subscribeBootReasonAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBootReasonAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeAverageWearCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAverageWearCountAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..59aaa3229a279b 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,182 @@ 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 - ) { + class KeySetReadAllIndicesResponse(val groupKeySetIDs: ArrayList) + + class GroupKeyMapAttribute( + val value: ArrayList + ) + + class GroupTableAttribute( + val value: ArrayList + ) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun keySetWrite(groupKeySet: ChipStructs.GroupKeyManagementClusterGroupKeySetStruct) { // Implementation needs to be added here } - fun keySetWrite( - callback: DefaultClusterCallback, + suspend fun keySetWrite( groupKeySet: ChipStructs.GroupKeyManagementClusterGroupKeySetStruct, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun keySetRead(callback: KeySetReadResponseCallback, groupKeySetID: Integer) { + suspend fun keySetRead(groupKeySetID: UShort): KeySetReadResponse { // Implementation needs to be added here } - fun keySetRead( - callback: KeySetReadResponseCallback, - groupKeySetID: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun keySetRead(groupKeySetID: UShort, timedInvokeTimeoutMs: Int): KeySetReadResponse { // Implementation needs to be added here } - fun keySetRemove(callback: DefaultClusterCallback, groupKeySetID: Integer) { + suspend fun keySetRemove(groupKeySetID: UShort) { // Implementation needs to be added here } - fun keySetRemove( - callback: DefaultClusterCallback, - groupKeySetID: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun keySetRemove(groupKeySetID: UShort, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun keySetReadAllIndices(callback: KeySetReadAllIndicesResponseCallback) { + suspend fun keySetReadAllIndices(): KeySetReadAllIndicesResponse { // Implementation needs to be added here } - fun keySetReadAllIndices( - callback: KeySetReadAllIndicesResponseCallback, - timedInvokeTimeoutMs: Int - ) { + suspend fun keySetReadAllIndices(timedInvokeTimeoutMs: Int): KeySetReadAllIndicesResponse { // 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) - } - - 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 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(): Integer { // Implementation needs to be added here } - fun subscribeMaxGroupsPerFabricAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxGroupsPerFabricAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMaxGroupKeysPerFabricAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxGroupKeysPerFabricAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMaxGroupKeysPerFabricAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxGroupKeysPerFabricAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..53b78b37228a52 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,143 @@ 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) + + class ViewGroupResponse(val status: UInt, val groupID: UShort, val groupName: String) + + class GetGroupMembershipResponse(val capacity: UByte?, val groupList: ArrayList) + + class RemoveGroupResponse(val status: UInt, val groupID: UShort) + + class GeneratedCommandListAttribute(val value: ArrayList) - fun addGroup(callback: AddGroupResponseCallback, groupID: Integer, groupName: String) { + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun addGroup(groupID: UShort, groupName: String): AddGroupResponse { // Implementation needs to be added here } - fun addGroup( - callback: AddGroupResponseCallback, - groupID: Integer, + suspend fun addGroup( + groupID: UShort, groupName: String, timedInvokeTimeoutMs: Int - ) { + ): AddGroupResponse { // Implementation needs to be added here } - fun viewGroup(callback: ViewGroupResponseCallback, groupID: Integer) { + suspend fun viewGroup(groupID: UShort): ViewGroupResponse { // Implementation needs to be added here } - fun viewGroup(callback: ViewGroupResponseCallback, groupID: Integer, timedInvokeTimeoutMs: Int) { + suspend fun viewGroup(groupID: UShort, timedInvokeTimeoutMs: Int): ViewGroupResponse { // Implementation needs to be added here } - fun getGroupMembership( - callback: GetGroupMembershipResponseCallback, - groupList: ArrayList - ) { + suspend fun getGroupMembership(groupList: ArrayList): GetGroupMembershipResponse { // Implementation needs to be added here } - fun getGroupMembership( - callback: GetGroupMembershipResponseCallback, - groupList: ArrayList, + suspend fun getGroupMembership( + groupList: ArrayList, timedInvokeTimeoutMs: Int - ) { + ): GetGroupMembershipResponse { // Implementation needs to be added here } - fun removeGroup(callback: RemoveGroupResponseCallback, groupID: Integer) { + suspend fun removeGroup(groupID: UShort): RemoveGroupResponse { // Implementation needs to be added here } - fun removeGroup( - callback: RemoveGroupResponseCallback, - groupID: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun removeGroup(groupID: UShort, timedInvokeTimeoutMs: Int): RemoveGroupResponse { // Implementation needs to be added here } - fun removeAllGroups(callback: DefaultClusterCallback) { + suspend fun removeAllGroups() { // Implementation needs to be added here } - fun removeAllGroups(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun removeAllGroups(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun addGroupIfIdentifying(callback: DefaultClusterCallback, groupID: Integer, groupName: String) { + suspend fun addGroupIfIdentifying(groupID: UShort, groupName: String) { // Implementation needs to be added here } - fun addGroupIfIdentifying( - callback: DefaultClusterCallback, - groupID: Integer, - groupName: String, - timedInvokeTimeoutMs: Int - ) { + suspend fun addGroupIfIdentifying(groupID: UShort, groupName: String, timedInvokeTimeoutMs: Int) { // 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) { + suspend fun readNameSupportAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNameSupportAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..20fc9b8bc14303 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) + class LastChangedTimeAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ReplacementProductListAttributeCallback { - fun onSuccess( - value: ArrayList? - ) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class ReplacementProductListAttribute( + 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) - } + 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 resetCondition() { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resetCondition(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - fun readConditionAttribute(callback: IntegerAttributeCallback) { + suspend fun readConditionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeConditionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDegradationDirectionAttribute(callback: IntegerAttributeCallback) { + suspend fun readDegradationDirectionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDegradationDirectionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readChangeIndicationAttribute(callback: IntegerAttributeCallback) { + suspend fun readChangeIndicationAttribute(): Integer { // Implementation needs to be added here } - fun subscribeChangeIndicationAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..9678c6c3ff79c5 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,199 @@ 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) + + class RegisteredClientsAttribute( + val value: ArrayList? + ) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) - fun registerClient( - callback: RegisterClientResponseCallback, - checkInNodeID: Long, - monitoredSubject: Long, + suspend fun registerClient( + checkInNodeID: ULong, + monitoredSubject: ULong, key: ByteArray, verificationKey: ByteArray? - ) { + ): RegisterClientResponse { // Implementation needs to be added here } - fun registerClient( - callback: RegisterClientResponseCallback, - checkInNodeID: Long, - monitoredSubject: Long, + suspend fun registerClient( + checkInNodeID: ULong, + monitoredSubject: ULong, key: ByteArray, verificationKey: ByteArray?, timedInvokeTimeoutMs: Int - ) { + ): RegisterClientResponse { // Implementation needs to be added here } - fun unregisterClient( - callback: DefaultClusterCallback, - checkInNodeID: Long, - verificationKey: ByteArray? - ) { + suspend fun unregisterClient(checkInNodeID: ULong, verificationKey: ByteArray?) { // Implementation needs to be added here } - fun unregisterClient( - callback: DefaultClusterCallback, - checkInNodeID: Long, + suspend fun unregisterClient( + checkInNodeID: ULong, verificationKey: ByteArray?, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun stayActiveRequest(callback: DefaultClusterCallback) { + suspend fun stayActiveRequest() { // Implementation needs to be added here } - fun stayActiveRequest(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun stayActiveRequest(timedInvokeTimeoutMs: Int) { // 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) + suspend fun readIdleModeDurationAttribute(): Long { + // Implementation needs to be added here } - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun subscribeIdleModeDurationAttribute(minInterval: Int, maxInterval: Int): Long { + // Implementation needs to be added here } - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun readActiveModeDurationAttribute(): Long { + // 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): Long { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun readActiveModeThresholdAttribute(): Integer { + // Implementation needs to be added here } - fun readIdleModeDurationAttribute(callback: LongAttributeCallback) { + suspend fun subscribeActiveModeThresholdAttribute(minInterval: Int, maxInterval: Int): Integer { // 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 - ) { + ): RegisteredClientsAttribute { // Implementation needs to be added here } - fun readActiveModeThresholdAttribute(callback: IntegerAttributeCallback) { - // Implementation needs to be added here - } - - fun subscribeActiveModeThresholdAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun readICDCounterAttribute(): Long { // Implementation needs to be added here } - fun readRegisteredClientsAttribute(callback: RegisteredClientsAttributeCallback) { + suspend fun subscribeICDCounterAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRegisteredClientsAttributeWithFabricFilter( - callback: RegisteredClientsAttributeCallback, - isFabricFiltered: Boolean - ) { + suspend fun readClientsSupportedPerFabricAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRegisteredClientsAttribute( - callback: RegisteredClientsAttributeCallback, + suspend fun subscribeClientsSupportedPerFabricAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readICDCounterAttribute(callback: LongAttributeCallback) { + suspend fun readUserActiveModeTriggerHintAttribute(): Long { // Implementation needs to be added here } - fun subscribeICDCounterAttribute( - callback: LongAttributeCallback, + suspend fun subscribeUserActiveModeTriggerHintAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..3c6264a693836b 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) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) - fun identify(callback: DefaultClusterCallback, identifyTime: Integer) { + suspend fun identify(identifyTime: UShort) { // Implementation needs to be added here } - fun identify(callback: DefaultClusterCallback, identifyTime: Integer, timedInvokeTimeoutMs: Int) { + suspend fun identify(identifyTime: UShort, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun triggerEffect( - callback: DefaultClusterCallback, - effectIdentifier: Integer, - effectVariant: Integer - ) { + suspend fun triggerEffect(effectIdentifier: UInt, effectVariant: UInt) { // Implementation needs to be added here } - fun triggerEffect( - callback: DefaultClusterCallback, - effectIdentifier: Integer, - effectVariant: Integer, + suspend fun triggerEffect( + effectIdentifier: UInt, + effectVariant: UInt, 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) - - 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 readIdentifyTimeAttribute(callback: IntegerAttributeCallback) { + suspend fun readIdentifyTimeAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readIdentifyTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readIdentifyTypeAttribute(): Integer { // Implementation needs to be added here } - fun subscribeIdentifyTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeIdentifyTypeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..c2d4f98a1ef50d 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(): Integer { // Implementation needs to be added here } - fun subscribeToleranceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..cbb6b3e62dff98 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) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class AttributeListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun sendKey(keyCode: UInt): SendKeyResponse { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun sendKey(keyCode: UInt, timedInvokeTimeoutMs: Int): SendKeyResponse { + // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..f2906fd080f351 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(): Integer { // 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): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..6a13b78d10ef32 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,144 @@ 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) - } - - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun changeToMode(newMode: UByte): ChangeToModeResponse { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int): ChangeToModeResponse { + // 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(): Integer { // Implementation needs to be added here } - fun subscribeCurrentModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..10b579a79f0f50 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,404 @@ 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?) + + class OnLevelAttribute(val value: UByte?) + + class OnTransitionTimeAttribute(val value: UShort?) + + class OffTransitionTimeAttribute(val value: UShort?) + + class DefaultMoveRateAttribute(val value: UByte?) + + class StartUpCurrentLevelAttribute(val value: UByte?) - fun moveToLevel( - callback: DefaultClusterCallback, - level: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun moveToLevel( + level: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun moveToLevel( - callback: DefaultClusterCallback, - level: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun moveToLevel( + level: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun move( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer?, - optionsMask: Integer, - optionsOverride: Integer - ) { + suspend fun move(moveMode: UInt, rate: UByte?, optionsMask: UInt, optionsOverride: UInt) { // Implementation needs to be added here } - fun move( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer?, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun move( + moveMode: UInt, + rate: UByte?, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun step( - 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 ) { // Implementation needs to be added here } - fun step( - 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 ) { // Implementation needs to be added here } - fun stop(callback: DefaultClusterCallback, optionsMask: Integer, optionsOverride: Integer) { + suspend fun stop(optionsMask: UInt, optionsOverride: UInt) { // Implementation needs to be added here } - fun stop( - callback: DefaultClusterCallback, - optionsMask: Integer, - optionsOverride: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun stop(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun moveToLevelWithOnOff( - callback: DefaultClusterCallback, - level: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer + suspend fun moveToLevelWithOnOff( + level: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun moveToLevelWithOnOff( - callback: DefaultClusterCallback, - level: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun moveToLevelWithOnOff( + level: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun moveWithOnOff( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer?, - optionsMask: Integer, - optionsOverride: Integer + suspend fun moveWithOnOff( + moveMode: UInt, + rate: UByte?, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun moveWithOnOff( - callback: DefaultClusterCallback, - moveMode: Integer, - rate: Integer?, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun moveWithOnOff( + moveMode: UInt, + rate: UByte?, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun stepWithOnOff( - callback: DefaultClusterCallback, - stepMode: Integer, - stepSize: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer + suspend fun stepWithOnOff( + stepMode: UInt, + stepSize: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt ) { // Implementation needs to be added here } - fun stepWithOnOff( - callback: DefaultClusterCallback, - stepMode: Integer, - stepSize: Integer, - transitionTime: Integer?, - optionsMask: Integer, - optionsOverride: Integer, + suspend fun stepWithOnOff( + stepMode: UInt, + stepSize: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun stopWithOnOff( - callback: DefaultClusterCallback, - optionsMask: Integer, - optionsOverride: Integer - ) { + suspend fun stopWithOnOff(optionsMask: UInt, optionsOverride: UInt) { // Implementation needs to be added here } - fun stopWithOnOff( - callback: DefaultClusterCallback, - optionsMask: Integer, - optionsOverride: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun stopWithOnOff(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun moveToClosestFrequency(callback: DefaultClusterCallback, frequency: Integer) { + suspend fun moveToClosestFrequency(frequency: UShort) { // Implementation needs to be added here } - fun moveToClosestFrequency( - callback: DefaultClusterCallback, - frequency: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun moveToClosestFrequency(frequency: UShort, timedInvokeTimeoutMs: Int) { // 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) - } - - 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 readCurrentLevelAttribute(callback: CurrentLevelAttributeCallback) { + suspend fun readCurrentLevelAttribute(): CurrentLevelAttribute { // 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(): Integer { // Implementation needs to be added here } - fun subscribeRemainingTimeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMinLevelAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinLevelAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMinLevelAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMinLevelAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMaxLevelAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxLevelAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMaxLevelAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readCurrentFrequencyAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentFrequencyAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCurrentFrequencyAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentFrequencyAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMinFrequencyAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinFrequencyAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMinFrequencyAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMinFrequencyAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMaxFrequencyAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxFrequencyAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMaxFrequencyAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxFrequencyAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readOptionsAttribute(callback: IntegerAttributeCallback) { + suspend fun readOptionsAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readOnOffTransitionTimeAttribute(callback: IntegerAttributeCallback) { + suspend fun readOnOffTransitionTimeAttribute(): Integer { // 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): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..e09a9092d6e38a 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..3e60dd2206919d 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) - } + 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 sleep() { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun sleep(timedInvokeTimeoutMs: Int) { + // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..7bc5bf60d0cb97 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) { + suspend fun selectInput(index: UByte) { // Implementation needs to be added here } - fun hideInputStatus(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun selectInput(index: UByte, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun renameInput(callback: DefaultClusterCallback, index: Integer, name: String) { + suspend fun showInputStatus() { // Implementation needs to be added here } - fun renameInput( - callback: DefaultClusterCallback, - index: Integer, - name: String, - timedInvokeTimeoutMs: Int - ) { + suspend fun showInputStatus(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - interface InputListAttributeCallback { - 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 hideInputStatus() { + // Implementation needs to be added here } - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun hideInputStatus(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun renameInput(index: UByte, name: String) { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun renameInput(index: UByte, name: String, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - 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(): Integer { // Implementation needs to be added here } - fun subscribeCurrentInputAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentInputAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..53990b4f12c416 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?) + + class StartTimeAttribute(val value: ULong?) + + class DurationAttribute(val value: ULong?) + + class SampledPositionAttribute( + val value: ChipStructs.MediaPlaybackClusterPlaybackPositionStruct? + ) + + class SeekRangeEndAttribute(val value: ULong?) + + class SeekRangeStartAttribute(val value: ULong?) + + class GeneratedCommandListAttribute(val value: ArrayList) - fun play(callback: PlaybackResponseCallback) { + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun play(): PlaybackResponse { // Implementation needs to be added here } - fun play(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + suspend fun play(timedInvokeTimeoutMs: Int): PlaybackResponse { // Implementation needs to be added here } - fun pause(callback: PlaybackResponseCallback) { + suspend fun pause(): PlaybackResponse { // Implementation needs to be added here } - fun pause(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + suspend fun pause(timedInvokeTimeoutMs: Int): PlaybackResponse { // Implementation needs to be added here } - fun stop(callback: PlaybackResponseCallback) { + suspend fun stop(): PlaybackResponse { // Implementation needs to be added here } - fun stop(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + suspend fun stop(timedInvokeTimeoutMs: Int): PlaybackResponse { // Implementation needs to be added here } - fun startOver(callback: PlaybackResponseCallback) { + suspend fun startOver(): PlaybackResponse { // Implementation needs to be added here } - fun startOver(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + suspend fun startOver(timedInvokeTimeoutMs: Int): PlaybackResponse { // Implementation needs to be added here } - fun previous(callback: PlaybackResponseCallback) { + suspend fun previous(): PlaybackResponse { // Implementation needs to be added here } - fun previous(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + suspend fun previous(timedInvokeTimeoutMs: Int): PlaybackResponse { // Implementation needs to be added here } - fun next(callback: PlaybackResponseCallback) { + suspend fun next(): PlaybackResponse { // Implementation needs to be added here } - fun next(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + suspend fun next(timedInvokeTimeoutMs: Int): PlaybackResponse { // Implementation needs to be added here } - fun rewind(callback: PlaybackResponseCallback) { + suspend fun rewind(): PlaybackResponse { // Implementation needs to be added here } - fun rewind(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + suspend fun rewind(timedInvokeTimeoutMs: Int): PlaybackResponse { // Implementation needs to be added here } - fun fastForward(callback: PlaybackResponseCallback) { + suspend fun fastForward(): PlaybackResponse { // Implementation needs to be added here } - fun fastForward(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + suspend fun fastForward(timedInvokeTimeoutMs: Int): PlaybackResponse { // Implementation needs to be added here } - fun skipForward(callback: PlaybackResponseCallback, deltaPositionMilliseconds: Long) { + suspend fun skipForward(deltaPositionMilliseconds: ULong): PlaybackResponse { // Implementation needs to be added here } - fun skipForward( - callback: PlaybackResponseCallback, - deltaPositionMilliseconds: Long, + suspend fun skipForward( + deltaPositionMilliseconds: ULong, timedInvokeTimeoutMs: Int - ) { + ): PlaybackResponse { // Implementation needs to be added here } - fun skipBackward(callback: PlaybackResponseCallback, deltaPositionMilliseconds: Long) { + suspend fun skipBackward(deltaPositionMilliseconds: ULong): PlaybackResponse { // Implementation needs to be added here } - fun skipBackward( - callback: PlaybackResponseCallback, - deltaPositionMilliseconds: Long, + suspend fun skipBackward( + deltaPositionMilliseconds: ULong, timedInvokeTimeoutMs: Int - ) { + ): PlaybackResponse { // Implementation needs to be added here } - fun seek(callback: PlaybackResponseCallback, position: Long) { + suspend fun seek(position: ULong): PlaybackResponse { // Implementation needs to be added here } - fun seek(callback: PlaybackResponseCallback, position: Long, timedInvokeTimeoutMs: Int) { + suspend fun seek(position: ULong, timedInvokeTimeoutMs: Int): PlaybackResponse { // 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 readCurrentStateAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCurrentStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentStateAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readStartTimeAttribute(callback: StartTimeAttributeCallback) { + suspend fun readStartTimeAttribute(): StartTimeAttribute { // Implementation needs to be added here } - fun subscribeStartTimeAttribute( - callback: StartTimeAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeStartTimeAttribute(minInterval: Int, maxInterval: Int): StartTimeAttribute { // Implementation needs to be added here } - fun readDurationAttribute(callback: DurationAttributeCallback) { + suspend fun readDurationAttribute(): DurationAttribute { // Implementation needs to be added here } - fun subscribeDurationAttribute( - callback: DurationAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDurationAttribute(minInterval: Int, maxInterval: Int): DurationAttribute { // Implementation needs to be added here } - fun readSampledPositionAttribute(callback: SampledPositionAttributeCallback) { + suspend fun readSampledPositionAttribute(): SampledPositionAttribute { // Implementation needs to be added here } - fun subscribeSampledPositionAttribute( - callback: SampledPositionAttributeCallback, + suspend fun subscribeSampledPositionAttribute( minInterval: Int, maxInterval: Int - ) { + ): SampledPositionAttribute { // Implementation needs to be added here } - fun readPlaybackSpeedAttribute(callback: FloatAttributeCallback) { + suspend fun readPlaybackSpeedAttribute(): Float { // Implementation needs to be added here } - fun subscribePlaybackSpeedAttribute( - callback: FloatAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePlaybackSpeedAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } - fun readSeekRangeEndAttribute(callback: SeekRangeEndAttributeCallback) { + suspend fun readSeekRangeEndAttribute(): SeekRangeEndAttribute { // Implementation needs to be added here } - fun subscribeSeekRangeEndAttribute( - callback: SeekRangeEndAttributeCallback, + suspend fun subscribeSeekRangeEndAttribute( minInterval: Int, maxInterval: Int - ) { + ): SeekRangeEndAttribute { // Implementation needs to be added here } - fun readSeekRangeStartAttribute(callback: SeekRangeStartAttributeCallback) { + suspend fun readSeekRangeStartAttribute(): SeekRangeStartAttribute { // Implementation needs to be added here } - fun subscribeSeekRangeStartAttribute( - callback: SeekRangeStartAttributeCallback, + suspend fun subscribeSeekRangeStartAttribute( minInterval: Int, maxInterval: Int - ) { + ): SeekRangeStartAttribute { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..f6439d6d367d6f 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) + class StandardNamespaceAttribute(val value: UInt?) - fun onError(ex: Exception) + class SupportedModesAttribute( + val value: ArrayList + ) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class StartUpModeAttribute(val value: UByte?) - 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) { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int) { + // 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 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(): Integer { // Implementation needs to be added here } - fun subscribeCurrentModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..9d8832cafe4f9a 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,301 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class NetworkCommissioningCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 49u - } + class ScanNetworksResponse( + val networkingStatus: UInt, + val debugText: String?, + val wiFiScanResults: + ArrayList?, + val threadScanResults: + ArrayList? + ) + + class NetworkConfigResponse( + val networkingStatus: UInt, + val debugText: String?, + val networkIndex: UByte? + ) + + class ConnectNetworkResponse( + val networkingStatus: UInt, + val debugText: String?, + val errorValue: Int? + ) + + class NetworksAttribute( + val value: ArrayList + ) + + class LastNetworkingStatusAttribute(val value: UInt?) + + class LastNetworkIDAttribute(val value: ByteArray?) + + class LastConnectErrorValueAttribute(val value: Int?) + + class SupportedWiFiBandsAttribute(val value: ArrayList?) + + class GeneratedCommandListAttribute(val value: ArrayList) - fun scanNetworks(callback: ScanNetworksResponseCallback, ssid: ByteArray?, breadcrumb: Long?) { + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun scanNetworks(ssid: ByteArray?, breadcrumb: ULong?): ScanNetworksResponse { // Implementation needs to be added here } - fun scanNetworks( - callback: ScanNetworksResponseCallback, + suspend fun scanNetworks( ssid: ByteArray?, - breadcrumb: Long?, + breadcrumb: ULong?, timedInvokeTimeoutMs: Int - ) { + ): ScanNetworksResponse { // Implementation needs to be added here } - fun addOrUpdateWiFiNetwork( - callback: NetworkConfigResponseCallback, + suspend fun addOrUpdateWiFiNetwork( ssid: ByteArray, credentials: ByteArray, - breadcrumb: Long? - ) { + breadcrumb: ULong? + ): NetworkConfigResponse { // Implementation needs to be added here } - fun addOrUpdateWiFiNetwork( - callback: NetworkConfigResponseCallback, + suspend fun addOrUpdateWiFiNetwork( ssid: ByteArray, credentials: ByteArray, - breadcrumb: Long?, + breadcrumb: ULong?, timedInvokeTimeoutMs: Int - ) { + ): NetworkConfigResponse { // Implementation needs to be added here } - fun addOrUpdateThreadNetwork( - callback: NetworkConfigResponseCallback, + suspend fun addOrUpdateThreadNetwork( operationalDataset: ByteArray, - breadcrumb: Long? - ) { + breadcrumb: ULong? + ): NetworkConfigResponse { // Implementation needs to be added here } - fun addOrUpdateThreadNetwork( - callback: NetworkConfigResponseCallback, + suspend fun addOrUpdateThreadNetwork( operationalDataset: ByteArray, - breadcrumb: Long?, + breadcrumb: ULong?, timedInvokeTimeoutMs: Int - ) { + ): NetworkConfigResponse { // Implementation needs to be added here } - fun removeNetwork( - callback: NetworkConfigResponseCallback, - networkID: ByteArray, - breadcrumb: Long? - ) { + suspend fun removeNetwork(networkID: ByteArray, breadcrumb: ULong?): NetworkConfigResponse { // Implementation needs to be added here } - fun removeNetwork( - callback: NetworkConfigResponseCallback, + suspend fun removeNetwork( networkID: ByteArray, - breadcrumb: Long?, + breadcrumb: ULong?, timedInvokeTimeoutMs: Int - ) { + ): NetworkConfigResponse { // Implementation needs to be added here } - fun connectNetwork( - callback: ConnectNetworkResponseCallback, - networkID: ByteArray, - breadcrumb: Long? - ) { + suspend fun connectNetwork(networkID: ByteArray, breadcrumb: ULong?): ConnectNetworkResponse { // Implementation needs to be added here } - fun connectNetwork( - callback: ConnectNetworkResponseCallback, + suspend fun connectNetwork( networkID: ByteArray, - breadcrumb: Long?, + breadcrumb: ULong?, timedInvokeTimeoutMs: Int - ) { + ): ConnectNetworkResponse { // Implementation needs to be added here } - fun reorderNetwork( - callback: NetworkConfigResponseCallback, + suspend fun reorderNetwork( networkID: ByteArray, - networkIndex: Integer, - breadcrumb: Long? - ) { + networkIndex: UByte, + breadcrumb: ULong? + ): NetworkConfigResponse { // Implementation needs to be added here } - fun reorderNetwork( - callback: NetworkConfigResponseCallback, + suspend fun reorderNetwork( networkID: ByteArray, - networkIndex: Integer, - breadcrumb: Long?, + networkIndex: UByte, + breadcrumb: ULong?, timedInvokeTimeoutMs: Int - ) { + ): NetworkConfigResponse { // Implementation needs to be added here } - interface ScanNetworksResponseCallback { - fun onSuccess( - networkingStatus: Integer, - debugText: String?, - wiFiScanResults: - ArrayList?, - threadScanResults: - ArrayList? - ) - - fun onError(error: Exception) - } - - interface NetworkConfigResponseCallback { - fun onSuccess(networkingStatus: Integer, debugText: String?, networkIndex: Integer?) - - fun onError(error: Exception) - } - - interface ConnectNetworkResponseCallback { - fun onSuccess(networkingStatus: Integer, debugText: String?, errorValue: Long?) - - fun onError(error: Exception) - } - - interface NetworksAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - 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) - } - - interface SupportedWiFiBandsAttributeCallback { - 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 readMaxNetworksAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxNetworksAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMaxNetworksAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxNetworksAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeScanMaxTimeSecondsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeScanMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readConnectMaxTimeSecondsAttribute(callback: IntegerAttributeCallback) { + suspend fun readConnectMaxTimeSecondsAttribute(): Integer { // Implementation needs to be added here } - fun subscribeConnectMaxTimeSecondsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeConnectMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeSupportedThreadFeaturesAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeSupportedThreadFeaturesAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readThreadVersionAttribute(callback: IntegerAttributeCallback) { + suspend fun readThreadVersionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeThreadVersionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeThreadVersionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..7db03647a72a57 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(): Long { // Implementation needs to be added here } - fun subscribePeakMeasuredValueWindowAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeAverageMeasuredValueWindowAttribute( - callback: LongAttributeCallback, + suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementUnitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasurementMediumAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementMediumAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + suspend fun readLevelValueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLevelValueAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..33784c096a054e 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(): Integer { // Implementation needs to be added here } - fun subscribeOccupancyAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readOccupancySensorTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readOccupancySensorTypeAttribute(): Integer { // Implementation needs to be added here } - fun subscribeOccupancySensorTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOccupancySensorTypeAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readOccupancySensorTypeBitmapAttribute(callback: IntegerAttributeCallback) { + suspend fun readOccupancySensorTypeBitmapAttribute(): Integer { // Implementation needs to be added here } - fun subscribeOccupancySensorTypeBitmapAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeOccupancySensorTypeBitmapAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readPIROccupiedToUnoccupiedDelayAttribute(callback: IntegerAttributeCallback) { + suspend fun readPIROccupiedToUnoccupiedDelayAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readPIRUnoccupiedToOccupiedDelayAttribute(callback: IntegerAttributeCallback) { + suspend fun readPIRUnoccupiedToOccupiedDelayAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readPIRUnoccupiedToOccupiedThresholdAttribute(callback: IntegerAttributeCallback) { + suspend fun readPIRUnoccupiedToOccupiedThresholdAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readUltrasonicOccupiedToUnoccupiedDelayAttribute(callback: IntegerAttributeCallback) { + suspend fun readUltrasonicOccupiedToUnoccupiedDelayAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readUltrasonicUnoccupiedToOccupiedDelayAttribute(callback: IntegerAttributeCallback) { + suspend fun readUltrasonicUnoccupiedToOccupiedDelayAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readUltrasonicUnoccupiedToOccupiedThresholdAttribute(callback: IntegerAttributeCallback) { + suspend fun readUltrasonicUnoccupiedToOccupiedThresholdAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readPhysicalContactOccupiedToUnoccupiedDelayAttribute(callback: IntegerAttributeCallback) { + suspend fun readPhysicalContactOccupiedToUnoccupiedDelayAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readPhysicalContactUnoccupiedToOccupiedDelayAttribute(callback: IntegerAttributeCallback) { + suspend fun readPhysicalContactUnoccupiedToOccupiedDelayAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readPhysicalContactUnoccupiedToOccupiedThresholdAttribute( - callback: IntegerAttributeCallback - ) { + suspend fun readPhysicalContactUnoccupiedToOccupiedThresholdAttribute(): Integer { // 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 - ) { + ): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..a38157c7adf85c 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?) + + class GeneratedCommandListAttribute(val value: ArrayList) - fun off(callback: DefaultClusterCallback) { + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun off() { // Implementation needs to be added here } - fun off(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun off(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun on(callback: DefaultClusterCallback) { + suspend fun on() { // Implementation needs to be added here } - fun on(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun on(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun toggle(callback: DefaultClusterCallback) { + suspend fun toggle() { // Implementation needs to be added here } - fun toggle(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun toggle(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun offWithEffect( - callback: DefaultClusterCallback, - effectIdentifier: Integer, - effectVariant: Integer - ) { + suspend fun offWithEffect(effectIdentifier: UInt, effectVariant: UByte) { // Implementation needs to be added here } - fun offWithEffect( - callback: DefaultClusterCallback, - effectIdentifier: Integer, - effectVariant: Integer, + suspend fun offWithEffect( + effectIdentifier: UInt, + effectVariant: UByte, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun onWithRecallGlobalScene(callback: DefaultClusterCallback) { + suspend fun onWithRecallGlobalScene() { // Implementation needs to be added here } - fun onWithRecallGlobalScene(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun onWithRecallGlobalScene(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun onWithTimedOff( - callback: DefaultClusterCallback, - onOffControl: Integer, - onTime: Integer, - offWaitTime: Integer - ) { + suspend fun onWithTimedOff(onOffControl: UInt, onTime: UShort, offWaitTime: UShort) { // Implementation needs to be added here } - fun onWithTimedOff( - callback: DefaultClusterCallback, - onOffControl: Integer, - onTime: Integer, - offWaitTime: Integer, + suspend fun onWithTimedOff( + onOffControl: UInt, + onTime: UShort, + offWaitTime: UShort, timedInvokeTimeoutMs: Int ) { // 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 readOnOffAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeOnOffAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOnOffAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readGlobalSceneControlAttribute(callback: BooleanAttributeCallback) { + suspend fun readGlobalSceneControlAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeGlobalSceneControlAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeGlobalSceneControlAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readOnTimeAttribute(callback: IntegerAttributeCallback) { + suspend fun readOnTimeAttribute(): Integer { // Implementation needs to be added here } - fun writeOnTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOnTimeAttribute(value: UShort) { // Implementation needs to be added here } - fun writeOnTimeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOnTimeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOnTimeAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readOffWaitTimeAttribute(callback: IntegerAttributeCallback) { + suspend fun readOffWaitTimeAttribute(): Integer { // Implementation needs to be added here } - fun writeOffWaitTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + suspend fun writeOffWaitTimeAttribute(value: UShort) { // Implementation needs to be added here } - fun writeOffWaitTimeAttribute( - callback: DefaultClusterCallback, - value: Integer, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOffWaitTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - fun subscribeOffWaitTimeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOffWaitTimeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..5547c47d4c8898 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(): Integer { // Implementation needs to be added here } - fun subscribeSwitchTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSwitchTypeAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readSwitchActionsAttribute(callback: IntegerAttributeCallback) { + suspend fun readSwitchActionsAttribute(): Integer { // 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): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..f02704b6eb6e4e 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,241 @@ 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 + ) + + class CertificateChainResponse(val certificate: ByteArray) + + class CSRResponse(val NOCSRElements: ByteArray, val attestationSignature: ByteArray) + + class NOCResponse(val statusCode: UInt, val fabricIndex: UByte?, val debugText: String?) + + class NOCsAttribute(val value: ArrayList) + + class FabricsAttribute( + val value: ArrayList + ) + + class TrustedRootCertificatesAttribute(val value: ArrayList) - fun attestationRequest(callback: AttestationResponseCallback, attestationNonce: ByteArray) { + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun attestationRequest(attestationNonce: ByteArray): AttestationResponse { // Implementation needs to be added here } - fun attestationRequest( - callback: AttestationResponseCallback, + suspend fun attestationRequest( attestationNonce: ByteArray, timedInvokeTimeoutMs: Int - ) { + ): AttestationResponse { // Implementation needs to be added here } - fun certificateChainRequest( - callback: CertificateChainResponseCallback, - certificateType: Integer - ) { + suspend fun certificateChainRequest(certificateType: UInt): CertificateChainResponse { // Implementation needs to be added here } - fun certificateChainRequest( - callback: CertificateChainResponseCallback, - certificateType: Integer, + suspend fun certificateChainRequest( + certificateType: UInt, timedInvokeTimeoutMs: Int - ) { + ): CertificateChainResponse { // Implementation needs to be added here } - fun CSRRequest(callback: CSRResponseCallback, CSRNonce: ByteArray, isForUpdateNOC: Boolean?) { + suspend fun CSRRequest(CSRNonce: ByteArray, isForUpdateNOC: Boolean?): CSRResponse { // Implementation needs to be added here } - fun CSRRequest( - callback: CSRResponseCallback, + suspend fun CSRRequest( CSRNonce: ByteArray, isForUpdateNOC: Boolean?, timedInvokeTimeoutMs: Int - ) { + ): CSRResponse { // Implementation needs to be added here } - fun addNOC( - callback: NOCResponseCallback, + suspend fun addNOC( NOCValue: ByteArray, ICACValue: ByteArray?, IPKValue: ByteArray, - caseAdminSubject: Long, - adminVendorId: Integer - ) { + caseAdminSubject: ULong, + adminVendorId: UShort + ): NOCResponse { // Implementation needs to be added here } - fun addNOC( - callback: NOCResponseCallback, + suspend fun addNOC( NOCValue: ByteArray, ICACValue: ByteArray?, IPKValue: ByteArray, - caseAdminSubject: Long, - adminVendorId: Integer, + caseAdminSubject: ULong, + adminVendorId: UShort, timedInvokeTimeoutMs: Int - ) { + ): NOCResponse { // Implementation needs to be added here } - fun updateNOC(callback: NOCResponseCallback, NOCValue: ByteArray, ICACValue: ByteArray?) { + suspend fun updateNOC(NOCValue: ByteArray, ICACValue: ByteArray?): NOCResponse { // Implementation needs to be added here } - fun updateNOC( - callback: NOCResponseCallback, + suspend fun updateNOC( NOCValue: ByteArray, ICACValue: ByteArray?, timedInvokeTimeoutMs: Int - ) { + ): NOCResponse { // Implementation needs to be added here } - fun updateFabricLabel(callback: NOCResponseCallback, label: String) { + suspend fun updateFabricLabel(label: String): NOCResponse { // Implementation needs to be added here } - fun updateFabricLabel(callback: NOCResponseCallback, label: String, timedInvokeTimeoutMs: Int) { + suspend fun updateFabricLabel(label: String, timedInvokeTimeoutMs: Int): NOCResponse { // Implementation needs to be added here } - fun removeFabric(callback: NOCResponseCallback, fabricIndex: Integer) { + suspend fun removeFabric(fabricIndex: UByte): NOCResponse { // Implementation needs to be added here } - fun removeFabric(callback: NOCResponseCallback, fabricIndex: Integer, timedInvokeTimeoutMs: Int) { + suspend fun removeFabric(fabricIndex: UByte, timedInvokeTimeoutMs: Int): NOCResponse { // Implementation needs to be added here } - fun addTrustedRootCertificate(callback: DefaultClusterCallback, rootCACertificate: ByteArray) { + suspend fun addTrustedRootCertificate(rootCACertificate: ByteArray) { // Implementation needs to be added here } - fun addTrustedRootCertificate( - callback: DefaultClusterCallback, - rootCACertificate: ByteArray, - timedInvokeTimeoutMs: Int - ) { + suspend fun addTrustedRootCertificate(rootCACertificate: ByteArray, timedInvokeTimeoutMs: Int) { // 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) - } - - 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(): Integer { // Implementation needs to be added here } - fun subscribeSupportedFabricsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSupportedFabricsAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readCommissionedFabricsAttribute(callback: IntegerAttributeCallback) { + suspend fun readCommissionedFabricsAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCommissionedFabricsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCommissionedFabricsAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeCurrentFabricIndexAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentFabricIndexAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..64542a3c0fde13 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 - } - - fun stop(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun start(callback: OperationalCommandResponseCallback) { - // Implementation needs to be added here - } - - fun start(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class OperationalCommandResponse( + val commandResponseState: ChipStructs.OperationalStateClusterErrorStateStruct + ) - fun resume(callback: OperationalCommandResponseCallback) { - // Implementation needs to be added here - } + class PhaseListAttribute(val value: ArrayList?) - fun resume(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class CurrentPhaseAttribute(val value: UByte?) - interface OperationalCommandResponseCallback { - fun onSuccess(commandResponseState: ChipStructs.OperationalStateClusterErrorStateStruct) + class CountdownTimeAttribute(val value: UInt?) - fun onError(error: Exception) - } + class OperationalStateListAttribute( + val value: ArrayList + ) - interface PhaseListAttributeCallback { - fun onSuccess(value: ArrayList?) + class OperationalErrorAttribute(val value: ChipStructs.OperationalStateClusterErrorStateStruct) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class AcceptedCommandListAttribute(val value: ArrayList) - interface CurrentPhaseAttributeCallback { - fun onSuccess(value: Integer?) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class AttributeListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun pause(): OperationalCommandResponse { + // Implementation needs to be added here } - interface CountdownTimeAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun pause(timedInvokeTimeoutMs: Int): OperationalCommandResponse { + // Implementation needs to be added here } - interface OperationalStateListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun stop(): OperationalCommandResponse { + // Implementation needs to be added here } - interface OperationalErrorAttributeCallback { - fun onSuccess(value: ChipStructs.OperationalStateClusterErrorStateStruct) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun stop(timedInvokeTimeoutMs: Int): OperationalCommandResponse { + // Implementation needs to be added here } - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun start(): OperationalCommandResponse { + // Implementation needs to be added here } - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun start(timedInvokeTimeoutMs: Int): OperationalCommandResponse { + // Implementation needs to be added here } - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resume(): OperationalCommandResponse { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resume(timedInvokeTimeoutMs: Int): OperationalCommandResponse { + // Implementation needs to be added here } - 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(): Integer { // Implementation needs to be added here } - fun subscribeOperationalStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..f2d8ec68044131 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,136 @@ 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? + ) + + class ApplyUpdateResponse(val action: UInt, val delayedActionTime: UInt) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) - fun queryImage( - callback: QueryImageResponseCallback, - vendorID: Integer, - productID: Integer, - softwareVersion: Long, - protocolsSupported: ArrayList, - hardwareVersion: Integer?, + class AttributeListAttribute(val value: ArrayList) + + suspend fun queryImage( + vendorID: UShort, + productID: UShort, + softwareVersion: UInt, + protocolsSupported: ArrayList, + hardwareVersion: UShort?, location: String?, requestorCanConsent: Boolean?, metadataForProvider: ByteArray? - ) { + ): QueryImageResponse { // Implementation needs to be added here } - fun queryImage( - callback: QueryImageResponseCallback, - vendorID: Integer, - productID: Integer, - softwareVersion: Long, - protocolsSupported: ArrayList, - hardwareVersion: Integer?, + suspend fun queryImage( + vendorID: UShort, + productID: UShort, + softwareVersion: UInt, + protocolsSupported: ArrayList, + hardwareVersion: UShort?, location: String?, requestorCanConsent: Boolean?, metadataForProvider: ByteArray?, timedInvokeTimeoutMs: Int - ) { + ): QueryImageResponse { // Implementation needs to be added here } - fun applyUpdateRequest( - callback: ApplyUpdateResponseCallback, - updateToken: ByteArray, - newVersion: Long - ) { + suspend fun applyUpdateRequest(updateToken: ByteArray, newVersion: UInt): ApplyUpdateResponse { // Implementation needs to be added here } - fun applyUpdateRequest( - callback: ApplyUpdateResponseCallback, + suspend fun applyUpdateRequest( updateToken: ByteArray, - newVersion: Long, + newVersion: UInt, timedInvokeTimeoutMs: Int - ) { + ): ApplyUpdateResponse { // Implementation needs to be added here } - fun notifyUpdateApplied( - callback: DefaultClusterCallback, - updateToken: ByteArray, - softwareVersion: Long - ) { + suspend fun notifyUpdateApplied(updateToken: ByteArray, softwareVersion: UInt) { // Implementation needs to be added here } - fun notifyUpdateApplied( - callback: DefaultClusterCallback, + suspend fun notifyUpdateApplied( updateToken: ByteArray, - softwareVersion: Long, + softwareVersion: UInt, timedInvokeTimeoutMs: Int ) { // 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) { + 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..3860fd36046920 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,156 @@ 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 + ) + + class UpdateStateProgressAttribute(val value: UByte?) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) - fun announceOTAProvider( - callback: DefaultClusterCallback, - providerNodeID: Long, - vendorID: Integer, - announcementReason: Integer, + suspend fun announceOTAProvider( + providerNodeID: ULong, + vendorID: UShort, + announcementReason: UInt, metadataForNode: ByteArray?, - endpoint: Integer + endpoint: UShort ) { // Implementation needs to be added here } - fun announceOTAProvider( - callback: DefaultClusterCallback, - providerNodeID: Long, - vendorID: Integer, - announcementReason: Integer, + suspend fun announceOTAProvider( + providerNodeID: ULong, + vendorID: UShort, + announcementReason: UInt, metadataForNode: ByteArray?, - endpoint: Integer, + endpoint: UShort, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - interface DefaultOTAProvidersAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface UpdateStateProgressAttributeCallback { - 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 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(): Integer { // Implementation needs to be added here } - fun subscribeUpdateStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeUpdateStateAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..ad1f4f1e3c24cc 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(): Long { // Implementation needs to be added here } - fun subscribePeakMeasuredValueWindowAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeAverageMeasuredValueWindowAttribute( - callback: LongAttributeCallback, + suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementUnitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasurementMediumAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementMediumAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + suspend fun readLevelValueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLevelValueAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..3218382267451d 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(): Long { // Implementation needs to be added here } - fun subscribePeakMeasuredValueWindowAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeAverageMeasuredValueWindowAttribute( - callback: LongAttributeCallback, + suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementUnitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasurementMediumAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementMediumAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + suspend fun readLevelValueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLevelValueAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..eca3c3c7888954 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(): Long { // Implementation needs to be added here } - fun subscribePeakMeasuredValueWindowAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeAverageMeasuredValueWindowAttribute( - callback: LongAttributeCallback, + suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementUnitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasurementMediumAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementMediumAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + suspend fun readLevelValueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLevelValueAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..251190e5dc24dc 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(): Long { // Implementation needs to be added here } - fun subscribePeakMeasuredValueWindowAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeAverageMeasuredValueWindowAttribute( - callback: LongAttributeCallback, + suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementUnitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasurementMediumAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementMediumAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + suspend fun readLevelValueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLevelValueAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..f4a7540167e7f3 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(): Integer { // Implementation needs to be added here } - fun subscribeStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readOrderAttribute(callback: IntegerAttributeCallback) { + suspend fun readOrderAttribute(): Integer { // Implementation needs to be added here } - fun subscribeOrderAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOrderAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeWiredCurrentTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWiredCurrentTypeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeWiredNominalVoltageAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWiredNominalVoltageAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readWiredMaximumCurrentAttribute(callback: LongAttributeCallback) { + suspend fun readWiredMaximumCurrentAttribute(): Long { // Implementation needs to be added here } - fun subscribeWiredMaximumCurrentAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeWiredMaximumCurrentAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeBatChargeLevelAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatChargeLevelAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeBatReplaceabilityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatReplaceabilityAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeBatCommonDesignationAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatCommonDesignationAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeBatApprovedChemistryAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatApprovedChemistryAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readBatCapacityAttribute(callback: LongAttributeCallback) { + suspend fun readBatCapacityAttribute(): Long { // Implementation needs to be added here } - fun subscribeBatCapacityAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatCapacityAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readBatQuantityAttribute(callback: IntegerAttributeCallback) { + suspend fun readBatQuantityAttribute(): Integer { // Implementation needs to be added here } - fun subscribeBatQuantityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatQuantityAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readBatChargeStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readBatChargeStateAttribute(): Integer { // Implementation needs to be added here } - fun subscribeBatChargeStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatChargeStateAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..34e8ca1b244df2 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..52e73b9e3eab25 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(): Integer { // Implementation needs to be added here } - fun subscribeToleranceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeScaledToleranceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeScaledToleranceAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readScaleAttribute(callback: IntegerAttributeCallback) { + suspend fun readScaleAttribute(): Integer { // Implementation needs to be added here } - fun subscribeScaleAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeScaleAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..9d75f438e3f861 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..2933f46526fc51 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..b7c2f43e30810c 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..f0ebebcd008dde 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..3b92a86031b99a 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,366 @@ 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) + class MaxPressureAttribute(val value: Short?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MaxSpeedAttribute(val value: UShort?) - interface MaxConstTempAttributeCallback { - fun onSuccess(value: Integer?) + class MaxFlowAttribute(val value: UShort?) - fun onError(ex: Exception) + class MinConstPressureAttribute(val value: Short?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MaxConstPressureAttribute(val value: Short?) - interface CapacityAttributeCallback { - fun onSuccess(value: Integer?) + class MinCompPressureAttribute(val value: Short?) - fun onError(ex: Exception) + class MaxCompPressureAttribute(val value: Short?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MinConstSpeedAttribute(val value: UShort?) - interface SpeedAttributeCallback { - fun onSuccess(value: Integer?) + class MaxConstSpeedAttribute(val value: UShort?) - fun onError(ex: Exception) + class MinConstFlowAttribute(val value: UShort?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class MaxConstFlowAttribute(val value: UShort?) - interface LifetimeRunningHoursAttributeCallback { - fun onSuccess(value: Long?) + class MinConstTempAttribute(val value: Short?) - fun onError(ex: Exception) + class MaxConstTempAttribute(val value: Short?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class CapacityAttribute(val value: Short?) - interface PowerAttributeCallback { - fun onSuccess(value: Long?) + class SpeedAttribute(val value: UShort?) - fun onError(ex: Exception) + class LifetimeRunningHoursAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class PowerAttribute(val value: UInt?) - interface LifetimeEnergyConsumedAttributeCallback { - fun onSuccess(value: Long?) + class LifetimeEnergyConsumedAttribute(val value: UInt?) - 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) - - 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 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(): Integer { // Implementation needs to be added here } - fun subscribePumpStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePumpStatusAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readEffectiveOperationModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readEffectiveOperationModeAttribute(): Integer { // Implementation needs to be added here } - fun subscribeEffectiveOperationModeAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeEffectiveOperationModeAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readEffectiveControlModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readEffectiveControlModeAttribute(): Integer { // Implementation needs to be added here } - fun subscribeEffectiveControlModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEffectiveControlModeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readControlModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readControlModeAttribute(): Integer { // 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): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..8e3a86a1da46dd 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(): Long { // Implementation needs to be added here } - fun subscribePeakMeasuredValueWindowAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeAverageMeasuredValueWindowAttribute( - callback: LongAttributeCallback, + suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementUnitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasurementMediumAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementMediumAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + suspend fun readLevelValueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLevelValueAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..12d8df79b35501 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(): Long { // Implementation needs to be added here } - fun subscribeMaskAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) { + suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readStateAttribute(callback: LongAttributeCallback) { + suspend fun readStateAttribute(): Long { // Implementation needs to be added here } - fun subscribeStateAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) { + suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readSupportedAttribute(callback: LongAttributeCallback) { + suspend fun readSupportedAttribute(): Long { // Implementation needs to be added here } - fun subscribeSupportedAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..be0d2f76bbe092 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,145 @@ 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) - } - - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun changeToMode(newMode: UByte): ChangeToModeResponse { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int): ChangeToModeResponse { + // 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(): Integer { // Implementation needs to be added here } - fun subscribeCurrentModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..7ad724957088a0 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(): Integer { // Implementation needs to be added here } - fun subscribeToleranceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..183c9b4d5b9e37 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,123 @@ 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): ChangeToModeResponse { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int): ChangeToModeResponse { + // 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(): Integer { // Implementation needs to be added here } - fun subscribeCurrentModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..c05135a17ce6e8 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 - } - - fun stop(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - fun start(callback: OperationalCommandResponseCallback) { - // Implementation needs to be added here - } - - fun start(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class OperationalCommandResponse( + val commandResponseState: ChipStructs.RvcOperationalStateClusterErrorStateStruct + ) - fun resume(callback: OperationalCommandResponseCallback) { - // Implementation needs to be added here - } + class PhaseListAttribute(val value: ArrayList?) - fun resume(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class CurrentPhaseAttribute(val value: UByte?) - interface OperationalCommandResponseCallback { - fun onSuccess(commandResponseState: ChipStructs.RvcOperationalStateClusterErrorStateStruct) + class CountdownTimeAttribute(val value: UInt?) - fun onError(error: Exception) - } + class OperationalStateListAttribute( + val value: ArrayList + ) - interface PhaseListAttributeCallback { - fun onSuccess(value: ArrayList?) + class OperationalErrorAttribute( + val value: ChipStructs.RvcOperationalStateClusterErrorStateStruct + ) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class AcceptedCommandListAttribute(val value: ArrayList) - interface CurrentPhaseAttributeCallback { - fun onSuccess(value: Integer?) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class AttributeListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun pause(): OperationalCommandResponse { + // Implementation needs to be added here } - interface CountdownTimeAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun pause(timedInvokeTimeoutMs: Int): OperationalCommandResponse { + // Implementation needs to be added here } - interface OperationalStateListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun stop(): OperationalCommandResponse { + // Implementation needs to be added here } - interface OperationalErrorAttributeCallback { - fun onSuccess(value: ChipStructs.RvcOperationalStateClusterErrorStateStruct) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun stop(timedInvokeTimeoutMs: Int): OperationalCommandResponse { + // Implementation needs to be added here } - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun start(): OperationalCommandResponse { + // Implementation needs to be added here } - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun start(timedInvokeTimeoutMs: Int): OperationalCommandResponse { + // Implementation needs to be added here } - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resume(): OperationalCommandResponse { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resume(timedInvokeTimeoutMs: Int): OperationalCommandResponse { + // Implementation needs to be added here } - 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(): Integer { // Implementation needs to be added here } - fun subscribeOperationalStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..7e157abea4027f 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,123 @@ 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): ChangeToModeResponse { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int): ChangeToModeResponse { + // 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(): Integer { // Implementation needs to be added here } - fun subscribeCurrentModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..bddd578ea3b2d5 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 - } + class AddArgumentsResponse(val returnValue: UByte) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) - fun ping(callback: DefaultClusterCallback) { + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun ping() { // Implementation needs to be added here } - fun ping(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun ping(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun addArguments(callback: AddArgumentsResponseCallback, arg1: Integer, arg2: Integer) { + suspend fun addArguments(arg1: UByte, arg2: UByte): AddArgumentsResponse { // Implementation needs to be added here } - fun addArguments( - callback: AddArgumentsResponseCallback, - arg1: Integer, - arg2: Integer, + suspend fun addArguments( + arg1: UByte, + arg2: UByte, timedInvokeTimeoutMs: Int - ) { + ): AddArgumentsResponse { // Implementation needs to be added here } - interface AddArgumentsResponseCallback { - fun onSuccess(returnValue: 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 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..fdff3ad57b9aa6 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,325 @@ 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) + + class ViewSceneResponse( + val status: UShort, + val groupID: UShort, + val sceneID: UByte, + val transitionTime: UShort?, + val sceneName: String?, + val extensionFieldSets: ArrayList? + ) + + class RemoveSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) + + class RemoveAllScenesResponse(val status: UShort, val groupID: UShort) + + class StoreSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) + + class GetSceneMembershipResponse( + val status: UShort, + val capacity: UByte?, + val groupID: UShort, + val sceneList: ArrayList? + ) + + class EnhancedAddSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) + + class EnhancedViewSceneResponse( + val status: UShort, + val groupID: UShort, + val sceneID: UByte, + val transitionTime: UShort?, + val sceneName: String?, + val extensionFieldSets: ArrayList? + ) + + class CopySceneResponse( + val status: UShort, + val groupIdentifierFrom: UShort, + val sceneIdentifierFrom: UByte + ) + + class LastConfiguredByAttribute(val value: ULong?) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) - fun addScene( - callback: AddSceneResponseCallback, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer, + class AttributeListAttribute(val value: ArrayList) + + suspend fun addScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort, sceneName: String, extensionFieldSets: ArrayList - ) { + ): AddSceneResponse { // Implementation needs to be added here } - fun addScene( - callback: AddSceneResponseCallback, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer, + suspend fun addScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort, sceneName: String, extensionFieldSets: ArrayList, timedInvokeTimeoutMs: Int - ) { + ): AddSceneResponse { // Implementation needs to be added here } - fun viewScene(callback: ViewSceneResponseCallback, groupID: Integer, sceneID: Integer) { + suspend fun viewScene(groupID: UShort, sceneID: UByte): ViewSceneResponse { // Implementation needs to be added here } - fun viewScene( - callback: ViewSceneResponseCallback, - groupID: Integer, - sceneID: Integer, + suspend fun viewScene( + groupID: UShort, + sceneID: UByte, timedInvokeTimeoutMs: Int - ) { + ): ViewSceneResponse { // Implementation needs to be added here } - fun removeScene(callback: RemoveSceneResponseCallback, groupID: Integer, sceneID: Integer) { + suspend fun removeScene(groupID: UShort, sceneID: UByte): RemoveSceneResponse { // Implementation needs to be added here } - fun removeScene( - callback: RemoveSceneResponseCallback, - groupID: Integer, - sceneID: Integer, + suspend fun removeScene( + groupID: UShort, + sceneID: UByte, timedInvokeTimeoutMs: Int - ) { + ): RemoveSceneResponse { // Implementation needs to be added here } - fun removeAllScenes(callback: RemoveAllScenesResponseCallback, groupID: Integer) { + suspend fun removeAllScenes(groupID: UShort): RemoveAllScenesResponse { // Implementation needs to be added here } - fun removeAllScenes( - callback: RemoveAllScenesResponseCallback, - groupID: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun removeAllScenes(groupID: UShort, timedInvokeTimeoutMs: Int): RemoveAllScenesResponse { // Implementation needs to be added here } - fun storeScene(callback: StoreSceneResponseCallback, groupID: Integer, sceneID: Integer) { + suspend fun storeScene(groupID: UShort, sceneID: UByte): StoreSceneResponse { // Implementation needs to be added here } - fun storeScene( - callback: StoreSceneResponseCallback, - groupID: Integer, - sceneID: Integer, + suspend fun storeScene( + groupID: UShort, + sceneID: UByte, timedInvokeTimeoutMs: Int - ) { + ): StoreSceneResponse { // Implementation needs to be added here } - fun recallScene( - callback: DefaultClusterCallback, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer? - ) { + suspend fun recallScene(groupID: UShort, sceneID: UByte, transitionTime: UShort?) { // Implementation needs to be added here } - fun recallScene( - callback: DefaultClusterCallback, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer?, + suspend fun recallScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort?, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun getSceneMembership(callback: GetSceneMembershipResponseCallback, groupID: Integer) { + suspend fun getSceneMembership(groupID: UShort): GetSceneMembershipResponse { // Implementation needs to be added here } - fun getSceneMembership( - callback: GetSceneMembershipResponseCallback, - groupID: Integer, + suspend fun getSceneMembership( + groupID: UShort, timedInvokeTimeoutMs: Int - ) { + ): GetSceneMembershipResponse { // Implementation needs to be added here } - fun enhancedAddScene( - callback: EnhancedAddSceneResponseCallback, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer, + suspend fun enhancedAddScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort, sceneName: String, extensionFieldSets: ArrayList - ) { + ): EnhancedAddSceneResponse { // Implementation needs to be added here } - fun enhancedAddScene( - callback: EnhancedAddSceneResponseCallback, - groupID: Integer, - sceneID: Integer, - transitionTime: Integer, + suspend fun enhancedAddScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort, sceneName: String, extensionFieldSets: ArrayList, timedInvokeTimeoutMs: Int - ) { + ): EnhancedAddSceneResponse { // Implementation needs to be added here } - fun enhancedViewScene( - callback: EnhancedViewSceneResponseCallback, - groupID: Integer, - sceneID: Integer - ) { + suspend fun enhancedViewScene(groupID: UShort, sceneID: UByte): EnhancedViewSceneResponse { // Implementation needs to be added here } - fun enhancedViewScene( - callback: EnhancedViewSceneResponseCallback, - groupID: Integer, - sceneID: Integer, + suspend fun enhancedViewScene( + groupID: UShort, + sceneID: UByte, timedInvokeTimeoutMs: Int - ) { + ): EnhancedViewSceneResponse { // Implementation needs to be added here } - fun copyScene( - callback: CopySceneResponseCallback, - mode: Integer, - groupIdentifierFrom: Integer, - sceneIdentifierFrom: Integer, - groupIdentifierTo: Integer, - sceneIdentifierTo: Integer - ) { + suspend fun copyScene( + mode: UInt, + groupIdentifierFrom: UShort, + sceneIdentifierFrom: UByte, + groupIdentifierTo: UShort, + sceneIdentifierTo: UByte + ): CopySceneResponse { // Implementation needs to be added here } - fun copyScene( - callback: CopySceneResponseCallback, - mode: Integer, - groupIdentifierFrom: Integer, - sceneIdentifierFrom: Integer, - groupIdentifierTo: Integer, - sceneIdentifierTo: Integer, + suspend fun copyScene( + mode: UInt, + groupIdentifierFrom: UShort, + sceneIdentifierFrom: UByte, + groupIdentifierTo: UShort, + sceneIdentifierTo: UByte, timedInvokeTimeoutMs: Int - ) { + ): CopySceneResponse { // 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 readSceneCountAttribute(): Integer { // Implementation needs to be added here } - fun subscribeSceneCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSceneCountAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readCurrentSceneAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentSceneAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCurrentSceneAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentSceneAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readCurrentGroupAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentGroupAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCurrentGroupAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentGroupAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readSceneValidAttribute(callback: BooleanAttributeCallback) { + suspend fun readSceneValidAttribute(): Boolean { // Implementation needs to be added here } - fun subscribeSceneValidAttribute( - callback: BooleanAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSceneValidAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } - fun readNameSupportAttribute(callback: IntegerAttributeCallback) { + suspend fun readNameSupportAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNameSupportAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLastConfiguredByAttribute(callback: LastConfiguredByAttributeCallback) { + suspend fun readLastConfiguredByAttribute(): LastConfiguredByAttribute { // Implementation needs to be added here } - fun subscribeLastConfiguredByAttribute( - callback: LastConfiguredByAttributeCallback, + suspend fun subscribeLastConfiguredByAttribute( minInterval: Int, maxInterval: Int - ) { + ): LastConfiguredByAttribute { // Implementation needs to be added here } - fun readSceneTableSizeAttribute(callback: IntegerAttributeCallback) { + suspend fun readSceneTableSizeAttribute(): Integer { // Implementation needs to be added here } - fun subscribeSceneTableSizeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSceneTableSizeAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRemainingCapacityAttribute(callback: IntegerAttributeCallback) { + suspend fun readRemainingCapacityAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRemainingCapacityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRemainingCapacityAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..e9a153e56bb2cc 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,195 @@ 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 - } + class GeneratedCommandListAttribute(val value: ArrayList) - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) + class AcceptedCommandListAttribute(val value: ArrayList) - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class EventListAttribute(val value: ArrayList) - 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) + suspend fun selfTestRequest() { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun selfTestRequest(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - fun readExpressedStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readExpressedStateAttribute(): Integer { // Implementation needs to be added here } - fun subscribeExpressedStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeExpressedStateAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readSmokeStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readSmokeStateAttribute(): Integer { // Implementation needs to be added here } - fun subscribeSmokeStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSmokeStateAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readCOStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readCOStateAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCOStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCOStateAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readBatteryAlertAttribute(callback: IntegerAttributeCallback) { + suspend fun readBatteryAlertAttribute(): Integer { // Implementation needs to be added here } - fun subscribeBatteryAlertAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeBatteryAlertAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDeviceMutedAttribute(callback: IntegerAttributeCallback) { + suspend fun readDeviceMutedAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDeviceMutedAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDeviceMutedAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeEndOfServiceAlertAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEndOfServiceAlertAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readInterconnectSmokeAlarmAttribute(callback: IntegerAttributeCallback) { + suspend fun readInterconnectSmokeAlarmAttribute(): Integer { // Implementation needs to be added here } - fun subscribeInterconnectSmokeAlarmAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInterconnectSmokeAlarmAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readInterconnectCOAlarmAttribute(callback: IntegerAttributeCallback) { + suspend fun readInterconnectCOAlarmAttribute(): Integer { // Implementation needs to be added here } - fun subscribeInterconnectCOAlarmAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeInterconnectCOAlarmAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readContaminationStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readContaminationStateAttribute(): Integer { // Implementation needs to be added here } - fun subscribeContaminationStateAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeContaminationStateAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readSmokeSensitivityLevelAttribute(callback: IntegerAttributeCallback) { + suspend fun readSmokeSensitivityLevelAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readExpiryDateAttribute(callback: LongAttributeCallback) { + suspend fun readExpiryDateAttribute(): Long { // Implementation needs to be added here } - fun subscribeExpiryDateAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeExpiryDateAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..4b541c607a8399 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,119 @@ 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) - } + 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) + suspend fun resetWatermarks() { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resetWatermarks(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - 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(): Long { // Implementation needs to be added here } - fun subscribeCurrentHeapFreeAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentHeapFreeAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readCurrentHeapUsedAttribute(callback: LongAttributeCallback) { + suspend fun readCurrentHeapUsedAttribute(): Long { // Implementation needs to be added here } - fun subscribeCurrentHeapUsedAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentHeapUsedAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readCurrentHeapHighWatermarkAttribute(callback: LongAttributeCallback) { + suspend fun readCurrentHeapHighWatermarkAttribute(): Long { // Implementation needs to be added here } - fun subscribeCurrentHeapHighWatermarkAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentHeapHighWatermarkAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..b9d35970afe971 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(): Integer { // Implementation needs to be added here } - fun subscribeNumberOfPositionsAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeNumberOfPositionsAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readCurrentPositionAttribute(callback: IntegerAttributeCallback) { + suspend fun readCurrentPositionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeCurrentPositionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentPositionAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMultiPressMaxAttribute(callback: IntegerAttributeCallback) { + suspend fun readMultiPressMaxAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMultiPressMaxAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMultiPressMaxAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..e1d3dfeb51b644 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 - } + class NavigateTargetResponse(val status: UInt, val data: String?) - fun navigateTarget(callback: NavigateTargetResponseCallback, target: Integer, data: String?) { - // Implementation needs to be added here - } + class TargetListAttribute( + val value: ArrayList + ) - fun navigateTarget( - callback: NavigateTargetResponseCallback, - target: Integer, - data: String?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class GeneratedCommandListAttribute(val value: ArrayList) - interface NavigateTargetResponseCallback { - fun onSuccess(status: Integer, data: String?) - - fun onError(error: Exception) - } + class AcceptedCommandListAttribute(val value: ArrayList) - interface TargetListAttributeCallback { - fun onSuccess(value: ArrayList) + class EventListAttribute(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) - } + class AttributeListAttribute(val value: ArrayList) - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun navigateTarget(target: UByte, data: String?): NavigateTargetResponse { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun navigateTarget( + target: UByte, + data: String?, + timedInvokeTimeoutMs: Int + ): NavigateTargetResponse { + // Implementation needs to be added here } - 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(): Integer { // Implementation needs to be added here } - fun subscribeCurrentTargetAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeCurrentTargetAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..ab185aac10dbd7 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 - } - - fun setTemperature( - callback: DefaultClusterCallback, - targetTemperature: Integer?, - targetTemperatureLevel: Integer? - ) { - // Implementation needs to be added here - } - - fun setTemperature( - callback: DefaultClusterCallback, - targetTemperature: Integer?, - targetTemperatureLevel: Integer?, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - interface SupportedTemperatureLevelsAttributeCallback { - 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 SupportedTemperatureLevelsAttribute(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) + class AttributeListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun setTemperature(targetTemperature: Short?, targetTemperatureLevel: UByte?) { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun setTemperature( + targetTemperature: Short?, + targetTemperatureLevel: UByte?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here } - fun readTemperatureSetpointAttribute(callback: IntegerAttributeCallback) { + suspend fun readTemperatureSetpointAttribute(): Integer { // Implementation needs to be added here } - fun subscribeTemperatureSetpointAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTemperatureSetpointAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMinTemperatureAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinTemperatureAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMinTemperatureAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMinTemperatureAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMaxTemperatureAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxTemperatureAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMaxTemperatureAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMaxTemperatureAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readStepAttribute(callback: IntegerAttributeCallback) { + suspend fun readStepAttribute(): Integer { // Implementation needs to be added here } - fun subscribeStepAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeStepAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readSelectedTemperatureLevelAttribute(callback: IntegerAttributeCallback) { + suspend fun readSelectedTemperatureLevelAttribute(): Integer { // Implementation needs to be added here } - fun subscribeSelectedTemperatureLevelAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeSelectedTemperatureLevelAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..363a575465d724 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(): Integer { // Implementation needs to be added here } - fun subscribeToleranceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..2136037e98be10 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,847 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class ThermostatCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 513u - } + class GetWeeklyScheduleResponse( + val numberOfTransitionsForSequence: UByte, + val dayOfWeekForSequence: UInt, + val modeForSequence: UInt, + val transitions: ArrayList + ) - fun setpointRaiseLower(callback: DefaultClusterCallback, mode: Integer, amount: Integer) { - // Implementation needs to be added here - } + class LocalTemperatureAttribute(val value: Short?) - fun setpointRaiseLower( - callback: DefaultClusterCallback, - mode: Integer, - amount: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class OutdoorTemperatureAttribute(val value: Short?) - fun setWeeklySchedule( - callback: DefaultClusterCallback, - numberOfTransitionsForSequence: Integer, - dayOfWeekForSequence: Integer, - modeForSequence: Integer, - transitions: ArrayList - ) { - // Implementation needs to be added here - } + class TemperatureSetpointHoldDurationAttribute(val value: UShort?) - fun setWeeklySchedule( - callback: DefaultClusterCallback, - numberOfTransitionsForSequence: Integer, - dayOfWeekForSequence: Integer, - modeForSequence: Integer, - transitions: ArrayList, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class SetpointChangeAmountAttribute(val value: Short?) - fun getWeeklySchedule( - callback: GetWeeklyScheduleResponseCallback, - daysToReturn: Integer, - modeToReturn: Integer - ) { - // Implementation needs to be added here - } + class OccupiedSetbackAttribute(val value: UByte?) - fun getWeeklySchedule( - callback: GetWeeklyScheduleResponseCallback, - daysToReturn: Integer, - modeToReturn: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class OccupiedSetbackMinAttribute(val value: UByte?) - fun clearWeeklySchedule(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } + class OccupiedSetbackMaxAttribute(val value: UByte?) - fun clearWeeklySchedule(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class UnoccupiedSetbackAttribute(val value: UByte?) - interface GetWeeklyScheduleResponseCallback { - fun onSuccess( - numberOfTransitionsForSequence: Integer, - dayOfWeekForSequence: Integer, - modeForSequence: Integer, - transitions: ArrayList - ) + class UnoccupiedSetbackMinAttribute(val value: UByte?) - fun onError(error: Exception) - } + class UnoccupiedSetbackMaxAttribute(val value: UByte?) - interface LocalTemperatureAttributeCallback { - 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 OutdoorTemperatureAttributeCallback { - fun onSuccess(value: Integer?) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class AttributeListAttribute(val value: ArrayList) - 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) - } - - interface UnoccupiedSetbackAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun setpointRaiseLower(mode: UInt, amount: Byte) { + // Implementation needs to be added here } - interface UnoccupiedSetbackMinAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun setpointRaiseLower(mode: UInt, amount: Byte, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - interface UnoccupiedSetbackMaxAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun setWeeklySchedule( + numberOfTransitionsForSequence: UByte, + dayOfWeekForSequence: UInt, + modeForSequence: UInt, + transitions: ArrayList + ) { + // Implementation needs to be added here } - interface ACCoilTemperatureAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun setWeeklySchedule( + numberOfTransitionsForSequence: UByte, + dayOfWeekForSequence: UInt, + modeForSequence: UInt, + transitions: ArrayList, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here } - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun getWeeklySchedule(daysToReturn: UInt, modeToReturn: UInt): GetWeeklyScheduleResponse { + // Implementation needs to be added here } - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun getWeeklySchedule( + daysToReturn: UInt, + modeToReturn: UInt, + timedInvokeTimeoutMs: Int + ): GetWeeklyScheduleResponse { + // Implementation needs to be added here } - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun clearWeeklySchedule() { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun clearWeeklySchedule(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - 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(): Integer { // Implementation needs to be added here } - fun subscribeOccupancyAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAbsMinHeatSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readAbsMinHeatSetpointLimitAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAbsMinHeatSetpointLimitAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAbsMinHeatSetpointLimitAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readAbsMaxHeatSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readAbsMaxHeatSetpointLimitAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAbsMaxHeatSetpointLimitAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAbsMaxHeatSetpointLimitAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readAbsMinCoolSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readAbsMinCoolSetpointLimitAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAbsMinCoolSetpointLimitAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAbsMinCoolSetpointLimitAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readAbsMaxCoolSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readAbsMaxCoolSetpointLimitAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAbsMaxCoolSetpointLimitAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeAbsMaxCoolSetpointLimitAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readPICoolingDemandAttribute(callback: IntegerAttributeCallback) { + suspend fun readPICoolingDemandAttribute(): Integer { // Implementation needs to be added here } - fun subscribePICoolingDemandAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePICoolingDemandAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPIHeatingDemandAttribute(callback: IntegerAttributeCallback) { + suspend fun readPIHeatingDemandAttribute(): Integer { // Implementation needs to be added here } - fun subscribePIHeatingDemandAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePIHeatingDemandAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readHVACSystemTypeConfigurationAttribute(callback: IntegerAttributeCallback) { + suspend fun readHVACSystemTypeConfigurationAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readLocalTemperatureCalibrationAttribute(callback: IntegerAttributeCallback) { + suspend fun readLocalTemperatureCalibrationAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readOccupiedCoolingSetpointAttribute(callback: IntegerAttributeCallback) { + suspend fun readOccupiedCoolingSetpointAttribute(): Integer { // 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, + suspend fun subscribeOccupiedCoolingSetpointAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readOccupiedHeatingSetpointAttribute(callback: IntegerAttributeCallback) { + suspend fun readOccupiedHeatingSetpointAttribute(): Integer { // 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, + suspend fun subscribeOccupiedHeatingSetpointAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readUnoccupiedCoolingSetpointAttribute(callback: IntegerAttributeCallback) { + suspend fun readUnoccupiedCoolingSetpointAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readUnoccupiedHeatingSetpointAttribute(callback: IntegerAttributeCallback) { + suspend fun readUnoccupiedHeatingSetpointAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readMinHeatSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinHeatSetpointLimitAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readMaxHeatSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxHeatSetpointLimitAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readMinCoolSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinCoolSetpointLimitAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readMaxCoolSetpointLimitAttribute(callback: IntegerAttributeCallback) { + suspend fun readMaxCoolSetpointLimitAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readMinSetpointDeadBandAttribute(callback: IntegerAttributeCallback) { + suspend fun readMinSetpointDeadBandAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readRemoteSensingAttribute(callback: IntegerAttributeCallback) { + suspend fun readRemoteSensingAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readControlSequenceOfOperationAttribute(callback: IntegerAttributeCallback) { + suspend fun readControlSequenceOfOperationAttribute(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readSystemModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readSystemModeAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readThermostatRunningModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readThermostatRunningModeAttribute(): Integer { // Implementation needs to be added here } - fun subscribeThermostatRunningModeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeThermostatRunningModeAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readStartOfWeekAttribute(callback: IntegerAttributeCallback) { + suspend fun readStartOfWeekAttribute(): Integer { // Implementation needs to be added here } - fun subscribeStartOfWeekAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeStartOfWeekAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readNumberOfWeeklyTransitionsAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfWeeklyTransitionsAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNumberOfWeeklyTransitionsAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfWeeklyTransitionsAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readNumberOfDailyTransitionsAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfDailyTransitionsAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNumberOfDailyTransitionsAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfDailyTransitionsAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readTemperatureSetpointHoldAttribute(callback: IntegerAttributeCallback) { + suspend fun readTemperatureSetpointHoldAttribute(): Integer { // 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, + suspend fun subscribeTemperatureSetpointHoldAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // 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(): Integer { // 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 - ) { + ): Integer { // Implementation needs to be added here } - fun readThermostatRunningStateAttribute(callback: IntegerAttributeCallback) { + suspend fun readThermostatRunningStateAttribute(): Integer { // Implementation needs to be added here } - fun subscribeThermostatRunningStateAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeThermostatRunningStateAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readSetpointChangeSourceAttribute(callback: IntegerAttributeCallback) { + suspend fun readSetpointChangeSourceAttribute(): Integer { // Implementation needs to be added here } - fun subscribeSetpointChangeSourceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSetpointChangeSourceAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeSetpointChangeSourceTimestampAttribute( - callback: LongAttributeCallback, + suspend fun subscribeSetpointChangeSourceTimestampAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // 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(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readACTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readACTypeAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readACCapacityAttribute(callback: IntegerAttributeCallback) { + suspend fun readACCapacityAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readACRefrigerantTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readACRefrigerantTypeAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readACCompressorTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readACCompressorTypeAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readACErrorCodeAttribute(callback: LongAttributeCallback) { + suspend fun readACErrorCodeAttribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readACLouverPositionAttribute(callback: IntegerAttributeCallback) { + suspend fun readACLouverPositionAttribute(): Integer { // 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): Integer { // 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(): Integer { // 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): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..1a07633e2bc31c 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,126 @@ 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(): Integer { // 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, + suspend fun subscribeTemperatureDisplayModeAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readKeypadLockoutAttribute(callback: IntegerAttributeCallback) { + suspend fun readKeypadLockoutAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readScheduleProgrammingVisibilityAttribute(callback: IntegerAttributeCallback) { + suspend fun readScheduleProgrammingVisibilityAttribute(): Integer { // 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 - ) { + ): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..a9fa281c1384b3 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,695 @@ 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?) + class ChannelAttribute(val value: UShort?) - fun onError(ex: Exception) + class RoutingRoleAttribute(val value: UInt?) - 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) + class NetworkNameAttribute(val value: String?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class PanIdAttribute(val value: UShort?) - interface RouteTableAttributeCallback { - fun onSuccess(value: ArrayList) + class ExtendedPanIdAttribute(val value: ULong?) - fun onError(ex: Exception) + class MeshLocalPrefixAttribute(val value: ByteArray?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class NeighborTableAttribute( + val value: ArrayList + ) - interface PartitionIdAttributeCallback { - fun onSuccess(value: Long?) + class RouteTableAttribute( + val value: ArrayList + ) - fun onError(ex: Exception) + class PartitionIdAttribute(val value: UInt?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class WeightingAttribute(val value: UByte?) - interface WeightingAttributeCallback { - fun onSuccess(value: Integer?) + class DataVersionAttribute(val value: UByte?) - fun onError(ex: Exception) + class StableDataVersionAttribute(val value: UByte?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class LeaderRouterIdAttribute(val value: UByte?) - interface DataVersionAttributeCallback { - fun onSuccess(value: Integer?) + class ActiveTimestampAttribute(val value: ULong?) - fun onError(ex: Exception) + class PendingTimestampAttribute(val value: ULong?) - fun onSubscriptionEstablished(subscriptionId: Long) - } + class DelayAttribute(val value: UInt?) - interface StableDataVersionAttributeCallback { - fun onSuccess(value: Integer?) + 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 LeaderRouterIdAttributeCallback { - fun onSuccess(value: Integer?) + class ActiveNetworkFaultsListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class GeneratedCommandListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ActiveTimestampAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } + class AcceptedCommandListAttribute(val value: ArrayList) - interface PendingTimestampAttributeCallback { - fun onSuccess(value: Long?) + class EventListAttribute(val value: ArrayList) - fun onError(ex: Exception) + class AttributeListAttribute(val value: ArrayList) - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface DelayAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface SecurityPolicyAttributeCallback { - fun onSuccess(value: ChipStructs.ThreadNetworkDiagnosticsClusterSecurityPolicy?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ChannelPage0MaskAttributeCallback { - fun onSuccess(value: ByteArray?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface OperationalDatasetComponentsAttributeCallback { - fun onSuccess(value: ChipStructs.ThreadNetworkDiagnosticsClusterOperationalDatasetComponents?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface ActiveNetworkFaultsListAttributeCallback { - 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) + suspend fun resetCounts() { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resetCounts(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - 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(): Long { // Implementation needs to be added here } - fun subscribeOverrunCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeDetachedRoleCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDetachedRoleCountAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readChildRoleCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readChildRoleCountAttribute(): Integer { // Implementation needs to be added here } - fun subscribeChildRoleCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeChildRoleCountAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readRouterRoleCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readRouterRoleCountAttribute(): Integer { // Implementation needs to be added here } - fun subscribeRouterRoleCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRouterRoleCountAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLeaderRoleCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readLeaderRoleCountAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLeaderRoleCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLeaderRoleCountAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readAttachAttemptCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readAttachAttemptCountAttribute(): Integer { // Implementation needs to be added here } - fun subscribeAttachAttemptCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeAttachAttemptCountAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPartitionIdChangeCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readPartitionIdChangeCountAttribute(): Integer { // Implementation needs to be added here } - fun subscribePartitionIdChangeCountAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePartitionIdChangeCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readBetterPartitionAttachAttemptCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readBetterPartitionAttachAttemptCountAttribute(): Integer { // Implementation needs to be added here } - fun subscribeBetterPartitionAttachAttemptCountAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeBetterPartitionAttachAttemptCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readParentChangeCountAttribute(callback: IntegerAttributeCallback) { + suspend fun readParentChangeCountAttribute(): Integer { // Implementation needs to be added here } - fun subscribeParentChangeCountAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeParentChangeCountAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readTxTotalCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxTotalCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxTotalCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxTotalCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxUnicastCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxUnicastCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxUnicastCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxUnicastCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxBroadcastCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxBroadcastCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxBroadcastCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxAckRequestedCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxAckRequestedCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxAckRequestedCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxAckedCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxAckedCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxAckedCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxAckedCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxNoAckRequestedCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxNoAckRequestedCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxNoAckRequestedCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxNoAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxDataCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxDataCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxDataCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxDataCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxDataPollCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxDataPollCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxDataPollCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxDataPollCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxBeaconCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxBeaconCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxBeaconCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxBeaconCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxBeaconRequestCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxBeaconRequestCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxBeaconRequestCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxOtherCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxOtherCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxOtherCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxOtherCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxRetryCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxRetryCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxRetryCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxRetryCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxDirectMaxRetryExpiryCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxDirectMaxRetryExpiryCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxDirectMaxRetryExpiryCountAttribute( - callback: LongAttributeCallback, + suspend fun subscribeTxDirectMaxRetryExpiryCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // Implementation needs to be added here } - fun readTxIndirectMaxRetryExpiryCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxIndirectMaxRetryExpiryCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxIndirectMaxRetryExpiryCountAttribute( - callback: LongAttributeCallback, + suspend fun subscribeTxIndirectMaxRetryExpiryCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // Implementation needs to be added here } - fun readTxErrCcaCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxErrCcaCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxErrCcaCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxErrCcaCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxErrAbortCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxErrAbortCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxErrAbortCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxErrAbortCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readTxErrBusyChannelCountAttribute(callback: LongAttributeCallback) { + suspend fun readTxErrBusyChannelCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeTxErrBusyChannelCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTxErrBusyChannelCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxTotalCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxTotalCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxTotalCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxTotalCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxUnicastCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxUnicastCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxUnicastCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxUnicastCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxBroadcastCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxBroadcastCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxBroadcastCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxDataCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxDataCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxDataCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxDataCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxDataPollCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxDataPollCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxDataPollCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxDataPollCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxBeaconCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxBeaconCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxBeaconCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxBeaconCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxBeaconRequestCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxBeaconRequestCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxBeaconRequestCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxOtherCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxOtherCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxOtherCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxOtherCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxAddressFilteredCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxAddressFilteredCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxAddressFilteredCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxAddressFilteredCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxDestAddrFilteredCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxDestAddrFilteredCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxDestAddrFilteredCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxDestAddrFilteredCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxDuplicatedCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxDuplicatedCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxDuplicatedCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxDuplicatedCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxErrNoFrameCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxErrNoFrameCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxErrNoFrameCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxErrNoFrameCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxErrUnknownNeighborCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxErrUnknownNeighborCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxErrUnknownNeighborCountAttribute( - callback: LongAttributeCallback, + suspend fun subscribeRxErrUnknownNeighborCountAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // Implementation needs to be added here } - fun readRxErrInvalidSrcAddrCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxErrInvalidSrcAddrCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxErrInvalidSrcAddrCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxErrInvalidSrcAddrCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxErrSecCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxErrSecCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxErrSecCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxErrSecCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxErrFcsCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxErrFcsCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxErrFcsCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxErrFcsCountAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readRxErrOtherCountAttribute(callback: LongAttributeCallback) { + suspend fun readRxErrOtherCountAttribute(): Long { // Implementation needs to be added here } - fun subscribeRxErrOtherCountAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeRxErrOtherCountAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..176b4a4e04ac94 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(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readActiveCalendarTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readActiveCalendarTypeAttribute(): Integer { // 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): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..7f49fa4b98cdfb 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,262 @@ 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? - ) { + class UTCTimeAttribute(val value: ULong?) + + class TrustedTimeSourceAttribute( + val value: ChipStructs.TimeSynchronizationClusterTrustedTimeSourceStruct? + ) + + class DefaultNTPAttribute(val value: String?) + + class TimeZoneAttribute( + val value: ArrayList? + ) + + class DSTOffsetAttribute( + val value: ArrayList? + ) + + class LocalTimeAttribute(val value: ULong?) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun setUTCTime(UTCTime: ULong, granularity: UInt, timeSource: UInt?) { // Implementation needs to be added here } - fun setUTCTime( - callback: DefaultClusterCallback, - UTCTime: Long, - granularity: Integer, - timeSource: Integer?, + suspend fun setUTCTime( + UTCTime: ULong, + granularity: UInt, + timeSource: UInt?, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun setTrustedTimeSource( - callback: DefaultClusterCallback, + suspend fun setTrustedTimeSource( trustedTimeSource: ChipStructs.TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct? ) { // Implementation needs to be added here } - fun setTrustedTimeSource( - callback: DefaultClusterCallback, + suspend fun setTrustedTimeSource( trustedTimeSource: ChipStructs.TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct?, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun setTimeZone( - callback: SetTimeZoneResponseCallback, + suspend fun setTimeZone( timeZone: ArrayList - ) { + ): SetTimeZoneResponse { // Implementation needs to be added here } - fun setTimeZone( - callback: SetTimeZoneResponseCallback, + suspend fun setTimeZone( timeZone: ArrayList, timedInvokeTimeoutMs: Int - ) { + ): SetTimeZoneResponse { // Implementation needs to be added here } - fun setDSTOffset( - callback: DefaultClusterCallback, + suspend fun setDSTOffset( DSTOffset: ArrayList ) { // Implementation needs to be added here } - fun setDSTOffset( - callback: DefaultClusterCallback, + suspend fun setDSTOffset( DSTOffset: ArrayList, timedInvokeTimeoutMs: Int ) { // Implementation needs to be added here } - fun setDefaultNTP(callback: DefaultClusterCallback, defaultNTP: String?) { + suspend fun setDefaultNTP(defaultNTP: String?) { // Implementation needs to be added here } - fun setDefaultNTP( - callback: DefaultClusterCallback, - defaultNTP: String?, - timedInvokeTimeoutMs: Int - ) { + suspend fun setDefaultNTP(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) - - 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) - } - - 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 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(): Integer { // Implementation needs to be added here } - fun subscribeGranularityAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeGranularityAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readTimeSourceAttribute(callback: IntegerAttributeCallback) { + suspend fun readTimeSourceAttribute(): Integer { // Implementation needs to be added here } - fun subscribeTimeSourceAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTimeSourceAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeTimeZoneDatabaseAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTimeZoneDatabaseAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeTimeZoneListMaxSizeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTimeZoneListMaxSizeAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readDSTOffsetListMaxSizeAttribute(callback: IntegerAttributeCallback) { + suspend fun readDSTOffsetListMaxSizeAttribute(): Integer { // Implementation needs to be added here } - fun subscribeDSTOffsetListMaxSizeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeDSTOffsetListMaxSizeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..33fecf7e590537 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(): Long { // Implementation needs to be added here } - fun subscribePeakMeasuredValueWindowAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { // 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(): Long { // Implementation needs to be added here } - fun subscribeAverageMeasuredValueWindowAttribute( - callback: LongAttributeCallback, + suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ) { + ): Long { // 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(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementUnitAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + suspend fun readMeasurementMediumAttribute(): Integer { // Implementation needs to be added here } - fun subscribeMeasurementMediumAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + suspend fun readLevelValueAttribute(): Integer { // Implementation needs to be added here } - fun subscribeLevelValueAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..5a621abdcd9189 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(): Integer { // 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): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..918c3aa8fee80b 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,1957 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class UnitTestingCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 4294048773u - } + class TestSpecificResponse(val returnValue: UByte) + + class TestAddArgumentsResponse(val returnValue: UByte) + + class TestSimpleArgumentResponse(val returnValue: Boolean) + + class TestStructArrayArgumentResponse( + val arg1: ArrayList, + val arg2: ArrayList, + val arg3: ArrayList, + val arg4: ArrayList, + val arg5: UInt, + val arg6: Boolean + ) + + class BooleanResponse(val value: Boolean) + + class TestListInt8UReverseResponse(val arg1: ArrayList) + + class TestEnumsResponse(val arg1: UShort, val arg2: UInt) + + class TestNullableOptionalResponse( + val wasPresent: Boolean, + val wasNull: Boolean?, + val value: UByte?, + val originalValue: UByte? + ) + + 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? + ) + + class SimpleStructResponse(val arg1: ChipStructs.UnitTestingClusterSimpleStruct) + + class TestEmitTestEventResponse(val value: ULong) + + class TestEmitTestFabricScopedEventResponse(val value: ULong) + + class ListInt8uAttribute(val value: ArrayList) + + class ListOctetStringAttribute(val value: ArrayList) + + class ListStructOctetStringAttribute( + val value: ArrayList + ) + + class ListNullablesAndOptionalsStructAttribute( + val value: ArrayList + ) + + class StructAttrAttribute(val value: ChipStructs.UnitTestingClusterSimpleStruct) + + class ListLongOctetStringAttribute(val value: ArrayList) + + class ListFabricScopedAttribute( + val value: ArrayList + ) + + class NullableBooleanAttribute(val value: Boolean?) + + class NullableBitmap8Attribute(val value: UInt?) + + class NullableBitmap16Attribute(val value: UInt?) + + class NullableBitmap32Attribute(val value: ULong?) + + class NullableBitmap64Attribute(val value: ULong?) + + class NullableInt8uAttribute(val value: UByte?) + + class NullableInt16uAttribute(val value: UShort?) + + class NullableInt24uAttribute(val value: UInt?) + + class NullableInt32uAttribute(val value: UInt?) + + class NullableInt40uAttribute(val value: ULong?) + + class NullableInt48uAttribute(val value: ULong?) + + class NullableInt56uAttribute(val value: ULong?) + + class NullableInt64uAttribute(val value: ULong?) + + class NullableInt8sAttribute(val value: Byte?) + + class NullableInt16sAttribute(val value: Short?) + + class NullableInt24sAttribute(val value: Int?) + + class NullableInt32sAttribute(val value: Int?) + + class NullableInt40sAttribute(val value: Long?) + + class NullableInt48sAttribute(val value: Long?) + + class NullableInt56sAttribute(val value: Long?) + + class NullableInt64sAttribute(val value: Long?) + + class NullableEnum8Attribute(val value: UInt?) + + class NullableEnum16Attribute(val value: UInt?) + + class NullableFloatSingleAttribute(val value: Float?) + + class NullableFloatDoubleAttribute(val value: Double?) + + class NullableOctetStringAttribute(val value: ByteArray?) + + class NullableCharStringAttribute(val value: String?) + + class NullableEnumAttrAttribute(val value: UInt?) - fun test(callback: DefaultClusterCallback) { + class NullableStructAttribute(val value: ChipStructs.UnitTestingClusterSimpleStruct?) + + class NullableRangeRestrictedInt8uAttribute(val value: UByte?) + + class NullableRangeRestrictedInt8sAttribute(val value: Byte?) + + class NullableRangeRestrictedInt16uAttribute(val value: UShort?) + + class NullableRangeRestrictedInt16sAttribute(val value: Short?) + + class GeneratedCommandListAttribute(val value: ArrayList) + + class AcceptedCommandListAttribute(val value: ArrayList) + + class EventListAttribute(val value: ArrayList) + + class AttributeListAttribute(val value: ArrayList) + + suspend fun test() { // Implementation needs to be added here } - fun test(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun test(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun testNotHandled(callback: DefaultClusterCallback) { + suspend fun testNotHandled() { // Implementation needs to be added here } - fun testNotHandled(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun testNotHandled(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun testSpecific(callback: TestSpecificResponseCallback) { + suspend fun testSpecific(): TestSpecificResponse { // Implementation needs to be added here } - fun testSpecific(callback: TestSpecificResponseCallback, timedInvokeTimeoutMs: Int) { + suspend fun testSpecific(timedInvokeTimeoutMs: Int): TestSpecificResponse { // Implementation needs to be added here } - fun testUnknownCommand(callback: DefaultClusterCallback) { + suspend fun testUnknownCommand() { // Implementation needs to be added here } - fun testUnknownCommand(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun testUnknownCommand(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun testAddArguments(callback: TestAddArgumentsResponseCallback, arg1: Integer, arg2: Integer) { + suspend fun testAddArguments(arg1: UByte, arg2: UByte): TestAddArgumentsResponse { // Implementation needs to be added here } - fun testAddArguments( - callback: TestAddArgumentsResponseCallback, - arg1: Integer, - arg2: Integer, + suspend fun testAddArguments( + arg1: UByte, + arg2: UByte, timedInvokeTimeoutMs: Int - ) { + ): TestAddArgumentsResponse { // Implementation needs to be added here } - fun testSimpleArgumentRequest(callback: TestSimpleArgumentResponseCallback, arg1: Boolean) { + suspend fun testSimpleArgumentRequest(arg1: Boolean): TestSimpleArgumentResponse { // Implementation needs to be added here } - fun testSimpleArgumentRequest( - callback: TestSimpleArgumentResponseCallback, + suspend fun testSimpleArgumentRequest( arg1: Boolean, timedInvokeTimeoutMs: Int - ) { + ): TestSimpleArgumentResponse { // Implementation needs to be added here } - fun testStructArrayArgumentRequest( - callback: TestStructArrayArgumentResponseCallback, + suspend fun testStructArrayArgumentRequest( arg1: ArrayList, arg2: ArrayList, - arg3: ArrayList, + arg3: ArrayList, arg4: ArrayList, - arg5: Integer, + arg5: UInt, arg6: Boolean - ) { + ): TestStructArrayArgumentResponse { // Implementation needs to be added here } - fun testStructArrayArgumentRequest( - callback: TestStructArrayArgumentResponseCallback, + suspend fun testStructArrayArgumentRequest( arg1: ArrayList, arg2: ArrayList, - arg3: ArrayList, + arg3: ArrayList, arg4: ArrayList, - arg5: Integer, + arg5: UInt, arg6: Boolean, timedInvokeTimeoutMs: Int - ) { + ): TestStructArrayArgumentResponse { // Implementation needs to be added here } - fun testStructArgumentRequest( - callback: BooleanResponseCallback, + suspend fun testStructArgumentRequest( arg1: ChipStructs.UnitTestingClusterSimpleStruct - ) { + ): BooleanResponse { // Implementation needs to be added here } - fun testStructArgumentRequest( - callback: BooleanResponseCallback, + suspend fun testStructArgumentRequest( arg1: ChipStructs.UnitTestingClusterSimpleStruct, timedInvokeTimeoutMs: Int - ) { + ): BooleanResponse { // Implementation needs to be added here } - fun testNestedStructArgumentRequest( - callback: BooleanResponseCallback, + suspend fun testNestedStructArgumentRequest( arg1: ChipStructs.UnitTestingClusterNestedStruct - ) { + ): BooleanResponse { // Implementation needs to be added here } - fun testNestedStructArgumentRequest( - callback: BooleanResponseCallback, + suspend fun testNestedStructArgumentRequest( arg1: ChipStructs.UnitTestingClusterNestedStruct, timedInvokeTimeoutMs: Int - ) { + ): BooleanResponse { // Implementation needs to be added here } - fun testListStructArgumentRequest( - callback: BooleanResponseCallback, + suspend fun testListStructArgumentRequest( arg1: ArrayList - ) { + ): BooleanResponse { // Implementation needs to be added here } - fun testListStructArgumentRequest( - callback: BooleanResponseCallback, + suspend fun testListStructArgumentRequest( arg1: ArrayList, timedInvokeTimeoutMs: Int - ) { + ): BooleanResponse { // Implementation needs to be added here } - fun testListInt8UArgumentRequest(callback: BooleanResponseCallback, arg1: ArrayList) { + suspend fun testListInt8UArgumentRequest(arg1: ArrayList): BooleanResponse { // Implementation needs to be added here } - fun testListInt8UArgumentRequest( - callback: BooleanResponseCallback, - arg1: ArrayList, + suspend fun testListInt8UArgumentRequest( + arg1: ArrayList, timedInvokeTimeoutMs: Int - ) { + ): BooleanResponse { // Implementation needs to be added here } - fun testNestedStructListArgumentRequest( - callback: BooleanResponseCallback, + suspend fun testNestedStructListArgumentRequest( arg1: ChipStructs.UnitTestingClusterNestedStructList - ) { + ): BooleanResponse { // Implementation needs to be added here } - fun testNestedStructListArgumentRequest( - callback: BooleanResponseCallback, + suspend fun testNestedStructListArgumentRequest( arg1: ChipStructs.UnitTestingClusterNestedStructList, timedInvokeTimeoutMs: Int - ) { + ): BooleanResponse { // Implementation needs to be added here } - fun testListNestedStructListArgumentRequest( - callback: BooleanResponseCallback, + suspend fun testListNestedStructListArgumentRequest( arg1: ArrayList - ) { + ): BooleanResponse { // Implementation needs to be added here } - fun testListNestedStructListArgumentRequest( - callback: BooleanResponseCallback, + suspend fun testListNestedStructListArgumentRequest( arg1: ArrayList, timedInvokeTimeoutMs: Int - ) { + ): BooleanResponse { // Implementation needs to be added here } - fun testListInt8UReverseRequest( - callback: TestListInt8UReverseResponseCallback, - arg1: ArrayList - ) { + suspend fun testListInt8UReverseRequest(arg1: ArrayList): TestListInt8UReverseResponse { // Implementation needs to be added here } - fun testListInt8UReverseRequest( - callback: TestListInt8UReverseResponseCallback, - arg1: ArrayList, + suspend fun testListInt8UReverseRequest( + arg1: ArrayList, timedInvokeTimeoutMs: Int - ) { + ): TestListInt8UReverseResponse { // Implementation needs to be added here } - fun testEnumsRequest(callback: TestEnumsResponseCallback, arg1: Integer, arg2: Integer) { + suspend fun testEnumsRequest(arg1: UShort, arg2: UInt): TestEnumsResponse { // Implementation needs to be added here } - fun testEnumsRequest( - callback: TestEnumsResponseCallback, - arg1: Integer, - arg2: Integer, + suspend fun testEnumsRequest( + arg1: UShort, + arg2: UInt, timedInvokeTimeoutMs: Int - ) { + ): TestEnumsResponse { // Implementation needs to be added here } - fun testNullableOptionalRequest(callback: TestNullableOptionalResponseCallback, arg1: Integer?) { + suspend fun testNullableOptionalRequest(arg1: UByte?): TestNullableOptionalResponse { // Implementation needs to be added here } - fun testNullableOptionalRequest( - callback: TestNullableOptionalResponseCallback, - arg1: Integer?, + suspend fun testNullableOptionalRequest( + arg1: UByte?, timedInvokeTimeoutMs: Int - ) { + ): TestNullableOptionalResponse { // Implementation needs to be added here } - fun testComplexNullableOptionalRequest( - callback: TestComplexNullableOptionalResponseCallback, - nullableInt: Integer?, - optionalInt: Integer?, - nullableOptionalInt: Integer?, + 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? - ) { + nullableList: ArrayList?, + optionalList: ArrayList?, + nullableOptionalList: ArrayList? + ): TestComplexNullableOptionalResponse { // Implementation needs to be added here } - fun testComplexNullableOptionalRequest( - callback: TestComplexNullableOptionalResponseCallback, - nullableInt: Integer?, - optionalInt: Integer?, - nullableOptionalInt: Integer?, + 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?, + nullableList: ArrayList?, + optionalList: ArrayList?, + nullableOptionalList: ArrayList?, timedInvokeTimeoutMs: Int - ) { + ): TestComplexNullableOptionalResponse { // Implementation needs to be added here } - fun simpleStructEchoRequest( - callback: SimpleStructResponseCallback, + suspend fun simpleStructEchoRequest( arg1: ChipStructs.UnitTestingClusterSimpleStruct - ) { + ): SimpleStructResponse { // Implementation needs to be added here } - fun simpleStructEchoRequest( - callback: SimpleStructResponseCallback, + suspend fun simpleStructEchoRequest( arg1: ChipStructs.UnitTestingClusterSimpleStruct, timedInvokeTimeoutMs: Int - ) { + ): SimpleStructResponse { // Implementation needs to be added here } - fun timedInvokeRequest(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + suspend fun timedInvokeRequest(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun testSimpleOptionalArgumentRequest(callback: DefaultClusterCallback, arg1: Boolean?) { + suspend fun testSimpleOptionalArgumentRequest(arg1: Boolean?) { // Implementation needs to be added here } - fun testSimpleOptionalArgumentRequest( - callback: DefaultClusterCallback, - arg1: Boolean?, - timedInvokeTimeoutMs: Int - ) { + suspend fun testSimpleOptionalArgumentRequest(arg1: Boolean?, timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun testEmitTestEventRequest( - callback: TestEmitTestEventResponseCallback, - arg1: Integer, - arg2: Integer, + suspend fun testEmitTestEventRequest( + arg1: UByte, + arg2: UInt, arg3: Boolean - ) { + ): TestEmitTestEventResponse { // Implementation needs to be added here } - fun testEmitTestEventRequest( - callback: TestEmitTestEventResponseCallback, - arg1: Integer, - arg2: Integer, + suspend fun testEmitTestEventRequest( + arg1: UByte, + arg2: UInt, arg3: Boolean, timedInvokeTimeoutMs: Int - ) { + ): TestEmitTestEventResponse { // Implementation needs to be added here } - fun testEmitTestFabricScopedEventRequest( - callback: TestEmitTestFabricScopedEventResponseCallback, - arg1: Integer - ) { + suspend fun testEmitTestFabricScopedEventRequest( + arg1: UByte + ): TestEmitTestFabricScopedEventResponse { // Implementation needs to be added here } - fun testEmitTestFabricScopedEventRequest( - callback: TestEmitTestFabricScopedEventResponseCallback, - arg1: Integer, + suspend fun testEmitTestFabricScopedEventRequest( + arg1: UByte, timedInvokeTimeoutMs: Int - ) { + ): TestEmitTestFabricScopedEventResponse { // 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) - - 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) - } - - interface NullableInt8uAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt16uAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt24uAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt32uAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt40uAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt48uAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt56uAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt64uAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt8sAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt16sAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt24sAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt32sAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt40sAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt48sAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt56sAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableInt64sAttributeCallback { - fun onSuccess(value: Long?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableEnum8AttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableEnum16AttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableFloatSingleAttributeCallback { - fun onSuccess(value: Float?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableFloatDoubleAttributeCallback { - fun onSuccess(value: Double?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableOctetStringAttributeCallback { - fun onSuccess(value: ByteArray?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableCharStringAttributeCallback { - fun onSuccess(value: String?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableEnumAttrAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableStructAttributeCallback { - fun onSuccess(value: ChipStructs.UnitTestingClusterSimpleStruct?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableRangeRestrictedInt8uAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableRangeRestrictedInt8sAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableRangeRestrictedInt16uAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface NullableRangeRestrictedInt16sAttributeCallback { - 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 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(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readBitmap16Attribute(callback: IntegerAttributeCallback) { + suspend fun readBitmap16Attribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readBitmap32Attribute(callback: LongAttributeCallback) { + suspend fun readBitmap32Attribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readBitmap64Attribute(callback: LongAttributeCallback) { + suspend fun readBitmap64Attribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readInt8uAttribute(callback: IntegerAttributeCallback) { + suspend fun readInt8uAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readInt16uAttribute(callback: IntegerAttributeCallback) { + suspend fun readInt16uAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readInt24uAttribute(callback: LongAttributeCallback) { + suspend fun readInt24uAttribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readInt32uAttribute(callback: LongAttributeCallback) { + suspend fun readInt32uAttribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readInt40uAttribute(callback: LongAttributeCallback) { + suspend fun readInt40uAttribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readInt48uAttribute(callback: LongAttributeCallback) { + suspend fun readInt48uAttribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readInt56uAttribute(callback: LongAttributeCallback) { + suspend fun readInt56uAttribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readInt64uAttribute(callback: LongAttributeCallback) { + suspend fun readInt64uAttribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readInt8sAttribute(callback: IntegerAttributeCallback) { + suspend fun readInt8sAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readInt16sAttribute(callback: IntegerAttributeCallback) { + suspend fun readInt16sAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readInt24sAttribute(callback: LongAttributeCallback) { + suspend fun readInt24sAttribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readInt32sAttribute(callback: LongAttributeCallback) { + suspend fun readInt32sAttribute(): Long { // 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): Long { // 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(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readEnum16Attribute(callback: IntegerAttributeCallback) { + suspend fun readEnum16Attribute(): Integer { // 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): Integer { // 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(): Long { // 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): Long { // Implementation needs to be added here } - fun readEpochSAttribute(callback: LongAttributeCallback) { + suspend fun readEpochSAttribute(): Long { // 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): Long { // Implementation needs to be added here } - fun readVendorIdAttribute(callback: IntegerAttributeCallback) { + suspend fun readVendorIdAttribute(): Integer { // 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): Integer { // 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(): Integer { // 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): Integer { // 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(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readRangeRestrictedInt8sAttribute(callback: IntegerAttributeCallback) { + suspend fun readRangeRestrictedInt8sAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readRangeRestrictedInt16uAttribute(callback: IntegerAttributeCallback) { + suspend fun readRangeRestrictedInt16uAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readRangeRestrictedInt16sAttribute(callback: IntegerAttributeCallback) { + suspend fun readRangeRestrictedInt16sAttribute(): Integer { // 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): Integer { // 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(): Integer { // 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): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..37f240160f798c 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..94a34ee6faab32 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..d7a7f8bd1b4350 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) - } - - 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) + suspend fun resetCounts() { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun resetCounts(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // 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..e90983f4f4a8d2 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,380 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class WindowCoveringCluster(private val endpointId: UShort) { - companion object { - const val CLUSTER_ID: UInt = 258u - } + class CurrentPositionLiftAttribute(val value: UShort?) - fun upOrOpen(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } + class CurrentPositionTiltAttribute(val value: UShort?) - fun upOrOpen(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class CurrentPositionLiftPercentageAttribute(val value: UByte?) - fun downOrClose(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } + class CurrentPositionTiltPercentageAttribute(val value: UByte?) - fun downOrClose(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class TargetPositionLiftPercent100thsAttribute(val value: UShort?) - fun stopMotion(callback: DefaultClusterCallback) { - // Implementation needs to be added here - } + class TargetPositionTiltPercent100thsAttribute(val value: UShort?) - fun stopMotion(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } + class CurrentPositionLiftPercent100thsAttribute(val value: UShort?) - fun goToLiftValue(callback: DefaultClusterCallback, liftValue: Integer) { - // Implementation needs to be added here - } + class CurrentPositionTiltPercent100thsAttribute(val value: UShort?) - fun goToLiftValue( - callback: DefaultClusterCallback, - liftValue: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class GeneratedCommandListAttribute(val value: ArrayList) - fun goToLiftPercentage(callback: DefaultClusterCallback, liftPercent100thsValue: Integer) { - // Implementation needs to be added here - } + class AcceptedCommandListAttribute(val value: ArrayList) - fun goToLiftPercentage( - callback: DefaultClusterCallback, - liftPercent100thsValue: Integer, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } + class EventListAttribute(val value: ArrayList) - fun goToTiltValue(callback: DefaultClusterCallback, tiltValue: Integer) { - // Implementation needs to be added here - } + class AttributeListAttribute(val value: ArrayList) - fun goToTiltValue( - callback: DefaultClusterCallback, - tiltValue: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun upOrOpen() { // Implementation needs to be added here } - fun goToTiltPercentage(callback: DefaultClusterCallback, tiltPercent100thsValue: Integer) { + suspend fun upOrOpen(timedInvokeTimeoutMs: Int) { // Implementation needs to be added here } - fun goToTiltPercentage( - callback: DefaultClusterCallback, - tiltPercent100thsValue: Integer, - timedInvokeTimeoutMs: Int - ) { + suspend fun downOrClose() { // Implementation needs to be added here } - interface CurrentPositionLiftAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) - } - - interface CurrentPositionTiltAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun downOrClose(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - interface CurrentPositionLiftPercentageAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun stopMotion() { + // Implementation needs to be added here } - interface CurrentPositionTiltPercentageAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun stopMotion(timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - interface TargetPositionLiftPercent100thsAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun goToLiftValue(liftValue: UShort) { + // Implementation needs to be added here } - interface TargetPositionTiltPercent100thsAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun goToLiftValue(liftValue: UShort, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - interface CurrentPositionLiftPercent100thsAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun goToLiftPercentage(liftPercent100thsValue: UShort) { + // Implementation needs to be added here } - interface CurrentPositionTiltPercent100thsAttributeCallback { - fun onSuccess(value: Integer?) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun goToLiftPercentage(liftPercent100thsValue: UShort, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - interface GeneratedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun goToTiltValue(tiltValue: UShort) { + // Implementation needs to be added here } - interface AcceptedCommandListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun goToTiltValue(tiltValue: UShort, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - interface EventListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun goToTiltPercentage(tiltPercent100thsValue: UShort) { + // Implementation needs to be added here } - interface AttributeListAttributeCallback { - fun onSuccess(value: ArrayList) - - fun onError(ex: Exception) - - fun onSubscriptionEstablished(subscriptionId: Long) + suspend fun goToTiltPercentage(tiltPercent100thsValue: UShort, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here } - fun readTypeAttribute(callback: IntegerAttributeCallback) { + suspend fun readTypeAttribute(): Integer { // Implementation needs to be added here } - fun subscribeTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeTypeAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } - fun readPhysicalClosedLimitLiftAttribute(callback: IntegerAttributeCallback) { + suspend fun readPhysicalClosedLimitLiftAttribute(): Integer { // Implementation needs to be added here } - fun subscribePhysicalClosedLimitLiftAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePhysicalClosedLimitLiftAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readPhysicalClosedLimitTiltAttribute(callback: IntegerAttributeCallback) { + suspend fun readPhysicalClosedLimitTiltAttribute(): Integer { // Implementation needs to be added here } - fun subscribePhysicalClosedLimitTiltAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribePhysicalClosedLimitTiltAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeNumberOfActuationsLiftAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfActuationsLiftAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readNumberOfActuationsTiltAttribute(callback: IntegerAttributeCallback) { + suspend fun readNumberOfActuationsTiltAttribute(): Integer { // Implementation needs to be added here } - fun subscribeNumberOfActuationsTiltAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeNumberOfActuationsTiltAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readConfigStatusAttribute(callback: IntegerAttributeCallback) { + suspend fun readConfigStatusAttribute(): Integer { // Implementation needs to be added here } - fun subscribeConfigStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeConfigStatusAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeOperationalStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeOperationalStatusAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeEndProductTypeAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeEndProductTypeAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Integer { // Implementation needs to be added here } - fun subscribeInstalledOpenLimitLiftAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInstalledOpenLimitLiftAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readInstalledClosedLimitLiftAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstalledClosedLimitLiftAttribute(): Integer { // Implementation needs to be added here } - fun subscribeInstalledClosedLimitLiftAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInstalledClosedLimitLiftAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readInstalledOpenLimitTiltAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstalledOpenLimitTiltAttribute(): Integer { // Implementation needs to be added here } - fun subscribeInstalledOpenLimitTiltAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInstalledOpenLimitTiltAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readInstalledClosedLimitTiltAttribute(callback: IntegerAttributeCallback) { + suspend fun readInstalledClosedLimitTiltAttribute(): Integer { // Implementation needs to be added here } - fun subscribeInstalledClosedLimitTiltAttribute( - callback: IntegerAttributeCallback, + suspend fun subscribeInstalledClosedLimitTiltAttribute( minInterval: Int, maxInterval: Int - ) { + ): Integer { // Implementation needs to be added here } - fun readModeAttribute(callback: IntegerAttributeCallback) { + suspend fun readModeAttribute(): Integer { // 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): Integer { // Implementation needs to be added here } - fun readSafetyStatusAttribute(callback: IntegerAttributeCallback) { + suspend fun readSafetyStatusAttribute(): Integer { // Implementation needs to be added here } - fun subscribeSafetyStatusAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeSafetyStatusAttribute(minInterval: Int, maxInterval: Int): Integer { // 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(): Long { // Implementation needs to be added here } - fun subscribeFeatureMapAttribute( - callback: LongAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } - fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + suspend fun readClusterRevisionAttribute(): Integer { // Implementation needs to be added here } - fun subscribeClusterRevisionAttribute( - callback: IntegerAttributeCallback, - minInterval: Int, - maxInterval: Int - ) { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { // Implementation needs to be added here } + + companion object { + const val CLUSTER_ID: UInt = 258u + } } From a16d6e95a9185dd6053d8d6f297086f7b5c41ae2 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 30 Oct 2023 13:44:32 -0400 Subject: [PATCH 08/11] Update `Temperature Measurement Cluster` to spec (#30093) * Update data type * ZAP regen --- .../air-purifier-app.matter | 8 +++---- .../air-quality-sensor-app.matter | 6 ++--- .../all-clusters-app.matter | 8 +++---- .../all-clusters-minimal-app.matter | 6 ++--- .../bridge-common/bridge-app.matter | 6 ++--- ...umiditysensor_thermostat_56de3d5f45.matter | 6 ++--- ...ootnode_airqualitysensor_e63187f6c9.matter | 8 +++---- .../devices/rootnode_pump_5f904818cc.matter | 6 ++--- ...otnode_temperaturesensor_Qy1zkNW7c3.matter | 6 ++--- .../rootnode_thermostat_bm3fb8dhYi.matter | 8 +++---- .../placeholder/linux/apps/app1/config.matter | 16 +++++++------- .../placeholder/linux/apps/app2/config.matter | 16 +++++++------- examples/pump-app/pump-common/pump-app.matter | 8 +++---- .../silabs/data_model/pump-thread-app.matter | 8 +++---- .../silabs/data_model/pump-wifi-app.matter | 8 +++---- .../pump-controller-app.matter | 8 +++---- .../temperature-measurement.matter | 6 ++--- .../app-templates/endpoint_config.h | 15 ++++++++----- .../chip/temperature-measurement-cluster.xml | 8 +++---- .../data_model/controller-clusters.matter | 8 +++---- .../python/chip/clusters/Objects.py | 8 +++---- .../MTRAttributeTLVValueDecoder.mm | 2 +- .../zap-generated/attributes/Accessors.cpp | 22 +++++++++---------- .../zap-generated/attributes/Accessors.h | 10 ++++----- .../zap-generated/cluster-objects.h | 8 +++---- .../zap-generated/cluster/Commands.h | 4 ++-- .../cluster/logging/DataModelLogger.cpp | 2 +- .../zap-generated/test/Commands.h | 12 +++++----- 28 files changed, 120 insertions(+), 117 deletions(-) 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 dba512b0bd986c..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 @@ -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-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 9253007d08e616..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 @@ -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 4b6e552b10cc92..63f5eb56aa9021 100644 --- a/examples/bridge-app/bridge-common/bridge-app.matter +++ b/examples/bridge-app/bridge-common/bridge-app.matter @@ -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/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 38eda3781d4801..25c89264dc5cc4 100644 --- a/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter +++ b/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter @@ -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_pump_5f904818cc.matter b/examples/chef/devices/rootnode_pump_5f904818cc.matter index dcccce26d70827..a5bd2bf03297bb 100644 --- a/examples/chef/devices/rootnode_pump_5f904818cc.matter +++ b/examples/chef/devices/rootnode_pump_5f904818cc.matter @@ -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_temperaturesensor_Qy1zkNW7c3.matter b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter index 7f88ae608aeabf..8eb9c77b6fc45e 100644 --- a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter +++ b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter @@ -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 b34d514d77fd7a..73d5d7df7262a2 100644 --- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter +++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter @@ -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/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index bf42f6c10610c6..1040513cc7c557 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -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 ffb7febbab9470..a2662b804165b9 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -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/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/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/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter b/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter index d7d7e77f8c931a..187f8d14112801 100644 --- a/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter +++ b/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter @@ -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/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/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 6e5b4327b8c240..d5b1691dc9eb9f 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -5132,10 +5132,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/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index 4c2040ab846a39..38c92ee15ed234 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -27573,7 +27573,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]), @@ -27585,7 +27585,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 @@ -27654,9 +27654,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 0d2a197ad2cdda..4aaa93b2fc98c9 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm @@ -9952,7 +9952,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/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp index de97d22f4d964e..9563ed39d85707 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 @@ -17603,7 +17603,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) @@ -17612,7 +17612,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) @@ -17656,7 +17656,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) @@ -17665,7 +17665,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) @@ -17709,7 +17709,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) @@ -17718,7 +17718,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) @@ -17735,9 +17735,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)); @@ -17749,9 +17749,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; @@ -17759,7 +17759,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 4486856ee4a374..e993b63df4c0ea 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 @@ -3107,29 +3107,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 53ad0bc00adb44..ca8a7867870c28 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 @@ -24992,9 +24992,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; } @@ -25049,7 +25049,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 0dfa96f5ed563d..f65b3063fba7bd 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h @@ -18036,8 +18036,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 820f5680f25761..f26ae6d1c32025 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp +++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp @@ -10533,7 +10533,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(); }]; From 4ec129c4fb6334dfae806794bfad4dfa3bb81b82 Mon Sep 17 00:00:00 2001 From: Wang Qixiang <43193572+wqx6@users.noreply.github.com> Date: Tue, 31 Oct 2023 04:15:22 +0800 Subject: [PATCH 09/11] esp32: make the shell command line buffer size configurable (#30050) --- config/esp32/components/chip/Kconfig | 16 ++++++++++++++++ src/lib/shell/streamer_esp32.cpp | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) 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/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); From 1e7da37eab162444b41e481192ccba4d6b274155 Mon Sep 17 00:00:00 2001 From: Kamil Kasperczyk <66371704+kkasperczyk-no@users.noreply.github.com> Date: Mon, 30 Oct 2023 21:15:51 +0100 Subject: [PATCH 10/11] [nrfconnect] Updated nRF Connect SDK version in Docker to 2.5.0 (#30051) Regular update of nRF Connect SDK to 2.5.0 version including zephyr toolchain and west versions bump. --- integrations/docker/images/base/chip-build/version | 2 +- .../stage-2/chip-build-nrf-platform/Dockerfile | 12 ++++++------ .../images/vscode/chip-build-vscode/Dockerfile | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/integrations/docker/images/base/chip-build/version b/integrations/docker/images/base/chip-build/version index d9efef43fe6d6d..3bc07693a047b5 100644 --- a/integrations/docker/images/base/chip-build/version +++ b/integrations/docker/images/base/chip-build/version @@ -1 +1 @@ -23 : [TI] Update Sysconfig version +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/vscode/chip-build-vscode/Dockerfile b/integrations/docker/images/vscode/chip-build-vscode/Dockerfile index fbe5986187ca6d..8ca2f980f0cf6f 100644 --- a/integrations/docker/images/vscode/chip-build-vscode/Dockerfile +++ b/integrations/docker/images/vscode/chip-build-vscode/Dockerfile @@ -122,7 +122,7 @@ 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.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 From 739f72a539388c65a3ff09fc4d556fb795bf6e00 Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Mon, 30 Oct 2023 14:23:10 -0700 Subject: [PATCH 11/11] Make timedInvokeTimeoutMs optional (#30099) --- .../generators/kotlin/MatterClusters.jinja | 31 +- .../matter_idl/generators/kotlin/__init__.py | 22 +- .../cluster/clusters/AccessControlCluster.kt | 20 +- .../cluster/clusters/AccountLoginCluster.kt | 36 +- .../cluster/clusters/ActionsCluster.kt | 156 +++-- .../ActivatedCarbonFilterMonitoringCluster.kt | 32 +- .../AdministratorCommissioningCluster.kt | 36 +- .../cluster/clusters/AirQualityCluster.kt | 12 +- .../clusters/ApplicationBasicCluster.kt | 20 +- .../clusters/ApplicationLauncherCluster.kt | 51 +- .../cluster/clusters/AudioOutputCluster.kt | 36 +- .../clusters/BallastConfigurationCluster.kt | 36 +- .../cluster/clusters/BarrierControlCluster.kt | 72 +-- .../clusters/BasicInformationCluster.kt | 40 +- .../clusters/BinaryInputBasicCluster.kt | 24 +- .../cluster/clusters/BindingCluster.kt | 8 +- .../cluster/clusters/BooleanStateCluster.kt | 8 +- .../BridgedDeviceBasicInformationCluster.kt | 20 +- ...nDioxideConcentrationMeasurementCluster.kt | 28 +- ...MonoxideConcentrationMeasurementCluster.kt | 28 +- .../cluster/clusters/ChannelCluster.kt | 47 +- .../cluster/clusters/ColorControlCluster.kt | 496 +++++++--------- .../clusters/ContentLauncherCluster.kt | 44 +- .../cluster/clusters/DescriptorCluster.kt | 8 +- .../cluster/clusters/DiagnosticLogsCluster.kt | 24 +- .../clusters/DishwasherAlarmCluster.kt | 48 +- .../cluster/clusters/DishwasherModeCluster.kt | 27 +- .../cluster/clusters/DoorLockCluster.kt | 347 +++++------ .../clusters/ElectricalMeasurementCluster.kt | 557 +++++++++--------- .../EthernetNetworkDiagnosticsCluster.kt | 44 +- .../cluster/clusters/FanControlCluster.kt | 60 +- .../cluster/clusters/FaultInjectionCluster.kt | 38 +- .../cluster/clusters/FixedLabelCluster.kt | 8 +- .../clusters/FlowMeasurementCluster.kt | 12 +- ...aldehydeConcentrationMeasurementCluster.kt | 28 +- .../clusters/GeneralCommissioningCluster.kt | 62 +- .../clusters/GeneralDiagnosticsCluster.kt | 40 +- .../clusters/GroupKeyManagementCluster.kt | 81 +-- .../cluster/clusters/GroupsCluster.kt | 88 +-- .../clusters/HepaFilterMonitoringCluster.kt | 32 +- .../cluster/clusters/IcdManagementCluster.kt | 73 ++- .../cluster/clusters/IdentifyCluster.kt | 40 +- .../clusters/IlluminanceMeasurementCluster.kt | 12 +- .../cluster/clusters/KeypadInputCluster.kt | 20 +- .../clusters/LaundryWasherControlsCluster.kt | 12 +- .../clusters/LaundryWasherModeCluster.kt | 27 +- .../cluster/clusters/LevelControlCluster.kt | 175 +++--- .../LocalizationConfigurationCluster.kt | 8 +- .../cluster/clusters/LowPowerCluster.kt | 20 +- .../cluster/clusters/MediaInputCluster.kt | 60 +- .../cluster/clusters/MediaPlaybackCluster.kt | 144 ++--- .../cluster/clusters/ModeSelectCluster.kt | 24 +- .../clusters/NetworkCommissioningCluster.kt | 111 ++-- ...nDioxideConcentrationMeasurementCluster.kt | 28 +- .../clusters/OccupancySensingCluster.kt | 56 +- .../cluster/clusters/OnOffCluster.kt | 88 +-- .../OnOffSwitchConfigurationCluster.kt | 16 +- .../clusters/OperationalCredentialsCluster.kt | 125 ++-- .../clusters/OperationalStateCluster.kt | 60 +- .../OtaSoftwareUpdateProviderCluster.kt | 53 +- .../OtaSoftwareUpdateRequestorCluster.kt | 30 +- .../OzoneConcentrationMeasurementCluster.kt | 28 +- .../Pm10ConcentrationMeasurementCluster.kt | 28 +- .../Pm1ConcentrationMeasurementCluster.kt | 28 +- .../Pm25ConcentrationMeasurementCluster.kt | 28 +- .../cluster/clusters/PowerSourceCluster.kt | 56 +- .../PowerSourceConfigurationCluster.kt | 10 +- .../clusters/PressureMeasurementCluster.kt | 20 +- .../clusters/ProxyConfigurationCluster.kt | 8 +- .../cluster/clusters/ProxyDiscoveryCluster.kt | 8 +- .../cluster/clusters/ProxyValidCluster.kt | 8 +- .../clusters/PulseWidthModulationCluster.kt | 8 +- .../PumpConfigurationAndControlCluster.kt | 31 +- .../RadonConcentrationMeasurementCluster.kt | 28 +- .../clusters/RefrigeratorAlarmCluster.kt | 20 +- ...TemperatureControlledCabinetModeCluster.kt | 27 +- .../RelativeHumidityMeasurementCluster.kt | 12 +- .../cluster/clusters/RvcCleanModeCluster.kt | 27 +- .../clusters/RvcOperationalStateCluster.kt | 60 +- .../cluster/clusters/RvcRunModeCluster.kt | 27 +- .../cluster/clusters/SampleMeiCluster.kt | 32 +- .../cluster/clusters/ScenesCluster.kt | 173 +++--- .../cluster/clusters/SmokeCoAlarmCluster.kt | 67 +-- .../clusters/SoftwareDiagnosticsCluster.kt | 35 +- .../cluster/clusters/SwitchCluster.kt | 20 +- .../clusters/TargetNavigatorCluster.kt | 24 +- .../clusters/TemperatureControlCluster.kt | 40 +- .../clusters/TemperatureMeasurementCluster.kt | 12 +- .../cluster/clusters/ThermostatCluster.kt | 237 ++++---- ...mostatUserInterfaceConfigurationCluster.kt | 23 +- .../ThreadNetworkDiagnosticsCluster.kt | 195 +++--- .../clusters/TimeFormatLocalizationCluster.kt | 16 +- .../clusters/TimeSynchronizationCluster.kt | 94 ++- ...ompoundsConcentrationMeasurementCluster.kt | 28 +- .../clusters/UnitLocalizationCluster.kt | 12 +- .../cluster/clusters/UnitTestingCluster.kt | 414 ++++++------- .../cluster/clusters/UserLabelCluster.kt | 8 +- .../cluster/clusters/WakeOnLanCluster.kt | 8 +- .../clusters/WiFiNetworkDiagnosticsCluster.kt | 20 +- .../cluster/clusters/WindowCoveringCluster.kt | 166 +++--- 100 files changed, 2920 insertions(+), 3155 deletions(-) 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 2562d5faf2245b..76fa2eb6b22967 100644 --- a/scripts/py_matter_idl/matter_idl/generators/kotlin/MatterClusters.jinja +++ b/scripts/py_matter_idl/matter_idl/generators/kotlin/MatterClusters.jinja @@ -93,40 +93,27 @@ class {{cluster.name}}Cluster(private val endpointId: UShort) { {%- endif -%} {% endfor -%} -{%- for command in cluster.commands | sort(attribute='code') -%} -{%- set callbackName = command | javaCommandCallbackName() -%} -{%- if not command.is_timed_invoke %} - 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 -%} -{%- endif -%} - ) -{%- if command | hasResponse -%} - : {{callbackName}} { -{%- else %} { -{%- endif %} - // Implementation needs to be added here - } -{%- endif %} - +{% 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) + , timedInvokeTimeoutMs: Int? = null) {%- else -%} - timedInvokeTimeoutMs: Int) + timedInvokeTimeoutMs: Int? = null) {%- endif -%} {%- if command | hasResponse -%} : {{callbackName}} { {%- else %} { {%- endif %} - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } {% endfor -%} 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 0650d8c1b5e080..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 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 bb31661959c92c..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 @@ -88,36 +88,36 @@ class AccessControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readSubjectsPerAccessControlEntryAttribute(): Integer { + suspend fun readSubjectsPerAccessControlEntryAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeSubjectsPerAccessControlEntryAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readTargetsPerAccessControlEntryAttribute(): Integer { + suspend fun readTargetsPerAccessControlEntryAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeTargetsPerAccessControlEntryAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readAccessControlEntriesPerFabricAttribute(): Integer { + suspend fun readAccessControlEntriesPerFabricAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeAccessControlEntriesPerFabricAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } @@ -162,19 +162,19 @@ class AccessControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 5c7ee571556c36..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 @@ -32,17 +32,33 @@ class AccountLoginCluster(private val endpointId: UShort) { suspend fun getSetupPIN( tempAccountIdentifier: String, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): GetSetupPINResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun login(tempAccountIdentifier: String, setupPIN: String, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun login( + tempAccountIdentifier: String, + setupPIN: String, + timedInvokeTimeoutMs: Int? = null + ) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun logout(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun logout(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -86,19 +102,19 @@ class AccountLoginCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 112a217dfa2bba..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 @@ -32,129 +32,125 @@ class ActionsCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun instantAction(actionID: UShort, invokeID: UInt?) { - // Implementation needs to be added here - } - - suspend fun instantAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun instantActionWithTransition( - actionID: UShort, - invokeID: UInt?, - transitionTime: UShort - ) { - // 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 + } } suspend fun instantActionWithTransition( actionID: UShort, invokeID: UInt?, transitionTime: UShort, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun startAction(actionID: UShort, invokeID: UInt?) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun startAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun startActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt) { - // 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 + } } suspend fun startActionWithDuration( actionID: UShort, invokeID: UInt?, duration: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun stopAction(actionID: UShort, invokeID: UInt?) { - // Implementation needs to be added here - } - - suspend fun stopAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun pauseAction(actionID: UShort, invokeID: UInt?) { - // 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 + } } - suspend fun pauseAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun pauseActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt) { - // 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 + } } suspend fun pauseActionWithDuration( actionID: UShort, invokeID: UInt?, duration: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun resumeAction(actionID: UShort, invokeID: UInt?) { - // Implementation needs to be added here - } - - suspend fun resumeAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun enableAction(actionID: UShort, invokeID: UInt?) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun enableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { - // 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 + } } - suspend fun enableActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt) { - // 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 + } } suspend fun enableActionWithDuration( actionID: UShort, invokeID: UInt?, duration: UInt, - 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 + } } - suspend fun disableAction(actionID: UShort, invokeID: UInt?) { - // Implementation needs to be added here - } - - suspend fun disableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun disableActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt) { - // 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 + } } suspend fun disableActionWithDuration( actionID: UShort, invokeID: UInt?, duration: UInt, - 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 + } } suspend fun readActionListAttribute(): ActionListAttribute { @@ -228,19 +224,19 @@ class ActionsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 9f093fa13923f5..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 @@ -35,35 +35,35 @@ class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun resetCondition() { - // Implementation needs to be added here - } - - suspend fun resetCondition(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun resetCondition(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun readConditionAttribute(): Integer { + suspend fun readConditionAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readDegradationDirectionAttribute(): Integer { + suspend fun readDegradationDirectionAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readChangeIndicationAttribute(): Integer { + suspend fun readChangeIndicationAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -146,19 +146,19 @@ class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 bd60ac30b9f4e1..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 @@ -38,27 +38,39 @@ class AdministratorCommissioningCluster(private val endpointId: UShort) { discriminator: UShort, iterations: UInt, salt: 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 + } } suspend fun openBasicCommissioningWindow( commissioningTimeout: UShort, - 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 + } } - suspend fun revokeCommissioning(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun revokeCommissioning(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun readWindowStatusAttribute(): Integer { + suspend fun readWindowStatusAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeWindowStatusAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeWindowStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -125,19 +137,19 @@ class AdministratorCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 4a88ec4d147938..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 @@ -28,11 +28,11 @@ class AirQualityCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun readAirQualityAttribute(): Integer { + suspend fun readAirQualityAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeAirQualityAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAirQualityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -77,19 +77,19 @@ class AirQualityCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 d02e2dacd7dd53..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 @@ -40,11 +40,11 @@ class ApplicationBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readVendorIDAttribute(): Integer { + suspend fun readVendorIDAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -56,11 +56,11 @@ class ApplicationBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readProductIDAttribute(): Integer { + suspend fun readProductIDAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -75,11 +75,11 @@ class ApplicationBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readStatusAttribute(): Integer { + suspend fun readStatusAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -143,19 +143,19 @@ class ApplicationBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 8da3f1866530fc..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 @@ -34,45 +34,38 @@ class ApplicationLauncherCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun launchApp( - application: ChipStructs.ApplicationLauncherClusterApplicationStruct?, - data: ByteArray? - ): LauncherResponse { - // Implementation needs to be added here - } - suspend fun launchApp( application: ChipStructs.ApplicationLauncherClusterApplicationStruct?, data: ByteArray?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): LauncherResponse { - // Implementation needs to be added here - } - - suspend fun stopApp( - application: ChipStructs.ApplicationLauncherClusterApplicationStruct? - ): LauncherResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun stopApp( application: ChipStructs.ApplicationLauncherClusterApplicationStruct?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): LauncherResponse { - // Implementation needs to be added here - } - - suspend fun hideApp( - application: ChipStructs.ApplicationLauncherClusterApplicationStruct? - ): LauncherResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun hideApp( application: ChipStructs.ApplicationLauncherClusterApplicationStruct?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): LauncherResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readCatalogListAttribute(): CatalogListAttribute { @@ -151,19 +144,19 @@ class ApplicationLauncherCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 901b65d253a1e2..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 @@ -30,20 +30,20 @@ class AudioOutputCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun selectOutput(index: UByte) { - // Implementation needs to be added here - } - - suspend fun selectOutput(index: UByte, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun selectOutput(index: UByte, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun renameOutput(index: UByte, name: String) { - // Implementation needs to be added here - } - - suspend fun renameOutput(index: UByte, name: String, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun renameOutput(index: UByte, name: String, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readOutputListAttribute(): OutputListAttribute { @@ -57,11 +57,11 @@ class AudioOutputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readCurrentOutputAttribute(): Integer { + suspend fun readCurrentOutputAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentOutputAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentOutputAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -106,19 +106,19 @@ class AudioOutputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 f931c4c1be0ead..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 @@ -38,31 +38,31 @@ class BallastConfigurationCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun readPhysicalMinLevelAttribute(): Integer { + suspend fun readPhysicalMinLevelAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribePhysicalMinLevelAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePhysicalMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readPhysicalMaxLevelAttribute(): Integer { + suspend fun readPhysicalMaxLevelAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribePhysicalMaxLevelAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePhysicalMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readBallastStatusAttribute(): Integer { + suspend fun readBallastStatusAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeBallastStatusAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBallastStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMinLevelAttribute(): Integer { + suspend fun readMinLevelAttribute(): UByte { // Implementation needs to be added here } @@ -74,11 +74,11 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMinLevelAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMaxLevelAttribute(): Integer { + suspend fun readMaxLevelAttribute(): UByte { // Implementation needs to be added here } @@ -90,7 +90,7 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -132,11 +132,11 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readLampQuantityAttribute(): Integer { + suspend fun readLampQuantityAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLampQuantityAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLampQuantityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -210,7 +210,7 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readLampAlarmModeAttribute(): Integer { + suspend fun readLampAlarmModeAttribute(): UByte { // Implementation needs to be added here } @@ -222,7 +222,7 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLampAlarmModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLampAlarmModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -286,19 +286,19 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 505fd47478f65a..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 @@ -28,47 +28,47 @@ class BarrierControlCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun barrierControlGoToPercent(percentOpen: UByte) { - // Implementation needs to be added here - } - - suspend fun barrierControlGoToPercent(percentOpen: UByte, 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 + } } - suspend fun barrierControlStop() { - // Implementation needs to be added here - } - - suspend fun barrierControlStop(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun barrierControlStop(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun readBarrierMovingStateAttribute(): Integer { + suspend fun readBarrierMovingStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeBarrierMovingStateAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBarrierMovingStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readBarrierSafetyStatusAttribute(): Integer { + suspend fun readBarrierSafetyStatusAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeBarrierSafetyStatusAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBarrierSafetyStatusAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readBarrierCapabilitiesAttribute(): Integer { + suspend fun readBarrierCapabilitiesAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeBarrierCapabilitiesAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBarrierCapabilitiesAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readBarrierOpenEventsAttribute(): Integer { + suspend fun readBarrierOpenEventsAttribute(): UShort { // Implementation needs to be added here } @@ -80,11 +80,11 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBarrierOpenEventsAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBarrierOpenEventsAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readBarrierCloseEventsAttribute(): Integer { + suspend fun readBarrierCloseEventsAttribute(): UShort { // Implementation needs to be added here } @@ -96,11 +96,11 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBarrierCloseEventsAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBarrierCloseEventsAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readBarrierCommandOpenEventsAttribute(): Integer { + suspend fun readBarrierCommandOpenEventsAttribute(): UShort { // Implementation needs to be added here } @@ -115,11 +115,11 @@ class BarrierControlCluster(private val endpointId: UShort) { suspend fun subscribeBarrierCommandOpenEventsAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readBarrierCommandCloseEventsAttribute(): Integer { + suspend fun readBarrierCommandCloseEventsAttribute(): UShort { // Implementation needs to be added here } @@ -134,11 +134,11 @@ class BarrierControlCluster(private val endpointId: UShort) { suspend fun subscribeBarrierCommandCloseEventsAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readBarrierOpenPeriodAttribute(): Integer { + suspend fun readBarrierOpenPeriodAttribute(): UShort { // Implementation needs to be added here } @@ -150,11 +150,11 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBarrierOpenPeriodAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBarrierOpenPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readBarrierClosePeriodAttribute(): Integer { + suspend fun readBarrierClosePeriodAttribute(): UShort { // Implementation needs to be added here } @@ -166,15 +166,15 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBarrierClosePeriodAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBarrierClosePeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readBarrierPositionAttribute(): Integer { + suspend fun readBarrierPositionAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeBarrierPositionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBarrierPositionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -219,19 +219,19 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 69dbbdbe4fa6eb..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 @@ -36,19 +36,19 @@ class BasicInformationCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun mfgSpecificPing() { - // Implementation needs to be added here - } - - suspend fun mfgSpecificPing(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun mfgSpecificPing(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun readDataModelRevisionAttribute(): Integer { + suspend fun readDataModelRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeDataModelRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDataModelRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -60,11 +60,11 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readVendorIDAttribute(): Integer { + suspend fun readVendorIDAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -76,11 +76,11 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readProductIDAttribute(): Integer { + suspend fun readProductIDAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -116,11 +116,11 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readHardwareVersionAttribute(): Integer { + suspend fun readHardwareVersionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -135,11 +135,11 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readSoftwareVersionAttribute(): Long { + suspend fun readSoftwareVersionAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -289,19 +289,19 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 7fee672d5abae9..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 @@ -92,11 +92,11 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPolarityAttribute(): Integer { + suspend fun readPolarityAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribePolarityAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePolarityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -116,7 +116,7 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readReliabilityAttribute(): Integer { + suspend fun readReliabilityAttribute(): UByte { // Implementation needs to be added here } @@ -128,23 +128,23 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeReliabilityAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeReliabilityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readStatusFlagsAttribute(): Integer { + suspend fun readStatusFlagsAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeStatusFlagsAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeStatusFlagsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readApplicationTypeAttribute(): Long { + suspend fun readApplicationTypeAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeApplicationTypeAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeApplicationTypeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -189,19 +189,19 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 edc98cfe3ecb9b..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 @@ -94,19 +94,19 @@ class BindingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 2ba45f0b6a5dca..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 @@ -77,19 +77,19 @@ class BooleanStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 3c825cc8387b62..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 @@ -40,11 +40,11 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readVendorIDAttribute(): Integer { + suspend fun readVendorIDAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -72,11 +72,11 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readHardwareVersionAttribute(): Integer { + suspend fun readHardwareVersionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -91,11 +91,11 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readSoftwareVersionAttribute(): Long { + suspend fun readSoftwareVersionAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -218,19 +218,19 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 4ec67d9b9cb9fe..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 @@ -82,11 +82,11 @@ class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShor // Implementation needs to be added here } - suspend fun readPeakMeasuredValueWindowAttribute(): Long { + suspend fun readPeakMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -101,14 +101,14 @@ class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShor // Implementation needs to be added here } - suspend fun readAverageMeasuredValueWindowAttribute(): Long { + suspend fun readAverageMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -120,27 +120,27 @@ class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShor // Implementation needs to be added here } - suspend fun readMeasurementUnitAttribute(): Integer { + suspend fun readMeasurementUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMeasurementMediumAttribute(): Integer { + suspend fun readMeasurementMediumAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readLevelValueAttribute(): Integer { + suspend fun readLevelValueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -185,19 +185,19 @@ class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShor // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 30c75be5175ecb..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 @@ -82,11 +82,11 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: USho // Implementation needs to be added here } - suspend fun readPeakMeasuredValueWindowAttribute(): Long { + suspend fun readPeakMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -101,14 +101,14 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: USho // Implementation needs to be added here } - suspend fun readAverageMeasuredValueWindowAttribute(): Long { + suspend fun readAverageMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -120,27 +120,27 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: USho // Implementation needs to be added here } - suspend fun readMeasurementUnitAttribute(): Integer { + suspend fun readMeasurementUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMeasurementMediumAttribute(): Integer { + suspend fun readMeasurementMediumAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readLevelValueAttribute(): Integer { + suspend fun readLevelValueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -185,19 +185,19 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: USho // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 dc9db0efb936a4..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 @@ -36,32 +36,35 @@ class ChannelCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun changeChannel(match: String): ChangeChannelResponse { - // Implementation needs to be added here - } - - suspend fun changeChannel(match: String, timedInvokeTimeoutMs: Int): ChangeChannelResponse { - // Implementation needs to be added here - } - - suspend fun changeChannelByNumber(majorNumber: UShort, minorNumber: UShort) { - // Implementation needs to be added here + 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 + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun skipChannel(count: Short) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun skipChannel(count: Short, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun skipChannel(count: Short, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readChannelListAttribute(): ChannelListAttribute { @@ -135,19 +138,19 @@ class ChannelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 4312bfe45a4f5c..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 @@ -50,29 +50,19 @@ class ColorControlCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun moveToHue( - hue: UByte, - direction: UInt, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt - ) { - // Implementation needs to be added here - } - suspend fun moveToHue( hue: UByte, direction: UInt, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun moveHue(moveMode: UInt, rate: UByte, optionsMask: UInt, optionsOverride: UInt) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun moveHue( @@ -80,19 +70,13 @@ class ColorControlCluster(private val endpointId: UShort) { rate: UByte, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - 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 + } } suspend fun stepHue( @@ -101,18 +85,13 @@ class ColorControlCluster(private val endpointId: UShort) { transitionTime: UByte, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun moveToSaturation( - saturation: UByte, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt - ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun moveToSaturation( @@ -120,18 +99,13 @@ class ColorControlCluster(private val endpointId: UShort) { transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - suspend fun moveSaturation( - 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 + } } suspend fun moveSaturation( @@ -139,19 +113,13 @@ class ColorControlCluster(private val endpointId: UShort) { rate: UByte, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun stepSaturation( - stepMode: UInt, - stepSize: UByte, - transitionTime: UByte, - optionsMask: UInt, - optionsOverride: UInt - ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun stepSaturation( @@ -160,19 +128,13 @@ class ColorControlCluster(private val endpointId: UShort) { transitionTime: UByte, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - suspend fun moveToHueAndSaturation( - hue: UByte, - 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 + } } suspend fun moveToHueAndSaturation( @@ -181,19 +143,13 @@ class ColorControlCluster(private val endpointId: UShort) { transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun moveToColor( - colorX: UShort, - colorY: UShort, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt - ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun moveToColor( @@ -202,13 +158,13 @@ class ColorControlCluster(private val endpointId: UShort) { transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun moveColor(rateX: Short, rateY: Short, optionsMask: UInt, optionsOverride: UInt) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun moveColor( @@ -216,19 +172,13 @@ class ColorControlCluster(private val endpointId: UShort) { rateY: Short, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun stepColor( - stepX: Short, - stepY: Short, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt - ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun stepColor( @@ -237,18 +187,13 @@ class ColorControlCluster(private val endpointId: UShort) { transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - suspend fun moveToColorTemperature( - colorTemperatureMireds: 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 + } } suspend fun moveToColorTemperature( @@ -256,19 +201,13 @@ class ColorControlCluster(private val endpointId: UShort) { transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - suspend fun enhancedMoveToHue( - enhancedHue: UShort, - 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 + } } suspend fun enhancedMoveToHue( @@ -277,18 +216,13 @@ class ColorControlCluster(private val endpointId: UShort) { transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - suspend fun enhancedMoveHue( - moveMode: UInt, - rate: 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 + } } suspend fun enhancedMoveHue( @@ -296,19 +230,13 @@ class ColorControlCluster(private val endpointId: UShort) { rate: UShort, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - 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 + } } suspend fun enhancedStepHue( @@ -317,19 +245,13 @@ class ColorControlCluster(private val endpointId: UShort) { transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun enhancedMoveToHueAndSaturation( - enhancedHue: UShort, - saturation: UByte, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt - ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun enhancedMoveToHueAndSaturation( @@ -338,21 +260,13 @@ class ColorControlCluster(private val endpointId: UShort) { transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - 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 + } } suspend fun colorLoopSet( @@ -363,28 +277,25 @@ class ColorControlCluster(private val endpointId: UShort) { startHue: UShort, optionsMask: UInt, optionsOverride: UInt, - 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 + } } - suspend fun stopMoveStep(optionsMask: UInt, optionsOverride: UInt) { - // Implementation needs to be added here - } - - suspend fun stopMoveStep(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun moveColorTemperature( - moveMode: UInt, - rate: UShort, - colorTemperatureMinimumMireds: UShort, - colorTemperatureMaximumMireds: UShort, + suspend fun stopMoveStep( optionsMask: UInt, - optionsOverride: 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 + } } suspend fun moveColorTemperature( @@ -394,21 +305,13 @@ class ColorControlCluster(private val endpointId: UShort) { colorTemperatureMaximumMireds: UShort, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun stepColorTemperature( - stepMode: UInt, - stepSize: UShort, - transitionTime: UShort, - colorTemperatureMinimumMireds: UShort, - colorTemperatureMaximumMireds: UShort, - optionsMask: UInt, - optionsOverride: UInt - ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun stepColorTemperature( @@ -419,56 +322,60 @@ class ColorControlCluster(private val endpointId: UShort) { colorTemperatureMaximumMireds: UShort, optionsMask: UInt, optionsOverride: UInt, - 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 + } } - suspend fun readCurrentHueAttribute(): Integer { + suspend fun readCurrentHueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentHueAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentHueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readCurrentSaturationAttribute(): Integer { + suspend fun readCurrentSaturationAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentSaturationAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentSaturationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readRemainingTimeAttribute(): Integer { + suspend fun readRemainingTimeAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readCurrentXAttribute(): Integer { + suspend fun readCurrentXAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeCurrentXAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readCurrentYAttribute(): Integer { + suspend fun readCurrentYAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeCurrentYAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readDriftCompensationAttribute(): Integer { + suspend fun readDriftCompensationAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeDriftCompensationAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDriftCompensationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -480,26 +387,23 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readColorTemperatureMiredsAttribute(): Integer { + suspend fun readColorTemperatureMiredsAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeColorTemperatureMiredsAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeColorTemperatureMiredsAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readColorModeAttribute(): Integer { + suspend fun readColorModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeColorModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeColorModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readOptionsAttribute(): Integer { + suspend fun readOptionsAttribute(): UByte { // Implementation needs to be added here } @@ -511,7 +415,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOptionsAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOptionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -526,19 +430,19 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPrimary1XAttribute(): Integer { + suspend fun readPrimary1XAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePrimary1XAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePrimary1XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readPrimary1YAttribute(): Integer { + suspend fun readPrimary1YAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePrimary1YAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePrimary1YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -553,19 +457,19 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPrimary2XAttribute(): Integer { + suspend fun readPrimary2XAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePrimary2XAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePrimary2XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readPrimary2YAttribute(): Integer { + suspend fun readPrimary2YAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePrimary2YAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePrimary2YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -580,19 +484,19 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPrimary3XAttribute(): Integer { + suspend fun readPrimary3XAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePrimary3XAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePrimary3XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readPrimary3YAttribute(): Integer { + suspend fun readPrimary3YAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePrimary3YAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePrimary3YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -607,19 +511,19 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPrimary4XAttribute(): Integer { + suspend fun readPrimary4XAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePrimary4XAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePrimary4XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readPrimary4YAttribute(): Integer { + suspend fun readPrimary4YAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePrimary4YAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePrimary4YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -634,19 +538,19 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPrimary5XAttribute(): Integer { + suspend fun readPrimary5XAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePrimary5XAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePrimary5XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readPrimary5YAttribute(): Integer { + suspend fun readPrimary5YAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePrimary5YAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePrimary5YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -661,19 +565,19 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPrimary6XAttribute(): Integer { + suspend fun readPrimary6XAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePrimary6XAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePrimary6XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readPrimary6YAttribute(): Integer { + suspend fun readPrimary6YAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePrimary6YAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePrimary6YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -688,7 +592,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readWhitePointXAttribute(): Integer { + suspend fun readWhitePointXAttribute(): UShort { // Implementation needs to be added here } @@ -700,11 +604,11 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeWhitePointXAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeWhitePointXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readWhitePointYAttribute(): Integer { + suspend fun readWhitePointYAttribute(): UShort { // Implementation needs to be added here } @@ -716,11 +620,11 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeWhitePointYAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeWhitePointYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readColorPointRXAttribute(): Integer { + suspend fun readColorPointRXAttribute(): UShort { // Implementation needs to be added here } @@ -732,11 +636,11 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeColorPointRXAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeColorPointRXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readColorPointRYAttribute(): Integer { + suspend fun readColorPointRYAttribute(): UShort { // Implementation needs to be added here } @@ -748,7 +652,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeColorPointRYAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeColorPointRYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -771,7 +675,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readColorPointGXAttribute(): Integer { + suspend fun readColorPointGXAttribute(): UShort { // Implementation needs to be added here } @@ -783,11 +687,11 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeColorPointGXAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeColorPointGXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readColorPointGYAttribute(): Integer { + suspend fun readColorPointGYAttribute(): UShort { // Implementation needs to be added here } @@ -799,7 +703,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeColorPointGYAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeColorPointGYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -822,7 +726,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readColorPointBXAttribute(): Integer { + suspend fun readColorPointBXAttribute(): UShort { // Implementation needs to be added here } @@ -834,11 +738,11 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeColorPointBXAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeColorPointBXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readColorPointBYAttribute(): Integer { + suspend fun readColorPointBYAttribute(): UShort { // Implementation needs to be added here } @@ -850,7 +754,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeColorPointBYAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeColorPointBYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -873,106 +777,106 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readEnhancedCurrentHueAttribute(): Integer { + suspend fun readEnhancedCurrentHueAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeEnhancedCurrentHueAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeEnhancedCurrentHueAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readEnhancedColorModeAttribute(): Integer { + suspend fun readEnhancedColorModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeEnhancedColorModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeEnhancedColorModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readColorLoopActiveAttribute(): Integer { + suspend fun readColorLoopActiveAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeColorLoopActiveAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeColorLoopActiveAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readColorLoopDirectionAttribute(): Integer { + suspend fun readColorLoopDirectionAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeColorLoopDirectionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeColorLoopDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readColorLoopTimeAttribute(): Integer { + suspend fun readColorLoopTimeAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeColorLoopTimeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeColorLoopTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readColorLoopStartEnhancedHueAttribute(): Integer { + suspend fun readColorLoopStartEnhancedHueAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeColorLoopStartEnhancedHueAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readColorLoopStoredEnhancedHueAttribute(): Integer { + suspend fun readColorLoopStoredEnhancedHueAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeColorLoopStoredEnhancedHueAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readColorCapabilitiesAttribute(): Integer { + suspend fun readColorCapabilitiesAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeColorCapabilitiesAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeColorCapabilitiesAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readColorTempPhysicalMinMiredsAttribute(): Integer { + suspend fun readColorTempPhysicalMinMiredsAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeColorTempPhysicalMinMiredsAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readColorTempPhysicalMaxMiredsAttribute(): Integer { + suspend fun readColorTempPhysicalMaxMiredsAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeColorTempPhysicalMaxMiredsAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readCoupleColorTempToLevelMinMiredsAttribute(): Integer { + suspend fun readCoupleColorTempToLevelMinMiredsAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeCoupleColorTempToLevelMinMiredsAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } @@ -1036,19 +940,19 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 ee6dcff8f5fd6b..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 @@ -32,38 +32,30 @@ class ContentLauncherCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun launchContent( - search: ChipStructs.ContentLauncherClusterContentSearchStruct, - autoPlay: Boolean, - data: String? - ): LauncherResponse { - // Implementation needs to be added here - } - suspend fun launchContent( search: ChipStructs.ContentLauncherClusterContentSearchStruct, autoPlay: Boolean, data: String?, - timedInvokeTimeoutMs: Int - ): LauncherResponse { - // Implementation needs to be added here - } - - suspend fun launchURL( - contentURL: String, - displayString: String?, - brandingInformation: ChipStructs.ContentLauncherClusterBrandingInformationStruct? + timedInvokeTimeoutMs: Int? = null ): LauncherResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun launchURL( contentURL: String, displayString: String?, brandingInformation: ChipStructs.ContentLauncherClusterBrandingInformationStruct?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): LauncherResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readAcceptHeaderAttribute(): AcceptHeaderAttribute { @@ -77,7 +69,7 @@ class ContentLauncherCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readSupportedStreamingProtocolsAttribute(): Long { + suspend fun readSupportedStreamingProtocolsAttribute(): UInt { // Implementation needs to be added here } @@ -92,7 +84,7 @@ class ContentLauncherCluster(private val endpointId: UShort) { suspend fun subscribeSupportedStreamingProtocolsAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -137,19 +129,19 @@ class ContentLauncherCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 813c7b9d1c51d1..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 @@ -130,19 +130,19 @@ class DescriptorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 af66e72cdc3fe9..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 @@ -35,21 +35,17 @@ class DiagnosticLogsCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun retrieveLogsRequest( - intent: UInt, - requestedProtocol: UInt, - transferFileDesignator: String? - ): RetrieveLogsResponse { - // Implementation needs to be added here - } - suspend fun retrieveLogsRequest( intent: UInt, requestedProtocol: UInt, transferFileDesignator: String?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): RetrieveLogsResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -93,19 +89,19 @@ class DiagnosticLogsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 bdfa74c5dd49b2..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 @@ -28,51 +28,51 @@ class DishwasherAlarmCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun reset(alarms: ULong) { - // Implementation needs to be added here - } - - suspend fun reset(alarms: ULong, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun reset(alarms: ULong, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun modifyEnabledAlarms(mask: ULong) { - // Implementation needs to be added here - } - - suspend fun modifyEnabledAlarms(mask: ULong, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun modifyEnabledAlarms(mask: ULong, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun readMaskAttribute(): Long { + suspend fun readMaskAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readLatchAttribute(): Long { + suspend fun readLatchAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeLatchAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeLatchAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readStateAttribute(): Long { + suspend fun readStateAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readSupportedAttribute(): Long { + suspend fun readSupportedAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -117,19 +117,19 @@ class DishwasherAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 57db5faffaaed2..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 @@ -38,12 +38,15 @@ class DishwasherModeCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun changeToMode(newMode: UByte): ChangeToModeResponse { - // Implementation needs to be added here - } - - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int): ChangeToModeResponse { - // Implementation needs to be added here + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -57,11 +60,11 @@ class DishwasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readCurrentModeAttribute(): Integer { + suspend fun readCurrentModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -141,19 +144,19 @@ class DishwasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 851df952f4289a..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 @@ -86,28 +86,32 @@ class DoorLockCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun lockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun unlockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun unlockWithTimeout(timeout: UShort, PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun setWeekDaySchedule( - weekDayIndex: UByte, - userIndex: UShort, - daysMask: UInt, - startHour: UByte, - startMinute: UByte, - endHour: UByte, - endMinute: UByte + 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? = null ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun setWeekDaySchedule( @@ -118,45 +122,37 @@ class DoorLockCluster(private val endpointId: UShort) { startMinute: UByte, endHour: UByte, endMinute: UByte, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun getWeekDaySchedule( - weekDayIndex: UByte, - userIndex: UShort - ): GetWeekDayScheduleResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun getWeekDaySchedule( weekDayIndex: UByte, userIndex: UShort, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): GetWeekDayScheduleResponse { - // Implementation needs to be added here - } - - suspend fun clearWeekDaySchedule(weekDayIndex: UByte, userIndex: UShort) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun clearWeekDaySchedule( weekDayIndex: UByte, userIndex: UShort, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun setYearDaySchedule( - yearDayIndex: UByte, - userIndex: UShort, - localStartTime: UInt, - localEndTime: UInt - ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun setYearDaySchedule( @@ -164,45 +160,37 @@ class DoorLockCluster(private val endpointId: UShort) { userIndex: UShort, localStartTime: UInt, localEndTime: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun getYearDaySchedule( - yearDayIndex: UByte, - userIndex: UShort - ): GetYearDayScheduleResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun getYearDaySchedule( yearDayIndex: UByte, userIndex: UShort, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): GetYearDayScheduleResponse { - // Implementation needs to be added here - } - - suspend fun clearYearDaySchedule(yearDayIndex: UByte, userIndex: UShort) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun clearYearDaySchedule( yearDayIndex: UByte, userIndex: UShort, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun setHolidaySchedule( - holidayIndex: UByte, - localStartTime: UInt, - localEndTime: UInt, - operatingMode: UInt - ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun setHolidaySchedule( @@ -210,28 +198,32 @@ class DoorLockCluster(private val endpointId: UShort) { localStartTime: UInt, localEndTime: UInt, operatingMode: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun getHolidaySchedule(holidayIndex: UByte): GetHolidayScheduleResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun getHolidaySchedule( holidayIndex: UByte, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): GetHolidayScheduleResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun clearHolidaySchedule(holidayIndex: UByte) { - // Implementation needs to be added here - } - - suspend fun clearHolidaySchedule(holidayIndex: UByte, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + 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( @@ -242,21 +234,29 @@ class DoorLockCluster(private val endpointId: UShort) { userStatus: UInt?, userType: UInt?, credentialRule: UInt?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun getUser(userIndex: UShort): GetUserResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun getUser(userIndex: UShort, timedInvokeTimeoutMs: Int): GetUserResponse { - // 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 + } } - suspend fun clearUser(userIndex: UShort, 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 + } } suspend fun setCredential( @@ -266,33 +266,43 @@ class DoorLockCluster(private val endpointId: UShort) { userIndex: UShort?, userStatus: UInt?, userType: UInt?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): SetCredentialResponse { - // Implementation needs to be added here - } - - suspend fun getCredentialStatus( - credential: ChipStructs.DoorLockClusterCredentialStruct - ): GetCredentialStatusResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun getCredentialStatus( credential: ChipStructs.DoorLockClusterCredentialStruct, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): GetCredentialStatusResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun clearCredential( credential: ChipStructs.DoorLockClusterCredentialStruct?, - 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 + } } - suspend fun unboltDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun unboltDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readLockStateAttribute(): LockStateAttribute { @@ -303,11 +313,11 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readLockTypeAttribute(): Integer { + suspend fun readLockTypeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLockTypeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLockTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -327,7 +337,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readDoorOpenEventsAttribute(): Long { + suspend fun readDoorOpenEventsAttribute(): UInt { // Implementation needs to be added here } @@ -339,11 +349,11 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDoorOpenEventsAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeDoorOpenEventsAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readDoorClosedEventsAttribute(): Long { + suspend fun readDoorClosedEventsAttribute(): UInt { // Implementation needs to be added here } @@ -355,11 +365,11 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDoorClosedEventsAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeDoorClosedEventsAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readOpenPeriodAttribute(): Integer { + suspend fun readOpenPeriodAttribute(): UShort { // Implementation needs to be added here } @@ -371,127 +381,124 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOpenPeriodAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOpenPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readNumberOfTotalUsersSupportedAttribute(): Integer { + suspend fun readNumberOfTotalUsersSupportedAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeNumberOfTotalUsersSupportedAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readNumberOfPINUsersSupportedAttribute(): Integer { + suspend fun readNumberOfPINUsersSupportedAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeNumberOfPINUsersSupportedAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readNumberOfRFIDUsersSupportedAttribute(): Integer { + suspend fun readNumberOfRFIDUsersSupportedAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeNumberOfRFIDUsersSupportedAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readNumberOfWeekDaySchedulesSupportedPerUserAttribute(): Integer { + suspend fun readNumberOfWeekDaySchedulesSupportedPerUserAttribute(): UByte { // Implementation needs to be added here } suspend fun subscribeNumberOfWeekDaySchedulesSupportedPerUserAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } - suspend fun readNumberOfYearDaySchedulesSupportedPerUserAttribute(): Integer { + suspend fun readNumberOfYearDaySchedulesSupportedPerUserAttribute(): UByte { // Implementation needs to be added here } suspend fun subscribeNumberOfYearDaySchedulesSupportedPerUserAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } - suspend fun readNumberOfHolidaySchedulesSupportedAttribute(): Integer { + suspend fun readNumberOfHolidaySchedulesSupportedAttribute(): UByte { // Implementation needs to be added here } suspend fun subscribeNumberOfHolidaySchedulesSupportedAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } - suspend fun readMaxPINCodeLengthAttribute(): Integer { + suspend fun readMaxPINCodeLengthAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMaxPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMaxPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMinPINCodeLengthAttribute(): Integer { + suspend fun readMinPINCodeLengthAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMinPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMinPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMaxRFIDCodeLengthAttribute(): Integer { + suspend fun readMaxRFIDCodeLengthAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMaxRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMaxRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMinRFIDCodeLengthAttribute(): Integer { + suspend fun readMinRFIDCodeLengthAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMinRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMinRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readCredentialRulesSupportAttribute(): Integer { + suspend fun readCredentialRulesSupportAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCredentialRulesSupportAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeCredentialRulesSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readNumberOfCredentialsSupportedPerUserAttribute(): Integer { + suspend fun readNumberOfCredentialsSupportedPerUserAttribute(): UByte { // Implementation needs to be added here } suspend fun subscribeNumberOfCredentialsSupportedPerUserAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } @@ -511,7 +518,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readLEDSettingsAttribute(): Integer { + suspend fun readLEDSettingsAttribute(): UByte { // Implementation needs to be added here } @@ -523,11 +530,11 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLEDSettingsAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLEDSettingsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readAutoRelockTimeAttribute(): Long { + suspend fun readAutoRelockTimeAttribute(): UInt { // Implementation needs to be added here } @@ -539,11 +546,11 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAutoRelockTimeAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeAutoRelockTimeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readSoundVolumeAttribute(): Integer { + suspend fun readSoundVolumeAttribute(): UByte { // Implementation needs to be added here } @@ -555,11 +562,11 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSoundVolumeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSoundVolumeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readOperatingModeAttribute(): Integer { + suspend fun readOperatingModeAttribute(): UByte { // Implementation needs to be added here } @@ -571,29 +578,29 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOperatingModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOperatingModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readSupportedOperatingModesAttribute(): Integer { + suspend fun readSupportedOperatingModesAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeSupportedOperatingModesAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readDefaultConfigurationRegisterAttribute(): Integer { + suspend fun readDefaultConfigurationRegisterAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeDefaultConfigurationRegisterAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } @@ -667,7 +674,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readLocalProgrammingFeaturesAttribute(): Integer { + suspend fun readLocalProgrammingFeaturesAttribute(): UByte { // Implementation needs to be added here } @@ -682,11 +689,11 @@ class DoorLockCluster(private val endpointId: UShort) { suspend fun subscribeLocalProgrammingFeaturesAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } - suspend fun readWrongCodeEntryLimitAttribute(): Integer { + suspend fun readWrongCodeEntryLimitAttribute(): UByte { // Implementation needs to be added here } @@ -698,11 +705,11 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeWrongCodeEntryLimitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeWrongCodeEntryLimitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readUserCodeTemporaryDisableTimeAttribute(): Integer { + suspend fun readUserCodeTemporaryDisableTimeAttribute(): UByte { // Implementation needs to be added here } @@ -717,7 +724,7 @@ class DoorLockCluster(private val endpointId: UShort) { suspend fun subscribeUserCodeTemporaryDisableTimeAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } @@ -756,7 +763,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readExpiringUserTimeoutAttribute(): Integer { + suspend fun readExpiringUserTimeoutAttribute(): UShort { // Implementation needs to be added here } @@ -768,7 +775,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeExpiringUserTimeoutAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeExpiringUserTimeoutAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -813,19 +820,19 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 292dfc4797dc83..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 @@ -28,547 +28,543 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun getProfileInfoCommand() { - // Implementation needs to be added here - } - - suspend fun getProfileInfoCommand(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun getMeasurementProfileCommand( - attributeId: UShort, - startTime: UInt, - numberOfIntervals: UInt - ) { - // Implementation needs to be added here + suspend fun getProfileInfoCommand(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun getMeasurementProfileCommand( attributeId: UShort, startTime: UInt, numberOfIntervals: UInt, - 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 + } } - suspend fun readMeasurementTypeAttribute(): Long { + suspend fun readMeasurementTypeAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeMeasurementTypeAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeMeasurementTypeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readDcVoltageAttribute(): Integer { + suspend fun readDcVoltageAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeDcVoltageAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readDcVoltageMinAttribute(): Integer { + suspend fun readDcVoltageMinAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeDcVoltageMinAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcVoltageMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readDcVoltageMaxAttribute(): Integer { + suspend fun readDcVoltageMaxAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeDcVoltageMaxAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcVoltageMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readDcCurrentAttribute(): Integer { + suspend fun readDcCurrentAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeDcCurrentAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcCurrentAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readDcCurrentMinAttribute(): Integer { + suspend fun readDcCurrentMinAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeDcCurrentMinAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcCurrentMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readDcCurrentMaxAttribute(): Integer { + suspend fun readDcCurrentMaxAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeDcCurrentMaxAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcCurrentMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readDcPowerAttribute(): Integer { + suspend fun readDcPowerAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeDcPowerAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcPowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readDcPowerMinAttribute(): Integer { + suspend fun readDcPowerMinAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeDcPowerMinAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcPowerMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readDcPowerMaxAttribute(): Integer { + suspend fun readDcPowerMaxAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeDcPowerMaxAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcPowerMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readDcVoltageMultiplierAttribute(): Integer { + suspend fun readDcVoltageMultiplierAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeDcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readDcVoltageDivisorAttribute(): Integer { + suspend fun readDcVoltageDivisorAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeDcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readDcCurrentMultiplierAttribute(): Integer { + suspend fun readDcCurrentMultiplierAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeDcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readDcCurrentDivisorAttribute(): Integer { + suspend fun readDcCurrentDivisorAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeDcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readDcPowerMultiplierAttribute(): Integer { + suspend fun readDcPowerMultiplierAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeDcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readDcPowerDivisorAttribute(): Integer { + suspend fun readDcPowerDivisorAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeDcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readAcFrequencyAttribute(): Integer { + suspend fun readAcFrequencyAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeAcFrequencyAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readAcFrequencyMinAttribute(): Integer { + suspend fun readAcFrequencyMinAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeAcFrequencyMinAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcFrequencyMinAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readAcFrequencyMaxAttribute(): Integer { + suspend fun readAcFrequencyMaxAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeAcFrequencyMaxAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcFrequencyMaxAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readNeutralCurrentAttribute(): Integer { + suspend fun readNeutralCurrentAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeNeutralCurrentAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeNeutralCurrentAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readTotalActivePowerAttribute(): Long { + suspend fun readTotalActivePowerAttribute(): Int { // Implementation needs to be added here } - suspend fun subscribeTotalActivePowerAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTotalActivePowerAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } - suspend fun readTotalReactivePowerAttribute(): Long { + suspend fun readTotalReactivePowerAttribute(): Int { // Implementation needs to be added here } - suspend fun subscribeTotalReactivePowerAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTotalReactivePowerAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } - suspend fun readTotalApparentPowerAttribute(): Long { + suspend fun readTotalApparentPowerAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTotalApparentPowerAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTotalApparentPowerAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readMeasured1stHarmonicCurrentAttribute(): Integer { + suspend fun readMeasured1stHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeMeasured1stHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readMeasured3rdHarmonicCurrentAttribute(): Integer { + suspend fun readMeasured3rdHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeMeasured3rdHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readMeasured5thHarmonicCurrentAttribute(): Integer { + suspend fun readMeasured5thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeMeasured5thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readMeasured7thHarmonicCurrentAttribute(): Integer { + suspend fun readMeasured7thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeMeasured7thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readMeasured9thHarmonicCurrentAttribute(): Integer { + suspend fun readMeasured9thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeMeasured9thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readMeasured11thHarmonicCurrentAttribute(): Integer { + suspend fun readMeasured11thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeMeasured11thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readMeasuredPhase1stHarmonicCurrentAttribute(): Integer { + suspend fun readMeasuredPhase1stHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeMeasuredPhase1stHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readMeasuredPhase3rdHarmonicCurrentAttribute(): Integer { + suspend fun readMeasuredPhase3rdHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeMeasuredPhase3rdHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readMeasuredPhase5thHarmonicCurrentAttribute(): Integer { + suspend fun readMeasuredPhase5thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeMeasuredPhase5thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readMeasuredPhase7thHarmonicCurrentAttribute(): Integer { + suspend fun readMeasuredPhase7thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeMeasuredPhase7thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readMeasuredPhase9thHarmonicCurrentAttribute(): Integer { + suspend fun readMeasuredPhase9thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeMeasuredPhase9thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readMeasuredPhase11thHarmonicCurrentAttribute(): Integer { + suspend fun readMeasuredPhase11thHarmonicCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeMeasuredPhase11thHarmonicCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readAcFrequencyMultiplierAttribute(): Integer { + suspend fun readAcFrequencyMultiplierAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeAcFrequencyMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcFrequencyMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readAcFrequencyDivisorAttribute(): Integer { + suspend fun readAcFrequencyDivisorAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeAcFrequencyDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcFrequencyDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readPowerMultiplierAttribute(): Long { + suspend fun readPowerMultiplierAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribePowerMultiplierAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readPowerDivisorAttribute(): Long { + suspend fun readPowerDivisorAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribePowerDivisorAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePowerDivisorAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readHarmonicCurrentMultiplierAttribute(): Integer { + suspend fun readHarmonicCurrentMultiplierAttribute(): Byte { // Implementation needs to be added here } suspend fun subscribeHarmonicCurrentMultiplierAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Byte { // Implementation needs to be added here } - suspend fun readPhaseHarmonicCurrentMultiplierAttribute(): Integer { + suspend fun readPhaseHarmonicCurrentMultiplierAttribute(): Byte { // Implementation needs to be added here } suspend fun subscribePhaseHarmonicCurrentMultiplierAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Byte { // Implementation needs to be added here } - suspend fun readInstantaneousVoltageAttribute(): Integer { + suspend fun readInstantaneousVoltageAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeInstantaneousVoltageAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeInstantaneousVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readInstantaneousLineCurrentAttribute(): Integer { + suspend fun readInstantaneousLineCurrentAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeInstantaneousLineCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readInstantaneousActiveCurrentAttribute(): Integer { + suspend fun readInstantaneousActiveCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeInstantaneousActiveCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readInstantaneousReactiveCurrentAttribute(): Integer { + suspend fun readInstantaneousReactiveCurrentAttribute(): Short { // Implementation needs to be added here } suspend fun subscribeInstantaneousReactiveCurrentAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readInstantaneousPowerAttribute(): Integer { + suspend fun readInstantaneousPowerAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeInstantaneousPowerAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeInstantaneousPowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readRmsVoltageAttribute(): Integer { + suspend fun readRmsVoltageAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltageAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsVoltageMinAttribute(): Integer { + suspend fun readRmsVoltageMinAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMinAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltageMinAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsVoltageMaxAttribute(): Integer { + suspend fun readRmsVoltageMaxAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMaxAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltageMaxAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsCurrentAttribute(): Integer { + suspend fun readRmsCurrentAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsCurrentAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsCurrentMinAttribute(): Integer { + suspend fun readRmsCurrentMinAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMinAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsCurrentMinAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsCurrentMaxAttribute(): Integer { + suspend fun readRmsCurrentMaxAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMaxAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsCurrentMaxAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readActivePowerAttribute(): Integer { + suspend fun readActivePowerAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeActivePowerAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActivePowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readActivePowerMinAttribute(): Integer { + suspend fun readActivePowerMinAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeActivePowerMinAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActivePowerMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readActivePowerMaxAttribute(): Integer { + suspend fun readActivePowerMaxAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeActivePowerMaxAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActivePowerMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readReactivePowerAttribute(): Integer { + suspend fun readReactivePowerAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeReactivePowerAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeReactivePowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readApparentPowerAttribute(): Integer { + suspend fun readApparentPowerAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeApparentPowerAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeApparentPowerAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readPowerFactorAttribute(): Integer { + suspend fun readPowerFactorAttribute(): Byte { // Implementation needs to be added here } - suspend fun subscribePowerFactorAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePowerFactorAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } - suspend fun readAverageRmsVoltageMeasurementPeriodAttribute(): Integer { + suspend fun readAverageRmsVoltageMeasurementPeriodAttribute(): UShort { // Implementation needs to be added here } @@ -586,11 +582,11 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { suspend fun subscribeAverageRmsVoltageMeasurementPeriodAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readAverageRmsUnderVoltageCounterAttribute(): Integer { + suspend fun readAverageRmsUnderVoltageCounterAttribute(): UShort { // Implementation needs to be added here } @@ -605,11 +601,11 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { suspend fun subscribeAverageRmsUnderVoltageCounterAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readRmsExtremeOverVoltagePeriodAttribute(): Integer { + suspend fun readRmsExtremeOverVoltagePeriodAttribute(): UShort { // Implementation needs to be added here } @@ -624,11 +620,11 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { suspend fun subscribeRmsExtremeOverVoltagePeriodAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readRmsExtremeUnderVoltagePeriodAttribute(): Integer { + suspend fun readRmsExtremeUnderVoltagePeriodAttribute(): UShort { // Implementation needs to be added here } @@ -643,11 +639,11 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { suspend fun subscribeRmsExtremeUnderVoltagePeriodAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readRmsVoltageSagPeriodAttribute(): Integer { + suspend fun readRmsVoltageSagPeriodAttribute(): UShort { // Implementation needs to be added here } @@ -659,11 +655,11 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageSagPeriodAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltageSagPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsVoltageSwellPeriodAttribute(): Integer { + suspend fun readRmsVoltageSwellPeriodAttribute(): UShort { // Implementation needs to be added here } @@ -675,59 +671,59 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageSwellPeriodAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltageSwellPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readAcVoltageMultiplierAttribute(): Integer { + suspend fun readAcVoltageMultiplierAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeAcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readAcVoltageDivisorAttribute(): Integer { + suspend fun readAcVoltageDivisorAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeAcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readAcCurrentMultiplierAttribute(): Integer { + suspend fun readAcCurrentMultiplierAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeAcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readAcCurrentDivisorAttribute(): Integer { + suspend fun readAcCurrentDivisorAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeAcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readAcPowerMultiplierAttribute(): Integer { + suspend fun readAcPowerMultiplierAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeAcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readAcPowerDivisorAttribute(): Integer { + suspend fun readAcPowerDivisorAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeAcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readOverloadAlarmsMaskAttribute(): Integer { + suspend fun readOverloadAlarmsMaskAttribute(): UByte { // Implementation needs to be added here } @@ -739,27 +735,27 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOverloadAlarmsMaskAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOverloadAlarmsMaskAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readVoltageOverloadAttribute(): Integer { + suspend fun readVoltageOverloadAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readCurrentOverloadAttribute(): Integer { + suspend fun readCurrentOverloadAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readAcOverloadAlarmsMaskAttribute(): Integer { + suspend fun readAcOverloadAlarmsMaskAttribute(): UShort { // Implementation needs to be added here } @@ -771,490 +767,481 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcOverloadAlarmsMaskAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcOverloadAlarmsMaskAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readAcVoltageOverloadAttribute(): Integer { + suspend fun readAcVoltageOverloadAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeAcVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readAcCurrentOverloadAttribute(): Integer { + suspend fun readAcCurrentOverloadAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeAcCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readAcActivePowerOverloadAttribute(): Integer { + suspend fun readAcActivePowerOverloadAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeAcActivePowerOverloadAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAcActivePowerOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readAcReactivePowerOverloadAttribute(): Integer { + suspend fun readAcReactivePowerOverloadAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeAcReactivePowerOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeAcReactivePowerOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readAverageRmsOverVoltageAttribute(): Integer { + suspend fun readAverageRmsOverVoltageAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeAverageRmsOverVoltageAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAverageRmsOverVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readAverageRmsUnderVoltageAttribute(): Integer { + suspend fun readAverageRmsUnderVoltageAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeAverageRmsUnderVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeAverageRmsUnderVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readRmsExtremeOverVoltageAttribute(): Integer { + suspend fun readRmsExtremeOverVoltageAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeRmsExtremeOverVoltageAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsExtremeOverVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readRmsExtremeUnderVoltageAttribute(): Integer { + suspend fun readRmsExtremeUnderVoltageAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeRmsExtremeUnderVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeRmsExtremeUnderVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readRmsVoltageSagAttribute(): Integer { + suspend fun readRmsVoltageSagAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageSagAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltageSagAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readRmsVoltageSwellAttribute(): Integer { + suspend fun readRmsVoltageSwellAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageSwellAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltageSwellAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readLineCurrentPhaseBAttribute(): Integer { + suspend fun readLineCurrentPhaseBAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeLineCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLineCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readActiveCurrentPhaseBAttribute(): Integer { + suspend fun readActiveCurrentPhaseBAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeActiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readReactiveCurrentPhaseBAttribute(): Integer { + suspend fun readReactiveCurrentPhaseBAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeReactiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeReactiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readRmsVoltagePhaseBAttribute(): Integer { + suspend fun readRmsVoltagePhaseBAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsVoltagePhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltagePhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsVoltageMinPhaseBAttribute(): Integer { + suspend fun readRmsVoltageMinPhaseBAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMinPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltageMinPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsVoltageMaxPhaseBAttribute(): Integer { + suspend fun readRmsVoltageMaxPhaseBAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltageMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsCurrentPhaseBAttribute(): Integer { + suspend fun readRmsCurrentPhaseBAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsCurrentMinPhaseBAttribute(): Integer { + suspend fun readRmsCurrentMinPhaseBAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMinPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsCurrentMinPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsCurrentMaxPhaseBAttribute(): Integer { + suspend fun readRmsCurrentMaxPhaseBAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsCurrentMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readActivePowerPhaseBAttribute(): Integer { + suspend fun readActivePowerPhaseBAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeActivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readActivePowerMinPhaseBAttribute(): Integer { + suspend fun readActivePowerMinPhaseBAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeActivePowerMinPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActivePowerMinPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readActivePowerMaxPhaseBAttribute(): Integer { + suspend fun readActivePowerMaxPhaseBAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeActivePowerMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActivePowerMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readReactivePowerPhaseBAttribute(): Integer { + suspend fun readReactivePowerPhaseBAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeReactivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeReactivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readApparentPowerPhaseBAttribute(): Integer { + suspend fun readApparentPowerPhaseBAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeApparentPowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeApparentPowerPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readPowerFactorPhaseBAttribute(): Integer { + suspend fun readPowerFactorPhaseBAttribute(): Byte { // Implementation needs to be added here } - suspend fun subscribePowerFactorPhaseBAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePowerFactorPhaseBAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } - suspend fun readAverageRmsVoltageMeasurementPeriodPhaseBAttribute(): Integer { + suspend fun readAverageRmsVoltageMeasurementPeriodPhaseBAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeAverageRmsVoltageMeasurementPeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readAverageRmsOverVoltageCounterPhaseBAttribute(): Integer { + suspend fun readAverageRmsOverVoltageCounterPhaseBAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeAverageRmsOverVoltageCounterPhaseBAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readAverageRmsUnderVoltageCounterPhaseBAttribute(): Integer { + suspend fun readAverageRmsUnderVoltageCounterPhaseBAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeAverageRmsUnderVoltageCounterPhaseBAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readRmsExtremeOverVoltagePeriodPhaseBAttribute(): Integer { + suspend fun readRmsExtremeOverVoltagePeriodPhaseBAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeRmsExtremeOverVoltagePeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readRmsExtremeUnderVoltagePeriodPhaseBAttribute(): Integer { + suspend fun readRmsExtremeUnderVoltagePeriodPhaseBAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeRmsExtremeUnderVoltagePeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readRmsVoltageSagPeriodPhaseBAttribute(): Integer { + suspend fun readRmsVoltageSagPeriodPhaseBAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeRmsVoltageSagPeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readRmsVoltageSwellPeriodPhaseBAttribute(): Integer { + suspend fun readRmsVoltageSwellPeriodPhaseBAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeRmsVoltageSwellPeriodPhaseBAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readLineCurrentPhaseCAttribute(): Integer { + suspend fun readLineCurrentPhaseCAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeLineCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLineCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readActiveCurrentPhaseCAttribute(): Integer { + suspend fun readActiveCurrentPhaseCAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeActiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readReactiveCurrentPhaseCAttribute(): Integer { + suspend fun readReactiveCurrentPhaseCAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeReactiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeReactiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readRmsVoltagePhaseCAttribute(): Integer { + suspend fun readRmsVoltagePhaseCAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsVoltagePhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltagePhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsVoltageMinPhaseCAttribute(): Integer { + suspend fun readRmsVoltageMinPhaseCAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMinPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltageMinPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsVoltageMaxPhaseCAttribute(): Integer { + suspend fun readRmsVoltageMaxPhaseCAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsVoltageMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsCurrentPhaseCAttribute(): Integer { + suspend fun readRmsCurrentPhaseCAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsCurrentMinPhaseCAttribute(): Integer { + suspend fun readRmsCurrentMinPhaseCAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMinPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsCurrentMinPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRmsCurrentMaxPhaseCAttribute(): Integer { + suspend fun readRmsCurrentMaxPhaseCAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRmsCurrentMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readActivePowerPhaseCAttribute(): Integer { + suspend fun readActivePowerPhaseCAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeActivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readActivePowerMinPhaseCAttribute(): Integer { + suspend fun readActivePowerMinPhaseCAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeActivePowerMinPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActivePowerMinPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readActivePowerMaxPhaseCAttribute(): Integer { + suspend fun readActivePowerMaxPhaseCAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeActivePowerMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActivePowerMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readReactivePowerPhaseCAttribute(): Integer { + suspend fun readReactivePowerPhaseCAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeReactivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeReactivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readApparentPowerPhaseCAttribute(): Integer { + suspend fun readApparentPowerPhaseCAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeApparentPowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeApparentPowerPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readPowerFactorPhaseCAttribute(): Integer { + suspend fun readPowerFactorPhaseCAttribute(): Byte { // Implementation needs to be added here } - suspend fun subscribePowerFactorPhaseCAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePowerFactorPhaseCAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } - suspend fun readAverageRmsVoltageMeasurementPeriodPhaseCAttribute(): Integer { + suspend fun readAverageRmsVoltageMeasurementPeriodPhaseCAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeAverageRmsVoltageMeasurementPeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readAverageRmsOverVoltageCounterPhaseCAttribute(): Integer { + suspend fun readAverageRmsOverVoltageCounterPhaseCAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeAverageRmsOverVoltageCounterPhaseCAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readAverageRmsUnderVoltageCounterPhaseCAttribute(): Integer { + suspend fun readAverageRmsUnderVoltageCounterPhaseCAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeAverageRmsUnderVoltageCounterPhaseCAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readRmsExtremeOverVoltagePeriodPhaseCAttribute(): Integer { + suspend fun readRmsExtremeOverVoltagePeriodPhaseCAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeRmsExtremeOverVoltagePeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readRmsExtremeUnderVoltagePeriodPhaseCAttribute(): Integer { + suspend fun readRmsExtremeUnderVoltagePeriodPhaseCAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeRmsExtremeUnderVoltagePeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readRmsVoltageSagPeriodPhaseCAttribute(): Integer { + suspend fun readRmsVoltageSagPeriodPhaseCAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeRmsVoltageSagPeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readRmsVoltageSwellPeriodPhaseCAttribute(): Integer { + suspend fun readRmsVoltageSwellPeriodPhaseCAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeRmsVoltageSwellPeriodPhaseCAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } @@ -1299,19 +1286,19 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 a2dcd32f0c4892..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 @@ -34,12 +34,12 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun resetCounts() { - // Implementation needs to be added here - } - - suspend fun resetCounts(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readPHYRateAttribute(): PHYRateAttribute { @@ -61,43 +61,43 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPacketRxCountAttribute(): Long { + suspend fun readPacketRxCountAttribute(): ULong { // Implementation needs to be added here } - suspend fun subscribePacketRxCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePacketRxCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readPacketTxCountAttribute(): Long { + suspend fun readPacketTxCountAttribute(): ULong { // Implementation needs to be added here } - suspend fun subscribePacketTxCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePacketTxCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readTxErrCountAttribute(): Long { + suspend fun readTxErrCountAttribute(): ULong { // Implementation needs to be added here } - suspend fun subscribeTxErrCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxErrCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readCollisionCountAttribute(): Long { + suspend fun readCollisionCountAttribute(): ULong { // Implementation needs to be added here } - suspend fun subscribeCollisionCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeCollisionCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readOverrunCountAttribute(): Long { + suspend fun readOverrunCountAttribute(): ULong { // Implementation needs to be added here } - suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -112,11 +112,11 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readTimeSinceResetAttribute(): Long { + suspend fun readTimeSinceResetAttribute(): ULong { // Implementation needs to be added here } - suspend fun subscribeTimeSinceResetAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTimeSinceResetAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -161,19 +161,19 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 f4c0799dfd06ce..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 @@ -32,20 +32,20 @@ class FanControlCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun step(direction: UInt, wrap: Boolean?, lowestOff: Boolean?) { - // Implementation needs to be added here - } - suspend fun step( direction: UInt, wrap: Boolean?, lowestOff: Boolean?, - 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 + } } - suspend fun readFanModeAttribute(): Integer { + suspend fun readFanModeAttribute(): UByte { // Implementation needs to be added here } @@ -57,11 +57,11 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFanModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeFanModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readFanModeSequenceAttribute(): Integer { + suspend fun readFanModeSequenceAttribute(): UByte { // Implementation needs to be added here } @@ -73,7 +73,7 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFanModeSequenceAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeFanModeSequenceAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -96,19 +96,19 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPercentCurrentAttribute(): Integer { + suspend fun readPercentCurrentAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribePercentCurrentAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePercentCurrentAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readSpeedMaxAttribute(): Integer { + suspend fun readSpeedMaxAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeSpeedMaxAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSpeedMaxAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -131,23 +131,23 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readSpeedCurrentAttribute(): Integer { + suspend fun readSpeedCurrentAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeSpeedCurrentAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSpeedCurrentAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readRockSupportAttribute(): Integer { + suspend fun readRockSupportAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeRockSupportAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRockSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readRockSettingAttribute(): Integer { + suspend fun readRockSettingAttribute(): UByte { // Implementation needs to be added here } @@ -159,19 +159,19 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRockSettingAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRockSettingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readWindSupportAttribute(): Integer { + suspend fun readWindSupportAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeWindSupportAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeWindSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readWindSettingAttribute(): Integer { + suspend fun readWindSettingAttribute(): UByte { // Implementation needs to be added here } @@ -183,11 +183,11 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeWindSettingAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeWindSettingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readAirflowDirectionAttribute(): Integer { + suspend fun readAirflowDirectionAttribute(): UByte { // Implementation needs to be added here } @@ -199,7 +199,7 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAirflowDirectionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAirflowDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -244,19 +244,19 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 6c6c71f2aad3be..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 @@ -28,38 +28,32 @@ class FaultInjectionCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun failAtFault( - type: UInt, - id: UInt, - numCallsToSkip: UInt, - numCallsToFail: UInt, - takeMutex: Boolean - ) { - // Implementation needs to be added here - } - suspend fun failAtFault( type: UInt, id: UInt, numCallsToSkip: UInt, numCallsToFail: UInt, takeMutex: Boolean, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun failRandomlyAtFault(type: UInt, id: UInt, percentage: UByte) { - // Implementation needs to be added here + 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 + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -103,19 +97,19 @@ class FaultInjectionCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 cc1cb7c4f5df42..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 @@ -79,19 +79,19 @@ class FixedLabelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 ab5c4ca9c43bf0..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 @@ -67,11 +67,11 @@ class FlowMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readToleranceAttribute(): Integer { + suspend fun readToleranceAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -116,19 +116,19 @@ class FlowMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 682833546af638..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 @@ -82,11 +82,11 @@ class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun readPeakMeasuredValueWindowAttribute(): Long { + suspend fun readPeakMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -101,14 +101,14 @@ class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun readAverageMeasuredValueWindowAttribute(): Long { + suspend fun readAverageMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -120,27 +120,27 @@ class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun readMeasurementUnitAttribute(): Integer { + suspend fun readMeasurementUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMeasurementMediumAttribute(): Integer { + suspend fun readMeasurementMediumAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readLevelValueAttribute(): Integer { + suspend fun readLevelValueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -185,19 +185,19 @@ class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 59cfa7bb125a32..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 @@ -38,44 +38,42 @@ class GeneralCommissioningCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun armFailSafe(expiryLengthSeconds: UShort, breadcrumb: ULong): ArmFailSafeResponse { - // Implementation needs to be added here - } - suspend fun armFailSafe( expiryLengthSeconds: UShort, breadcrumb: ULong, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): ArmFailSafeResponse { - // Implementation needs to be added here - } - - suspend fun setRegulatoryConfig( - newRegulatoryConfig: UInt, - countryCode: String, - breadcrumb: ULong - ): SetRegulatoryConfigResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun setRegulatoryConfig( newRegulatoryConfig: UInt, countryCode: String, breadcrumb: ULong, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): SetRegulatoryConfigResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun commissioningComplete(): CommissioningCompleteResponse { - // Implementation needs to be added here - } - - suspend fun commissioningComplete(timedInvokeTimeoutMs: Int): CommissioningCompleteResponse { - // Implementation needs to be added here + suspend fun commissioningComplete( + timedInvokeTimeoutMs: Int? = null + ): CommissioningCompleteResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun readBreadcrumbAttribute(): Long { + suspend fun readBreadcrumbAttribute(): ULong { // Implementation needs to be added here } @@ -87,7 +85,7 @@ class GeneralCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBreadcrumbAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeBreadcrumbAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -102,19 +100,19 @@ class GeneralCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readRegulatoryConfigAttribute(): Integer { + suspend fun readRegulatoryConfigAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeRegulatoryConfigAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRegulatoryConfigAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readLocationCapabilityAttribute(): Integer { + suspend fun readLocationCapabilityAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLocationCapabilityAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLocationCapabilityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -170,19 +168,19 @@ class GeneralCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 dabdd0abaebbe5..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 @@ -38,16 +38,16 @@ class GeneralDiagnosticsCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun testEventTrigger(enableKey: ByteArray, eventTrigger: ULong) { - // Implementation needs to be added here - } - suspend fun testEventTrigger( enableKey: ByteArray, eventTrigger: ULong, - 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 + } } suspend fun readNetworkInterfacesAttribute(): NetworkInterfacesAttribute { @@ -61,35 +61,35 @@ class GeneralDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readRebootCountAttribute(): Integer { + suspend fun readRebootCountAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRebootCountAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRebootCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readUpTimeAttribute(): Long { + suspend fun readUpTimeAttribute(): ULong { // Implementation needs to be added here } - suspend fun subscribeUpTimeAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeUpTimeAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readTotalOperationalHoursAttribute(): Long { + suspend fun readTotalOperationalHoursAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTotalOperationalHoursAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTotalOperationalHoursAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readBootReasonAttribute(): Integer { + suspend fun readBootReasonAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeBootReasonAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBootReasonAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -137,11 +137,11 @@ class GeneralDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readAverageWearCountAttribute(): Long { + suspend fun readAverageWearCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeAverageWearCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeAverageWearCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -186,19 +186,19 @@ class GeneralDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 59aaa3229a279b..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 @@ -40,39 +40,44 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun keySetWrite(groupKeySet: ChipStructs.GroupKeyManagementClusterGroupKeySetStruct) { - // Implementation needs to be added here - } - suspend fun keySetWrite( groupKeySet: ChipStructs.GroupKeyManagementClusterGroupKeySetStruct, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun keySetRead(groupKeySetID: UShort): KeySetReadResponse { - // Implementation needs to be added here - } - - suspend fun keySetRead(groupKeySetID: UShort, timedInvokeTimeoutMs: Int): KeySetReadResponse { - // Implementation needs to be added here - } - - suspend fun keySetRemove(groupKeySetID: UShort) { - // Implementation needs to be added here - } - - suspend fun keySetRemove(groupKeySetID: UShort, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun keySetReadAllIndices(): KeySetReadAllIndicesResponse { - // Implementation needs to be added here - } - - suspend fun keySetReadAllIndices(timedInvokeTimeoutMs: Int): KeySetReadAllIndicesResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun keySetRead( + groupKeySetID: UShort, + timedInvokeTimeoutMs: Int? = null + ): KeySetReadResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun keySetRemove(groupKeySetID: UShort, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun keySetReadAllIndices( + timedInvokeTimeoutMs: Int? = null + ): KeySetReadAllIndicesResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readGroupKeyMapAttribute(): GroupKeyMapAttribute { @@ -122,19 +127,19 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readMaxGroupsPerFabricAttribute(): Integer { + suspend fun readMaxGroupsPerFabricAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeMaxGroupsPerFabricAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMaxGroupsPerFabricAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readMaxGroupKeysPerFabricAttribute(): Integer { + suspend fun readMaxGroupKeysPerFabricAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeMaxGroupKeysPerFabricAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMaxGroupKeysPerFabricAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -179,19 +184,19 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 53b78b37228a52..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 @@ -36,66 +36,70 @@ class GroupsCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun addGroup(groupID: UShort, groupName: String): AddGroupResponse { - // Implementation needs to be added here - } - suspend fun addGroup( groupID: UShort, groupName: String, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): AddGroupResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun viewGroup(groupID: UShort): ViewGroupResponse { - // Implementation needs to be added here - } - - suspend fun viewGroup(groupID: UShort, timedInvokeTimeoutMs: Int): ViewGroupResponse { - // Implementation needs to be added here - } - - suspend fun getGroupMembership(groupList: ArrayList): GetGroupMembershipResponse { - // Implementation needs to be added here + 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 + timedInvokeTimeoutMs: Int? = null ): GetGroupMembershipResponse { - // Implementation needs to be added here - } - - suspend fun removeGroup(groupID: UShort): RemoveGroupResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun removeGroup(groupID: UShort, timedInvokeTimeoutMs: Int): RemoveGroupResponse { - // Implementation needs to be added here + 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() { - // Implementation needs to be added here - } - - suspend fun removeAllGroups(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + 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) { - // Implementation needs to be added here - } - - suspend fun addGroupIfIdentifying(groupID: UShort, groupName: String, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun addGroupIfIdentifying( + groupID: UShort, + groupName: String, + timedInvokeTimeoutMs: Int? = null + ) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun readNameSupportAttribute(): Integer { + suspend fun readNameSupportAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -140,19 +144,19 @@ class GroupsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 20fc9b8bc14303..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 @@ -34,35 +34,35 @@ class HepaFilterMonitoringCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun resetCondition() { - // Implementation needs to be added here - } - - suspend fun resetCondition(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun resetCondition(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun readConditionAttribute(): Integer { + suspend fun readConditionAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readDegradationDirectionAttribute(): Integer { + suspend fun readDegradationDirectionAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readChangeIndicationAttribute(): Integer { + suspend fun readChangeIndicationAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -145,19 +145,19 @@ class HepaFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 9678c6c3ff79c5..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 @@ -34,66 +34,61 @@ class IcdManagementCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun registerClient( - checkInNodeID: ULong, - monitoredSubject: ULong, - key: ByteArray, - verificationKey: ByteArray? - ): RegisterClientResponse { - // Implementation needs to be added here - } - suspend fun registerClient( checkInNodeID: ULong, monitoredSubject: ULong, key: ByteArray, verificationKey: ByteArray?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): RegisterClientResponse { - // Implementation needs to be added here - } - - suspend fun unregisterClient(checkInNodeID: ULong, verificationKey: ByteArray?) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } 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 + } } - suspend fun stayActiveRequest() { - // Implementation needs to be added here - } - - suspend fun stayActiveRequest(timedInvokeTimeoutMs: Int) { - // 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 + } } - suspend fun readIdleModeDurationAttribute(): Long { + suspend fun readIdleModeDurationAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeIdleModeDurationAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeIdleModeDurationAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readActiveModeDurationAttribute(): Long { + suspend fun readActiveModeDurationAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeActiveModeDurationAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeActiveModeDurationAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readActiveModeThresholdAttribute(): Integer { + suspend fun readActiveModeThresholdAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeActiveModeThresholdAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActiveModeThresholdAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -114,33 +109,33 @@ class IcdManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readICDCounterAttribute(): Long { + suspend fun readICDCounterAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeICDCounterAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeICDCounterAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClientsSupportedPerFabricAttribute(): Integer { + suspend fun readClientsSupportedPerFabricAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeClientsSupportedPerFabricAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readUserActiveModeTriggerHintAttribute(): Long { + suspend fun readUserActiveModeTriggerHintAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeUserActiveModeTriggerHintAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -196,19 +191,19 @@ class IcdManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 3c6264a693836b..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 @@ -28,27 +28,27 @@ class IdentifyCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun identify(identifyTime: UShort) { - // Implementation needs to be added here - } - - suspend fun identify(identifyTime: UShort, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun triggerEffect(effectIdentifier: UInt, effectVariant: UInt) { - // 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 + } } suspend fun triggerEffect( effectIdentifier: UInt, effectVariant: UInt, - 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 + } } - suspend fun readIdentifyTimeAttribute(): Integer { + suspend fun readIdentifyTimeAttribute(): UShort { // Implementation needs to be added here } @@ -60,15 +60,15 @@ class IdentifyCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeIdentifyTimeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeIdentifyTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readIdentifyTypeAttribute(): Integer { + suspend fun readIdentifyTypeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeIdentifyTypeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeIdentifyTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -113,19 +113,19 @@ class IdentifyCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 c2d4f98a1ef50d..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 @@ -69,11 +69,11 @@ class IlluminanceMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readToleranceAttribute(): Integer { + suspend fun readToleranceAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -129,19 +129,19 @@ class IlluminanceMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 cbb6b3e62dff98..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 @@ -30,12 +30,12 @@ class KeypadInputCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun sendKey(keyCode: UInt): SendKeyResponse { - // Implementation needs to be added here - } - - suspend fun sendKey(keyCode: UInt, timedInvokeTimeoutMs: Int): SendKeyResponse { - // Implementation needs to be added here + suspend fun sendKey(keyCode: UInt, timedInvokeTimeoutMs: Int? = null): SendKeyResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -79,19 +79,19 @@ class KeypadInputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 f2906fd080f351..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 @@ -64,7 +64,7 @@ class LaundryWasherControlsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readNumberOfRinsesAttribute(): Integer { + suspend fun readNumberOfRinsesAttribute(): UByte { // Implementation needs to be added here } @@ -76,7 +76,7 @@ class LaundryWasherControlsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeNumberOfRinsesAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeNumberOfRinsesAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -132,19 +132,19 @@ class LaundryWasherControlsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 6a13b78d10ef32..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 @@ -38,12 +38,15 @@ class LaundryWasherModeCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun changeToMode(newMode: UByte): ChangeToModeResponse { - // Implementation needs to be added here - } - - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int): ChangeToModeResponse { - // Implementation needs to be added here + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -57,11 +60,11 @@ class LaundryWasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readCurrentModeAttribute(): Integer { + suspend fun readCurrentModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -141,19 +144,19 @@ class LaundryWasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 10b579a79f0f50..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 @@ -40,27 +40,18 @@ class LevelControlCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun moveToLevel( - level: UByte, - transitionTime: UShort?, - optionsMask: UInt, - optionsOverride: UInt - ) { - // Implementation needs to be added here - } - suspend fun moveToLevel( level: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun move(moveMode: UInt, rate: UByte?, optionsMask: UInt, optionsOverride: UInt) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun move( @@ -68,19 +59,13 @@ class LevelControlCluster(private val endpointId: UShort) { rate: UByte?, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun step( - stepMode: UInt, - stepSize: UByte, - transitionTime: UShort?, - optionsMask: UInt, - optionsOverride: UInt - ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun step( @@ -89,26 +74,21 @@ class LevelControlCluster(private val endpointId: UShort) { transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, - 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 + } } - suspend fun stop(optionsMask: UInt, optionsOverride: UInt) { - // Implementation needs to be added here - } - - suspend fun stop(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun moveToLevelWithOnOff( - level: UByte, - transitionTime: UShort?, - optionsMask: UInt, - optionsOverride: UInt - ) { - // 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 + } } suspend fun moveToLevelWithOnOff( @@ -116,18 +96,13 @@ class LevelControlCluster(private val endpointId: UShort) { transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int - ) { - // Implementation needs to be added here - } - - suspend fun moveWithOnOff( - 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 + } } suspend fun moveWithOnOff( @@ -135,9 +110,13 @@ class LevelControlCluster(private val endpointId: UShort) { rate: UByte?, optionsMask: UInt, optionsOverride: UInt, - 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 + } } suspend fun stepWithOnOff( @@ -145,36 +124,34 @@ class LevelControlCluster(private val endpointId: UShort) { stepSize: UByte, transitionTime: UShort?, optionsMask: UInt, - optionsOverride: 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 + } } - suspend fun stepWithOnOff( - stepMode: UInt, - stepSize: UByte, - transitionTime: UShort?, + suspend fun stopWithOnOff( optionsMask: UInt, optionsOverride: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun stopWithOnOff(optionsMask: UInt, optionsOverride: UInt) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun stopWithOnOff(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun moveToClosestFrequency(frequency: UShort) { - // Implementation needs to be added here - } - - suspend fun moveToClosestFrequency(frequency: UShort, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun moveToClosestFrequency(frequency: UShort, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readCurrentLevelAttribute(): CurrentLevelAttribute { @@ -188,55 +165,55 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readRemainingTimeAttribute(): Integer { + suspend fun readRemainingTimeAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readMinLevelAttribute(): Integer { + suspend fun readMinLevelAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMinLevelAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMaxLevelAttribute(): Integer { + suspend fun readMaxLevelAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readCurrentFrequencyAttribute(): Integer { + suspend fun readCurrentFrequencyAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeCurrentFrequencyAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readMinFrequencyAttribute(): Integer { + suspend fun readMinFrequencyAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeMinFrequencyAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMinFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readMaxFrequencyAttribute(): Integer { + suspend fun readMaxFrequencyAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeMaxFrequencyAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMaxFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readOptionsAttribute(): Integer { + suspend fun readOptionsAttribute(): UByte { // Implementation needs to be added here } @@ -248,11 +225,11 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOptionsAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOptionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readOnOffTransitionTimeAttribute(): Integer { + suspend fun readOnOffTransitionTimeAttribute(): UShort { // Implementation needs to be added here } @@ -264,7 +241,7 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOnOffTransitionTimeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOnOffTransitionTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -401,19 +378,19 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 e09a9092d6e38a..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 @@ -98,19 +98,19 @@ class LocalizationConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 3e60dd2206919d..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 @@ -28,12 +28,12 @@ class LowPowerCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun sleep() { - // Implementation needs to be added here - } - - suspend fun sleep(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun sleep(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -77,19 +77,19 @@ class LowPowerCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 7bc5bf60d0cb97..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 @@ -30,36 +30,36 @@ class MediaInputCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun selectInput(index: UByte) { - // Implementation needs to be added here - } - - suspend fun selectInput(index: UByte, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun showInputStatus() { - // Implementation needs to be added here - } - - suspend fun showInputStatus(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun hideInputStatus() { - // 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 + } } - suspend fun hideInputStatus(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 + } } - suspend fun renameInput(index: UByte, name: String) { - // Implementation needs to be added here + suspend fun hideInputStatus(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun renameInput(index: UByte, name: String, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun renameInput(index: UByte, name: String, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readInputListAttribute(): InputListAttribute { @@ -70,11 +70,11 @@ class MediaInputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readCurrentInputAttribute(): Integer { + suspend fun readCurrentInputAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentInputAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentInputAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -119,19 +119,19 @@ class MediaInputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 53990b4f12c416..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 @@ -42,105 +42,105 @@ class MediaPlaybackCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun play(): PlaybackResponse { - // Implementation needs to be added here - } - - suspend fun play(timedInvokeTimeoutMs: Int): PlaybackResponse { - // Implementation needs to be added here - } - - suspend fun pause(): PlaybackResponse { - // Implementation needs to be added here - } - - suspend fun pause(timedInvokeTimeoutMs: Int): PlaybackResponse { - // Implementation needs to be added here - } - - suspend fun stop(): PlaybackResponse { - // Implementation needs to be added here - } - - suspend fun stop(timedInvokeTimeoutMs: Int): PlaybackResponse { - // Implementation needs to be added here - } - - suspend fun startOver(): PlaybackResponse { - // Implementation needs to be added here - } - - suspend fun startOver(timedInvokeTimeoutMs: Int): PlaybackResponse { - // 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 + } } - suspend fun previous(): PlaybackResponse { - // 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 + } } - suspend fun previous(timedInvokeTimeoutMs: Int): PlaybackResponse { - // 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 + } } - suspend fun next(): PlaybackResponse { - // 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 + } } - suspend fun next(timedInvokeTimeoutMs: Int): PlaybackResponse { - // 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 + } } - suspend fun rewind(): PlaybackResponse { - // Implementation needs to be added here - } - - suspend fun rewind(timedInvokeTimeoutMs: Int): PlaybackResponse { - // Implementation needs to be added here - } - - suspend fun fastForward(): PlaybackResponse { - // 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 + } } - suspend fun fastForward(timedInvokeTimeoutMs: Int): PlaybackResponse { - // 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 + } } - suspend fun skipForward(deltaPositionMilliseconds: ULong): PlaybackResponse { - // 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 + } } suspend fun skipForward( deltaPositionMilliseconds: ULong, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): PlaybackResponse { - // Implementation needs to be added here - } - - suspend fun skipBackward(deltaPositionMilliseconds: ULong): PlaybackResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun skipBackward( deltaPositionMilliseconds: ULong, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): PlaybackResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun seek(position: ULong): PlaybackResponse { - // Implementation needs to be added here - } - - suspend fun seek(position: ULong, timedInvokeTimeoutMs: Int): PlaybackResponse { - // 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 + } } - suspend fun readCurrentStateAttribute(): Integer { + suspend fun readCurrentStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentStateAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -242,19 +242,19 @@ class MediaPlaybackCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 f6439d6d367d6f..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 @@ -38,12 +38,12 @@ class ModeSelectCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun changeToMode(newMode: UByte) { - // Implementation needs to be added here - } - - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readDescriptionAttribute(): CharString { @@ -76,11 +76,11 @@ class ModeSelectCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readCurrentModeAttribute(): Integer { + suspend fun readCurrentModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -160,19 +160,19 @@ class ModeSelectCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 9d8832cafe4f9a..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 @@ -61,96 +61,85 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun scanNetworks(ssid: ByteArray?, breadcrumb: ULong?): ScanNetworksResponse { - // Implementation needs to be added here - } - suspend fun scanNetworks( ssid: ByteArray?, breadcrumb: ULong?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): ScanNetworksResponse { - // Implementation needs to be added here - } - - suspend fun addOrUpdateWiFiNetwork( - ssid: ByteArray, - credentials: ByteArray, - breadcrumb: ULong? - ): NetworkConfigResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun addOrUpdateWiFiNetwork( ssid: ByteArray, credentials: ByteArray, breadcrumb: ULong?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): NetworkConfigResponse { - // Implementation needs to be added here - } - - suspend fun addOrUpdateThreadNetwork( - operationalDataset: ByteArray, - breadcrumb: ULong? - ): NetworkConfigResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun addOrUpdateThreadNetwork( operationalDataset: ByteArray, breadcrumb: ULong?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): NetworkConfigResponse { - // Implementation needs to be added here - } - - suspend fun removeNetwork(networkID: ByteArray, breadcrumb: ULong?): NetworkConfigResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun removeNetwork( networkID: ByteArray, breadcrumb: ULong?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): NetworkConfigResponse { - // Implementation needs to be added here - } - - suspend fun connectNetwork(networkID: ByteArray, breadcrumb: ULong?): ConnectNetworkResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun connectNetwork( networkID: ByteArray, breadcrumb: ULong?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): ConnectNetworkResponse { - // Implementation needs to be added here - } - - suspend fun reorderNetwork( - networkID: ByteArray, - networkIndex: UByte, - breadcrumb: ULong? - ): NetworkConfigResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun reorderNetwork( networkID: ByteArray, networkIndex: UByte, breadcrumb: ULong?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): NetworkConfigResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun readMaxNetworksAttribute(): Integer { + suspend fun readMaxNetworksAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMaxNetworksAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMaxNetworksAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -162,19 +151,19 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readScanMaxTimeSecondsAttribute(): Integer { + suspend fun readScanMaxTimeSecondsAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeScanMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeScanMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readConnectMaxTimeSecondsAttribute(): Integer { + suspend fun readConnectMaxTimeSecondsAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeConnectMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeConnectMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -238,22 +227,22 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readSupportedThreadFeaturesAttribute(): Integer { + suspend fun readSupportedThreadFeaturesAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeSupportedThreadFeaturesAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readThreadVersionAttribute(): Integer { + suspend fun readThreadVersionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeThreadVersionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeThreadVersionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -298,19 +287,19 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 7db03647a72a57..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 @@ -82,11 +82,11 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: USh // Implementation needs to be added here } - suspend fun readPeakMeasuredValueWindowAttribute(): Long { + suspend fun readPeakMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -101,14 +101,14 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: USh // Implementation needs to be added here } - suspend fun readAverageMeasuredValueWindowAttribute(): Long { + suspend fun readAverageMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -120,27 +120,27 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: USh // Implementation needs to be added here } - suspend fun readMeasurementUnitAttribute(): Integer { + suspend fun readMeasurementUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMeasurementMediumAttribute(): Integer { + suspend fun readMeasurementMediumAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readLevelValueAttribute(): Integer { + suspend fun readLevelValueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -185,19 +185,19 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: USh // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 33784c096a054e..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 @@ -28,34 +28,34 @@ class OccupancySensingCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun readOccupancyAttribute(): Integer { + suspend fun readOccupancyAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readOccupancySensorTypeAttribute(): Integer { + suspend fun readOccupancySensorTypeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeOccupancySensorTypeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOccupancySensorTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readOccupancySensorTypeBitmapAttribute(): Integer { + suspend fun readOccupancySensorTypeBitmapAttribute(): UByte { // Implementation needs to be added here } suspend fun subscribeOccupancySensorTypeBitmapAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } - suspend fun readPIROccupiedToUnoccupiedDelayAttribute(): Integer { + suspend fun readPIROccupiedToUnoccupiedDelayAttribute(): UShort { // Implementation needs to be added here } @@ -70,11 +70,11 @@ class OccupancySensingCluster(private val endpointId: UShort) { suspend fun subscribePIROccupiedToUnoccupiedDelayAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readPIRUnoccupiedToOccupiedDelayAttribute(): Integer { + suspend fun readPIRUnoccupiedToOccupiedDelayAttribute(): UShort { // Implementation needs to be added here } @@ -89,11 +89,11 @@ class OccupancySensingCluster(private val endpointId: UShort) { suspend fun subscribePIRUnoccupiedToOccupiedDelayAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readPIRUnoccupiedToOccupiedThresholdAttribute(): Integer { + suspend fun readPIRUnoccupiedToOccupiedThresholdAttribute(): UByte { // Implementation needs to be added here } @@ -111,11 +111,11 @@ class OccupancySensingCluster(private val endpointId: UShort) { suspend fun subscribePIRUnoccupiedToOccupiedThresholdAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } - suspend fun readUltrasonicOccupiedToUnoccupiedDelayAttribute(): Integer { + suspend fun readUltrasonicOccupiedToUnoccupiedDelayAttribute(): UShort { // Implementation needs to be added here } @@ -133,11 +133,11 @@ class OccupancySensingCluster(private val endpointId: UShort) { suspend fun subscribeUltrasonicOccupiedToUnoccupiedDelayAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readUltrasonicUnoccupiedToOccupiedDelayAttribute(): Integer { + suspend fun readUltrasonicUnoccupiedToOccupiedDelayAttribute(): UShort { // Implementation needs to be added here } @@ -155,11 +155,11 @@ class OccupancySensingCluster(private val endpointId: UShort) { suspend fun subscribeUltrasonicUnoccupiedToOccupiedDelayAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readUltrasonicUnoccupiedToOccupiedThresholdAttribute(): Integer { + suspend fun readUltrasonicUnoccupiedToOccupiedThresholdAttribute(): UByte { // Implementation needs to be added here } @@ -177,11 +177,11 @@ class OccupancySensingCluster(private val endpointId: UShort) { suspend fun subscribeUltrasonicUnoccupiedToOccupiedThresholdAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } - suspend fun readPhysicalContactOccupiedToUnoccupiedDelayAttribute(): Integer { + suspend fun readPhysicalContactOccupiedToUnoccupiedDelayAttribute(): UShort { // Implementation needs to be added here } @@ -199,11 +199,11 @@ class OccupancySensingCluster(private val endpointId: UShort) { suspend fun subscribePhysicalContactOccupiedToUnoccupiedDelayAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readPhysicalContactUnoccupiedToOccupiedDelayAttribute(): Integer { + suspend fun readPhysicalContactUnoccupiedToOccupiedDelayAttribute(): UShort { // Implementation needs to be added here } @@ -221,11 +221,11 @@ class OccupancySensingCluster(private val endpointId: UShort) { suspend fun subscribePhysicalContactUnoccupiedToOccupiedDelayAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readPhysicalContactUnoccupiedToOccupiedThresholdAttribute(): Integer { + suspend fun readPhysicalContactUnoccupiedToOccupiedThresholdAttribute(): UByte { // Implementation needs to be added here } @@ -243,7 +243,7 @@ class OccupancySensingCluster(private val endpointId: UShort) { suspend fun subscribePhysicalContactUnoccupiedToOccupiedThresholdAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } @@ -288,19 +288,19 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 a38157c7adf85c..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 @@ -30,61 +30,61 @@ class OnOffCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun off() { - // Implementation needs to be added here - } - - suspend fun off(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun on() { - // Implementation needs to be added here - } - - suspend fun on(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun toggle() { - // 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 + } } - suspend fun toggle(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 + } } - suspend fun offWithEffect(effectIdentifier: UInt, effectVariant: UByte) { - // 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 + } } suspend fun offWithEffect( effectIdentifier: UInt, effectVariant: UByte, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun onWithRecallGlobalScene() { - // Implementation needs to be added here - } - - suspend fun onWithRecallGlobalScene(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun onWithTimedOff(onOffControl: UInt, onTime: UShort, offWaitTime: UShort) { - // 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 + } } suspend fun onWithTimedOff( onOffControl: UInt, onTime: UShort, offWaitTime: UShort, - 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 + } } suspend fun readOnOffAttribute(): Boolean { @@ -103,7 +103,7 @@ class OnOffCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readOnTimeAttribute(): Integer { + suspend fun readOnTimeAttribute(): UShort { // Implementation needs to be added here } @@ -115,11 +115,11 @@ class OnOffCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOnTimeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOnTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readOffWaitTimeAttribute(): Integer { + suspend fun readOffWaitTimeAttribute(): UShort { // Implementation needs to be added here } @@ -131,7 +131,7 @@ class OnOffCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOffWaitTimeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOffWaitTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -195,19 +195,19 @@ class OnOffCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 5547c47d4c8898..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 @@ -28,15 +28,15 @@ class OnOffSwitchConfigurationCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun readSwitchTypeAttribute(): Integer { + suspend fun readSwitchTypeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeSwitchTypeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSwitchTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readSwitchActionsAttribute(): Integer { + suspend fun readSwitchActionsAttribute(): UByte { // Implementation needs to be added here } @@ -48,7 +48,7 @@ class OnOffSwitchConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSwitchActionsAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSwitchActionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -93,19 +93,19 @@ class OnOffSwitchConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 f02704b6eb6e4e..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 @@ -47,48 +47,38 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun attestationRequest(attestationNonce: ByteArray): AttestationResponse { - // Implementation needs to be added here - } - suspend fun attestationRequest( attestationNonce: ByteArray, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): AttestationResponse { - // Implementation needs to be added here - } - - suspend fun certificateChainRequest(certificateType: UInt): CertificateChainResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun certificateChainRequest( certificateType: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): CertificateChainResponse { - // Implementation needs to be added here - } - - suspend fun CSRRequest(CSRNonce: ByteArray, isForUpdateNOC: Boolean?): CSRResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun CSRRequest( CSRNonce: ByteArray, isForUpdateNOC: Boolean?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): CSRResponse { - // Implementation needs to be added here - } - - suspend fun addNOC( - NOCValue: ByteArray, - ICACValue: ByteArray?, - IPKValue: ByteArray, - caseAdminSubject: ULong, - adminVendorId: UShort - ): NOCResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun addNOC( @@ -97,45 +87,52 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { IPKValue: ByteArray, caseAdminSubject: ULong, adminVendorId: UShort, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): NOCResponse { - // Implementation needs to be added here - } - - suspend fun updateNOC(NOCValue: ByteArray, ICACValue: ByteArray?): NOCResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun updateNOC( NOCValue: ByteArray, ICACValue: ByteArray?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): NOCResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun updateFabricLabel(label: String): NOCResponse { - // 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 + } } - suspend fun updateFabricLabel(label: String, timedInvokeTimeoutMs: Int): NOCResponse { - // 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 + } } - suspend fun removeFabric(fabricIndex: UByte): NOCResponse { - // Implementation needs to be added here - } - - suspend fun removeFabric(fabricIndex: UByte, timedInvokeTimeoutMs: Int): NOCResponse { - // Implementation needs to be added here - } - - suspend fun addTrustedRootCertificate(rootCACertificate: ByteArray) { - // Implementation needs to be added here - } - - suspend fun addTrustedRootCertificate(rootCACertificate: ByteArray, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun addTrustedRootCertificate( + rootCACertificate: ByteArray, + timedInvokeTimeoutMs: Int? = null + ) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readNOCsAttribute(): NOCsAttribute { @@ -162,19 +159,19 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readSupportedFabricsAttribute(): Integer { + suspend fun readSupportedFabricsAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeSupportedFabricsAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSupportedFabricsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readCommissionedFabricsAttribute(): Integer { + suspend fun readCommissionedFabricsAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCommissionedFabricsAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCommissionedFabricsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -189,11 +186,11 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readCurrentFabricIndexAttribute(): Integer { + suspend fun readCurrentFabricIndexAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentFabricIndexAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentFabricIndexAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -238,19 +235,19 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 64542a3c0fde13..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 @@ -44,36 +44,36 @@ class OperationalStateCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun pause(): OperationalCommandResponse { - // Implementation needs to be added here - } - - suspend fun pause(timedInvokeTimeoutMs: Int): OperationalCommandResponse { - // Implementation needs to be added here - } - - suspend fun stop(): OperationalCommandResponse { - // Implementation needs to be added here - } - - suspend fun stop(timedInvokeTimeoutMs: Int): OperationalCommandResponse { - // Implementation needs to be added here - } - - suspend fun start(): OperationalCommandResponse { - // Implementation needs to be added here + suspend fun pause(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun start(timedInvokeTimeoutMs: Int): OperationalCommandResponse { - // Implementation needs to be added here + suspend fun stop(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun resume(): OperationalCommandResponse { - // Implementation needs to be added here + suspend fun start(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun resume(timedInvokeTimeoutMs: Int): OperationalCommandResponse { - // Implementation needs to be added here + suspend fun resume(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readPhaseListAttribute(): PhaseListAttribute { @@ -117,11 +117,11 @@ class OperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readOperationalStateAttribute(): Integer { + suspend fun readOperationalStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -177,19 +177,19 @@ class OperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 f2d8ec68044131..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 @@ -41,19 +41,6 @@ class OtaSoftwareUpdateProviderCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun queryImage( - vendorID: UShort, - productID: UShort, - softwareVersion: UInt, - protocolsSupported: ArrayList, - hardwareVersion: UShort?, - location: String?, - requestorCanConsent: Boolean?, - metadataForProvider: ByteArray? - ): QueryImageResponse { - // Implementation needs to be added here - } - suspend fun queryImage( vendorID: UShort, productID: UShort, @@ -63,33 +50,37 @@ class OtaSoftwareUpdateProviderCluster(private val endpointId: UShort) { location: String?, requestorCanConsent: Boolean?, metadataForProvider: ByteArray?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): QueryImageResponse { - // Implementation needs to be added here - } - - suspend fun applyUpdateRequest(updateToken: ByteArray, newVersion: UInt): ApplyUpdateResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun applyUpdateRequest( updateToken: ByteArray, newVersion: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): ApplyUpdateResponse { - // Implementation needs to be added here - } - - suspend fun notifyUpdateApplied(updateToken: ByteArray, softwareVersion: UInt) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun notifyUpdateApplied( updateToken: ByteArray, softwareVersion: UInt, - 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 + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -133,19 +124,19 @@ class OtaSoftwareUpdateProviderCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 3860fd36046920..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 @@ -34,25 +34,19 @@ class OtaSoftwareUpdateRequestorCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun announceOTAProvider( - providerNodeID: ULong, - vendorID: UShort, - announcementReason: UInt, - metadataForNode: ByteArray?, - endpoint: UShort - ) { - // Implementation needs to be added here - } - suspend fun announceOTAProvider( providerNodeID: ULong, vendorID: UShort, announcementReason: UInt, metadataForNode: ByteArray?, endpoint: UShort, - 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 + } } suspend fun readDefaultOTAProvidersAttribute(): DefaultOTAProvidersAttribute { @@ -93,11 +87,11 @@ class OtaSoftwareUpdateRequestorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readUpdateStateAttribute(): Integer { + suspend fun readUpdateStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeUpdateStateAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeUpdateStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -153,19 +147,19 @@ class OtaSoftwareUpdateRequestorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 ad1f4f1e3c24cc..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 @@ -82,11 +82,11 @@ class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPeakMeasuredValueWindowAttribute(): Long { + suspend fun readPeakMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -101,14 +101,14 @@ class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readAverageMeasuredValueWindowAttribute(): Long { + suspend fun readAverageMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -120,27 +120,27 @@ class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readMeasurementUnitAttribute(): Integer { + suspend fun readMeasurementUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMeasurementMediumAttribute(): Integer { + suspend fun readMeasurementMediumAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readLevelValueAttribute(): Integer { + suspend fun readLevelValueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -185,19 +185,19 @@ class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 3218382267451d..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 @@ -82,11 +82,11 @@ class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPeakMeasuredValueWindowAttribute(): Long { + suspend fun readPeakMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -101,14 +101,14 @@ class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readAverageMeasuredValueWindowAttribute(): Long { + suspend fun readAverageMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -120,27 +120,27 @@ class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readMeasurementUnitAttribute(): Integer { + suspend fun readMeasurementUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMeasurementMediumAttribute(): Integer { + suspend fun readMeasurementMediumAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readLevelValueAttribute(): Integer { + suspend fun readLevelValueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -185,19 +185,19 @@ class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 eca3c3c7888954..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 @@ -82,11 +82,11 @@ class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPeakMeasuredValueWindowAttribute(): Long { + suspend fun readPeakMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -101,14 +101,14 @@ class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readAverageMeasuredValueWindowAttribute(): Long { + suspend fun readAverageMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -120,27 +120,27 @@ class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readMeasurementUnitAttribute(): Integer { + suspend fun readMeasurementUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMeasurementMediumAttribute(): Integer { + suspend fun readMeasurementMediumAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readLevelValueAttribute(): Integer { + suspend fun readLevelValueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -185,19 +185,19 @@ class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 251190e5dc24dc..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 @@ -82,11 +82,11 @@ class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPeakMeasuredValueWindowAttribute(): Long { + suspend fun readPeakMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -101,14 +101,14 @@ class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readAverageMeasuredValueWindowAttribute(): Long { + suspend fun readAverageMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -120,27 +120,27 @@ class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readMeasurementUnitAttribute(): Integer { + suspend fun readMeasurementUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMeasurementMediumAttribute(): Integer { + suspend fun readMeasurementMediumAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readLevelValueAttribute(): Integer { + suspend fun readLevelValueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -185,19 +185,19 @@ class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 f4a7540167e7f3..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 @@ -52,19 +52,19 @@ class PowerSourceCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun readStatusAttribute(): Integer { + suspend fun readStatusAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readOrderAttribute(): Integer { + suspend fun readOrderAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeOrderAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOrderAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -98,11 +98,11 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readWiredCurrentTypeAttribute(): Integer { + suspend fun readWiredCurrentTypeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeWiredCurrentTypeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeWiredCurrentTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -117,19 +117,19 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readWiredNominalVoltageAttribute(): Long { + suspend fun readWiredNominalVoltageAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeWiredNominalVoltageAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeWiredNominalVoltageAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readWiredMaximumCurrentAttribute(): Long { + suspend fun readWiredMaximumCurrentAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeWiredMaximumCurrentAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeWiredMaximumCurrentAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -185,11 +185,11 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readBatChargeLevelAttribute(): Integer { + suspend fun readBatChargeLevelAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeBatChargeLevelAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBatChargeLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -201,11 +201,11 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readBatReplaceabilityAttribute(): Integer { + suspend fun readBatReplaceabilityAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeBatReplaceabilityAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBatReplaceabilityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -239,11 +239,11 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readBatCommonDesignationAttribute(): Integer { + suspend fun readBatCommonDesignationAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeBatCommonDesignationAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBatCommonDesignationAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -263,35 +263,35 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readBatApprovedChemistryAttribute(): Integer { + suspend fun readBatApprovedChemistryAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeBatApprovedChemistryAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBatApprovedChemistryAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readBatCapacityAttribute(): Long { + suspend fun readBatCapacityAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeBatCapacityAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeBatCapacityAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readBatQuantityAttribute(): Integer { + suspend fun readBatQuantityAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeBatQuantityAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBatQuantityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readBatChargeStateAttribute(): Integer { + suspend fun readBatChargeStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeBatChargeStateAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBatChargeStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -391,19 +391,19 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 34e8ca1b244df2..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,7 +20,7 @@ package matter.devicecontroller.cluster.clusters import java.util.ArrayList class PowerSourceConfigurationCluster(private val endpointId: UShort) { - class SourcesAttribute(val value: ArrayList) + class SourcesAttribute(val value: ArrayList) class GeneratedCommandListAttribute(val value: ArrayList) @@ -79,19 +79,19 @@ class PowerSourceConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 52e73b9e3eab25..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 @@ -73,11 +73,11 @@ class PressureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readToleranceAttribute(): Integer { + suspend fun readToleranceAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -114,19 +114,19 @@ class PressureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readScaledToleranceAttribute(): Integer { + suspend fun readScaledToleranceAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeScaledToleranceAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeScaledToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readScaleAttribute(): Integer { + suspend fun readScaleAttribute(): Byte { // Implementation needs to be added here } - suspend fun subscribeScaleAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeScaleAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -171,19 +171,19 @@ class PressureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 9d75f438e3f861..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 @@ -69,19 +69,19 @@ class ProxyConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 2933f46526fc51..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 @@ -69,19 +69,19 @@ class ProxyDiscoveryCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 b7c2f43e30810c..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 @@ -69,19 +69,19 @@ class ProxyValidCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 f0ebebcd008dde..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 @@ -69,19 +69,19 @@ class PulseWidthModulationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 3b92a86031b99a..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 @@ -201,30 +201,27 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPumpStatusAttribute(): Integer { + suspend fun readPumpStatusAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePumpStatusAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePumpStatusAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readEffectiveOperationModeAttribute(): Integer { + suspend fun readEffectiveOperationModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeEffectiveOperationModeAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeEffectiveOperationModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readEffectiveControlModeAttribute(): Integer { + suspend fun readEffectiveControlModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeEffectiveControlModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeEffectiveControlModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -290,7 +287,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readOperationModeAttribute(): Integer { + suspend fun readOperationModeAttribute(): UByte { // Implementation needs to be added here } @@ -302,11 +299,11 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOperationModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOperationModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readControlModeAttribute(): Integer { + suspend fun readControlModeAttribute(): UByte { // Implementation needs to be added here } @@ -318,7 +315,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeControlModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeControlModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -363,19 +360,19 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 8e3a86a1da46dd..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 @@ -82,11 +82,11 @@ class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readPeakMeasuredValueWindowAttribute(): Long { + suspend fun readPeakMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -101,14 +101,14 @@ class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readAverageMeasuredValueWindowAttribute(): Long { + suspend fun readAverageMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -120,27 +120,27 @@ class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readMeasurementUnitAttribute(): Integer { + suspend fun readMeasurementUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMeasurementMediumAttribute(): Integer { + suspend fun readMeasurementMediumAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readLevelValueAttribute(): Integer { + suspend fun readLevelValueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -185,19 +185,19 @@ class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 12d8df79b35501..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 @@ -28,27 +28,27 @@ class RefrigeratorAlarmCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun readMaskAttribute(): Long { + suspend fun readMaskAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readStateAttribute(): Long { + suspend fun readStateAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readSupportedAttribute(): Long { + suspend fun readSupportedAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -93,19 +93,19 @@ class RefrigeratorAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 be0d2f76bbe092..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 @@ -39,12 +39,15 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val endpoin class AttributeListAttribute(val value: ArrayList) - suspend fun changeToMode(newMode: UByte): ChangeToModeResponse { - // Implementation needs to be added here - } - - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int): ChangeToModeResponse { - // Implementation needs to be added here + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -58,11 +61,11 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val endpoin // Implementation needs to be added here } - suspend fun readCurrentModeAttribute(): Integer { + suspend fun readCurrentModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -142,19 +145,19 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val endpoin // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 7ad724957088a0..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 @@ -67,11 +67,11 @@ class RelativeHumidityMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readToleranceAttribute(): Integer { + suspend fun readToleranceAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -116,19 +116,19 @@ class RelativeHumidityMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 183c9b4d5b9e37..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 @@ -36,12 +36,15 @@ class RvcCleanModeCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun changeToMode(newMode: UByte): ChangeToModeResponse { - // Implementation needs to be added here - } - - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int): ChangeToModeResponse { - // Implementation needs to be added here + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -55,11 +58,11 @@ class RvcCleanModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readCurrentModeAttribute(): Integer { + suspend fun readCurrentModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -120,19 +123,19 @@ class RvcCleanModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 c05135a17ce6e8..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 @@ -46,36 +46,36 @@ class RvcOperationalStateCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun pause(): OperationalCommandResponse { - // Implementation needs to be added here - } - - suspend fun pause(timedInvokeTimeoutMs: Int): OperationalCommandResponse { - // Implementation needs to be added here - } - - suspend fun stop(): OperationalCommandResponse { - // Implementation needs to be added here - } - - suspend fun stop(timedInvokeTimeoutMs: Int): OperationalCommandResponse { - // Implementation needs to be added here - } - - suspend fun start(): OperationalCommandResponse { - // Implementation needs to be added here + suspend fun pause(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun start(timedInvokeTimeoutMs: Int): OperationalCommandResponse { - // Implementation needs to be added here + suspend fun stop(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun resume(): OperationalCommandResponse { - // Implementation needs to be added here + suspend fun start(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun resume(timedInvokeTimeoutMs: Int): OperationalCommandResponse { - // Implementation needs to be added here + suspend fun resume(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readPhaseListAttribute(): PhaseListAttribute { @@ -119,11 +119,11 @@ class RvcOperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readOperationalStateAttribute(): Integer { + suspend fun readOperationalStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -179,19 +179,19 @@ class RvcOperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 7e157abea4027f..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 @@ -36,12 +36,15 @@ class RvcRunModeCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun changeToMode(newMode: UByte): ChangeToModeResponse { - // Implementation needs to be added here - } - - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int): ChangeToModeResponse { - // Implementation needs to be added here + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -55,11 +58,11 @@ class RvcRunModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readCurrentModeAttribute(): Integer { + suspend fun readCurrentModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -120,19 +123,19 @@ class RvcRunModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 bddd578ea3b2d5..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 @@ -30,24 +30,24 @@ class SampleMeiCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun ping() { - // Implementation needs to be added here - } - - suspend fun ping(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun addArguments(arg1: UByte, arg2: UByte): AddArgumentsResponse { - // Implementation needs to be added here + suspend fun ping(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun addArguments( arg1: UByte, arg2: UByte, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): AddArgumentsResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readFlipFlopAttribute(): Boolean { @@ -107,19 +107,19 @@ class SampleMeiCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 fdff3ad57b9aa6..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 @@ -71,103 +71,90 @@ class ScenesCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun addScene( - groupID: UShort, - sceneID: UByte, - transitionTime: UShort, - sceneName: String, - extensionFieldSets: ArrayList - ): AddSceneResponse { - // Implementation needs to be added here - } - suspend fun addScene( groupID: UShort, sceneID: UByte, transitionTime: UShort, sceneName: String, extensionFieldSets: ArrayList, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): AddSceneResponse { - // Implementation needs to be added here - } - - suspend fun viewScene(groupID: UShort, sceneID: UByte): ViewSceneResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun viewScene( groupID: UShort, sceneID: UByte, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): ViewSceneResponse { - // Implementation needs to be added here - } - - suspend fun removeScene(groupID: UShort, sceneID: UByte): RemoveSceneResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun removeScene( groupID: UShort, sceneID: UByte, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): RemoveSceneResponse { - // Implementation needs to be added here - } - - suspend fun removeAllScenes(groupID: UShort): RemoveAllScenesResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun removeAllScenes(groupID: UShort, timedInvokeTimeoutMs: Int): RemoveAllScenesResponse { - // Implementation needs to be added here - } - - suspend fun storeScene(groupID: UShort, sceneID: UByte): StoreSceneResponse { - // Implementation needs to be added here + 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 + timedInvokeTimeoutMs: Int? = null ): StoreSceneResponse { - // Implementation needs to be added here - } - - suspend fun recallScene(groupID: UShort, sceneID: UByte, transitionTime: UShort?) { - // Implementation needs to be added here + 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 + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun getSceneMembership(groupID: UShort): GetSceneMembershipResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun getSceneMembership( groupID: UShort, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): GetSceneMembershipResponse { - // Implementation needs to be added here - } - - suspend fun enhancedAddScene( - groupID: UShort, - sceneID: UByte, - transitionTime: UShort, - sceneName: String, - extensionFieldSets: ArrayList - ): EnhancedAddSceneResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun enhancedAddScene( @@ -176,31 +163,25 @@ class ScenesCluster(private val endpointId: UShort) { transitionTime: UShort, sceneName: String, extensionFieldSets: ArrayList, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): EnhancedAddSceneResponse { - // Implementation needs to be added here - } - - suspend fun enhancedViewScene(groupID: UShort, sceneID: UByte): EnhancedViewSceneResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun enhancedViewScene( groupID: UShort, sceneID: UByte, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): EnhancedViewSceneResponse { - // Implementation needs to be added here - } - - suspend fun copyScene( - mode: UInt, - groupIdentifierFrom: UShort, - sceneIdentifierFrom: UByte, - groupIdentifierTo: UShort, - sceneIdentifierTo: UByte - ): CopySceneResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun copyScene( @@ -209,32 +190,36 @@ class ScenesCluster(private val endpointId: UShort) { sceneIdentifierFrom: UByte, groupIdentifierTo: UShort, sceneIdentifierTo: UByte, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): CopySceneResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun readSceneCountAttribute(): Integer { + suspend fun readSceneCountAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeSceneCountAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSceneCountAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readCurrentSceneAttribute(): Integer { + suspend fun readCurrentSceneAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentSceneAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentSceneAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readCurrentGroupAttribute(): Integer { + suspend fun readCurrentGroupAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeCurrentGroupAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentGroupAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -246,11 +231,11 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readNameSupportAttribute(): Integer { + suspend fun readNameSupportAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -265,19 +250,19 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readSceneTableSizeAttribute(): Integer { + suspend fun readSceneTableSizeAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeSceneTableSizeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSceneTableSizeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRemainingCapacityAttribute(): Integer { + suspend fun readRemainingCapacityAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeRemainingCapacityAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRemainingCapacityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -322,19 +307,19 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 e9a153e56bb2cc..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 @@ -28,51 +28,51 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun selfTestRequest() { - // Implementation needs to be added here - } - - suspend fun selfTestRequest(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun selfTestRequest(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun readExpressedStateAttribute(): Integer { + suspend fun readExpressedStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeExpressedStateAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeExpressedStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readSmokeStateAttribute(): Integer { + suspend fun readSmokeStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeSmokeStateAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSmokeStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readCOStateAttribute(): Integer { + suspend fun readCOStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCOStateAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCOStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readBatteryAlertAttribute(): Integer { + suspend fun readBatteryAlertAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeBatteryAlertAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBatteryAlertAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readDeviceMutedAttribute(): Integer { + suspend fun readDeviceMutedAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeDeviceMutedAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDeviceMutedAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -92,42 +92,39 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readEndOfServiceAlertAttribute(): Integer { + suspend fun readEndOfServiceAlertAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeEndOfServiceAlertAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeEndOfServiceAlertAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readInterconnectSmokeAlarmAttribute(): Integer { + suspend fun readInterconnectSmokeAlarmAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeInterconnectSmokeAlarmAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeInterconnectSmokeAlarmAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readInterconnectCOAlarmAttribute(): Integer { + suspend fun readInterconnectCOAlarmAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeInterconnectCOAlarmAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeInterconnectCOAlarmAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readContaminationStateAttribute(): Integer { + suspend fun readContaminationStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeContaminationStateAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeContaminationStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readSmokeSensitivityLevelAttribute(): Integer { + suspend fun readSmokeSensitivityLevelAttribute(): UByte { // Implementation needs to be added here } @@ -139,15 +136,15 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSmokeSensitivityLevelAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSmokeSensitivityLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readExpiryDateAttribute(): Long { + suspend fun readExpiryDateAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeExpiryDateAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeExpiryDateAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -192,19 +189,19 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 4b541c607a8399..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 @@ -32,12 +32,12 @@ class SoftwareDiagnosticsCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun resetWatermarks() { - // Implementation needs to be added here - } - - suspend fun resetWatermarks(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun resetWatermarks(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readThreadMetricsAttribute(): ThreadMetricsAttribute { @@ -51,27 +51,30 @@ class SoftwareDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readCurrentHeapFreeAttribute(): Long { + suspend fun readCurrentHeapFreeAttribute(): ULong { // Implementation needs to be added here } - suspend fun subscribeCurrentHeapFreeAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeCurrentHeapFreeAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readCurrentHeapUsedAttribute(): Long { + suspend fun readCurrentHeapUsedAttribute(): ULong { // Implementation needs to be added here } - suspend fun subscribeCurrentHeapUsedAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeCurrentHeapUsedAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readCurrentHeapHighWatermarkAttribute(): Long { + suspend fun readCurrentHeapHighWatermarkAttribute(): ULong { // Implementation needs to be added here } - suspend fun subscribeCurrentHeapHighWatermarkAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeCurrentHeapHighWatermarkAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -116,19 +119,19 @@ class SoftwareDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 b9d35970afe971..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 @@ -28,27 +28,27 @@ class SwitchCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun readNumberOfPositionsAttribute(): Integer { + suspend fun readNumberOfPositionsAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeNumberOfPositionsAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeNumberOfPositionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readCurrentPositionAttribute(): Integer { + suspend fun readCurrentPositionAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentPositionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentPositionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMultiPressMaxAttribute(): Integer { + suspend fun readMultiPressMaxAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMultiPressMaxAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMultiPressMaxAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -93,19 +93,19 @@ class SwitchCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 e1d3dfeb51b644..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 @@ -34,16 +34,16 @@ class TargetNavigatorCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun navigateTarget(target: UByte, data: String?): NavigateTargetResponse { - // Implementation needs to be added here - } - suspend fun navigateTarget( target: UByte, data: String?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): NavigateTargetResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readTargetListAttribute(): TargetListAttribute { @@ -57,11 +57,11 @@ class TargetNavigatorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readCurrentTargetAttribute(): Integer { + suspend fun readCurrentTargetAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentTargetAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeCurrentTargetAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -106,19 +106,19 @@ class TargetNavigatorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 ab185aac10dbd7..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 @@ -30,58 +30,58 @@ class TemperatureControlCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun setTemperature(targetTemperature: Short?, targetTemperatureLevel: UByte?) { - // Implementation needs to be added here - } - suspend fun setTemperature( targetTemperature: Short?, targetTemperatureLevel: UByte?, - 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 + } } - suspend fun readTemperatureSetpointAttribute(): Integer { + suspend fun readTemperatureSetpointAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeTemperatureSetpointAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeTemperatureSetpointAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readMinTemperatureAttribute(): Integer { + suspend fun readMinTemperatureAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeMinTemperatureAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMinTemperatureAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readMaxTemperatureAttribute(): Integer { + suspend fun readMaxTemperatureAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeMaxTemperatureAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMaxTemperatureAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readStepAttribute(): Integer { + suspend fun readStepAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeStepAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeStepAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readSelectedTemperatureLevelAttribute(): Integer { + suspend fun readSelectedTemperatureLevelAttribute(): UByte { // Implementation needs to be added here } suspend fun subscribeSelectedTemperatureLevelAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } @@ -137,19 +137,19 @@ class TemperatureControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 363a575465d724..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 @@ -67,11 +67,11 @@ class TemperatureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readToleranceAttribute(): Integer { + suspend fun readToleranceAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -116,19 +116,19 @@ class TemperatureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 2136037e98be10..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 @@ -57,21 +57,12 @@ class ThermostatCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun setpointRaiseLower(mode: UInt, amount: Byte) { - // Implementation needs to be added here - } - - suspend fun setpointRaiseLower(mode: UInt, amount: Byte, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun setWeeklySchedule( - numberOfTransitionsForSequence: UByte, - dayOfWeekForSequence: UInt, - modeForSequence: UInt, - transitions: ArrayList - ) { - // Implementation needs to be added here + suspend fun setpointRaiseLower(mode: UInt, amount: Byte, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun setWeeklySchedule( @@ -79,29 +70,33 @@ class ThermostatCluster(private val endpointId: UShort) { dayOfWeekForSequence: UInt, modeForSequence: UInt, transitions: ArrayList, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun getWeeklySchedule(daysToReturn: UInt, modeToReturn: UInt): GetWeeklyScheduleResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun getWeeklySchedule( daysToReturn: UInt, modeToReturn: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): GetWeeklyScheduleResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun clearWeeklySchedule() { - // Implementation needs to be added here - } - - suspend fun clearWeeklySchedule(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun clearWeeklySchedule(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readLocalTemperatureAttribute(): LocalTemperatureAttribute { @@ -126,75 +121,63 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readOccupancyAttribute(): Integer { + suspend fun readOccupancyAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readAbsMinHeatSetpointLimitAttribute(): Integer { + suspend fun readAbsMinHeatSetpointLimitAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeAbsMinHeatSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeAbsMinHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readAbsMaxHeatSetpointLimitAttribute(): Integer { + suspend fun readAbsMaxHeatSetpointLimitAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeAbsMaxHeatSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeAbsMaxHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readAbsMinCoolSetpointLimitAttribute(): Integer { + suspend fun readAbsMinCoolSetpointLimitAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeAbsMinCoolSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeAbsMinCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readAbsMaxCoolSetpointLimitAttribute(): Integer { + suspend fun readAbsMaxCoolSetpointLimitAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeAbsMaxCoolSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeAbsMaxCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readPICoolingDemandAttribute(): Integer { + suspend fun readPICoolingDemandAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribePICoolingDemandAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePICoolingDemandAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readPIHeatingDemandAttribute(): Integer { + suspend fun readPIHeatingDemandAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribePIHeatingDemandAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribePIHeatingDemandAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readHVACSystemTypeConfigurationAttribute(): Integer { + suspend fun readHVACSystemTypeConfigurationAttribute(): UByte { // Implementation needs to be added here } @@ -209,11 +192,11 @@ class ThermostatCluster(private val endpointId: UShort) { suspend fun subscribeHVACSystemTypeConfigurationAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } - suspend fun readLocalTemperatureCalibrationAttribute(): Integer { + suspend fun readLocalTemperatureCalibrationAttribute(): Byte { // Implementation needs to be added here } @@ -228,11 +211,11 @@ class ThermostatCluster(private val endpointId: UShort) { suspend fun subscribeLocalTemperatureCalibrationAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Byte { // Implementation needs to be added here } - suspend fun readOccupiedCoolingSetpointAttribute(): Integer { + suspend fun readOccupiedCoolingSetpointAttribute(): Short { // Implementation needs to be added here } @@ -244,14 +227,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOccupiedCoolingSetpointAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeOccupiedCoolingSetpointAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readOccupiedHeatingSetpointAttribute(): Integer { + suspend fun readOccupiedHeatingSetpointAttribute(): Short { // Implementation needs to be added here } @@ -263,14 +243,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOccupiedHeatingSetpointAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeOccupiedHeatingSetpointAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readUnoccupiedCoolingSetpointAttribute(): Integer { + suspend fun readUnoccupiedCoolingSetpointAttribute(): Short { // Implementation needs to be added here } @@ -285,11 +262,11 @@ class ThermostatCluster(private val endpointId: UShort) { suspend fun subscribeUnoccupiedCoolingSetpointAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readUnoccupiedHeatingSetpointAttribute(): Integer { + suspend fun readUnoccupiedHeatingSetpointAttribute(): Short { // Implementation needs to be added here } @@ -304,11 +281,11 @@ class ThermostatCluster(private val endpointId: UShort) { suspend fun subscribeUnoccupiedHeatingSetpointAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): Short { // Implementation needs to be added here } - suspend fun readMinHeatSetpointLimitAttribute(): Integer { + suspend fun readMinHeatSetpointLimitAttribute(): Short { // Implementation needs to be added here } @@ -320,11 +297,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMinHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMinHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readMaxHeatSetpointLimitAttribute(): Integer { + suspend fun readMaxHeatSetpointLimitAttribute(): Short { // Implementation needs to be added here } @@ -336,11 +313,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMaxHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readMinCoolSetpointLimitAttribute(): Integer { + suspend fun readMinCoolSetpointLimitAttribute(): Short { // Implementation needs to be added here } @@ -352,11 +329,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMinCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMinCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readMaxCoolSetpointLimitAttribute(): Integer { + suspend fun readMaxCoolSetpointLimitAttribute(): Short { // Implementation needs to be added here } @@ -368,11 +345,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMaxCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readMinSetpointDeadBandAttribute(): Integer { + suspend fun readMinSetpointDeadBandAttribute(): Byte { // Implementation needs to be added here } @@ -384,11 +361,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMinSetpointDeadBandAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMinSetpointDeadBandAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } - suspend fun readRemoteSensingAttribute(): Integer { + suspend fun readRemoteSensingAttribute(): UByte { // Implementation needs to be added here } @@ -400,11 +377,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRemoteSensingAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRemoteSensingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readControlSequenceOfOperationAttribute(): Integer { + suspend fun readControlSequenceOfOperationAttribute(): UByte { // Implementation needs to be added here } @@ -419,11 +396,11 @@ class ThermostatCluster(private val endpointId: UShort) { suspend fun subscribeControlSequenceOfOperationAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } - suspend fun readSystemModeAttribute(): Integer { + suspend fun readSystemModeAttribute(): UByte { // Implementation needs to be added here } @@ -435,49 +412,49 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSystemModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSystemModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readThermostatRunningModeAttribute(): Integer { + suspend fun readThermostatRunningModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeThermostatRunningModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeThermostatRunningModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readStartOfWeekAttribute(): Integer { + suspend fun readStartOfWeekAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeStartOfWeekAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeStartOfWeekAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readNumberOfWeeklyTransitionsAttribute(): Integer { + suspend fun readNumberOfWeeklyTransitionsAttribute(): UByte { // Implementation needs to be added here } suspend fun subscribeNumberOfWeeklyTransitionsAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } - suspend fun readNumberOfDailyTransitionsAttribute(): Integer { + suspend fun readNumberOfDailyTransitionsAttribute(): UByte { // Implementation needs to be added here } suspend fun subscribeNumberOfDailyTransitionsAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } - suspend fun readTemperatureSetpointHoldAttribute(): Integer { + suspend fun readTemperatureSetpointHoldAttribute(): UByte { // Implementation needs to be added here } @@ -489,10 +466,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTemperatureSetpointHoldAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeTemperatureSetpointHoldAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -519,7 +493,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readThermostatProgrammingOperationModeAttribute(): Integer { + suspend fun readThermostatProgrammingOperationModeAttribute(): UByte { // Implementation needs to be added here } @@ -537,26 +511,23 @@ class ThermostatCluster(private val endpointId: UShort) { suspend fun subscribeThermostatProgrammingOperationModeAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } - suspend fun readThermostatRunningStateAttribute(): Integer { + suspend fun readThermostatRunningStateAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeThermostatRunningStateAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeThermostatRunningStateAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readSetpointChangeSourceAttribute(): Integer { + suspend fun readSetpointChangeSourceAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeSetpointChangeSourceAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSetpointChangeSourceAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -571,14 +542,14 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readSetpointChangeSourceTimestampAttribute(): Long { + suspend fun readSetpointChangeSourceTimestampAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeSetpointChangeSourceTimestampAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -664,7 +635,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readEmergencyHeatDeltaAttribute(): Integer { + suspend fun readEmergencyHeatDeltaAttribute(): UByte { // Implementation needs to be added here } @@ -676,11 +647,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEmergencyHeatDeltaAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeEmergencyHeatDeltaAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readACTypeAttribute(): Integer { + suspend fun readACTypeAttribute(): UByte { // Implementation needs to be added here } @@ -692,11 +663,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeACTypeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeACTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readACCapacityAttribute(): Integer { + suspend fun readACCapacityAttribute(): UShort { // Implementation needs to be added here } @@ -708,11 +679,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeACCapacityAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeACCapacityAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readACRefrigerantTypeAttribute(): Integer { + suspend fun readACRefrigerantTypeAttribute(): UByte { // Implementation needs to be added here } @@ -724,11 +695,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeACRefrigerantTypeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeACRefrigerantTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readACCompressorTypeAttribute(): Integer { + suspend fun readACCompressorTypeAttribute(): UByte { // Implementation needs to be added here } @@ -740,11 +711,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeACCompressorTypeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeACCompressorTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readACErrorCodeAttribute(): Long { + suspend fun readACErrorCodeAttribute(): UInt { // Implementation needs to be added here } @@ -756,11 +727,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeACErrorCodeAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeACErrorCodeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readACLouverPositionAttribute(): Integer { + suspend fun readACLouverPositionAttribute(): UByte { // Implementation needs to be added here } @@ -772,7 +743,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeACLouverPositionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeACLouverPositionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -787,7 +758,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readACCapacityformatAttribute(): Integer { + suspend fun readACCapacityformatAttribute(): UByte { // Implementation needs to be added here } @@ -799,7 +770,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeACCapacityformatAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeACCapacityformatAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -844,19 +815,19 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 1a07633e2bc31c..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 @@ -28,7 +28,7 @@ class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort class AttributeListAttribute(val value: ArrayList) - suspend fun readTemperatureDisplayModeAttribute(): Integer { + suspend fun readTemperatureDisplayModeAttribute(): UByte { // Implementation needs to be added here } @@ -40,14 +40,11 @@ class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribeTemperatureDisplayModeAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeTemperatureDisplayModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readKeypadLockoutAttribute(): Integer { + suspend fun readKeypadLockoutAttribute(): UByte { // Implementation needs to be added here } @@ -59,11 +56,11 @@ class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribeKeypadLockoutAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeKeypadLockoutAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readScheduleProgrammingVisibilityAttribute(): Integer { + suspend fun readScheduleProgrammingVisibilityAttribute(): UByte { // Implementation needs to be added here } @@ -78,7 +75,7 @@ class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort suspend fun subscribeScheduleProgrammingVisibilityAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UByte { // Implementation needs to be added here } @@ -123,19 +120,19 @@ class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 a9fa281c1384b3..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 @@ -76,12 +76,12 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun resetCounts() { - // Implementation needs to be added here - } - - suspend fun resetCounts(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readChannelAttribute(): ChannelAttribute { @@ -144,11 +144,11 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readOverrunCountAttribute(): Long { + suspend fun readOverrunCountAttribute(): ULong { // Implementation needs to be added here } - suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -226,354 +226,351 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readDetachedRoleCountAttribute(): Integer { + suspend fun readDetachedRoleCountAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeDetachedRoleCountAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDetachedRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readChildRoleCountAttribute(): Integer { + suspend fun readChildRoleCountAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeChildRoleCountAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeChildRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRouterRoleCountAttribute(): Integer { + suspend fun readRouterRoleCountAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeRouterRoleCountAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRouterRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readLeaderRoleCountAttribute(): Integer { + suspend fun readLeaderRoleCountAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeLeaderRoleCountAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLeaderRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readAttachAttemptCountAttribute(): Integer { + suspend fun readAttachAttemptCountAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeAttachAttemptCountAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeAttachAttemptCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readPartitionIdChangeCountAttribute(): Integer { + suspend fun readPartitionIdChangeCountAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribePartitionIdChangeCountAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribePartitionIdChangeCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readBetterPartitionAttachAttemptCountAttribute(): Integer { + suspend fun readBetterPartitionAttachAttemptCountAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeBetterPartitionAttachAttemptCountAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readParentChangeCountAttribute(): Integer { + suspend fun readParentChangeCountAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeParentChangeCountAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeParentChangeCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readTxTotalCountAttribute(): Long { + suspend fun readTxTotalCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxTotalCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxTotalCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxUnicastCountAttribute(): Long { + suspend fun readTxUnicastCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxUnicastCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxUnicastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxBroadcastCountAttribute(): Long { + suspend fun readTxBroadcastCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxAckRequestedCountAttribute(): Long { + suspend fun readTxAckRequestedCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxAckedCountAttribute(): Long { + suspend fun readTxAckedCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxAckedCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxAckedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxNoAckRequestedCountAttribute(): Long { + suspend fun readTxNoAckRequestedCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxNoAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxNoAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxDataCountAttribute(): Long { + suspend fun readTxDataCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxDataCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxDataCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxDataPollCountAttribute(): Long { + suspend fun readTxDataPollCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxDataPollCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxDataPollCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxBeaconCountAttribute(): Long { + suspend fun readTxBeaconCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxBeaconCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxBeaconCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxBeaconRequestCountAttribute(): Long { + suspend fun readTxBeaconRequestCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxOtherCountAttribute(): Long { + suspend fun readTxOtherCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxOtherCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxRetryCountAttribute(): Long { + suspend fun readTxRetryCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxRetryCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxRetryCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxDirectMaxRetryExpiryCountAttribute(): Long { + suspend fun readTxDirectMaxRetryExpiryCountAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeTxDirectMaxRetryExpiryCountAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } - suspend fun readTxIndirectMaxRetryExpiryCountAttribute(): Long { + suspend fun readTxIndirectMaxRetryExpiryCountAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeTxIndirectMaxRetryExpiryCountAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } - suspend fun readTxErrCcaCountAttribute(): Long { + suspend fun readTxErrCcaCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxErrCcaCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxErrCcaCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxErrAbortCountAttribute(): Long { + suspend fun readTxErrAbortCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxErrAbortCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxErrAbortCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readTxErrBusyChannelCountAttribute(): Long { + suspend fun readTxErrBusyChannelCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeTxErrBusyChannelCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeTxErrBusyChannelCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxTotalCountAttribute(): Long { + suspend fun readRxTotalCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxTotalCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxTotalCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxUnicastCountAttribute(): Long { + suspend fun readRxUnicastCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxUnicastCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxUnicastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxBroadcastCountAttribute(): Long { + suspend fun readRxBroadcastCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxDataCountAttribute(): Long { + suspend fun readRxDataCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxDataCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxDataCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxDataPollCountAttribute(): Long { + suspend fun readRxDataPollCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxDataPollCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxDataPollCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxBeaconCountAttribute(): Long { + suspend fun readRxBeaconCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxBeaconCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxBeaconCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxBeaconRequestCountAttribute(): Long { + suspend fun readRxBeaconRequestCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxOtherCountAttribute(): Long { + suspend fun readRxOtherCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxOtherCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxAddressFilteredCountAttribute(): Long { + suspend fun readRxAddressFilteredCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxAddressFilteredCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxAddressFilteredCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxDestAddrFilteredCountAttribute(): Long { + suspend fun readRxDestAddrFilteredCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxDestAddrFilteredCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxDestAddrFilteredCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxDuplicatedCountAttribute(): Long { + suspend fun readRxDuplicatedCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxDuplicatedCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxDuplicatedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxErrNoFrameCountAttribute(): Long { + suspend fun readRxErrNoFrameCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxErrNoFrameCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxErrNoFrameCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxErrUnknownNeighborCountAttribute(): Long { + suspend fun readRxErrUnknownNeighborCountAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeRxErrUnknownNeighborCountAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } - suspend fun readRxErrInvalidSrcAddrCountAttribute(): Long { + suspend fun readRxErrInvalidSrcAddrCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxErrInvalidSrcAddrCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxErrInvalidSrcAddrCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxErrSecCountAttribute(): Long { + suspend fun readRxErrSecCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxErrSecCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxErrSecCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxErrFcsCountAttribute(): Long { + suspend fun readRxErrFcsCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxErrFcsCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxErrFcsCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readRxErrOtherCountAttribute(): Long { + suspend fun readRxErrOtherCountAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeRxErrOtherCountAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeRxErrOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -692,19 +689,19 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 176b4a4e04ac94..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 @@ -30,7 +30,7 @@ class TimeFormatLocalizationCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun readHourFormatAttribute(): Integer { + suspend fun readHourFormatAttribute(): UByte { // Implementation needs to be added here } @@ -42,11 +42,11 @@ class TimeFormatLocalizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeHourFormatAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeHourFormatAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readActiveCalendarTypeAttribute(): Integer { + suspend fun readActiveCalendarTypeAttribute(): UByte { // Implementation needs to be added here } @@ -58,7 +58,7 @@ class TimeFormatLocalizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActiveCalendarTypeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeActiveCalendarTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -114,19 +114,19 @@ class TimeFormatLocalizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 7f49fa4b98cdfb..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 @@ -48,64 +48,58 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun setUTCTime(UTCTime: ULong, granularity: UInt, timeSource: UInt?) { - // Implementation needs to be added here - } - suspend fun setUTCTime( UTCTime: ULong, granularity: UInt, timeSource: UInt?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun setTrustedTimeSource( - trustedTimeSource: ChipStructs.TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct? - ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun setTrustedTimeSource( trustedTimeSource: ChipStructs.TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun setTimeZone( - timeZone: ArrayList - ): SetTimeZoneResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun setTimeZone( timeZone: ArrayList, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): SetTimeZoneResponse { - // Implementation needs to be added here - } - - suspend fun setDSTOffset( - DSTOffset: ArrayList - ) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun setDSTOffset( DSTOffset: ArrayList, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ) { - // Implementation needs to be added here - } - - suspend fun setDefaultNTP(defaultNTP: String?) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun setDefaultNTP(defaultNTP: String?, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun setDefaultNTP(defaultNTP: String?, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readUTCTimeAttribute(): UTCTimeAttribute { @@ -116,19 +110,19 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readGranularityAttribute(): Integer { + suspend fun readGranularityAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeGranularityAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeGranularityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readTimeSourceAttribute(): Integer { + suspend fun readTimeSourceAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeTimeSourceAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeTimeSourceAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -178,11 +172,11 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readTimeZoneDatabaseAttribute(): Integer { + suspend fun readTimeZoneDatabaseAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeTimeZoneDatabaseAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeTimeZoneDatabaseAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -194,19 +188,19 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readTimeZoneListMaxSizeAttribute(): Integer { + suspend fun readTimeZoneListMaxSizeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeTimeZoneListMaxSizeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeTimeZoneListMaxSizeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readDSTOffsetListMaxSizeAttribute(): Integer { + suspend fun readDSTOffsetListMaxSizeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeDSTOffsetListMaxSizeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeDSTOffsetListMaxSizeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -259,19 +253,19 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 33fecf7e590537..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 @@ -82,11 +82,11 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val e // Implementation needs to be added here } - suspend fun readPeakMeasuredValueWindowAttribute(): Long { + suspend fun readPeakMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -101,14 +101,14 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val e // Implementation needs to be added here } - suspend fun readAverageMeasuredValueWindowAttribute(): Long { + suspend fun readAverageMeasuredValueWindowAttribute(): UInt { // Implementation needs to be added here } suspend fun subscribeAverageMeasuredValueWindowAttribute( minInterval: Int, maxInterval: Int - ): Long { + ): UInt { // Implementation needs to be added here } @@ -120,27 +120,27 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val e // Implementation needs to be added here } - suspend fun readMeasurementUnitAttribute(): Integer { + suspend fun readMeasurementUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readMeasurementMediumAttribute(): Integer { + suspend fun readMeasurementMediumAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readLevelValueAttribute(): Integer { + suspend fun readLevelValueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -185,19 +185,19 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val e // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 5a621abdcd9189..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 @@ -28,7 +28,7 @@ class UnitLocalizationCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun readTemperatureUnitAttribute(): Integer { + suspend fun readTemperatureUnitAttribute(): UByte { // Implementation needs to be added here } @@ -40,7 +40,7 @@ class UnitLocalizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTemperatureUnitAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeTemperatureUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -85,19 +85,19 @@ class UnitLocalizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 918c3aa8fee80b..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 @@ -179,70 +179,59 @@ class UnitTestingCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun test() { - // Implementation needs to be added here - } - - suspend fun test(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun testNotHandled() { - // Implementation needs to be added here - } - - suspend fun testNotHandled(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun testSpecific(): TestSpecificResponse { - // Implementation needs to be added here + suspend fun test(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun testSpecific(timedInvokeTimeoutMs: Int): TestSpecificResponse { - // Implementation needs to be added here + suspend fun testNotHandled(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun testUnknownCommand() { - // Implementation needs to be added here + suspend fun testSpecific(timedInvokeTimeoutMs: Int? = null): TestSpecificResponse { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun testUnknownCommand(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun testAddArguments(arg1: UByte, arg2: UByte): TestAddArgumentsResponse { - // Implementation needs to be added here + suspend fun testUnknownCommand(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testAddArguments( arg1: UByte, arg2: UByte, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): TestAddArgumentsResponse { - // Implementation needs to be added here - } - - suspend fun testSimpleArgumentRequest(arg1: Boolean): TestSimpleArgumentResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testSimpleArgumentRequest( arg1: Boolean, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): TestSimpleArgumentResponse { - // Implementation needs to be added here - } - - suspend fun testStructArrayArgumentRequest( - arg1: ArrayList, - arg2: ArrayList, - arg3: ArrayList, - arg4: ArrayList, - arg5: UInt, - arg6: Boolean - ): TestStructArrayArgumentResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testStructArrayArgumentRequest( @@ -252,136 +241,113 @@ class UnitTestingCluster(private val endpointId: UShort) { arg4: ArrayList, arg5: UInt, arg6: Boolean, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): TestStructArrayArgumentResponse { - // Implementation needs to be added here - } - - suspend fun testStructArgumentRequest( - arg1: ChipStructs.UnitTestingClusterSimpleStruct - ): BooleanResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testStructArgumentRequest( arg1: ChipStructs.UnitTestingClusterSimpleStruct, - timedInvokeTimeoutMs: Int - ): BooleanResponse { - // Implementation needs to be added here - } - - suspend fun testNestedStructArgumentRequest( - arg1: ChipStructs.UnitTestingClusterNestedStruct + timedInvokeTimeoutMs: Int? = null ): BooleanResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testNestedStructArgumentRequest( arg1: ChipStructs.UnitTestingClusterNestedStruct, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): BooleanResponse { - // Implementation needs to be added here - } - - suspend fun testListStructArgumentRequest( - arg1: ArrayList - ): BooleanResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testListStructArgumentRequest( arg1: ArrayList, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): BooleanResponse { - // Implementation needs to be added here - } - - suspend fun testListInt8UArgumentRequest(arg1: ArrayList): BooleanResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testListInt8UArgumentRequest( arg1: ArrayList, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): BooleanResponse { - // Implementation needs to be added here - } - - suspend fun testNestedStructListArgumentRequest( - arg1: ChipStructs.UnitTestingClusterNestedStructList - ): BooleanResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testNestedStructListArgumentRequest( arg1: ChipStructs.UnitTestingClusterNestedStructList, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): BooleanResponse { - // Implementation needs to be added here - } - - suspend fun testListNestedStructListArgumentRequest( - arg1: ArrayList - ): BooleanResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testListNestedStructListArgumentRequest( arg1: ArrayList, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): BooleanResponse { - // Implementation needs to be added here - } - - suspend fun testListInt8UReverseRequest(arg1: ArrayList): TestListInt8UReverseResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testListInt8UReverseRequest( arg1: ArrayList, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): TestListInt8UReverseResponse { - // Implementation needs to be added here - } - - suspend fun testEnumsRequest(arg1: UShort, arg2: UInt): TestEnumsResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testEnumsRequest( arg1: UShort, arg2: UInt, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): TestEnumsResponse { - // Implementation needs to be added here - } - - suspend fun testNullableOptionalRequest(arg1: UByte?): TestNullableOptionalResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testNullableOptionalRequest( arg1: UByte?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): TestNullableOptionalResponse { - // Implementation needs to be added here - } - - 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? - ): TestComplexNullableOptionalResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testComplexNullableOptionalRequest( @@ -397,64 +363,64 @@ class UnitTestingCluster(private val endpointId: UShort) { nullableList: ArrayList?, optionalList: ArrayList?, nullableOptionalList: ArrayList?, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): TestComplexNullableOptionalResponse { - // Implementation needs to be added here - } - - suspend fun simpleStructEchoRequest( - arg1: ChipStructs.UnitTestingClusterSimpleStruct - ): SimpleStructResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun simpleStructEchoRequest( arg1: ChipStructs.UnitTestingClusterSimpleStruct, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): SimpleStructResponse { - // Implementation needs to be added here - } - - suspend fun timedInvokeRequest(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun testSimpleOptionalArgumentRequest(arg1: Boolean?) { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun testSimpleOptionalArgumentRequest(arg1: Boolean?, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun timedInvokeRequest(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 - ): TestEmitTestEventResponse { - // Implementation needs to be added here + 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 + timedInvokeTimeoutMs: Int? = null ): TestEmitTestEventResponse { - // Implementation needs to be added here - } - - suspend fun testEmitTestFabricScopedEventRequest( - arg1: UByte - ): TestEmitTestFabricScopedEventResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun testEmitTestFabricScopedEventRequest( arg1: UByte, - timedInvokeTimeoutMs: Int + timedInvokeTimeoutMs: Int? = null ): TestEmitTestFabricScopedEventResponse { - // Implementation needs to be added here + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readBooleanAttribute(): Boolean { @@ -473,7 +439,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readBitmap8Attribute(): Integer { + suspend fun readBitmap8Attribute(): UByte { // Implementation needs to be added here } @@ -485,11 +451,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBitmap8Attribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBitmap8Attribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readBitmap16Attribute(): Integer { + suspend fun readBitmap16Attribute(): UShort { // Implementation needs to be added here } @@ -501,11 +467,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBitmap16Attribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeBitmap16Attribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readBitmap32Attribute(): Long { + suspend fun readBitmap32Attribute(): UInt { // Implementation needs to be added here } @@ -517,11 +483,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBitmap32Attribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeBitmap32Attribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readBitmap64Attribute(): Long { + suspend fun readBitmap64Attribute(): ULong { // Implementation needs to be added here } @@ -533,11 +499,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBitmap64Attribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeBitmap64Attribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readInt8uAttribute(): Integer { + suspend fun readInt8uAttribute(): UByte { // Implementation needs to be added here } @@ -549,11 +515,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInt8uAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readInt16uAttribute(): Integer { + suspend fun readInt16uAttribute(): UShort { // Implementation needs to be added here } @@ -565,11 +531,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInt16uAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeInt16uAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readInt24uAttribute(): Long { + suspend fun readInt24uAttribute(): UInt { // Implementation needs to be added here } @@ -581,11 +547,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInt24uAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeInt24uAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readInt32uAttribute(): Long { + suspend fun readInt32uAttribute(): UInt { // Implementation needs to be added here } @@ -597,11 +563,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInt32uAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeInt32uAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readInt40uAttribute(): Long { + suspend fun readInt40uAttribute(): ULong { // Implementation needs to be added here } @@ -613,11 +579,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInt40uAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeInt40uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readInt48uAttribute(): Long { + suspend fun readInt48uAttribute(): ULong { // Implementation needs to be added here } @@ -629,11 +595,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInt48uAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeInt48uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readInt56uAttribute(): Long { + suspend fun readInt56uAttribute(): ULong { // Implementation needs to be added here } @@ -645,11 +611,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInt56uAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeInt56uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readInt64uAttribute(): Long { + suspend fun readInt64uAttribute(): ULong { // Implementation needs to be added here } @@ -661,11 +627,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInt64uAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeInt64uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readInt8sAttribute(): Integer { + suspend fun readInt8sAttribute(): Byte { // Implementation needs to be added here } @@ -677,11 +643,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInt8sAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeInt8sAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } - suspend fun readInt16sAttribute(): Integer { + suspend fun readInt16sAttribute(): Short { // Implementation needs to be added here } @@ -693,11 +659,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInt16sAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeInt16sAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } - suspend fun readInt24sAttribute(): Long { + suspend fun readInt24sAttribute(): Int { // Implementation needs to be added here } @@ -709,11 +675,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInt24sAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeInt24sAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } - suspend fun readInt32sAttribute(): Long { + suspend fun readInt32sAttribute(): Int { // Implementation needs to be added here } @@ -725,7 +691,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInt32sAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeInt32sAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } @@ -793,7 +759,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readEnum8Attribute(): Integer { + suspend fun readEnum8Attribute(): UByte { // Implementation needs to be added here } @@ -805,11 +771,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEnum8Attribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeEnum8Attribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readEnum16Attribute(): Integer { + suspend fun readEnum16Attribute(): UShort { // Implementation needs to be added here } @@ -821,7 +787,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEnum16Attribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeEnum16Attribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -980,7 +946,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readEpochUsAttribute(): Long { + suspend fun readEpochUsAttribute(): ULong { // Implementation needs to be added here } @@ -992,11 +958,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEpochUsAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeEpochUsAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } - suspend fun readEpochSAttribute(): Long { + suspend fun readEpochSAttribute(): UInt { // Implementation needs to be added here } @@ -1008,11 +974,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEpochSAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeEpochSAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readVendorIdAttribute(): Integer { + suspend fun readVendorIdAttribute(): UShort { // Implementation needs to be added here } @@ -1024,7 +990,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeVendorIdAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeVendorIdAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1053,7 +1019,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readEnumAttrAttribute(): Integer { + suspend fun readEnumAttrAttribute(): UByte { // Implementation needs to be added here } @@ -1065,7 +1031,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEnumAttrAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeEnumAttrAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -1091,7 +1057,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readRangeRestrictedInt8uAttribute(): Integer { + suspend fun readRangeRestrictedInt8uAttribute(): UByte { // Implementation needs to be added here } @@ -1103,11 +1069,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRangeRestrictedInt8uAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRangeRestrictedInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readRangeRestrictedInt8sAttribute(): Integer { + suspend fun readRangeRestrictedInt8sAttribute(): Byte { // Implementation needs to be added here } @@ -1119,11 +1085,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRangeRestrictedInt8sAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRangeRestrictedInt8sAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } - suspend fun readRangeRestrictedInt16uAttribute(): Integer { + suspend fun readRangeRestrictedInt16uAttribute(): UShort { // Implementation needs to be added here } @@ -1135,11 +1101,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRangeRestrictedInt16uAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRangeRestrictedInt16uAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readRangeRestrictedInt16sAttribute(): Integer { + suspend fun readRangeRestrictedInt16sAttribute(): Short { // Implementation needs to be added here } @@ -1151,7 +1117,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRangeRestrictedInt16sAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeRangeRestrictedInt16sAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1897,7 +1863,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readWriteOnlyInt8uAttribute(): Integer { + suspend fun readWriteOnlyInt8uAttribute(): UByte { // Implementation needs to be added here } @@ -1909,7 +1875,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeWriteOnlyInt8uAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeWriteOnlyInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -1954,19 +1920,19 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 37f240160f798c..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 @@ -90,19 +90,19 @@ class UserLabelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 94a34ee6faab32..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 @@ -77,19 +77,19 @@ class WakeOnLanCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 d7a7f8bd1b4350..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 @@ -54,12 +54,12 @@ class WiFiNetworkDiagnosticsCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun resetCounts() { - // Implementation needs to be added here - } - - suspend fun resetCounts(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readBssidAttribute(): BssidAttribute { @@ -240,19 +240,19 @@ class WiFiNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } 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 e90983f4f4a8d2..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 @@ -44,89 +44,95 @@ class WindowCoveringCluster(private val endpointId: UShort) { class AttributeListAttribute(val value: ArrayList) - suspend fun upOrOpen() { - // Implementation needs to be added here - } - - suspend fun upOrOpen(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun downOrClose() { - // Implementation needs to be added here - } - - suspend fun downOrClose(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun stopMotion() { - // Implementation needs to be added here - } - - suspend fun stopMotion(timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun goToLiftValue(liftValue: UShort) { - // Implementation needs to be added here + suspend fun upOrOpen(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun goToLiftValue(liftValue: UShort, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun downOrClose(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun goToLiftPercentage(liftPercent100thsValue: UShort) { - // Implementation needs to be added here + suspend fun stopMotion(timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun goToLiftPercentage(liftPercent100thsValue: UShort, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun goToLiftValue(liftValue: UShort, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun goToTiltValue(tiltValue: UShort) { - // Implementation needs to be added here + suspend fun goToLiftPercentage( + liftPercent100thsValue: UShort, + timedInvokeTimeoutMs: Int? = null + ) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun goToTiltValue(tiltValue: UShort, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here - } - - suspend fun goToTiltPercentage(tiltPercent100thsValue: UShort) { - // Implementation needs to be added here + suspend fun goToTiltValue(tiltValue: UShort, timedInvokeTimeoutMs: Int? = null) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun goToTiltPercentage(tiltPercent100thsValue: UShort, timedInvokeTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun goToTiltPercentage( + tiltPercent100thsValue: UShort, + timedInvokeTimeoutMs: Int? = null + ) { + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } - suspend fun readTypeAttribute(): Integer { + suspend fun readTypeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeTypeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readPhysicalClosedLimitLiftAttribute(): Integer { + suspend fun readPhysicalClosedLimitLiftAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribePhysicalClosedLimitLiftAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readPhysicalClosedLimitTiltAttribute(): Integer { + suspend fun readPhysicalClosedLimitTiltAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribePhysicalClosedLimitTiltAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } @@ -152,33 +158,27 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readNumberOfActuationsLiftAttribute(): Integer { + suspend fun readNumberOfActuationsLiftAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeNumberOfActuationsLiftAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeNumberOfActuationsLiftAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readNumberOfActuationsTiltAttribute(): Integer { + suspend fun readNumberOfActuationsTiltAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeNumberOfActuationsTiltAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeNumberOfActuationsTiltAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readConfigStatusAttribute(): Integer { + suspend fun readConfigStatusAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeConfigStatusAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeConfigStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -204,11 +204,11 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readOperationalStatusAttribute(): Integer { + suspend fun readOperationalStatusAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeOperationalStatusAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeOperationalStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -236,11 +236,11 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readEndProductTypeAttribute(): Integer { + suspend fun readEndProductTypeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeEndProductTypeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeEndProductTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -268,51 +268,45 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readInstalledOpenLimitLiftAttribute(): Integer { + suspend fun readInstalledOpenLimitLiftAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeInstalledOpenLimitLiftAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeInstalledOpenLimitLiftAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readInstalledClosedLimitLiftAttribute(): Integer { + suspend fun readInstalledClosedLimitLiftAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeInstalledClosedLimitLiftAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readInstalledOpenLimitTiltAttribute(): Integer { + suspend fun readInstalledOpenLimitTiltAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeInstalledOpenLimitTiltAttribute( - minInterval: Int, - maxInterval: Int - ): Integer { + suspend fun subscribeInstalledOpenLimitTiltAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readInstalledClosedLimitTiltAttribute(): Integer { + suspend fun readInstalledClosedLimitTiltAttribute(): UShort { // Implementation needs to be added here } suspend fun subscribeInstalledClosedLimitTiltAttribute( minInterval: Int, maxInterval: Int - ): Integer { + ): UShort { // Implementation needs to be added here } - suspend fun readModeAttribute(): Integer { + suspend fun readModeAttribute(): UByte { // Implementation needs to be added here } @@ -324,15 +318,15 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeModeAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readSafetyStatusAttribute(): Integer { + suspend fun readSafetyStatusAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeSafetyStatusAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeSafetyStatusAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -377,19 +371,19 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFeatureMapAttribute(): Long { + suspend fun readFeatureMapAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } - suspend fun readClusterRevisionAttribute(): Integer { + suspend fun readClusterRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): Integer { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here }