From 645f94871f070c919d9793b0ae47f55d452c39d3 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Fri, 5 Nov 2021 01:02:23 -0400 Subject: [PATCH] Switch yaml tests to use ClusterBase::WriteAttribute for attribute write. The changes to test_cluster.zapt are the actual change we care about. The change to WriteClient.h is to fix a pre-existing bug: it calls Encode() without including all the headers that declare various signatures of Encode(). The change to ClusterTestGeneration.js fixes a bug with the signature of the success callback for writes: it had an extra arg with the type of the attribute, whereas it should have no arg at all. The change to CHIPClusters-src.zapt is to instantiate WriteAttribute for all the non-writable attributes when compiling tests, because we actually issue writes for those non-writable attributes (and test that they fail). --- .../templates/partials/test_cluster.zapt | 21 +- src/app/WriteClient.h | 1 + .../common/ClusterTestGeneration.js | 3 + .../templates/app/tests/CHIPClusters-src.zapt | 30 + .../chip-tool/zap-generated/test/Commands.h | 2430 ++++++----------- .../zap-generated/tests/CHIPClustersTest.cpp | 2013 ++++++++++++++ 6 files changed, 2939 insertions(+), 1559 deletions(-) diff --git a/examples/chip-tool/templates/partials/test_cluster.zapt b/examples/chip-tool/templates/partials/test_cluster.zapt index e5cdc80497b299..38400efb4e6f84 100644 --- a/examples/chip-tool/templates/partials/test_cluster.zapt +++ b/examples/chip-tool/templates/partials/test_cluster.zapt @@ -60,21 +60,31 @@ class {{filename}}: public TestCommand {{#unless (isTestOnlyCluster cluster)}} {{#unless isWait}} {{#unless isCommand}} + {{#unless isWriteAttribute}} chip::Callback::CallbackfailureArguments}})> {{>failureCallback}} { {{>failureResponse}}, this }; chip::Callback::CallbacksuccessArguments}})> {{>successCallback}} { {{>successResponse}}, this }; {{/unless}} {{/unless}} {{/unless}} + {{/unless}} {{/chip_tests_items}} {{#chip_tests_items}} {{#unless (isTestOnlyCluster cluster)}} {{#unless isWait}} {{#unless isCommand}} + {{#if isWriteAttribute}} + static void {{>failureResponse}}(void * context, EmberAfStatus status) + { + (static_cast<{{filename}} *>(context))->OnFailureResponse_{{index}}(chip::to_underlying(status)); + } + {{else}} static void {{>failureResponse}}({{> failureArguments}}) { (static_cast<{{filename}} *>(context))->OnFailureResponse_{{index}}(status); } + {{/if}} + static void {{>successResponse}}({{> successArguments}}) { @@ -156,8 +166,15 @@ class {{filename}}: public TestCommand {{/if}}; {{/chip_tests_item_parameters}} - {{~#*inline "commandName"}}{{asUpperCamelCase commandName}}{{#if isAttribute}}Attribute{{asUpperCamelCase attribute}}{{/if}}{{/inline}} - {{#if async}}ReturnErrorOnFailure({{else}}return {{/if}}cluster.{{>commandName}}({{>successCallback}}.Cancel(){{#unless isWaitForReport}}, {{>failureCallback}}.Cancel(){{/unless}}{{#chip_tests_item_parameters}}, {{asLowerCamelCase name}}Argument{{/chip_tests_item_parameters}}){{#if async}}){{/if}}; + {{#if isWriteAttribute}} + {{#*inline "failureResponse"}}OnFailureCallback_{{index}}{{/inline}} + {{#*inline "successResponse"}}OnSuccessCallback_{{index}}{{/inline}} + {{#if async}}ReturnErrorOnFailure({{else}}return {{/if}}cluster.WriteAttribute({{#chip_tests_item_parameters}}{{asLowerCamelCase name}}Argument, {{/chip_tests_item_parameters}}this, {{>successResponse}}, {{>failureResponse}}){{#if async}}){{/if}}; + {{else}} + {{~#*inline "commandName"}}{{asUpperCamelCase commandName}}{{#if isAttribute}}Attribute{{asUpperCamelCase attribute}}{{/if}}{{/inline}} + {{#if async}}ReturnErrorOnFailure({{else}}return {{/if}}cluster.{{>commandName}}({{>successCallback}}.Cancel(){{#unless isWaitForReport}}, {{>failureCallback}}.Cancel(){{/unless}}{{#chip_tests_item_parameters}}, {{asLowerCamelCase name}}Argument{{/chip_tests_item_parameters}}){{#if async}}){{/if}}; + {{/if}} + {{/if}} {{#if async}}return WaitForMs(0);{{/if}} } diff --git a/src/app/WriteClient.h b/src/app/WriteClient.h index ecdba66a764630..7629bb682522a7 100644 --- a/src/app/WriteClient.h +++ b/src/app/WriteClient.h @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include diff --git a/src/app/zap-templates/common/ClusterTestGeneration.js b/src/app/zap-templates/common/ClusterTestGeneration.js index bcce0cbd80ebed..2d6a57c15350fc 100644 --- a/src/app/zap-templates/common/ClusterTestGeneration.js +++ b/src/app/zap-templates/common/ClusterTestGeneration.js @@ -545,6 +545,9 @@ function chip_tests_item_response_parameters(options) const responseValues = this.response.values.slice(); const promise = assertCommandOrAttribute(this).then(item => { + if (this.isWriteAttribute) { + return []; + } const responseArgs = item.response.arguments; const responses = responseArgs.map(responseArg => { diff --git a/src/app/zap-templates/templates/app/tests/CHIPClusters-src.zapt b/src/app/zap-templates/templates/app/tests/CHIPClusters-src.zapt index 8d80a39a783937..e8689c79b5a908 100644 --- a/src/app/zap-templates/templates/app/tests/CHIPClusters-src.zapt +++ b/src/app/zap-templates/templates/app/tests/CHIPClusters-src.zapt @@ -21,6 +21,10 @@ namespace Controller { {{#chip_server_cluster_attributes}} {{#unless isWritableAttribute}} +{{#*inline "attributeTypeInfo"}}chip::app::Clusters::{{asUpperCamelCase parent.name}}::Attributes::{{asUpperCamelCase name}}::TypeInfo{{/inline}} +template CHIP_ERROR ClusterBase::WriteAttribute<{{>attributeTypeInfo}}>(const {{>attributeTypeInfo}}::Type & requestData, void *context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + {{#unless isList}} {{#unless isStruct}} CHIP_ERROR {{asUpperCamelCase parent.name}}ClusterTest::WriteAttribute{{asUpperCamelCase name}}(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, {{chipType}} value) @@ -36,6 +40,32 @@ CHIP_ERROR {{asUpperCamelCase parent.name}}ClusterTest::WriteAttribute{{asUpperC {{/chip_server_cluster_attributes}} {{/chip_client_clusters}} +template +CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { + if (successCb != nullptr) + { + successCb(context); + } + }; + + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, + CHIP_ERROR aError) { + if (failureCb != nullptr) + { + failureCb(context, app::ToEmberAfStatus(status.mStatus)); + } + }; + + return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), + mEndpoint, requestData, onSuccessCb, onFailureCb); +} + } // namespace Controller } // namespace chip {{/if}} diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 31034f00937aa1..6c1cc05a498756 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -79,8 +79,6 @@ class Test_TC_BI_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; @@ -94,15 +92,12 @@ class Test_TC_BI_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -141,13 +136,13 @@ class Test_TC_BI_1_1 : public TestCommand uint16_t clusterRevisionArgument = 1U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() { @@ -260,22 +255,16 @@ class Test_TC_BI_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; - chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; - chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; - chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; - chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; - chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; - chip::Callback::Callback mOnSuccessCallback_9{ OnSuccessCallback_9, this }; chip::Callback::Callback mOnFailureCallback_10{ OnFailureCallback_10, this }; chip::Callback::Callback mOnSuccessCallback_10{ OnSuccessCallback_10, this }; @@ -299,15 +288,12 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(outOfService); } - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, bool outOfService) - { - (static_cast(context))->OnSuccessResponse_2(outOfService); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, uint8_t status) { @@ -329,15 +315,12 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(presentValue); } - static void OnFailureCallback_5(void * context, uint8_t status) + static void OnFailureCallback_5(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, bool presentValue) - { - (static_cast(context))->OnSuccessResponse_5(presentValue); - } + static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } static void OnFailureCallback_6(void * context, uint8_t status) { @@ -369,15 +352,12 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(statusFlags); } - static void OnFailureCallback_9(void * context, uint8_t status) + static void OnFailureCallback_9(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint8_t statusFlags) - { - (static_cast(context))->OnSuccessResponse_9(statusFlags); - } + static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } static void OnFailureCallback_10(void * context, uint8_t status) { @@ -432,13 +412,13 @@ class Test_TC_BI_2_1 : public TestCommand bool outOfServiceArgument = 0; - return cluster.WriteAttributeOutOfService(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), - outOfServiceArgument); + return cluster.WriteAttribute( + outOfServiceArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(bool outOfService) { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeOutOfService_3() { @@ -479,13 +459,13 @@ class Test_TC_BI_2_1 : public TestCommand bool presentValueArgument = 0; - return cluster.WriteAttributePresentValue(mOnSuccessCallback_5.Cancel(), mOnFailureCallback_5.Cancel(), - presentValueArgument); + return cluster.WriteAttribute( + presentValueArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(bool presentValue) { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributePresentValue_6() { @@ -543,12 +523,13 @@ class Test_TC_BI_2_1 : public TestCommand uint8_t statusFlagsArgument = 0; - return cluster.WriteAttributeStatusFlags(mOnSuccessCallback_9.Cancel(), mOnFailureCallback_9.Cancel(), statusFlagsArgument); + return cluster.WriteAttribute( + statusFlagsArgument, this, OnSuccessCallback_9, OnFailureCallback_9); } void OnFailureResponse_9(uint8_t status) { NextTest(); } - void OnSuccessResponse_9(uint8_t statusFlags) { ThrowSuccessResponse(); } + void OnSuccessResponse_9() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeStatusFlags_10() { @@ -615,18 +596,12 @@ class Test_TC_CC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -639,13 +614,13 @@ class Test_TC_CC_1_1 : public TestCommand uint16_t clusterRevisionArgument = 4U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_CC_2_1 : public TestCommand @@ -1284,32 +1259,24 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; - chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; - chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; - chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; - chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; chip::Callback::Callback mOnSuccessCallback_9{ OnSuccessCallback_9, this }; - chip::Callback::Callback mOnFailureCallback_10{ OnFailureCallback_10, this }; - chip::Callback::Callback mOnSuccessCallback_10{ OnSuccessCallback_10, this }; chip::Callback::Callback mOnFailureCallback_11{ OnFailureCallback_11, this }; chip::Callback::Callback mOnSuccessCallback_11{ OnSuccessCallback_11, this }; chip::Callback::Callback mOnFailureCallback_12{ OnFailureCallback_12, this }; chip::Callback::Callback mOnSuccessCallback_12{ OnSuccessCallback_12, this }; chip::Callback::Callback mOnFailureCallback_13{ OnFailureCallback_13, this }; chip::Callback::Callback mOnSuccessCallback_13{ OnSuccessCallback_13, this }; - chip::Callback::Callback mOnFailureCallback_14{ OnFailureCallback_14, this }; - chip::Callback::Callback mOnSuccessCallback_14{ OnSuccessCallback_14, this }; chip::Callback::Callback mOnFailureCallback_15{ OnFailureCallback_15, this }; chip::Callback::Callback mOnSuccessCallback_15{ OnSuccessCallback_15, this }; chip::Callback::Callback mOnFailureCallback_16{ OnFailureCallback_16, this }; @@ -1323,9 +1290,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_19{ OnFailureCallback_19, this }; chip::Callback::Callback mOnSuccessCallback_19{ OnSuccessCallback_19, this }; - chip::Callback::Callback mOnFailureCallback_20{ OnFailureCallback_20, this }; - chip::Callback::Callback mOnSuccessCallback_20{ OnSuccessCallback_20, - this }; chip::Callback::Callback mOnFailureCallback_21{ OnFailureCallback_21, this }; chip::Callback::Callback mOnSuccessCallback_21{ OnSuccessCallback_21, this }; @@ -1335,9 +1299,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_23{ OnFailureCallback_23, this }; chip::Callback::Callback mOnSuccessCallback_23{ OnSuccessCallback_23, this }; - chip::Callback::Callback mOnFailureCallback_24{ OnFailureCallback_24, this }; - chip::Callback::Callback mOnSuccessCallback_24{ OnSuccessCallback_24, - this }; chip::Callback::Callback mOnFailureCallback_25{ OnFailureCallback_25, this }; chip::Callback::Callback mOnSuccessCallback_25{ OnSuccessCallback_25, this }; @@ -1348,8 +1309,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_27{ OnSuccessCallback_27, this }; chip::Callback::Callback mOnFailureCallback_28{ OnFailureCallback_28, this }; chip::Callback::Callback mOnSuccessCallback_28{ OnSuccessCallback_28, this }; - chip::Callback::Callback mOnFailureCallback_29{ OnFailureCallback_29, this }; - chip::Callback::Callback mOnSuccessCallback_29{ OnSuccessCallback_29, this }; chip::Callback::Callback mOnFailureCallback_30{ OnFailureCallback_30, this }; chip::Callback::Callback mOnSuccessCallback_30{ OnSuccessCallback_30, this }; chip::Callback::Callback mOnFailureCallback_31{ OnFailureCallback_31, this }; @@ -1358,9 +1317,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_32{ OnFailureCallback_32, this }; chip::Callback::Callback mOnSuccessCallback_32{ OnSuccessCallback_32, this }; - chip::Callback::Callback mOnFailureCallback_33{ OnFailureCallback_33, this }; - chip::Callback::Callback mOnSuccessCallback_33{ OnSuccessCallback_33, - this }; chip::Callback::Callback mOnFailureCallback_34{ OnFailureCallback_34, this }; chip::Callback::Callback mOnSuccessCallback_34{ OnSuccessCallback_34, this }; @@ -1368,8 +1324,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_35{ OnSuccessCallback_35, this }; chip::Callback::Callback mOnFailureCallback_36{ OnFailureCallback_36, this }; chip::Callback::Callback mOnSuccessCallback_36{ OnSuccessCallback_36, this }; - chip::Callback::Callback mOnFailureCallback_37{ OnFailureCallback_37, this }; - chip::Callback::Callback mOnSuccessCallback_37{ OnSuccessCallback_37, this }; chip::Callback::Callback mOnFailureCallback_38{ OnFailureCallback_38, this }; chip::Callback::Callback mOnSuccessCallback_38{ OnSuccessCallback_38, this }; chip::Callback::Callback mOnFailureCallback_39{ OnFailureCallback_39, this }; @@ -1380,10 +1334,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_40{ OnSuccessCallback_40, this }; - chip::Callback::Callback mOnFailureCallback_41{ OnFailureCallback_41, this }; - chip::Callback::Callback mOnSuccessCallback_41{ - OnSuccessCallback_41, this - }; chip::Callback::Callback mOnFailureCallback_42{ OnFailureCallback_42, this }; chip::Callback::Callback mOnSuccessCallback_42{ OnSuccessCallback_42, this @@ -1396,10 +1346,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_44{ OnSuccessCallback_44, this }; - chip::Callback::Callback mOnFailureCallback_45{ OnFailureCallback_45, this }; - chip::Callback::Callback mOnSuccessCallback_45{ - OnSuccessCallback_45, this - }; chip::Callback::Callback mOnFailureCallback_46{ OnFailureCallback_46, this }; chip::Callback::Callback mOnSuccessCallback_46{ OnSuccessCallback_46, this @@ -1410,9 +1356,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_48{ OnFailureCallback_48, this }; chip::Callback::Callback mOnSuccessCallback_48{ OnSuccessCallback_48, this }; - chip::Callback::Callback mOnFailureCallback_49{ OnFailureCallback_49, this }; - chip::Callback::Callback mOnSuccessCallback_49{ OnSuccessCallback_49, - this }; chip::Callback::Callback mOnFailureCallback_50{ OnFailureCallback_50, this }; chip::Callback::Callback mOnSuccessCallback_50{ OnSuccessCallback_50, this }; @@ -1422,9 +1365,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_52{ OnFailureCallback_52, this }; chip::Callback::Callback mOnSuccessCallback_52{ OnSuccessCallback_52, this }; - chip::Callback::Callback mOnFailureCallback_53{ OnFailureCallback_53, this }; - chip::Callback::Callback mOnSuccessCallback_53{ OnSuccessCallback_53, - this }; chip::Callback::Callback mOnFailureCallback_54{ OnFailureCallback_54, this }; chip::Callback::Callback mOnSuccessCallback_54{ OnSuccessCallback_54, this }; @@ -1434,9 +1374,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_56{ OnFailureCallback_56, this }; chip::Callback::Callback mOnSuccessCallback_56{ OnSuccessCallback_56, this }; - chip::Callback::Callback mOnFailureCallback_57{ OnFailureCallback_57, this }; - chip::Callback::Callback mOnSuccessCallback_57{ OnSuccessCallback_57, - this }; chip::Callback::Callback mOnFailureCallback_58{ OnFailureCallback_58, this }; chip::Callback::Callback mOnSuccessCallback_58{ OnSuccessCallback_58, this }; @@ -1444,10 +1381,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_59{ OnSuccessCallback_59, this }; - chip::Callback::Callback mOnFailureCallback_60{ OnFailureCallback_60, this }; - chip::Callback::Callback mOnSuccessCallback_60{ - OnSuccessCallback_60, this - }; chip::Callback::Callback mOnFailureCallback_61{ OnFailureCallback_61, this }; chip::Callback::Callback mOnSuccessCallback_61{ OnSuccessCallback_61, this @@ -1456,10 +1389,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_62{ OnSuccessCallback_62, this }; - chip::Callback::Callback mOnFailureCallback_63{ OnFailureCallback_63, this }; - chip::Callback::Callback mOnSuccessCallback_63{ - OnSuccessCallback_63, this - }; chip::Callback::Callback mOnFailureCallback_64{ OnFailureCallback_64, this }; chip::Callback::Callback mOnSuccessCallback_64{ OnSuccessCallback_64, this @@ -1468,16 +1397,11 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_65{ OnSuccessCallback_65, this }; chip::Callback::Callback mOnFailureCallback_66{ OnFailureCallback_66, this }; chip::Callback::Callback mOnSuccessCallback_66{ OnSuccessCallback_66, this }; - chip::Callback::Callback mOnFailureCallback_67{ OnFailureCallback_67, this }; - chip::Callback::Callback mOnSuccessCallback_67{ OnSuccessCallback_67, this }; chip::Callback::Callback mOnFailureCallback_68{ OnFailureCallback_68, this }; chip::Callback::Callback mOnSuccessCallback_68{ OnSuccessCallback_68, this }; chip::Callback::Callback mOnFailureCallback_69{ OnFailureCallback_69, this }; chip::Callback::Callback mOnSuccessCallback_69{ OnSuccessCallback_69, this }; - chip::Callback::Callback mOnFailureCallback_70{ OnFailureCallback_70, this }; - chip::Callback::Callback mOnSuccessCallback_70{ OnSuccessCallback_70, - this }; chip::Callback::Callback mOnFailureCallback_71{ OnFailureCallback_71, this }; chip::Callback::Callback mOnSuccessCallback_71{ OnSuccessCallback_71, this }; @@ -1487,22 +1411,15 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_73{ OnFailureCallback_73, this }; chip::Callback::Callback mOnSuccessCallback_73{ OnSuccessCallback_73, this }; - chip::Callback::Callback mOnFailureCallback_74{ OnFailureCallback_74, this }; - chip::Callback::Callback mOnSuccessCallback_74{ OnSuccessCallback_74, - this }; chip::Callback::Callback mOnFailureCallback_75{ OnFailureCallback_75, this }; chip::Callback::Callback mOnSuccessCallback_75{ OnSuccessCallback_75, this }; chip::Callback::Callback mOnFailureCallback_76{ OnFailureCallback_76, this }; chip::Callback::Callback mOnSuccessCallback_76{ OnSuccessCallback_76, this }; - chip::Callback::Callback mOnFailureCallback_77{ OnFailureCallback_77, this }; - chip::Callback::Callback mOnSuccessCallback_77{ OnSuccessCallback_77, this }; chip::Callback::Callback mOnFailureCallback_78{ OnFailureCallback_78, this }; chip::Callback::Callback mOnSuccessCallback_78{ OnSuccessCallback_78, this }; chip::Callback::Callback mOnFailureCallback_79{ OnFailureCallback_79, this }; chip::Callback::Callback mOnSuccessCallback_79{ OnSuccessCallback_79, this }; - chip::Callback::Callback mOnFailureCallback_80{ OnFailureCallback_80, this }; - chip::Callback::Callback mOnSuccessCallback_80{ OnSuccessCallback_80, this }; chip::Callback::Callback mOnFailureCallback_81{ OnFailureCallback_81, this }; chip::Callback::Callback mOnSuccessCallback_81{ OnSuccessCallback_81, this }; chip::Callback::Callback mOnFailureCallback_82{ OnFailureCallback_82, this }; @@ -1510,14 +1427,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_83{ OnFailureCallback_83, this }; chip::Callback::Callback mOnSuccessCallback_83{ OnSuccessCallback_83, this }; - chip::Callback::Callback mOnFailureCallback_84{ OnFailureCallback_84, this }; - chip::Callback::Callback mOnSuccessCallback_84{ OnSuccessCallback_84, this }; chip::Callback::Callback mOnFailureCallback_85{ OnFailureCallback_85, this }; chip::Callback::Callback mOnSuccessCallback_85{ OnSuccessCallback_85, this }; chip::Callback::Callback mOnFailureCallback_86{ OnFailureCallback_86, this }; chip::Callback::Callback mOnSuccessCallback_86{ OnSuccessCallback_86, this }; - chip::Callback::Callback mOnFailureCallback_87{ OnFailureCallback_87, this }; - chip::Callback::Callback mOnSuccessCallback_87{ OnSuccessCallback_87, this }; chip::Callback::Callback mOnFailureCallback_88{ OnFailureCallback_88, this }; chip::Callback::Callback mOnSuccessCallback_88{ OnSuccessCallback_88, this }; chip::Callback::Callback mOnFailureCallback_89{ OnFailureCallback_89, this }; @@ -1525,14 +1438,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_90{ OnFailureCallback_90, this }; chip::Callback::Callback mOnSuccessCallback_90{ OnSuccessCallback_90, this }; - chip::Callback::Callback mOnFailureCallback_91{ OnFailureCallback_91, this }; - chip::Callback::Callback mOnSuccessCallback_91{ OnSuccessCallback_91, this }; chip::Callback::Callback mOnFailureCallback_92{ OnFailureCallback_92, this }; chip::Callback::Callback mOnSuccessCallback_92{ OnSuccessCallback_92, this }; chip::Callback::Callback mOnFailureCallback_93{ OnFailureCallback_93, this }; chip::Callback::Callback mOnSuccessCallback_93{ OnSuccessCallback_93, this }; - chip::Callback::Callback mOnFailureCallback_94{ OnFailureCallback_94, this }; - chip::Callback::Callback mOnSuccessCallback_94{ OnSuccessCallback_94, this }; chip::Callback::Callback mOnFailureCallback_95{ OnFailureCallback_95, this }; chip::Callback::Callback mOnSuccessCallback_95{ OnSuccessCallback_95, this }; chip::Callback::Callback mOnFailureCallback_96{ OnFailureCallback_96, this }; @@ -1540,14 +1449,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_97{ OnFailureCallback_97, this }; chip::Callback::Callback mOnSuccessCallback_97{ OnSuccessCallback_97, this }; - chip::Callback::Callback mOnFailureCallback_98{ OnFailureCallback_98, this }; - chip::Callback::Callback mOnSuccessCallback_98{ OnSuccessCallback_98, this }; chip::Callback::Callback mOnFailureCallback_99{ OnFailureCallback_99, this }; chip::Callback::Callback mOnSuccessCallback_99{ OnSuccessCallback_99, this }; chip::Callback::Callback mOnFailureCallback_100{ OnFailureCallback_100, this }; chip::Callback::Callback mOnSuccessCallback_100{ OnSuccessCallback_100, this }; - chip::Callback::Callback mOnFailureCallback_101{ OnFailureCallback_101, this }; - chip::Callback::Callback mOnSuccessCallback_101{ OnSuccessCallback_101, this }; chip::Callback::Callback mOnFailureCallback_102{ OnFailureCallback_102, this }; chip::Callback::Callback mOnSuccessCallback_102{ OnSuccessCallback_102, this }; chip::Callback::Callback mOnFailureCallback_103{ OnFailureCallback_103, this }; @@ -1555,14 +1460,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_104{ OnFailureCallback_104, this }; chip::Callback::Callback mOnSuccessCallback_104{ OnSuccessCallback_104, this }; - chip::Callback::Callback mOnFailureCallback_105{ OnFailureCallback_105, this }; - chip::Callback::Callback mOnSuccessCallback_105{ OnSuccessCallback_105, this }; chip::Callback::Callback mOnFailureCallback_106{ OnFailureCallback_106, this }; chip::Callback::Callback mOnSuccessCallback_106{ OnSuccessCallback_106, this }; chip::Callback::Callback mOnFailureCallback_107{ OnFailureCallback_107, this }; chip::Callback::Callback mOnSuccessCallback_107{ OnSuccessCallback_107, this }; - chip::Callback::Callback mOnFailureCallback_108{ OnFailureCallback_108, this }; - chip::Callback::Callback mOnSuccessCallback_108{ OnSuccessCallback_108, this }; chip::Callback::Callback mOnFailureCallback_109{ OnFailureCallback_109, this }; chip::Callback::Callback mOnSuccessCallback_109{ OnSuccessCallback_109, this }; chip::Callback::Callback mOnFailureCallback_110{ OnFailureCallback_110, this }; @@ -1570,14 +1471,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_111{ OnFailureCallback_111, this }; chip::Callback::Callback mOnSuccessCallback_111{ OnSuccessCallback_111, this }; - chip::Callback::Callback mOnFailureCallback_112{ OnFailureCallback_112, this }; - chip::Callback::Callback mOnSuccessCallback_112{ OnSuccessCallback_112, this }; chip::Callback::Callback mOnFailureCallback_113{ OnFailureCallback_113, this }; chip::Callback::Callback mOnSuccessCallback_113{ OnSuccessCallback_113, this }; chip::Callback::Callback mOnFailureCallback_114{ OnFailureCallback_114, this }; chip::Callback::Callback mOnSuccessCallback_114{ OnSuccessCallback_114, this }; - chip::Callback::Callback mOnFailureCallback_115{ OnFailureCallback_115, this }; - chip::Callback::Callback mOnSuccessCallback_115{ OnSuccessCallback_115, this }; chip::Callback::Callback mOnFailureCallback_116{ OnFailureCallback_116, this }; chip::Callback::Callback mOnSuccessCallback_116{ OnSuccessCallback_116, this }; chip::Callback::Callback mOnFailureCallback_117{ OnFailureCallback_117, this }; @@ -1585,26 +1482,18 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_118{ OnFailureCallback_118, this }; chip::Callback::Callback mOnSuccessCallback_118{ OnSuccessCallback_118, this }; - chip::Callback::Callback mOnFailureCallback_119{ OnFailureCallback_119, this }; - chip::Callback::Callback mOnSuccessCallback_119{ OnSuccessCallback_119, this }; chip::Callback::Callback mOnFailureCallback_120{ OnFailureCallback_120, this }; chip::Callback::Callback mOnSuccessCallback_120{ OnSuccessCallback_120, this }; chip::Callback::Callback mOnFailureCallback_121{ OnFailureCallback_121, this }; chip::Callback::Callback mOnSuccessCallback_121{ OnSuccessCallback_121, this }; - chip::Callback::Callback mOnFailureCallback_122{ OnFailureCallback_122, this }; - chip::Callback::Callback mOnSuccessCallback_122{ OnSuccessCallback_122, this }; chip::Callback::Callback mOnFailureCallback_123{ OnFailureCallback_123, this }; chip::Callback::Callback mOnSuccessCallback_123{ OnSuccessCallback_123, this }; chip::Callback::Callback mOnFailureCallback_124{ OnFailureCallback_124, this }; chip::Callback::Callback mOnSuccessCallback_124{ OnSuccessCallback_124, this }; - chip::Callback::Callback mOnFailureCallback_125{ OnFailureCallback_125, this }; - chip::Callback::Callback mOnSuccessCallback_125{ OnSuccessCallback_125, this }; chip::Callback::Callback mOnFailureCallback_126{ OnFailureCallback_126, this }; chip::Callback::Callback mOnSuccessCallback_126{ OnSuccessCallback_126, this }; chip::Callback::Callback mOnFailureCallback_127{ OnFailureCallback_127, this }; chip::Callback::Callback mOnSuccessCallback_127{ OnSuccessCallback_127, this }; - chip::Callback::Callback mOnFailureCallback_128{ OnFailureCallback_128, this }; - chip::Callback::Callback mOnSuccessCallback_128{ OnSuccessCallback_128, this }; chip::Callback::Callback mOnFailureCallback_129{ OnFailureCallback_129, this }; chip::Callback::Callback mOnSuccessCallback_129{ OnSuccessCallback_129, this }; chip::Callback::Callback mOnFailureCallback_130{ OnFailureCallback_130, this }; @@ -1612,14 +1501,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_131{ OnFailureCallback_131, this }; chip::Callback::Callback mOnSuccessCallback_131{ OnSuccessCallback_131, this }; - chip::Callback::Callback mOnFailureCallback_132{ OnFailureCallback_132, this }; - chip::Callback::Callback mOnSuccessCallback_132{ OnSuccessCallback_132, this }; chip::Callback::Callback mOnFailureCallback_133{ OnFailureCallback_133, this }; chip::Callback::Callback mOnSuccessCallback_133{ OnSuccessCallback_133, this }; chip::Callback::Callback mOnFailureCallback_134{ OnFailureCallback_134, this }; chip::Callback::Callback mOnSuccessCallback_134{ OnSuccessCallback_134, this }; - chip::Callback::Callback mOnFailureCallback_135{ OnFailureCallback_135, this }; - chip::Callback::Callback mOnSuccessCallback_135{ OnSuccessCallback_135, this }; chip::Callback::Callback mOnFailureCallback_136{ OnFailureCallback_136, this }; chip::Callback::Callback mOnSuccessCallback_136{ OnSuccessCallback_136, this }; chip::Callback::Callback mOnFailureCallback_137{ OnFailureCallback_137, this }; @@ -1627,14 +1512,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_138{ OnFailureCallback_138, this }; chip::Callback::Callback mOnSuccessCallback_138{ OnSuccessCallback_138, this }; - chip::Callback::Callback mOnFailureCallback_139{ OnFailureCallback_139, this }; - chip::Callback::Callback mOnSuccessCallback_139{ OnSuccessCallback_139, this }; chip::Callback::Callback mOnFailureCallback_140{ OnFailureCallback_140, this }; chip::Callback::Callback mOnSuccessCallback_140{ OnSuccessCallback_140, this }; chip::Callback::Callback mOnFailureCallback_141{ OnFailureCallback_141, this }; chip::Callback::Callback mOnSuccessCallback_141{ OnSuccessCallback_141, this }; - chip::Callback::Callback mOnFailureCallback_142{ OnFailureCallback_142, this }; - chip::Callback::Callback mOnSuccessCallback_142{ OnSuccessCallback_142, this }; chip::Callback::Callback mOnFailureCallback_143{ OnFailureCallback_143, this }; chip::Callback::Callback mOnSuccessCallback_143{ OnSuccessCallback_143, this }; chip::Callback::Callback mOnFailureCallback_144{ OnFailureCallback_144, this }; @@ -1661,15 +1542,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(currentHue); } - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t currentHue) - { - (static_cast(context))->OnSuccessResponse_2(currentHue); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, uint8_t status) { @@ -1701,15 +1579,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(currentSaturation); } - static void OnFailureCallback_6(void * context, uint8_t status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint8_t currentSaturation) - { - (static_cast(context))->OnSuccessResponse_6(currentSaturation); - } + static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } static void OnFailureCallback_7(void * context, uint8_t status) { @@ -1741,15 +1616,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(currentX); } - static void OnFailureCallback_10(void * context, uint8_t status) + static void OnFailureCallback_10(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, uint16_t currentX) - { - (static_cast(context))->OnSuccessResponse_10(currentX); - } + static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } static void OnFailureCallback_11(void * context, uint8_t status) { @@ -1781,15 +1653,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_13(currentY); } - static void OnFailureCallback_14(void * context, uint8_t status) + static void OnFailureCallback_14(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(chip::to_underlying(status)); } - static void OnSuccessCallback_14(void * context, uint16_t currentY) - { - (static_cast(context))->OnSuccessResponse_14(currentY); - } + static void OnSuccessCallback_14(void * context) { (static_cast(context))->OnSuccessResponse_14(); } static void OnFailureCallback_15(void * context, uint8_t status) { @@ -1841,15 +1710,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_19(colorControlOptions); } - static void OnFailureCallback_20(void * context, uint8_t status) + static void OnFailureCallback_20(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(chip::to_underlying(status)); } - static void OnSuccessCallback_20(void * context, uint8_t colorControlOptions) - { - (static_cast(context))->OnSuccessResponse_20(colorControlOptions); - } + static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } static void OnFailureCallback_21(void * context, uint8_t status) { @@ -1881,15 +1747,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_23(enhancedCurrentHue); } - static void OnFailureCallback_24(void * context, uint8_t status) + static void OnFailureCallback_24(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_24(status); + (static_cast(context))->OnFailureResponse_24(chip::to_underlying(status)); } - static void OnSuccessCallback_24(void * context, uint16_t enhancedCurrentHue) - { - (static_cast(context))->OnSuccessResponse_24(enhancedCurrentHue); - } + static void OnSuccessCallback_24(void * context) { (static_cast(context))->OnSuccessResponse_24(); } static void OnFailureCallback_25(void * context, uint8_t status) { @@ -1931,15 +1794,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_28(colorLoopActive); } - static void OnFailureCallback_29(void * context, uint8_t status) + static void OnFailureCallback_29(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_29(status); + (static_cast(context))->OnFailureResponse_29(chip::to_underlying(status)); } - static void OnSuccessCallback_29(void * context, uint8_t colorLoopActive) - { - (static_cast(context))->OnSuccessResponse_29(colorLoopActive); - } + static void OnSuccessCallback_29(void * context) { (static_cast(context))->OnSuccessResponse_29(); } static void OnFailureCallback_30(void * context, uint8_t status) { @@ -1971,15 +1831,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_32(colorLoopDirection); } - static void OnFailureCallback_33(void * context, uint8_t status) + static void OnFailureCallback_33(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_33(chip::to_underlying(status)); } - static void OnSuccessCallback_33(void * context, uint8_t colorLoopDirection) - { - (static_cast(context))->OnSuccessResponse_33(colorLoopDirection); - } + static void OnSuccessCallback_33(void * context) { (static_cast(context))->OnSuccessResponse_33(); } static void OnFailureCallback_34(void * context, uint8_t status) { @@ -2011,15 +1868,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_36(colorLoopTime); } - static void OnFailureCallback_37(void * context, uint8_t status) + static void OnFailureCallback_37(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_37(status); + (static_cast(context))->OnFailureResponse_37(chip::to_underlying(status)); } - static void OnSuccessCallback_37(void * context, uint16_t colorLoopTime) - { - (static_cast(context))->OnSuccessResponse_37(colorLoopTime); - } + static void OnSuccessCallback_37(void * context) { (static_cast(context))->OnSuccessResponse_37(); } static void OnFailureCallback_38(void * context, uint8_t status) { @@ -2051,15 +1905,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_40(colorLoopStartEnhancedHue); } - static void OnFailureCallback_41(void * context, uint8_t status) + static void OnFailureCallback_41(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_41(status); + (static_cast(context))->OnFailureResponse_41(chip::to_underlying(status)); } - static void OnSuccessCallback_41(void * context, uint16_t colorLoopStartEnhancedHue) - { - (static_cast(context))->OnSuccessResponse_41(colorLoopStartEnhancedHue); - } + static void OnSuccessCallback_41(void * context) { (static_cast(context))->OnSuccessResponse_41(); } static void OnFailureCallback_42(void * context, uint8_t status) { @@ -2091,15 +1942,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_44(colorLoopStoredEnhancedHue); } - static void OnFailureCallback_45(void * context, uint8_t status) + static void OnFailureCallback_45(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_45(status); + (static_cast(context))->OnFailureResponse_45(chip::to_underlying(status)); } - static void OnSuccessCallback_45(void * context, uint16_t colorLoopStoredEnhancedHue) - { - (static_cast(context))->OnSuccessResponse_45(colorLoopStoredEnhancedHue); - } + static void OnSuccessCallback_45(void * context) { (static_cast(context))->OnSuccessResponse_45(); } static void OnFailureCallback_46(void * context, uint8_t status) { @@ -2131,15 +1979,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_48(colorCapabilities); } - static void OnFailureCallback_49(void * context, uint8_t status) + static void OnFailureCallback_49(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_49(status); + (static_cast(context))->OnFailureResponse_49(chip::to_underlying(status)); } - static void OnSuccessCallback_49(void * context, uint16_t colorCapabilities) - { - (static_cast(context))->OnSuccessResponse_49(colorCapabilities); - } + static void OnSuccessCallback_49(void * context) { (static_cast(context))->OnSuccessResponse_49(); } static void OnFailureCallback_50(void * context, uint8_t status) { @@ -2171,15 +2016,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_52(colorTempPhysicalMin); } - static void OnFailureCallback_53(void * context, uint8_t status) + static void OnFailureCallback_53(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_53(status); + (static_cast(context))->OnFailureResponse_53(chip::to_underlying(status)); } - static void OnSuccessCallback_53(void * context, uint16_t colorTempPhysicalMin) - { - (static_cast(context))->OnSuccessResponse_53(colorTempPhysicalMin); - } + static void OnSuccessCallback_53(void * context) { (static_cast(context))->OnSuccessResponse_53(); } static void OnFailureCallback_54(void * context, uint8_t status) { @@ -2211,15 +2053,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_56(colorTempPhysicalMax); } - static void OnFailureCallback_57(void * context, uint8_t status) + static void OnFailureCallback_57(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_57(status); + (static_cast(context))->OnFailureResponse_57(chip::to_underlying(status)); } - static void OnSuccessCallback_57(void * context, uint16_t colorTempPhysicalMax) - { - (static_cast(context))->OnSuccessResponse_57(colorTempPhysicalMax); - } + static void OnSuccessCallback_57(void * context) { (static_cast(context))->OnSuccessResponse_57(); } static void OnFailureCallback_58(void * context, uint8_t status) { @@ -2241,15 +2080,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_59(coupleColorTempToLevelMinMireds); } - static void OnFailureCallback_60(void * context, uint8_t status) + static void OnFailureCallback_60(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_60(status); + (static_cast(context))->OnFailureResponse_60(chip::to_underlying(status)); } - static void OnSuccessCallback_60(void * context, uint16_t coupleColorTempToLevelMinMireds) - { - (static_cast(context))->OnSuccessResponse_60(coupleColorTempToLevelMinMireds); - } + static void OnSuccessCallback_60(void * context) { (static_cast(context))->OnSuccessResponse_60(); } static void OnFailureCallback_61(void * context, uint8_t status) { @@ -2271,15 +2107,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_62(startUpColorTemperatureMireds); } - static void OnFailureCallback_63(void * context, uint8_t status) + static void OnFailureCallback_63(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_63(status); + (static_cast(context))->OnFailureResponse_63(chip::to_underlying(status)); } - static void OnSuccessCallback_63(void * context, uint16_t startUpColorTemperatureMireds) - { - (static_cast(context))->OnSuccessResponse_63(startUpColorTemperatureMireds); - } + static void OnSuccessCallback_63(void * context) { (static_cast(context))->OnSuccessResponse_63(); } static void OnFailureCallback_64(void * context, uint8_t status) { @@ -2311,15 +2144,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_66(remainingTime); } - static void OnFailureCallback_67(void * context, uint8_t status) + static void OnFailureCallback_67(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_67(status); + (static_cast(context))->OnFailureResponse_67(chip::to_underlying(status)); } - static void OnSuccessCallback_67(void * context, uint16_t remainingTime) - { - (static_cast(context))->OnSuccessResponse_67(remainingTime); - } + static void OnSuccessCallback_67(void * context) { (static_cast(context))->OnSuccessResponse_67(); } static void OnFailureCallback_68(void * context, uint8_t status) { @@ -2341,15 +2171,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_69(driftCompensation); } - static void OnFailureCallback_70(void * context, uint8_t status) + static void OnFailureCallback_70(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_70(status); + (static_cast(context))->OnFailureResponse_70(chip::to_underlying(status)); } - static void OnSuccessCallback_70(void * context, uint8_t driftCompensation) - { - (static_cast(context))->OnSuccessResponse_70(driftCompensation); - } + static void OnSuccessCallback_70(void * context) { (static_cast(context))->OnSuccessResponse_70(); } static void OnFailureCallback_71(void * context, uint8_t status) { @@ -2381,15 +2208,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_73(numberOfPrimaries); } - static void OnFailureCallback_74(void * context, uint8_t status) + static void OnFailureCallback_74(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_74(status); + (static_cast(context))->OnFailureResponse_74(chip::to_underlying(status)); } - static void OnSuccessCallback_74(void * context, uint8_t numberOfPrimaries) - { - (static_cast(context))->OnSuccessResponse_74(numberOfPrimaries); - } + static void OnSuccessCallback_74(void * context) { (static_cast(context))->OnSuccessResponse_74(); } static void OnFailureCallback_75(void * context, uint8_t status) { @@ -2411,15 +2235,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_76(primary1X); } - static void OnFailureCallback_77(void * context, uint8_t status) + static void OnFailureCallback_77(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_77(status); + (static_cast(context))->OnFailureResponse_77(chip::to_underlying(status)); } - static void OnSuccessCallback_77(void * context, uint16_t primary1X) - { - (static_cast(context))->OnSuccessResponse_77(primary1X); - } + static void OnSuccessCallback_77(void * context) { (static_cast(context))->OnSuccessResponse_77(); } static void OnFailureCallback_78(void * context, uint8_t status) { @@ -2441,15 +2262,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_79(primary1Y); } - static void OnFailureCallback_80(void * context, uint8_t status) + static void OnFailureCallback_80(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_80(status); + (static_cast(context))->OnFailureResponse_80(chip::to_underlying(status)); } - static void OnSuccessCallback_80(void * context, uint16_t primary1Y) - { - (static_cast(context))->OnSuccessResponse_80(primary1Y); - } + static void OnSuccessCallback_80(void * context) { (static_cast(context))->OnSuccessResponse_80(); } static void OnFailureCallback_81(void * context, uint8_t status) { @@ -2481,15 +2299,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_83(primary2X); } - static void OnFailureCallback_84(void * context, uint8_t status) + static void OnFailureCallback_84(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_84(status); + (static_cast(context))->OnFailureResponse_84(chip::to_underlying(status)); } - static void OnSuccessCallback_84(void * context, uint16_t primary2X) - { - (static_cast(context))->OnSuccessResponse_84(primary2X); - } + static void OnSuccessCallback_84(void * context) { (static_cast(context))->OnSuccessResponse_84(); } static void OnFailureCallback_85(void * context, uint8_t status) { @@ -2511,15 +2326,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_86(primary2Y); } - static void OnFailureCallback_87(void * context, uint8_t status) + static void OnFailureCallback_87(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_87(status); + (static_cast(context))->OnFailureResponse_87(chip::to_underlying(status)); } - static void OnSuccessCallback_87(void * context, uint16_t primary2Y) - { - (static_cast(context))->OnSuccessResponse_87(primary2Y); - } + static void OnSuccessCallback_87(void * context) { (static_cast(context))->OnSuccessResponse_87(); } static void OnFailureCallback_88(void * context, uint8_t status) { @@ -2551,15 +2363,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_90(primary3X); } - static void OnFailureCallback_91(void * context, uint8_t status) + static void OnFailureCallback_91(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_91(status); + (static_cast(context))->OnFailureResponse_91(chip::to_underlying(status)); } - static void OnSuccessCallback_91(void * context, uint16_t primary3X) - { - (static_cast(context))->OnSuccessResponse_91(primary3X); - } + static void OnSuccessCallback_91(void * context) { (static_cast(context))->OnSuccessResponse_91(); } static void OnFailureCallback_92(void * context, uint8_t status) { @@ -2581,15 +2390,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_93(primary3Y); } - static void OnFailureCallback_94(void * context, uint8_t status) + static void OnFailureCallback_94(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_94(status); + (static_cast(context))->OnFailureResponse_94(chip::to_underlying(status)); } - static void OnSuccessCallback_94(void * context, uint16_t primary3Y) - { - (static_cast(context))->OnSuccessResponse_94(primary3Y); - } + static void OnSuccessCallback_94(void * context) { (static_cast(context))->OnSuccessResponse_94(); } static void OnFailureCallback_95(void * context, uint8_t status) { @@ -2621,15 +2427,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_97(primary4X); } - static void OnFailureCallback_98(void * context, uint8_t status) + static void OnFailureCallback_98(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_98(status); + (static_cast(context))->OnFailureResponse_98(chip::to_underlying(status)); } - static void OnSuccessCallback_98(void * context, uint16_t primary4X) - { - (static_cast(context))->OnSuccessResponse_98(primary4X); - } + static void OnSuccessCallback_98(void * context) { (static_cast(context))->OnSuccessResponse_98(); } static void OnFailureCallback_99(void * context, uint8_t status) { @@ -2651,15 +2454,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_100(primary4Y); } - static void OnFailureCallback_101(void * context, uint8_t status) + static void OnFailureCallback_101(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_101(status); + (static_cast(context))->OnFailureResponse_101(chip::to_underlying(status)); } - static void OnSuccessCallback_101(void * context, uint16_t primary4Y) - { - (static_cast(context))->OnSuccessResponse_101(primary4Y); - } + static void OnSuccessCallback_101(void * context) { (static_cast(context))->OnSuccessResponse_101(); } static void OnFailureCallback_102(void * context, uint8_t status) { @@ -2691,15 +2491,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_104(primary5X); } - static void OnFailureCallback_105(void * context, uint8_t status) + static void OnFailureCallback_105(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_105(status); + (static_cast(context))->OnFailureResponse_105(chip::to_underlying(status)); } - static void OnSuccessCallback_105(void * context, uint16_t primary5X) - { - (static_cast(context))->OnSuccessResponse_105(primary5X); - } + static void OnSuccessCallback_105(void * context) { (static_cast(context))->OnSuccessResponse_105(); } static void OnFailureCallback_106(void * context, uint8_t status) { @@ -2721,15 +2518,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_107(primary5Y); } - static void OnFailureCallback_108(void * context, uint8_t status) + static void OnFailureCallback_108(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_108(status); + (static_cast(context))->OnFailureResponse_108(chip::to_underlying(status)); } - static void OnSuccessCallback_108(void * context, uint16_t primary5Y) - { - (static_cast(context))->OnSuccessResponse_108(primary5Y); - } + static void OnSuccessCallback_108(void * context) { (static_cast(context))->OnSuccessResponse_108(); } static void OnFailureCallback_109(void * context, uint8_t status) { @@ -2761,15 +2555,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_111(primary6X); } - static void OnFailureCallback_112(void * context, uint8_t status) + static void OnFailureCallback_112(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_112(status); + (static_cast(context))->OnFailureResponse_112(chip::to_underlying(status)); } - static void OnSuccessCallback_112(void * context, uint16_t primary6X) - { - (static_cast(context))->OnSuccessResponse_112(primary6X); - } + static void OnSuccessCallback_112(void * context) { (static_cast(context))->OnSuccessResponse_112(); } static void OnFailureCallback_113(void * context, uint8_t status) { @@ -2791,15 +2582,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_114(primary6Y); } - static void OnFailureCallback_115(void * context, uint8_t status) + static void OnFailureCallback_115(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_115(status); + (static_cast(context))->OnFailureResponse_115(chip::to_underlying(status)); } - static void OnSuccessCallback_115(void * context, uint16_t primary6Y) - { - (static_cast(context))->OnSuccessResponse_115(primary6Y); - } + static void OnSuccessCallback_115(void * context) { (static_cast(context))->OnSuccessResponse_115(); } static void OnFailureCallback_116(void * context, uint8_t status) { @@ -2831,15 +2619,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_118(whitePointX); } - static void OnFailureCallback_119(void * context, uint8_t status) + static void OnFailureCallback_119(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_119(status); + (static_cast(context))->OnFailureResponse_119(chip::to_underlying(status)); } - static void OnSuccessCallback_119(void * context, uint16_t whitePointX) - { - (static_cast(context))->OnSuccessResponse_119(whitePointX); - } + static void OnSuccessCallback_119(void * context) { (static_cast(context))->OnSuccessResponse_119(); } static void OnFailureCallback_120(void * context, uint8_t status) { @@ -2861,15 +2646,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_121(whitePointY); } - static void OnFailureCallback_122(void * context, uint8_t status) + static void OnFailureCallback_122(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_122(status); + (static_cast(context))->OnFailureResponse_122(chip::to_underlying(status)); } - static void OnSuccessCallback_122(void * context, uint16_t whitePointY) - { - (static_cast(context))->OnSuccessResponse_122(whitePointY); - } + static void OnSuccessCallback_122(void * context) { (static_cast(context))->OnSuccessResponse_122(); } static void OnFailureCallback_123(void * context, uint8_t status) { @@ -2891,15 +2673,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_124(colorPointRX); } - static void OnFailureCallback_125(void * context, uint8_t status) + static void OnFailureCallback_125(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_125(status); + (static_cast(context))->OnFailureResponse_125(chip::to_underlying(status)); } - static void OnSuccessCallback_125(void * context, uint16_t colorPointRX) - { - (static_cast(context))->OnSuccessResponse_125(colorPointRX); - } + static void OnSuccessCallback_125(void * context) { (static_cast(context))->OnSuccessResponse_125(); } static void OnFailureCallback_126(void * context, uint8_t status) { @@ -2921,15 +2700,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_127(colorPointRY); } - static void OnFailureCallback_128(void * context, uint8_t status) + static void OnFailureCallback_128(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_128(status); + (static_cast(context))->OnFailureResponse_128(chip::to_underlying(status)); } - static void OnSuccessCallback_128(void * context, uint16_t colorPointRY) - { - (static_cast(context))->OnSuccessResponse_128(colorPointRY); - } + static void OnSuccessCallback_128(void * context) { (static_cast(context))->OnSuccessResponse_128(); } static void OnFailureCallback_129(void * context, uint8_t status) { @@ -2961,15 +2737,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_131(colorPointGX); } - static void OnFailureCallback_132(void * context, uint8_t status) + static void OnFailureCallback_132(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_132(status); + (static_cast(context))->OnFailureResponse_132(chip::to_underlying(status)); } - static void OnSuccessCallback_132(void * context, uint16_t colorPointGX) - { - (static_cast(context))->OnSuccessResponse_132(colorPointGX); - } + static void OnSuccessCallback_132(void * context) { (static_cast(context))->OnSuccessResponse_132(); } static void OnFailureCallback_133(void * context, uint8_t status) { @@ -2991,15 +2764,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_134(colorPointGY); } - static void OnFailureCallback_135(void * context, uint8_t status) + static void OnFailureCallback_135(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_135(status); + (static_cast(context))->OnFailureResponse_135(chip::to_underlying(status)); } - static void OnSuccessCallback_135(void * context, uint16_t colorPointGY) - { - (static_cast(context))->OnSuccessResponse_135(colorPointGY); - } + static void OnSuccessCallback_135(void * context) { (static_cast(context))->OnSuccessResponse_135(); } static void OnFailureCallback_136(void * context, uint8_t status) { @@ -3031,15 +2801,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_138(colorPointBX); } - static void OnFailureCallback_139(void * context, uint8_t status) + static void OnFailureCallback_139(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_139(status); + (static_cast(context))->OnFailureResponse_139(chip::to_underlying(status)); } - static void OnSuccessCallback_139(void * context, uint16_t colorPointBX) - { - (static_cast(context))->OnSuccessResponse_139(colorPointBX); - } + static void OnSuccessCallback_139(void * context) { (static_cast(context))->OnSuccessResponse_139(); } static void OnFailureCallback_140(void * context, uint8_t status) { @@ -3061,15 +2828,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_141(colorPointBY); } - static void OnFailureCallback_142(void * context, uint8_t status) + static void OnFailureCallback_142(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_142(status); + (static_cast(context))->OnFailureResponse_142(chip::to_underlying(status)); } - static void OnSuccessCallback_142(void * context, uint16_t colorPointBY) - { - (static_cast(context))->OnSuccessResponse_142(colorPointBY); - } + static void OnSuccessCallback_142(void * context) { (static_cast(context))->OnSuccessResponse_142(); } static void OnFailureCallback_143(void * context, uint8_t status) { @@ -3135,12 +2899,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t currentHueArgument = 0; - return cluster.WriteAttributeCurrentHue(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), currentHueArgument); + return cluster.WriteAttribute( + currentHueArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } void OnFailureResponse_2(uint8_t status) { NextTest(); } - void OnSuccessResponse_2(uint8_t currentHue) { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeCurrentHue_3() { @@ -3198,13 +2963,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t currentSaturationArgument = 0; - return cluster.WriteAttributeCurrentSaturation(mOnSuccessCallback_6.Cancel(), mOnFailureCallback_6.Cancel(), - currentSaturationArgument); + return cluster.WriteAttribute( + currentSaturationArgument, this, OnSuccessCallback_6, OnFailureCallback_6); } void OnFailureResponse_6(uint8_t status) { NextTest(); } - void OnSuccessResponse_6(uint8_t currentSaturation) { ThrowSuccessResponse(); } + void OnSuccessResponse_6() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeCurrentSaturation_7() { @@ -3262,12 +3027,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t currentXArgument = 24939U; - return cluster.WriteAttributeCurrentX(mOnSuccessCallback_10.Cancel(), mOnFailureCallback_10.Cancel(), currentXArgument); + return cluster.WriteAttribute( + currentXArgument, this, OnSuccessCallback_10, OnFailureCallback_10); } void OnFailureResponse_10(uint8_t status) { NextTest(); } - void OnSuccessResponse_10(uint16_t currentX) { ThrowSuccessResponse(); } + void OnSuccessResponse_10() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeCurrentX_11() { @@ -3325,12 +3091,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t currentYArgument = 24701U; - return cluster.WriteAttributeCurrentY(mOnSuccessCallback_14.Cancel(), mOnFailureCallback_14.Cancel(), currentYArgument); + return cluster.WriteAttribute( + currentYArgument, this, OnSuccessCallback_14, OnFailureCallback_14); } void OnFailureResponse_14(uint8_t status) { NextTest(); } - void OnSuccessResponse_14(uint16_t currentY) { ThrowSuccessResponse(); } + void OnSuccessResponse_14() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeCurrentY_15() { @@ -3421,13 +3188,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t colorControlOptionsArgument = 0; - return cluster.WriteAttributeColorControlOptions(mOnSuccessCallback_20.Cancel(), mOnFailureCallback_20.Cancel(), - colorControlOptionsArgument); + return cluster.WriteAttribute( + colorControlOptionsArgument, this, OnSuccessCallback_20, OnFailureCallback_20); } void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_20(uint8_t colorControlOptions) { NextTest(); } + void OnSuccessResponse_20() { NextTest(); } CHIP_ERROR TestReadsBackMandatoryAttributeOptions_21() { @@ -3484,13 +3251,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t enhancedCurrentHueArgument = 0U; - return cluster.WriteAttributeEnhancedCurrentHue(mOnSuccessCallback_24.Cancel(), mOnFailureCallback_24.Cancel(), - enhancedCurrentHueArgument); + return cluster.WriteAttribute( + enhancedCurrentHueArgument, this, OnSuccessCallback_24, OnFailureCallback_24); } void OnFailureResponse_24(uint8_t status) { NextTest(); } - void OnSuccessResponse_24(uint16_t enhancedCurrentHue) { ThrowSuccessResponse(); } + void OnSuccessResponse_24() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeEnhancedCurrentHue_25() { @@ -3563,13 +3330,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t colorLoopActiveArgument = 0; - return cluster.WriteAttributeColorLoopActive(mOnSuccessCallback_29.Cancel(), mOnFailureCallback_29.Cancel(), - colorLoopActiveArgument); + return cluster.WriteAttribute( + colorLoopActiveArgument, this, OnSuccessCallback_29, OnFailureCallback_29); } void OnFailureResponse_29(uint8_t status) { NextTest(); } - void OnSuccessResponse_29(uint8_t colorLoopActive) { ThrowSuccessResponse(); } + void OnSuccessResponse_29() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopActive_30() { @@ -3626,13 +3393,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t colorLoopDirectionArgument = 0; - return cluster.WriteAttributeColorLoopDirection(mOnSuccessCallback_33.Cancel(), mOnFailureCallback_33.Cancel(), - colorLoopDirectionArgument); + return cluster.WriteAttribute( + colorLoopDirectionArgument, this, OnSuccessCallback_33, OnFailureCallback_33); } void OnFailureResponse_33(uint8_t status) { NextTest(); } - void OnSuccessResponse_33(uint8_t colorLoopDirection) { ThrowSuccessResponse(); } + void OnSuccessResponse_33() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopDirection_34() { @@ -3689,13 +3456,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorLoopTimeArgument = 25U; - return cluster.WriteAttributeColorLoopTime(mOnSuccessCallback_37.Cancel(), mOnFailureCallback_37.Cancel(), - colorLoopTimeArgument); + return cluster.WriteAttribute( + colorLoopTimeArgument, this, OnSuccessCallback_37, OnFailureCallback_37); } void OnFailureResponse_37(uint8_t status) { NextTest(); } - void OnSuccessResponse_37(uint16_t colorLoopTime) { ThrowSuccessResponse(); } + void OnSuccessResponse_37() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopTime_38() { @@ -3752,13 +3519,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorLoopStartEnhancedHueArgument = 8960U; - return cluster.WriteAttributeColorLoopStartEnhancedHue(mOnSuccessCallback_41.Cancel(), mOnFailureCallback_41.Cancel(), - colorLoopStartEnhancedHueArgument); + return cluster.WriteAttribute( + colorLoopStartEnhancedHueArgument, this, OnSuccessCallback_41, OnFailureCallback_41); } void OnFailureResponse_41(uint8_t status) { NextTest(); } - void OnSuccessResponse_41(uint16_t colorLoopStartEnhancedHue) { ThrowSuccessResponse(); } + void OnSuccessResponse_41() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopStartEnhancedHue_42() { @@ -3815,13 +3582,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorLoopStoredEnhancedHueArgument = 0U; - return cluster.WriteAttributeColorLoopStoredEnhancedHue(mOnSuccessCallback_45.Cancel(), mOnFailureCallback_45.Cancel(), - colorLoopStoredEnhancedHueArgument); + return cluster.WriteAttribute( + colorLoopStoredEnhancedHueArgument, this, OnSuccessCallback_45, OnFailureCallback_45); } void OnFailureResponse_45(uint8_t status) { NextTest(); } - void OnSuccessResponse_45(uint16_t colorLoopStoredEnhancedHue) { ThrowSuccessResponse(); } + void OnSuccessResponse_45() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopStoredEnhancedHue_46() { @@ -3879,13 +3646,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorCapabilitiesArgument = 0U; - return cluster.WriteAttributeColorCapabilities(mOnSuccessCallback_49.Cancel(), mOnFailureCallback_49.Cancel(), - colorCapabilitiesArgument); + return cluster.WriteAttribute( + colorCapabilitiesArgument, this, OnSuccessCallback_49, OnFailureCallback_49); } void OnFailureResponse_49(uint8_t status) { NextTest(); } - void OnSuccessResponse_49(uint16_t colorCapabilities) { ThrowSuccessResponse(); } + void OnSuccessResponse_49() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorCapabilities_50() { @@ -3943,13 +3710,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorTempPhysicalMinArgument = 0U; - return cluster.WriteAttributeColorTempPhysicalMin(mOnSuccessCallback_53.Cancel(), mOnFailureCallback_53.Cancel(), - colorTempPhysicalMinArgument); + return cluster.WriteAttribute( + colorTempPhysicalMinArgument, this, OnSuccessCallback_53, OnFailureCallback_53); } void OnFailureResponse_53(uint8_t status) { NextTest(); } - void OnSuccessResponse_53(uint16_t colorTempPhysicalMin) { ThrowSuccessResponse(); } + void OnSuccessResponse_53() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorTempPhysicalMinMireds_54() { @@ -4007,13 +3774,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorTempPhysicalMaxArgument = 65279U; - return cluster.WriteAttributeColorTempPhysicalMax(mOnSuccessCallback_57.Cancel(), mOnFailureCallback_57.Cancel(), - colorTempPhysicalMaxArgument); + return cluster.WriteAttribute( + colorTempPhysicalMaxArgument, this, OnSuccessCallback_57, OnFailureCallback_57); } void OnFailureResponse_57(uint8_t status) { NextTest(); } - void OnSuccessResponse_57(uint16_t colorTempPhysicalMax) { ThrowSuccessResponse(); } + void OnSuccessResponse_57() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorTempPhysicalMaxMireds_58() { @@ -4054,13 +3821,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t coupleColorTempToLevelMinMiredsArgument = 0U; - return cluster.WriteAttributeCoupleColorTempToLevelMinMireds(mOnSuccessCallback_60.Cancel(), mOnFailureCallback_60.Cancel(), - coupleColorTempToLevelMinMiredsArgument); + return cluster.WriteAttribute( + coupleColorTempToLevelMinMiredsArgument, this, OnSuccessCallback_60, OnFailureCallback_60); } void OnFailureResponse_60(uint8_t status) { NextTest(); } - void OnSuccessResponse_60(uint16_t coupleColorTempToLevelMinMireds) { ThrowSuccessResponse(); } + void OnSuccessResponse_60() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackOptionalAttributeCoupleColorTempToLevelMinMireds_61() { @@ -4102,13 +3869,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t startUpColorTemperatureMiredsArgument = 0U; - return cluster.WriteAttributeStartUpColorTemperatureMireds(mOnSuccessCallback_63.Cancel(), mOnFailureCallback_63.Cancel(), - startUpColorTemperatureMiredsArgument); + return cluster.WriteAttribute( + startUpColorTemperatureMiredsArgument, this, OnSuccessCallback_63, OnFailureCallback_63); } void OnFailureResponse_63(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_63(uint16_t startUpColorTemperatureMireds) { NextTest(); } + void OnSuccessResponse_63() { NextTest(); } CHIP_ERROR TestReadsBackOptionalAttributeStartUpColorTemperatureMireds_64() { @@ -4166,13 +3933,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t remainingTimeArgument = 0U; - return cluster.WriteAttributeRemainingTime(mOnSuccessCallback_67.Cancel(), mOnFailureCallback_67.Cancel(), - remainingTimeArgument); + return cluster.WriteAttribute( + remainingTimeArgument, this, OnSuccessCallback_67, OnFailureCallback_67); } void OnFailureResponse_67(uint8_t status) { NextTest(); } - void OnSuccessResponse_67(uint16_t remainingTime) { ThrowSuccessResponse(); } + void OnSuccessResponse_67() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackOptionalAttributeRemainingTime_68() { @@ -4214,13 +3981,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t driftCompensationArgument = static_cast(0); - return cluster.WriteAttributeDriftCompensation(mOnSuccessCallback_70.Cancel(), mOnFailureCallback_70.Cancel(), - driftCompensationArgument); + return cluster.WriteAttribute( + driftCompensationArgument, this, OnSuccessCallback_70, OnFailureCallback_70); } void OnFailureResponse_70(uint8_t status) { NextTest(); } - void OnSuccessResponse_70(uint8_t driftCompensation) { ThrowSuccessResponse(); } + void OnSuccessResponse_70() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackOptionalAttributeDriftCompensation_71() { @@ -4279,13 +4046,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t numberOfPrimariesArgument = 0; - return cluster.WriteAttributeNumberOfPrimaries(mOnSuccessCallback_74.Cancel(), mOnFailureCallback_74.Cancel(), - numberOfPrimariesArgument); + return cluster.WriteAttribute( + numberOfPrimariesArgument, this, OnSuccessCallback_74, OnFailureCallback_74); } void OnFailureResponse_74(uint8_t status) { NextTest(); } - void OnSuccessResponse_74(uint8_t numberOfPrimaries) { ThrowSuccessResponse(); } + void OnSuccessResponse_74() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributeNumberOfPrimaries_75() { @@ -4327,12 +4094,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary1XArgument = 0U; - return cluster.WriteAttributePrimary1X(mOnSuccessCallback_77.Cancel(), mOnFailureCallback_77.Cancel(), primary1XArgument); + return cluster.WriteAttribute( + primary1XArgument, this, OnSuccessCallback_77, OnFailureCallback_77); } void OnFailureResponse_77(uint8_t status) { NextTest(); } - void OnSuccessResponse_77(uint16_t primary1X) { ThrowSuccessResponse(); } + void OnSuccessResponse_77() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary1X_78() { @@ -4374,12 +4142,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary1YArgument = 0U; - return cluster.WriteAttributePrimary1Y(mOnSuccessCallback_80.Cancel(), mOnFailureCallback_80.Cancel(), primary1YArgument); + return cluster.WriteAttribute( + primary1YArgument, this, OnSuccessCallback_80, OnFailureCallback_80); } void OnFailureResponse_80(uint8_t status) { NextTest(); } - void OnSuccessResponse_80(uint16_t primary1Y) { ThrowSuccessResponse(); } + void OnSuccessResponse_80() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary1Y_81() { @@ -4437,12 +4206,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary2XArgument = 0U; - return cluster.WriteAttributePrimary2X(mOnSuccessCallback_84.Cancel(), mOnFailureCallback_84.Cancel(), primary2XArgument); + return cluster.WriteAttribute( + primary2XArgument, this, OnSuccessCallback_84, OnFailureCallback_84); } void OnFailureResponse_84(uint8_t status) { NextTest(); } - void OnSuccessResponse_84(uint16_t primary2X) { ThrowSuccessResponse(); } + void OnSuccessResponse_84() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary2X_85() { @@ -4484,12 +4254,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary2YArgument = 0U; - return cluster.WriteAttributePrimary2Y(mOnSuccessCallback_87.Cancel(), mOnFailureCallback_87.Cancel(), primary2YArgument); + return cluster.WriteAttribute( + primary2YArgument, this, OnSuccessCallback_87, OnFailureCallback_87); } void OnFailureResponse_87(uint8_t status) { NextTest(); } - void OnSuccessResponse_87(uint16_t primary2Y) { ThrowSuccessResponse(); } + void OnSuccessResponse_87() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary2Y_88() { @@ -4547,12 +4318,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary3XArgument = 0U; - return cluster.WriteAttributePrimary3X(mOnSuccessCallback_91.Cancel(), mOnFailureCallback_91.Cancel(), primary3XArgument); + return cluster.WriteAttribute( + primary3XArgument, this, OnSuccessCallback_91, OnFailureCallback_91); } void OnFailureResponse_91(uint8_t status) { NextTest(); } - void OnSuccessResponse_91(uint16_t primary3X) { ThrowSuccessResponse(); } + void OnSuccessResponse_91() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary3X_92() { @@ -4594,12 +4366,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary3YArgument = 0U; - return cluster.WriteAttributePrimary3Y(mOnSuccessCallback_94.Cancel(), mOnFailureCallback_94.Cancel(), primary3YArgument); + return cluster.WriteAttribute( + primary3YArgument, this, OnSuccessCallback_94, OnFailureCallback_94); } void OnFailureResponse_94(uint8_t status) { NextTest(); } - void OnSuccessResponse_94(uint16_t primary3Y) { ThrowSuccessResponse(); } + void OnSuccessResponse_94() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary3Y_95() { @@ -4657,12 +4430,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary4XArgument = 0U; - return cluster.WriteAttributePrimary4X(mOnSuccessCallback_98.Cancel(), mOnFailureCallback_98.Cancel(), primary4XArgument); + return cluster.WriteAttribute( + primary4XArgument, this, OnSuccessCallback_98, OnFailureCallback_98); } void OnFailureResponse_98(uint8_t status) { NextTest(); } - void OnSuccessResponse_98(uint16_t primary4X) { ThrowSuccessResponse(); } + void OnSuccessResponse_98() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary4X_99() { @@ -4704,12 +4478,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary4YArgument = 0U; - return cluster.WriteAttributePrimary4Y(mOnSuccessCallback_101.Cancel(), mOnFailureCallback_101.Cancel(), primary4YArgument); + return cluster.WriteAttribute( + primary4YArgument, this, OnSuccessCallback_101, OnFailureCallback_101); } void OnFailureResponse_101(uint8_t status) { NextTest(); } - void OnSuccessResponse_101(uint16_t primary4Y) { ThrowSuccessResponse(); } + void OnSuccessResponse_101() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary4Y_102() { @@ -4767,12 +4542,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary5XArgument = 0U; - return cluster.WriteAttributePrimary5X(mOnSuccessCallback_105.Cancel(), mOnFailureCallback_105.Cancel(), primary5XArgument); + return cluster.WriteAttribute( + primary5XArgument, this, OnSuccessCallback_105, OnFailureCallback_105); } void OnFailureResponse_105(uint8_t status) { NextTest(); } - void OnSuccessResponse_105(uint16_t primary5X) { ThrowSuccessResponse(); } + void OnSuccessResponse_105() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary5X_106() { @@ -4814,12 +4590,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary5YArgument = 0U; - return cluster.WriteAttributePrimary5Y(mOnSuccessCallback_108.Cancel(), mOnFailureCallback_108.Cancel(), primary5YArgument); + return cluster.WriteAttribute( + primary5YArgument, this, OnSuccessCallback_108, OnFailureCallback_108); } void OnFailureResponse_108(uint8_t status) { NextTest(); } - void OnSuccessResponse_108(uint16_t primary5Y) { ThrowSuccessResponse(); } + void OnSuccessResponse_108() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary5Y_109() { @@ -4877,12 +4654,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary6XArgument = 0U; - return cluster.WriteAttributePrimary6X(mOnSuccessCallback_112.Cancel(), mOnFailureCallback_112.Cancel(), primary6XArgument); + return cluster.WriteAttribute( + primary6XArgument, this, OnSuccessCallback_112, OnFailureCallback_112); } void OnFailureResponse_112(uint8_t status) { NextTest(); } - void OnSuccessResponse_112(uint16_t primary6X) { ThrowSuccessResponse(); } + void OnSuccessResponse_112() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary6X_113() { @@ -4924,12 +4702,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary6YArgument = 0U; - return cluster.WriteAttributePrimary6Y(mOnSuccessCallback_115.Cancel(), mOnFailureCallback_115.Cancel(), primary6YArgument); + return cluster.WriteAttribute( + primary6YArgument, this, OnSuccessCallback_115, OnFailureCallback_115); } void OnFailureResponse_115(uint8_t status) { NextTest(); } - void OnSuccessResponse_115(uint16_t primary6Y) { ThrowSuccessResponse(); } + void OnSuccessResponse_115() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary6Y_116() { @@ -4987,13 +4766,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t whitePointXArgument = 0U; - return cluster.WriteAttributeWhitePointX(mOnSuccessCallback_119.Cancel(), mOnFailureCallback_119.Cancel(), - whitePointXArgument); + return cluster.WriteAttribute( + whitePointXArgument, this, OnSuccessCallback_119, OnFailureCallback_119); } void OnFailureResponse_119(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_119(uint16_t whitePointX) { NextTest(); } + void OnSuccessResponse_119() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeWhitePointX_120() { @@ -5035,13 +4814,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t whitePointYArgument = 0U; - return cluster.WriteAttributeWhitePointY(mOnSuccessCallback_122.Cancel(), mOnFailureCallback_122.Cancel(), - whitePointYArgument); + return cluster.WriteAttribute( + whitePointYArgument, this, OnSuccessCallback_122, OnFailureCallback_122); } void OnFailureResponse_122(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_122(uint16_t whitePointY) { NextTest(); } + void OnSuccessResponse_122() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeWhitePointY_123() { @@ -5083,13 +4862,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorPointRXArgument = 0U; - return cluster.WriteAttributeColorPointRX(mOnSuccessCallback_125.Cancel(), mOnFailureCallback_125.Cancel(), - colorPointRXArgument); + return cluster.WriteAttribute( + colorPointRXArgument, this, OnSuccessCallback_125, OnFailureCallback_125); } void OnFailureResponse_125(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_125(uint16_t colorPointRX) { NextTest(); } + void OnSuccessResponse_125() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRX_126() { @@ -5131,13 +4910,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorPointRYArgument = 0U; - return cluster.WriteAttributeColorPointRY(mOnSuccessCallback_128.Cancel(), mOnFailureCallback_128.Cancel(), - colorPointRYArgument); + return cluster.WriteAttribute( + colorPointRYArgument, this, OnSuccessCallback_128, OnFailureCallback_128); } void OnFailureResponse_128(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_128(uint16_t colorPointRY) { NextTest(); } + void OnSuccessResponse_128() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRY_129() { @@ -5195,13 +4974,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorPointGXArgument = 0U; - return cluster.WriteAttributeColorPointGX(mOnSuccessCallback_132.Cancel(), mOnFailureCallback_132.Cancel(), - colorPointGXArgument); + return cluster.WriteAttribute( + colorPointGXArgument, this, OnSuccessCallback_132, OnFailureCallback_132); } void OnFailureResponse_132(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_132(uint16_t colorPointGX) { NextTest(); } + void OnSuccessResponse_132() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGX_133() { @@ -5243,13 +5022,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorPointGYArgument = 0U; - return cluster.WriteAttributeColorPointGY(mOnSuccessCallback_135.Cancel(), mOnFailureCallback_135.Cancel(), - colorPointGYArgument); + return cluster.WriteAttribute( + colorPointGYArgument, this, OnSuccessCallback_135, OnFailureCallback_135); } void OnFailureResponse_135(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_135(uint16_t colorPointGY) { NextTest(); } + void OnSuccessResponse_135() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGY_136() { @@ -5307,13 +5086,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorPointBXArgument = 0U; - return cluster.WriteAttributeColorPointBX(mOnSuccessCallback_139.Cancel(), mOnFailureCallback_139.Cancel(), - colorPointBXArgument); + return cluster.WriteAttribute( + colorPointBXArgument, this, OnSuccessCallback_139, OnFailureCallback_139); } void OnFailureResponse_139(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_139(uint16_t colorPointBX) { NextTest(); } + void OnSuccessResponse_139() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBX_140() { @@ -5355,13 +5134,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorPointBYArgument = 0U; - return cluster.WriteAttributeColorPointBY(mOnSuccessCallback_142.Cancel(), mOnFailureCallback_142.Cancel(), - colorPointBYArgument); + return cluster.WriteAttribute( + colorPointBYArgument, this, OnSuccessCallback_142, OnFailureCallback_142); } void OnFailureResponse_142(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_142(uint16_t colorPointBY) { NextTest(); } + void OnSuccessResponse_142() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBY_143() { @@ -11777,8 +11556,6 @@ class Test_TC_EMR_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; @@ -11792,15 +11569,12 @@ class Test_TC_EMR_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -11839,13 +11613,13 @@ class Test_TC_EMR_1_1 : public TestCommand uint16_t clusterRevisionArgument = 1U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() { @@ -11912,18 +11686,12 @@ class Test_TC_FLW_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -11936,13 +11704,13 @@ class Test_TC_FLW_1_1 : public TestCommand uint16_t clusterRevisionArgument = 2U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_FLW_2_1 : public TestCommand @@ -12026,10 +11794,6 @@ class Test_TC_FLW_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; - chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; - chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; - chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; - chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; @@ -12067,25 +11831,19 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(maxMeasuredValue); } - static void OnFailureCallback_3(void * context, uint8_t status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, int16_t minMeasuredValue) - { - (static_cast(context))->OnSuccessResponse_3(minMeasuredValue); - } + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, uint8_t status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, int16_t maxMeasuredValue) - { - (static_cast(context))->OnSuccessResponse_4(maxMeasuredValue); - } + static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } static void OnFailureCallback_5(void * context, uint8_t status) { @@ -12176,13 +11934,13 @@ class Test_TC_FLW_2_1 : public TestCommand int16_t minMeasuredValueArgument = 0; - return cluster.WriteAttributeMinMeasuredValue(mOnSuccessCallback_3.Cancel(), mOnFailureCallback_3.Cancel(), - minMeasuredValueArgument); + return cluster.WriteAttribute( + minMeasuredValueArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } void OnFailureResponse_3(uint8_t status) { NextTest(); } - void OnSuccessResponse_3(int16_t minMeasuredValue) { ThrowSuccessResponse(); } + void OnSuccessResponse_3() { ThrowSuccessResponse(); } CHIP_ERROR TestWriteTheDefaultValueToOptionalAttributeMaxMeasuredValue_4() { @@ -12191,13 +11949,13 @@ class Test_TC_FLW_2_1 : public TestCommand int16_t maxMeasuredValueArgument = 0; - return cluster.WriteAttributeMaxMeasuredValue(mOnSuccessCallback_4.Cancel(), mOnFailureCallback_4.Cancel(), - maxMeasuredValueArgument); + return cluster.WriteAttribute( + maxMeasuredValueArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } void OnFailureResponse_4(uint8_t status) { NextTest(); } - void OnSuccessResponse_4(int16_t maxMeasuredValue) { ThrowSuccessResponse(); } + void OnSuccessResponse_4() { ThrowSuccessResponse(); } CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_5() { @@ -12409,18 +12167,12 @@ class Test_TC_LVL_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -12433,13 +12185,13 @@ class Test_TC_LVL_1_1 : public TestCommand uint16_t clusterRevisionArgument = 4U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_LVL_2_1 : public TestCommand @@ -12913,8 +12665,6 @@ class Test_TC_LVL_3_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; - chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; - chip::Callback::Callback mOnSuccessCallback_9{ OnSuccessCallback_9, this }; chip::Callback::Callback mOnFailureCallback_10{ OnFailureCallback_10, this }; chip::Callback::Callback mOnSuccessCallback_10{ OnSuccessCallback_10, this }; chip::Callback::Callback mOnFailureCallback_13{ OnFailureCallback_13, this }; @@ -12970,15 +12720,12 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(currentLevel); } - static void OnFailureCallback_9(void * context, uint8_t status) + static void OnFailureCallback_9(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint8_t defaultMoveRate) - { - (static_cast(context))->OnSuccessResponse_9(defaultMoveRate); - } + static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } static void OnFailureCallback_10(void * context, uint8_t status) { @@ -13151,13 +12898,13 @@ class Test_TC_LVL_3_1 : public TestCommand uint8_t defaultMoveRateArgument = 20; - return cluster.WriteAttributeDefaultMoveRate(mOnSuccessCallback_9.Cancel(), mOnFailureCallback_9.Cancel(), - defaultMoveRateArgument); + return cluster.WriteAttribute( + defaultMoveRateArgument, this, OnSuccessCallback_9, OnFailureCallback_9); } void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint8_t defaultMoveRate) { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } CHIP_ERROR TestReadsDefaultMoveRateAttributeFromDut_10() { @@ -13799,18 +13546,12 @@ class Test_TC_MC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -13823,13 +13564,13 @@ class Test_TC_MC_1_1 : public TestCommand uint16_t clusterRevisionArgument = 1U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_MC_2_1 : public TestCommand @@ -14490,8 +14231,6 @@ class Test_TC_OCC_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; static void OnFailureCallback_0(void * context, uint8_t status) { @@ -14503,15 +14242,12 @@ class Test_TC_OCC_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } // // Tests methods @@ -14540,13 +14276,13 @@ class Test_TC_OCC_1_1 : public TestCommand uint16_t clusterRevisionArgument = 2U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } }; class Test_TC_OCC_2_1 : public TestCommand @@ -14634,25 +14370,17 @@ class Test_TC_OCC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; - chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; - chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, - this }; chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; - chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; - chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, - this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; @@ -14667,15 +14395,12 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(occupancy); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t occupancy) - { - (static_cast(context))->OnSuccessResponse_1(occupancy); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -14697,15 +14422,12 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(occupancySensorType); } - static void OnFailureCallback_4(void * context, uint8_t status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint8_t occupancySensorType) - { - (static_cast(context))->OnSuccessResponse_4(occupancySensorType); - } + static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } static void OnFailureCallback_5(void * context, uint8_t status) { @@ -14727,15 +14449,12 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(occupancySensorTypeBitmap); } - static void OnFailureCallback_7(void * context, uint8_t status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint8_t occupancySensorTypeBitmap) - { - (static_cast(context))->OnSuccessResponse_7(occupancySensorTypeBitmap); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } static void OnFailureCallback_8(void * context, uint8_t status) { @@ -14775,12 +14494,13 @@ class Test_TC_OCC_2_1 : public TestCommand uint8_t occupancyArgument = 0; - return cluster.WriteAttributeOccupancy(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), occupancyArgument); + return cluster.WriteAttribute( + occupancyArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint8_t occupancy) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeOccupancy_2() { @@ -14822,13 +14542,13 @@ class Test_TC_OCC_2_1 : public TestCommand uint8_t occupancySensorTypeArgument = static_cast(0); - return cluster.WriteAttributeOccupancySensorType(mOnSuccessCallback_4.Cancel(), mOnFailureCallback_4.Cancel(), - occupancySensorTypeArgument); + return cluster.WriteAttribute( + occupancySensorTypeArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } void OnFailureResponse_4(uint8_t status) { NextTest(); } - void OnSuccessResponse_4(uint8_t occupancySensorType) { ThrowSuccessResponse(); } + void OnSuccessResponse_4() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeOccupancySensorType_5() { @@ -14871,13 +14591,13 @@ class Test_TC_OCC_2_1 : public TestCommand uint8_t occupancySensorTypeBitmapArgument = 1; - return cluster.WriteAttributeOccupancySensorTypeBitmap(mOnSuccessCallback_7.Cancel(), mOnFailureCallback_7.Cancel(), - occupancySensorTypeBitmapArgument); + return cluster.WriteAttribute( + occupancySensorTypeBitmapArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } void OnFailureResponse_7(uint8_t status) { NextTest(); } - void OnSuccessResponse_7(uint8_t occupancySensorTypeBitmap) { ThrowSuccessResponse(); } + void OnSuccessResponse_7() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeOccupancySensorTypeBitmap_8() { @@ -15079,14 +14799,10 @@ class Test_TC_OO_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; - chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; - chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; @@ -15100,15 +14816,12 @@ class Test_TC_OO_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -15130,15 +14843,12 @@ class Test_TC_OO_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(featureMap); } - static void OnFailureCallback_4(void * context, uint8_t status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint32_t featureMap) - { - (static_cast(context))->OnSuccessResponse_4(featureMap); - } + static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } static void OnFailureCallback_5(void * context, uint8_t status) { @@ -15177,13 +14887,13 @@ class Test_TC_OO_1_1 : public TestCommand uint16_t clusterRevisionArgument = 3U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() { @@ -15224,12 +14934,13 @@ class Test_TC_OO_1_1 : public TestCommand uint32_t featureMapArgument = 0UL; - return cluster.WriteAttributeFeatureMap(mOnSuccessCallback_4.Cancel(), mOnFailureCallback_4.Cancel(), featureMapArgument); + return cluster.WriteAttribute( + featureMapArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } void OnFailureResponse_4(uint8_t status) { NextTest(); } - void OnSuccessResponse_4(uint32_t featureMap) { ThrowSuccessResponse(); } + void OnSuccessResponse_4() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackOptionalGlobalAttributeFeatureMap_5() { @@ -15351,12 +15062,6 @@ class Test_TC_OO_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; - chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; - chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; - chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; - chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; - chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; - chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; chip::Callback::Callback mOnSuccessCallback_9{ OnSuccessCallback_9, this }; chip::Callback::Callback mOnFailureCallback_10{ OnFailureCallback_10, this }; @@ -15424,35 +15129,26 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(startUpOnOff); } - static void OnFailureCallback_6(void * context, uint8_t status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint16_t onTime) - { - (static_cast(context))->OnSuccessResponse_6(onTime); - } + static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } - static void OnFailureCallback_7(void * context, uint8_t status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint16_t offWaitTime) - { - (static_cast(context))->OnSuccessResponse_7(offWaitTime); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } - static void OnFailureCallback_8(void * context, uint8_t status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint8_t startUpOnOff) - { - (static_cast(context))->OnSuccessResponse_8(startUpOnOff); - } + static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } static void OnFailureCallback_9(void * context, uint8_t status) { @@ -15591,12 +15287,13 @@ class Test_TC_OO_2_1 : public TestCommand uint16_t onTimeArgument = 0U; - return cluster.WriteAttributeOnTime(mOnSuccessCallback_6.Cancel(), mOnFailureCallback_6.Cancel(), onTimeArgument); + return cluster.WriteAttribute( + onTimeArgument, this, OnSuccessCallback_6, OnFailureCallback_6); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint16_t onTime) { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } CHIP_ERROR TestWriteTheDefaultValueToLtAttributeOffWaitTime_7() { @@ -15605,12 +15302,13 @@ class Test_TC_OO_2_1 : public TestCommand uint16_t offWaitTimeArgument = 0U; - return cluster.WriteAttributeOffWaitTime(mOnSuccessCallback_7.Cancel(), mOnFailureCallback_7.Cancel(), offWaitTimeArgument); + return cluster.WriteAttribute( + offWaitTimeArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint16_t offWaitTime) { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } CHIP_ERROR TestWriteTheDefaultValueToLtAttributeStartUpOnOff_8() { @@ -15619,13 +15317,13 @@ class Test_TC_OO_2_1 : public TestCommand uint8_t startUpOnOffArgument = static_cast(0); - return cluster.WriteAttributeStartUpOnOff(mOnSuccessCallback_8.Cancel(), mOnFailureCallback_8.Cancel(), - startUpOnOffArgument); + return cluster.WriteAttribute( + startUpOnOffArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t startUpOnOff) { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } CHIP_ERROR TestReadsBackLtAttributeOnTime_9() { @@ -16209,8 +15907,6 @@ class Test_TC_PRS_1_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; - chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; - chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; @@ -16234,15 +15930,12 @@ class Test_TC_PRS_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_2(clusterRevision); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, uint8_t status) { @@ -16297,13 +15990,13 @@ class Test_TC_PRS_1_1 : public TestCommand uint16_t clusterRevisionArgument = 2U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } void OnFailureResponse_2(uint8_t status) { NextTest(); } - void OnSuccessResponse_2(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_3() { @@ -16403,20 +16096,14 @@ class Test_TC_PRS_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; - chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; - chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; - chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; - chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; @@ -16430,15 +16117,12 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(measuredValue); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, int16_t measuredValue) - { - (static_cast(context))->OnSuccessResponse_1(measuredValue); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -16460,15 +16144,12 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(minMeasuredValue); } - static void OnFailureCallback_4(void * context, uint8_t status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, int16_t minMeasuredValue) - { - (static_cast(context))->OnSuccessResponse_4(minMeasuredValue); - } + static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } static void OnFailureCallback_5(void * context, uint8_t status) { @@ -16490,15 +16171,12 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(maxMeasuredValue); } - static void OnFailureCallback_7(void * context, uint8_t status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, int16_t maxMeasuredValue) - { - (static_cast(context))->OnSuccessResponse_7(maxMeasuredValue); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } static void OnFailureCallback_8(void * context, uint8_t status) { @@ -16537,13 +16215,13 @@ class Test_TC_PRS_2_1 : public TestCommand int16_t measuredValueArgument = 0; - return cluster.WriteAttributeMeasuredValue(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - measuredValueArgument); + return cluster.WriteAttribute( + measuredValueArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(int16_t measuredValue) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeMeasuredValue_2() { @@ -16584,13 +16262,13 @@ class Test_TC_PRS_2_1 : public TestCommand int16_t minMeasuredValueArgument = 0; - return cluster.WriteAttributeMinMeasuredValue(mOnSuccessCallback_4.Cancel(), mOnFailureCallback_4.Cancel(), - minMeasuredValueArgument); + return cluster.WriteAttribute( + minMeasuredValueArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } void OnFailureResponse_4(uint8_t status) { NextTest(); } - void OnSuccessResponse_4(int16_t minMeasuredValue) { ThrowSuccessResponse(); } + void OnSuccessResponse_4() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeMinMeasuredValue_5() { @@ -16631,13 +16309,13 @@ class Test_TC_PRS_2_1 : public TestCommand int16_t maxMeasuredValueArgument = 0; - return cluster.WriteAttributeMaxMeasuredValue(mOnSuccessCallback_7.Cancel(), mOnFailureCallback_7.Cancel(), - maxMeasuredValueArgument); + return cluster.WriteAttribute( + maxMeasuredValueArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } void OnFailureResponse_7(uint8_t status) { NextTest(); } - void OnSuccessResponse_7(int16_t maxMeasuredValue) { ThrowSuccessResponse(); } + void OnSuccessResponse_7() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeMaxMeasuredValue_8() { @@ -16704,18 +16382,12 @@ class Test_TC_PCC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -16728,13 +16400,13 @@ class Test_TC_PCC_1_1 : public TestCommand uint16_t clusterRevisionArgument = 3U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_PCC_2_1 : public TestCommand @@ -17101,42 +16773,26 @@ class Test_TC_PCC_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; - chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; - chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint8_t operationMode) - { - (static_cast(context))->OnSuccessResponse_0(operationMode); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t operationMode) - { - (static_cast(context))->OnSuccessResponse_1(operationMode); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t operationMode) - { - (static_cast(context))->OnSuccessResponse_2(operationMode); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } // // Tests methods @@ -17149,13 +16805,13 @@ class Test_TC_PCC_2_2 : public TestCommand uint8_t operationModeArgument = static_cast(1); - return cluster.WriteAttributeOperationMode(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - operationModeArgument); + return cluster.WriteAttribute( + operationModeArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t operationMode) { NextTest(); } + void OnSuccessResponse_0() { NextTest(); } CHIP_ERROR TestWrite2ToTheOperationModeAttributeToDutOperationMode_1() { @@ -17164,13 +16820,13 @@ class Test_TC_PCC_2_2 : public TestCommand uint8_t operationModeArgument = static_cast(2); - return cluster.WriteAttributeOperationMode(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - operationModeArgument); + return cluster.WriteAttribute( + operationModeArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t operationMode) { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } CHIP_ERROR TestWrite3ToTheOperationModeAttributeToDutOperationMode_2() { @@ -17179,13 +16835,13 @@ class Test_TC_PCC_2_2 : public TestCommand uint8_t operationModeArgument = static_cast(3); - return cluster.WriteAttributeOperationMode(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), - operationModeArgument); + return cluster.WriteAttribute( + operationModeArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t operationMode) { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } }; class Test_TC_PCC_2_3 : public TestCommand @@ -17239,21 +16895,16 @@ class Test_TC_PCC_2_3 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 2; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint8_t operationMode) - { - (static_cast(context))->OnSuccessResponse_0(operationMode); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } static void OnFailureCallback_1(void * context, uint8_t status) { @@ -17276,13 +16927,13 @@ class Test_TC_PCC_2_3 : public TestCommand uint8_t operationModeArgument = static_cast(0); - return cluster.WriteAttributeOperationMode(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - operationModeArgument); + return cluster.WriteAttribute( + operationModeArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t operationMode) { NextTest(); } + void OnSuccessResponse_0() { NextTest(); } CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_1() { @@ -17349,18 +17000,12 @@ class Test_TC_RH_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -17373,13 +17018,13 @@ class Test_TC_RH_1_1 : public TestCommand uint16_t clusterRevisionArgument = 1U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_RH_2_1 : public TestCommand @@ -17667,8 +17312,6 @@ class Test_TC_TM_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; @@ -17682,15 +17325,12 @@ class Test_TC_TM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -17729,13 +17369,13 @@ class Test_TC_TM_1_1 : public TestCommand uint16_t clusterRevisionArgument = 3U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() { @@ -17996,18 +17636,12 @@ class Test_TC_TSTAT_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -18020,13 +17654,13 @@ class Test_TC_TSTAT_1_1 : public TestCommand uint16_t clusterRevisionArgument = 5U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_TSUIC_1_1 : public TestCommand @@ -18077,18 +17711,12 @@ class Test_TC_TSUIC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -18101,13 +17729,14 @@ class Test_TC_TSUIC_1_1 : public TestCommand uint16_t clusterRevisionArgument = 2U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster + .WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_TSUIC_2_1 : public TestCommand @@ -18219,9 +17848,6 @@ class Test_TC_TSUIC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; - chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; - chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, - this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; @@ -18232,8 +17858,6 @@ class Test_TC_TSUIC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; - chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; - chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; @@ -18246,10 +17870,6 @@ class Test_TC_TSUIC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_11{ OnSuccessCallback_11, this }; - chip::Callback::Callback mOnFailureCallback_12{ OnFailureCallback_12, this }; - chip::Callback::Callback mOnSuccessCallback_12{ - OnSuccessCallback_12, this - }; chip::Callback::Callback mOnFailureCallback_13{ OnFailureCallback_13, this }; chip::Callback::Callback mOnSuccessCallback_13{ OnSuccessCallback_13, this @@ -18279,15 +17899,12 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(temperatureDisplayMode); } - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t temperatureDisplayMode) - { - (static_cast(context))->OnSuccessResponse_2(temperatureDisplayMode); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, uint8_t status) { @@ -18329,15 +17946,12 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(keypadLockout); } - static void OnFailureCallback_7(void * context, uint8_t status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_7(keypadLockout); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } static void OnFailureCallback_8(void * context, uint8_t status) { @@ -18379,15 +17993,12 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(scheduleProgrammingVisibility); } - static void OnFailureCallback_12(void * context, uint8_t status) + static void OnFailureCallback_12(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context, uint8_t scheduleProgrammingVisibility) - { - (static_cast(context))->OnSuccessResponse_12(scheduleProgrammingVisibility); - } + static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } static void OnFailureCallback_13(void * context, uint8_t status) { @@ -18452,13 +18063,14 @@ class Test_TC_TSUIC_2_1 : public TestCommand uint8_t temperatureDisplayModeArgument = static_cast(0); - return cluster.WriteAttributeTemperatureDisplayMode(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), - temperatureDisplayModeArgument); + return cluster.WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>( + temperatureDisplayModeArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t temperatureDisplayMode) { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_3() { @@ -18531,13 +18143,14 @@ class Test_TC_TSUIC_2_1 : public TestCommand uint8_t keypadLockoutArgument = static_cast(0); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_7.Cancel(), mOnFailureCallback_7.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_8() { @@ -18610,13 +18223,14 @@ class Test_TC_TSUIC_2_1 : public TestCommand uint8_t scheduleProgrammingVisibilityArgument = static_cast(0); - return cluster.WriteAttributeScheduleProgrammingVisibility(mOnSuccessCallback_12.Cancel(), mOnFailureCallback_12.Cancel(), - scheduleProgrammingVisibilityArgument); + return cluster.WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( + scheduleProgrammingVisibilityArgument, this, OnSuccessCallback_12, OnFailureCallback_12); } void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12(uint8_t scheduleProgrammingVisibility) { NextTest(); } + void OnSuccessResponse_12() { NextTest(); } CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_13() { @@ -18736,132 +18350,75 @@ class Test_TC_TSUIC_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 10; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, - this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, - this }; - chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; - chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; - chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; - chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; - chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; - chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; - chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; - chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; - chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; - chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; - chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; - chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; - chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; - chip::Callback::Callback mOnSuccessCallback_8{ - OnSuccessCallback_8, this - }; - chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; - chip::Callback::Callback mOnSuccessCallback_9{ - OnSuccessCallback_9, this - }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint8_t temperatureDisplayMode) - { - (static_cast(context))->OnSuccessResponse_0(temperatureDisplayMode); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t temperatureDisplayMode) - { - (static_cast(context))->OnSuccessResponse_1(temperatureDisplayMode); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_2(keypadLockout); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, uint8_t status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_3(keypadLockout); - } + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, uint8_t status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_4(keypadLockout); - } + static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } - static void OnFailureCallback_5(void * context, uint8_t status) + static void OnFailureCallback_5(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_5(keypadLockout); - } + static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, uint8_t status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_6(keypadLockout); - } + static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } - static void OnFailureCallback_7(void * context, uint8_t status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_7(keypadLockout); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } - static void OnFailureCallback_8(void * context, uint8_t status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint8_t scheduleProgrammingVisibility) - { - (static_cast(context))->OnSuccessResponse_8(scheduleProgrammingVisibility); - } + static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } - static void OnFailureCallback_9(void * context, uint8_t status) + static void OnFailureCallback_9(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint8_t scheduleProgrammingVisibility) - { - (static_cast(context))->OnSuccessResponse_9(scheduleProgrammingVisibility); - } + static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } // // Tests methods @@ -18874,13 +18431,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t temperatureDisplayModeArgument = static_cast(0); - return cluster.WriteAttributeTemperatureDisplayMode(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - temperatureDisplayModeArgument); + return cluster.WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>( + temperatureDisplayModeArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t temperatureDisplayMode) { NextTest(); } + void OnSuccessResponse_0() { NextTest(); } CHIP_ERROR TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_1() { @@ -18889,13 +18447,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t temperatureDisplayModeArgument = static_cast(1); - return cluster.WriteAttributeTemperatureDisplayMode(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - temperatureDisplayModeArgument); + return cluster.WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>( + temperatureDisplayModeArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t temperatureDisplayMode) { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } CHIP_ERROR TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_2() { @@ -18904,13 +18463,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t keypadLockoutArgument = static_cast(0); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } CHIP_ERROR TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_3() { @@ -18919,13 +18479,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t keypadLockoutArgument = static_cast(1); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_3.Cancel(), mOnFailureCallback_3.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } CHIP_ERROR TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_4() { @@ -18934,13 +18495,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t keypadLockoutArgument = static_cast(2); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_4.Cancel(), mOnFailureCallback_4.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } CHIP_ERROR TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_5() { @@ -18949,13 +18511,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t keypadLockoutArgument = static_cast(3); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_5.Cancel(), mOnFailureCallback_5.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } CHIP_ERROR TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_6() { @@ -18964,13 +18527,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t keypadLockoutArgument = static_cast(4); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_6.Cancel(), mOnFailureCallback_6.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_6, OnFailureCallback_6); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } CHIP_ERROR TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_7() { @@ -18979,13 +18543,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t keypadLockoutArgument = static_cast(5); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_7.Cancel(), mOnFailureCallback_7.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } CHIP_ERROR TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_8() { @@ -18994,13 +18559,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t scheduleProgrammingVisibilityArgument = static_cast(0); - return cluster.WriteAttributeScheduleProgrammingVisibility(mOnSuccessCallback_8.Cancel(), mOnFailureCallback_8.Cancel(), - scheduleProgrammingVisibilityArgument); + return cluster.WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( + scheduleProgrammingVisibilityArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t scheduleProgrammingVisibility) { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } CHIP_ERROR TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_9() { @@ -19009,13 +18575,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t scheduleProgrammingVisibilityArgument = static_cast(1); - return cluster.WriteAttributeScheduleProgrammingVisibility(mOnSuccessCallback_9.Cancel(), mOnFailureCallback_9.Cancel(), - scheduleProgrammingVisibilityArgument); + return cluster.WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( + scheduleProgrammingVisibilityArgument, this, OnSuccessCallback_9, OnFailureCallback_9); } void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint8_t scheduleProgrammingVisibility) { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } }; class Test_TC_DIAGTH_1_1 : public TestCommand @@ -19076,8 +18643,6 @@ class Test_TC_DIAGTH_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; @@ -19091,15 +18656,12 @@ class Test_TC_DIAGTH_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -19138,13 +18700,13 @@ class Test_TC_DIAGTH_1_1 : public TestCommand uint16_t clusterRevisionArgument = 1U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() { @@ -19229,8 +18791,6 @@ class Test_TC_WNCV_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; @@ -19248,15 +18808,12 @@ class Test_TC_WNCV_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -19315,13 +18872,13 @@ class Test_TC_WNCV_1_1 : public TestCommand uint16_t clusterRevisionArgument = 5U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() { @@ -19477,8 +19034,6 @@ class Test_TC_WNCV_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; - chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; - chip::Callback::Callback mOnSuccessCallback_9{ OnSuccessCallback_9, this }; chip::Callback::Callback mOnFailureCallback_10{ OnFailureCallback_10, this }; chip::Callback::Callback mOnSuccessCallback_10{ OnSuccessCallback_10, this }; @@ -19572,15 +19127,12 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(mode); } - static void OnFailureCallback_9(void * context, uint8_t status) + static void OnFailureCallback_9(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint8_t mode) - { - (static_cast(context))->OnSuccessResponse_9(mode); - } + static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } static void OnFailureCallback_10(void * context, uint8_t status) { @@ -19747,12 +19299,13 @@ class Test_TC_WNCV_2_1 : public TestCommand uint8_t modeArgument = 7; - return cluster.WriteAttributeMode(mOnSuccessCallback_9.Cancel(), mOnFailureCallback_9.Cancel(), modeArgument); + return cluster.WriteAttribute( + modeArgument, this, OnSuccessCallback_9, OnFailureCallback_9); } void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint8_t mode) { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } CHIP_ERROR TestReadsBackTheRwMandatoryAttributeMode_10() { @@ -22605,224 +22158,126 @@ class TestCluster : public TestCommand chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; - chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; - chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; - chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; - chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; chip::Callback::Callback mOnSuccessCallback_9{ OnSuccessCallback_9, this }; chip::Callback::Callback mOnFailureCallback_10{ OnFailureCallback_10, this }; chip::Callback::Callback mOnSuccessCallback_10{ OnSuccessCallback_10, this }; - chip::Callback::Callback mOnFailureCallback_11{ OnFailureCallback_11, this }; - chip::Callback::Callback mOnSuccessCallback_11{ OnSuccessCallback_11, this }; chip::Callback::Callback mOnFailureCallback_12{ OnFailureCallback_12, this }; chip::Callback::Callback mOnSuccessCallback_12{ OnSuccessCallback_12, this }; - chip::Callback::Callback mOnFailureCallback_13{ OnFailureCallback_13, this }; - chip::Callback::Callback mOnSuccessCallback_13{ OnSuccessCallback_13, this }; chip::Callback::Callback mOnFailureCallback_14{ OnFailureCallback_14, this }; chip::Callback::Callback mOnSuccessCallback_14{ OnSuccessCallback_14, this }; chip::Callback::Callback mOnFailureCallback_15{ OnFailureCallback_15, this }; chip::Callback::Callback mOnSuccessCallback_15{ OnSuccessCallback_15, this }; - chip::Callback::Callback mOnFailureCallback_16{ OnFailureCallback_16, this }; - chip::Callback::Callback mOnSuccessCallback_16{ OnSuccessCallback_16, this }; chip::Callback::Callback mOnFailureCallback_17{ OnFailureCallback_17, this }; chip::Callback::Callback mOnSuccessCallback_17{ OnSuccessCallback_17, this }; - chip::Callback::Callback mOnFailureCallback_18{ OnFailureCallback_18, this }; - chip::Callback::Callback mOnSuccessCallback_18{ OnSuccessCallback_18, this }; chip::Callback::Callback mOnFailureCallback_19{ OnFailureCallback_19, this }; chip::Callback::Callback mOnSuccessCallback_19{ OnSuccessCallback_19, this }; chip::Callback::Callback mOnFailureCallback_20{ OnFailureCallback_20, this }; chip::Callback::Callback mOnSuccessCallback_20{ OnSuccessCallback_20, this }; - chip::Callback::Callback mOnFailureCallback_21{ OnFailureCallback_21, this }; - chip::Callback::Callback mOnSuccessCallback_21{ OnSuccessCallback_21, this }; chip::Callback::Callback mOnFailureCallback_22{ OnFailureCallback_22, this }; chip::Callback::Callback mOnSuccessCallback_22{ OnSuccessCallback_22, this }; - chip::Callback::Callback mOnFailureCallback_23{ OnFailureCallback_23, this }; - chip::Callback::Callback mOnSuccessCallback_23{ OnSuccessCallback_23, this }; chip::Callback::Callback mOnFailureCallback_24{ OnFailureCallback_24, this }; chip::Callback::Callback mOnSuccessCallback_24{ OnSuccessCallback_24, this }; chip::Callback::Callback mOnFailureCallback_25{ OnFailureCallback_25, this }; chip::Callback::Callback mOnSuccessCallback_25{ OnSuccessCallback_25, this }; - chip::Callback::Callback mOnFailureCallback_26{ OnFailureCallback_26, this }; - chip::Callback::Callback mOnSuccessCallback_26{ OnSuccessCallback_26, this }; chip::Callback::Callback mOnFailureCallback_27{ OnFailureCallback_27, this }; chip::Callback::Callback mOnSuccessCallback_27{ OnSuccessCallback_27, this }; - chip::Callback::Callback mOnFailureCallback_28{ OnFailureCallback_28, this }; - chip::Callback::Callback mOnSuccessCallback_28{ OnSuccessCallback_28, this }; chip::Callback::Callback mOnFailureCallback_29{ OnFailureCallback_29, this }; chip::Callback::Callback mOnSuccessCallback_29{ OnSuccessCallback_29, this }; chip::Callback::Callback mOnFailureCallback_30{ OnFailureCallback_30, this }; chip::Callback::Callback mOnSuccessCallback_30{ OnSuccessCallback_30, this }; - chip::Callback::Callback mOnFailureCallback_31{ OnFailureCallback_31, this }; - chip::Callback::Callback mOnSuccessCallback_31{ OnSuccessCallback_31, this }; chip::Callback::Callback mOnFailureCallback_32{ OnFailureCallback_32, this }; chip::Callback::Callback mOnSuccessCallback_32{ OnSuccessCallback_32, this }; - chip::Callback::Callback mOnFailureCallback_33{ OnFailureCallback_33, this }; - chip::Callback::Callback mOnSuccessCallback_33{ OnSuccessCallback_33, this }; chip::Callback::Callback mOnFailureCallback_34{ OnFailureCallback_34, this }; chip::Callback::Callback mOnSuccessCallback_34{ OnSuccessCallback_34, this }; chip::Callback::Callback mOnFailureCallback_35{ OnFailureCallback_35, this }; chip::Callback::Callback mOnSuccessCallback_35{ OnSuccessCallback_35, this }; - chip::Callback::Callback mOnFailureCallback_36{ OnFailureCallback_36, this }; - chip::Callback::Callback mOnSuccessCallback_36{ OnSuccessCallback_36, this }; chip::Callback::Callback mOnFailureCallback_37{ OnFailureCallback_37, this }; chip::Callback::Callback mOnSuccessCallback_37{ OnSuccessCallback_37, this }; - chip::Callback::Callback mOnFailureCallback_38{ OnFailureCallback_38, this }; - chip::Callback::Callback mOnSuccessCallback_38{ OnSuccessCallback_38, this }; chip::Callback::Callback mOnFailureCallback_39{ OnFailureCallback_39, this }; chip::Callback::Callback mOnSuccessCallback_39{ OnSuccessCallback_39, this }; chip::Callback::Callback mOnFailureCallback_40{ OnFailureCallback_40, this }; chip::Callback::Callback mOnSuccessCallback_40{ OnSuccessCallback_40, this }; - chip::Callback::Callback mOnFailureCallback_41{ OnFailureCallback_41, this }; - chip::Callback::Callback mOnSuccessCallback_41{ OnSuccessCallback_41, this }; chip::Callback::Callback mOnFailureCallback_42{ OnFailureCallback_42, this }; chip::Callback::Callback mOnSuccessCallback_42{ OnSuccessCallback_42, this }; - chip::Callback::Callback mOnFailureCallback_43{ OnFailureCallback_43, this }; - chip::Callback::Callback mOnSuccessCallback_43{ OnSuccessCallback_43, this }; chip::Callback::Callback mOnFailureCallback_44{ OnFailureCallback_44, this }; chip::Callback::Callback mOnSuccessCallback_44{ OnSuccessCallback_44, this }; chip::Callback::Callback mOnFailureCallback_45{ OnFailureCallback_45, this }; chip::Callback::Callback mOnSuccessCallback_45{ OnSuccessCallback_45, this }; - chip::Callback::Callback mOnFailureCallback_46{ OnFailureCallback_46, this }; - chip::Callback::Callback mOnSuccessCallback_46{ OnSuccessCallback_46, this }; chip::Callback::Callback mOnFailureCallback_47{ OnFailureCallback_47, this }; chip::Callback::Callback mOnSuccessCallback_47{ OnSuccessCallback_47, this }; - chip::Callback::Callback mOnFailureCallback_48{ OnFailureCallback_48, this }; - chip::Callback::Callback mOnSuccessCallback_48{ OnSuccessCallback_48, this }; chip::Callback::Callback mOnFailureCallback_49{ OnFailureCallback_49, this }; chip::Callback::Callback mOnSuccessCallback_49{ OnSuccessCallback_49, this }; chip::Callback::Callback mOnFailureCallback_50{ OnFailureCallback_50, this }; chip::Callback::Callback mOnSuccessCallback_50{ OnSuccessCallback_50, this }; - chip::Callback::Callback mOnFailureCallback_51{ OnFailureCallback_51, this }; - chip::Callback::Callback mOnSuccessCallback_51{ OnSuccessCallback_51, this }; chip::Callback::Callback mOnFailureCallback_52{ OnFailureCallback_52, this }; chip::Callback::Callback mOnSuccessCallback_52{ OnSuccessCallback_52, this }; - chip::Callback::Callback mOnFailureCallback_53{ OnFailureCallback_53, this }; - chip::Callback::Callback mOnSuccessCallback_53{ OnSuccessCallback_53, this }; chip::Callback::Callback mOnFailureCallback_54{ OnFailureCallback_54, this }; chip::Callback::Callback mOnSuccessCallback_54{ OnSuccessCallback_54, this }; - chip::Callback::Callback mOnFailureCallback_55{ OnFailureCallback_55, this }; - chip::Callback::Callback mOnSuccessCallback_55{ OnSuccessCallback_55, this }; chip::Callback::Callback mOnFailureCallback_56{ OnFailureCallback_56, this }; chip::Callback::Callback mOnSuccessCallback_56{ OnSuccessCallback_56, this }; chip::Callback::Callback mOnFailureCallback_57{ OnFailureCallback_57, this }; chip::Callback::Callback mOnSuccessCallback_57{ OnSuccessCallback_57, this }; - chip::Callback::Callback mOnFailureCallback_58{ OnFailureCallback_58, this }; - chip::Callback::Callback mOnSuccessCallback_58{ OnSuccessCallback_58, this }; chip::Callback::Callback mOnFailureCallback_59{ OnFailureCallback_59, this }; chip::Callback::Callback mOnSuccessCallback_59{ OnSuccessCallback_59, this }; - chip::Callback::Callback mOnFailureCallback_60{ OnFailureCallback_60, this }; - chip::Callback::Callback mOnSuccessCallback_60{ OnSuccessCallback_60, this }; chip::Callback::Callback mOnFailureCallback_61{ OnFailureCallback_61, this }; chip::Callback::Callback mOnSuccessCallback_61{ OnSuccessCallback_61, this }; - chip::Callback::Callback mOnFailureCallback_62{ OnFailureCallback_62, this }; - chip::Callback::Callback mOnSuccessCallback_62{ OnSuccessCallback_62, this }; chip::Callback::Callback mOnFailureCallback_63{ OnFailureCallback_63, this }; chip::Callback::Callback mOnSuccessCallback_63{ OnSuccessCallback_63, this }; chip::Callback::Callback mOnFailureCallback_64{ OnFailureCallback_64, this }; chip::Callback::Callback mOnSuccessCallback_64{ OnSuccessCallback_64, this }; - chip::Callback::Callback mOnFailureCallback_65{ OnFailureCallback_65, this }; - chip::Callback::Callback mOnSuccessCallback_65{ OnSuccessCallback_65, this }; chip::Callback::Callback mOnFailureCallback_66{ OnFailureCallback_66, this }; chip::Callback::Callback mOnSuccessCallback_66{ OnSuccessCallback_66, this }; - chip::Callback::Callback mOnFailureCallback_67{ OnFailureCallback_67, this }; - chip::Callback::Callback mOnSuccessCallback_67{ OnSuccessCallback_67, this }; chip::Callback::Callback mOnFailureCallback_68{ OnFailureCallback_68, this }; chip::Callback::Callback mOnSuccessCallback_68{ OnSuccessCallback_68, this }; - chip::Callback::Callback mOnFailureCallback_69{ OnFailureCallback_69, this }; - chip::Callback::Callback mOnSuccessCallback_69{ OnSuccessCallback_69, this }; chip::Callback::Callback mOnFailureCallback_70{ OnFailureCallback_70, this }; chip::Callback::Callback mOnSuccessCallback_70{ OnSuccessCallback_70, this }; chip::Callback::Callback mOnFailureCallback_71{ OnFailureCallback_71, this }; chip::Callback::Callback mOnSuccessCallback_71{ OnSuccessCallback_71, this }; - chip::Callback::Callback mOnFailureCallback_72{ OnFailureCallback_72, this }; - chip::Callback::Callback mOnSuccessCallback_72{ OnSuccessCallback_72, this }; chip::Callback::Callback mOnFailureCallback_73{ OnFailureCallback_73, this }; chip::Callback::Callback mOnSuccessCallback_73{ OnSuccessCallback_73, this }; - chip::Callback::Callback mOnFailureCallback_74{ OnFailureCallback_74, this }; - chip::Callback::Callback mOnSuccessCallback_74{ OnSuccessCallback_74, this }; chip::Callback::Callback mOnFailureCallback_75{ OnFailureCallback_75, this }; chip::Callback::Callback mOnSuccessCallback_75{ OnSuccessCallback_75, this }; - chip::Callback::Callback mOnFailureCallback_76{ OnFailureCallback_76, this }; - chip::Callback::Callback mOnSuccessCallback_76{ OnSuccessCallback_76, this }; chip::Callback::Callback mOnFailureCallback_77{ OnFailureCallback_77, this }; chip::Callback::Callback mOnSuccessCallback_77{ OnSuccessCallback_77, this }; chip::Callback::Callback mOnFailureCallback_78{ OnFailureCallback_78, this }; chip::Callback::Callback mOnSuccessCallback_78{ OnSuccessCallback_78, this }; - chip::Callback::Callback mOnFailureCallback_79{ OnFailureCallback_79, this }; - chip::Callback::Callback mOnSuccessCallback_79{ OnSuccessCallback_79, this }; chip::Callback::Callback mOnFailureCallback_80{ OnFailureCallback_80, this }; chip::Callback::Callback mOnSuccessCallback_80{ OnSuccessCallback_80, this }; - chip::Callback::Callback mOnFailureCallback_81{ OnFailureCallback_81, this }; - chip::Callback::Callback mOnSuccessCallback_81{ OnSuccessCallback_81, this }; chip::Callback::Callback mOnFailureCallback_82{ OnFailureCallback_82, this }; chip::Callback::Callback mOnSuccessCallback_82{ OnSuccessCallback_82, this }; chip::Callback::Callback mOnFailureCallback_83{ OnFailureCallback_83, this }; chip::Callback::Callback mOnSuccessCallback_83{ OnSuccessCallback_83, this }; - chip::Callback::Callback mOnFailureCallback_84{ OnFailureCallback_84, this }; - chip::Callback::Callback mOnSuccessCallback_84{ OnSuccessCallback_84, this }; chip::Callback::Callback mOnFailureCallback_85{ OnFailureCallback_85, this }; chip::Callback::Callback mOnSuccessCallback_85{ OnSuccessCallback_85, this }; - chip::Callback::Callback mOnFailureCallback_86{ OnFailureCallback_86, this }; - chip::Callback::Callback mOnSuccessCallback_86{ OnSuccessCallback_86, this }; chip::Callback::Callback mOnFailureCallback_87{ OnFailureCallback_87, this }; chip::Callback::Callback mOnSuccessCallback_87{ OnSuccessCallback_87, this }; chip::Callback::Callback mOnFailureCallback_88{ OnFailureCallback_88, this }; chip::Callback::Callback mOnSuccessCallback_88{ OnSuccessCallback_88, this }; - chip::Callback::Callback mOnFailureCallback_89{ OnFailureCallback_89, this }; - chip::Callback::Callback mOnSuccessCallback_89{ OnSuccessCallback_89, - this }; chip::Callback::Callback mOnFailureCallback_90{ OnFailureCallback_90, this }; chip::Callback::Callback mOnSuccessCallback_90{ OnSuccessCallback_90, this }; - chip::Callback::Callback mOnFailureCallback_91{ OnFailureCallback_91, this }; - chip::Callback::Callback mOnSuccessCallback_91{ OnSuccessCallback_91, - this }; chip::Callback::Callback mOnFailureCallback_92{ OnFailureCallback_92, this }; chip::Callback::Callback mOnSuccessCallback_92{ OnSuccessCallback_92, this }; - chip::Callback::Callback mOnFailureCallback_93{ OnFailureCallback_93, this }; - chip::Callback::Callback mOnSuccessCallback_93{ OnSuccessCallback_93, - this }; chip::Callback::Callback mOnFailureCallback_94{ OnFailureCallback_94, this }; chip::Callback::Callback mOnSuccessCallback_94{ OnSuccessCallback_94, this }; - chip::Callback::Callback mOnFailureCallback_95{ OnFailureCallback_95, this }; - chip::Callback::Callback mOnSuccessCallback_95{ OnSuccessCallback_95, - this }; chip::Callback::Callback mOnFailureCallback_96{ OnFailureCallback_96, this }; chip::Callback::Callback mOnSuccessCallback_96{ OnSuccessCallback_96, this }; - chip::Callback::Callback mOnFailureCallback_97{ OnFailureCallback_97, this }; - chip::Callback::Callback mOnSuccessCallback_97{ OnSuccessCallback_97, - this }; chip::Callback::Callback mOnFailureCallback_98{ OnFailureCallback_98, this }; chip::Callback::Callback mOnSuccessCallback_98{ OnSuccessCallback_98, this }; - chip::Callback::Callback mOnFailureCallback_99{ OnFailureCallback_99, this }; - chip::Callback::Callback mOnSuccessCallback_99{ OnSuccessCallback_99, - this }; - chip::Callback::Callback mOnFailureCallback_100{ OnFailureCallback_100, this }; - chip::Callback::Callback mOnSuccessCallback_100{ OnSuccessCallback_100, - this }; - chip::Callback::Callback mOnFailureCallback_101{ OnFailureCallback_101, this }; - chip::Callback::Callback mOnSuccessCallback_101{ OnSuccessCallback_101, - this }; chip::Callback::Callback mOnFailureCallback_102{ OnFailureCallback_102, this }; chip::Callback::Callback mOnSuccessCallback_102{ OnSuccessCallback_102, this }; - chip::Callback::Callback mOnFailureCallback_103{ OnFailureCallback_103, this }; - chip::Callback::Callback mOnSuccessCallback_103{ OnSuccessCallback_103, - this }; chip::Callback::Callback mOnFailureCallback_104{ OnFailureCallback_104, this }; chip::Callback::Callback mOnSuccessCallback_104{ OnSuccessCallback_104, this }; - chip::Callback::Callback mOnFailureCallback_105{ OnFailureCallback_105, this }; - chip::Callback::Callback mOnSuccessCallback_105{ OnSuccessCallback_105, - this }; chip::Callback::Callback mOnFailureCallback_106{ OnFailureCallback_106, this }; chip::Callback::Callback & listInt8u)> mOnSuccessCallback_106{ OnSuccessCallback_106, this }; @@ -22837,40 +22292,24 @@ class TestCluster : public TestCommand mOnSuccessCallback_108{ OnSuccessCallback_108, this }; chip::Callback::Callback mOnFailureCallback_109{ OnFailureCallback_109, this }; chip::Callback::Callback mOnSuccessCallback_109{ OnSuccessCallback_109, this }; - chip::Callback::Callback mOnFailureCallback_110{ OnFailureCallback_110, this }; - chip::Callback::Callback mOnSuccessCallback_110{ OnSuccessCallback_110, this }; chip::Callback::Callback mOnFailureCallback_111{ OnFailureCallback_111, this }; chip::Callback::Callback mOnSuccessCallback_111{ OnSuccessCallback_111, this }; - chip::Callback::Callback mOnFailureCallback_112{ OnFailureCallback_112, this }; - chip::Callback::Callback mOnSuccessCallback_112{ OnSuccessCallback_112, this }; chip::Callback::Callback mOnFailureCallback_113{ OnFailureCallback_113, this }; chip::Callback::Callback mOnSuccessCallback_113{ OnSuccessCallback_113, this }; chip::Callback::Callback mOnFailureCallback_114{ OnFailureCallback_114, this }; chip::Callback::Callback mOnSuccessCallback_114{ OnSuccessCallback_114, this }; - chip::Callback::Callback mOnFailureCallback_115{ OnFailureCallback_115, this }; - chip::Callback::Callback mOnSuccessCallback_115{ OnSuccessCallback_115, this }; chip::Callback::Callback mOnFailureCallback_116{ OnFailureCallback_116, this }; chip::Callback::Callback mOnSuccessCallback_116{ OnSuccessCallback_116, this }; - chip::Callback::Callback mOnFailureCallback_117{ OnFailureCallback_117, this }; - chip::Callback::Callback mOnSuccessCallback_117{ OnSuccessCallback_117, this }; chip::Callback::Callback mOnFailureCallback_118{ OnFailureCallback_118, this }; chip::Callback::Callback mOnSuccessCallback_118{ OnSuccessCallback_118, this }; chip::Callback::Callback mOnFailureCallback_119{ OnFailureCallback_119, this }; chip::Callback::Callback mOnSuccessCallback_119{ OnSuccessCallback_119, this }; - chip::Callback::Callback mOnFailureCallback_120{ OnFailureCallback_120, this }; - chip::Callback::Callback mOnSuccessCallback_120{ OnSuccessCallback_120, this }; chip::Callback::Callback mOnFailureCallback_122{ OnFailureCallback_122, this }; chip::Callback::Callback mOnSuccessCallback_122{ OnSuccessCallback_122, this }; - chip::Callback::Callback mOnFailureCallback_123{ OnFailureCallback_123, this }; - chip::Callback::Callback mOnSuccessCallback_123{ OnSuccessCallback_123, - this }; chip::Callback::Callback mOnFailureCallback_124{ OnFailureCallback_124, this }; chip::Callback::Callback mOnSuccessCallback_124{ OnSuccessCallback_124, this }; - chip::Callback::Callback mOnFailureCallback_125{ OnFailureCallback_125, this }; - chip::Callback::Callback mOnSuccessCallback_125{ OnSuccessCallback_125, - this }; static void OnFailureCallback_5(void * context, uint8_t status) { @@ -22882,15 +22321,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_5(boolean); } - static void OnFailureCallback_6(void * context, uint8_t status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, bool boolean) - { - (static_cast(context))->OnSuccessResponse_6(boolean); - } + static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } static void OnFailureCallback_7(void * context, uint8_t status) { @@ -22902,15 +22338,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_7(boolean); } - static void OnFailureCallback_8(void * context, uint8_t status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, bool boolean) - { - (static_cast(context))->OnSuccessResponse_8(boolean); - } + static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } static void OnFailureCallback_9(void * context, uint8_t status) { @@ -22932,15 +22365,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_10(bitmap8); } - static void OnFailureCallback_11(void * context, uint8_t status) + static void OnFailureCallback_11(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context, uint8_t bitmap8) - { - (static_cast(context))->OnSuccessResponse_11(bitmap8); - } + static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } static void OnFailureCallback_12(void * context, uint8_t status) { @@ -22952,15 +22382,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_12(bitmap8); } - static void OnFailureCallback_13(void * context, uint8_t status) + static void OnFailureCallback_13(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context, uint8_t bitmap8) - { - (static_cast(context))->OnSuccessResponse_13(bitmap8); - } + static void OnSuccessCallback_13(void * context) { (static_cast(context))->OnSuccessResponse_13(); } static void OnFailureCallback_14(void * context, uint8_t status) { @@ -22982,15 +22409,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_15(bitmap16); } - static void OnFailureCallback_16(void * context, uint8_t status) + static void OnFailureCallback_16(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(chip::to_underlying(status)); } - static void OnSuccessCallback_16(void * context, uint16_t bitmap16) - { - (static_cast(context))->OnSuccessResponse_16(bitmap16); - } + static void OnSuccessCallback_16(void * context) { (static_cast(context))->OnSuccessResponse_16(); } static void OnFailureCallback_17(void * context, uint8_t status) { @@ -23002,15 +22426,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_17(bitmap16); } - static void OnFailureCallback_18(void * context, uint8_t status) + static void OnFailureCallback_18(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(chip::to_underlying(status)); } - static void OnSuccessCallback_18(void * context, uint16_t bitmap16) - { - (static_cast(context))->OnSuccessResponse_18(bitmap16); - } + static void OnSuccessCallback_18(void * context) { (static_cast(context))->OnSuccessResponse_18(); } static void OnFailureCallback_19(void * context, uint8_t status) { @@ -23032,15 +22453,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_20(bitmap32); } - static void OnFailureCallback_21(void * context, uint8_t status) + static void OnFailureCallback_21(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_21(status); + (static_cast(context))->OnFailureResponse_21(chip::to_underlying(status)); } - static void OnSuccessCallback_21(void * context, uint32_t bitmap32) - { - (static_cast(context))->OnSuccessResponse_21(bitmap32); - } + static void OnSuccessCallback_21(void * context) { (static_cast(context))->OnSuccessResponse_21(); } static void OnFailureCallback_22(void * context, uint8_t status) { @@ -23052,15 +22470,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_22(bitmap32); } - static void OnFailureCallback_23(void * context, uint8_t status) + static void OnFailureCallback_23(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_23(status); + (static_cast(context))->OnFailureResponse_23(chip::to_underlying(status)); } - static void OnSuccessCallback_23(void * context, uint32_t bitmap32) - { - (static_cast(context))->OnSuccessResponse_23(bitmap32); - } + static void OnSuccessCallback_23(void * context) { (static_cast(context))->OnSuccessResponse_23(); } static void OnFailureCallback_24(void * context, uint8_t status) { @@ -23082,15 +22497,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_25(bitmap64); } - static void OnFailureCallback_26(void * context, uint8_t status) + static void OnFailureCallback_26(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_26(status); + (static_cast(context))->OnFailureResponse_26(chip::to_underlying(status)); } - static void OnSuccessCallback_26(void * context, uint64_t bitmap64) - { - (static_cast(context))->OnSuccessResponse_26(bitmap64); - } + static void OnSuccessCallback_26(void * context) { (static_cast(context))->OnSuccessResponse_26(); } static void OnFailureCallback_27(void * context, uint8_t status) { @@ -23102,15 +22514,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_27(bitmap64); } - static void OnFailureCallback_28(void * context, uint8_t status) + static void OnFailureCallback_28(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_28(status); + (static_cast(context))->OnFailureResponse_28(chip::to_underlying(status)); } - static void OnSuccessCallback_28(void * context, uint64_t bitmap64) - { - (static_cast(context))->OnSuccessResponse_28(bitmap64); - } + static void OnSuccessCallback_28(void * context) { (static_cast(context))->OnSuccessResponse_28(); } static void OnFailureCallback_29(void * context, uint8_t status) { @@ -23132,15 +22541,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_30(int8u); } - static void OnFailureCallback_31(void * context, uint8_t status) + static void OnFailureCallback_31(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_31(status); + (static_cast(context))->OnFailureResponse_31(chip::to_underlying(status)); } - static void OnSuccessCallback_31(void * context, uint8_t int8u) - { - (static_cast(context))->OnSuccessResponse_31(int8u); - } + static void OnSuccessCallback_31(void * context) { (static_cast(context))->OnSuccessResponse_31(); } static void OnFailureCallback_32(void * context, uint8_t status) { @@ -23152,15 +22558,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_32(int8u); } - static void OnFailureCallback_33(void * context, uint8_t status) + static void OnFailureCallback_33(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_33(chip::to_underlying(status)); } - static void OnSuccessCallback_33(void * context, uint8_t int8u) - { - (static_cast(context))->OnSuccessResponse_33(int8u); - } + static void OnSuccessCallback_33(void * context) { (static_cast(context))->OnSuccessResponse_33(); } static void OnFailureCallback_34(void * context, uint8_t status) { @@ -23182,15 +22585,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_35(int16u); } - static void OnFailureCallback_36(void * context, uint8_t status) + static void OnFailureCallback_36(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_36(status); + (static_cast(context))->OnFailureResponse_36(chip::to_underlying(status)); } - static void OnSuccessCallback_36(void * context, uint16_t int16u) - { - (static_cast(context))->OnSuccessResponse_36(int16u); - } + static void OnSuccessCallback_36(void * context) { (static_cast(context))->OnSuccessResponse_36(); } static void OnFailureCallback_37(void * context, uint8_t status) { @@ -23202,15 +22602,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_37(int16u); } - static void OnFailureCallback_38(void * context, uint8_t status) + static void OnFailureCallback_38(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_38(status); + (static_cast(context))->OnFailureResponse_38(chip::to_underlying(status)); } - static void OnSuccessCallback_38(void * context, uint16_t int16u) - { - (static_cast(context))->OnSuccessResponse_38(int16u); - } + static void OnSuccessCallback_38(void * context) { (static_cast(context))->OnSuccessResponse_38(); } static void OnFailureCallback_39(void * context, uint8_t status) { @@ -23232,15 +22629,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_40(int32u); } - static void OnFailureCallback_41(void * context, uint8_t status) + static void OnFailureCallback_41(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_41(status); + (static_cast(context))->OnFailureResponse_41(chip::to_underlying(status)); } - static void OnSuccessCallback_41(void * context, uint32_t int32u) - { - (static_cast(context))->OnSuccessResponse_41(int32u); - } + static void OnSuccessCallback_41(void * context) { (static_cast(context))->OnSuccessResponse_41(); } static void OnFailureCallback_42(void * context, uint8_t status) { @@ -23252,15 +22646,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_42(int32u); } - static void OnFailureCallback_43(void * context, uint8_t status) + static void OnFailureCallback_43(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_43(status); + (static_cast(context))->OnFailureResponse_43(chip::to_underlying(status)); } - static void OnSuccessCallback_43(void * context, uint32_t int32u) - { - (static_cast(context))->OnSuccessResponse_43(int32u); - } + static void OnSuccessCallback_43(void * context) { (static_cast(context))->OnSuccessResponse_43(); } static void OnFailureCallback_44(void * context, uint8_t status) { @@ -23282,15 +22673,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_45(int64u); } - static void OnFailureCallback_46(void * context, uint8_t status) + static void OnFailureCallback_46(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_46(status); + (static_cast(context))->OnFailureResponse_46(chip::to_underlying(status)); } - static void OnSuccessCallback_46(void * context, uint64_t int64u) - { - (static_cast(context))->OnSuccessResponse_46(int64u); - } + static void OnSuccessCallback_46(void * context) { (static_cast(context))->OnSuccessResponse_46(); } static void OnFailureCallback_47(void * context, uint8_t status) { @@ -23302,15 +22690,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_47(int64u); } - static void OnFailureCallback_48(void * context, uint8_t status) + static void OnFailureCallback_48(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_48(status); + (static_cast(context))->OnFailureResponse_48(chip::to_underlying(status)); } - static void OnSuccessCallback_48(void * context, uint64_t int64u) - { - (static_cast(context))->OnSuccessResponse_48(int64u); - } + static void OnSuccessCallback_48(void * context) { (static_cast(context))->OnSuccessResponse_48(); } static void OnFailureCallback_49(void * context, uint8_t status) { @@ -23332,15 +22717,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_50(int8s); } - static void OnFailureCallback_51(void * context, uint8_t status) + static void OnFailureCallback_51(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_51(status); + (static_cast(context))->OnFailureResponse_51(chip::to_underlying(status)); } - static void OnSuccessCallback_51(void * context, int8_t int8s) - { - (static_cast(context))->OnSuccessResponse_51(int8s); - } + static void OnSuccessCallback_51(void * context) { (static_cast(context))->OnSuccessResponse_51(); } static void OnFailureCallback_52(void * context, uint8_t status) { @@ -23352,15 +22734,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_52(int8s); } - static void OnFailureCallback_53(void * context, uint8_t status) + static void OnFailureCallback_53(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_53(status); + (static_cast(context))->OnFailureResponse_53(chip::to_underlying(status)); } - static void OnSuccessCallback_53(void * context, int8_t int8s) - { - (static_cast(context))->OnSuccessResponse_53(int8s); - } + static void OnSuccessCallback_53(void * context) { (static_cast(context))->OnSuccessResponse_53(); } static void OnFailureCallback_54(void * context, uint8_t status) { @@ -23372,15 +22751,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_54(int8s); } - static void OnFailureCallback_55(void * context, uint8_t status) + static void OnFailureCallback_55(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_55(status); + (static_cast(context))->OnFailureResponse_55(chip::to_underlying(status)); } - static void OnSuccessCallback_55(void * context, int8_t int8s) - { - (static_cast(context))->OnSuccessResponse_55(int8s); - } + static void OnSuccessCallback_55(void * context) { (static_cast(context))->OnSuccessResponse_55(); } static void OnFailureCallback_56(void * context, uint8_t status) { @@ -23402,15 +22778,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_57(int16s); } - static void OnFailureCallback_58(void * context, uint8_t status) + static void OnFailureCallback_58(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_58(status); + (static_cast(context))->OnFailureResponse_58(chip::to_underlying(status)); } - static void OnSuccessCallback_58(void * context, int16_t int16s) - { - (static_cast(context))->OnSuccessResponse_58(int16s); - } + static void OnSuccessCallback_58(void * context) { (static_cast(context))->OnSuccessResponse_58(); } static void OnFailureCallback_59(void * context, uint8_t status) { @@ -23422,15 +22795,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_59(int16s); } - static void OnFailureCallback_60(void * context, uint8_t status) + static void OnFailureCallback_60(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_60(status); + (static_cast(context))->OnFailureResponse_60(chip::to_underlying(status)); } - static void OnSuccessCallback_60(void * context, int16_t int16s) - { - (static_cast(context))->OnSuccessResponse_60(int16s); - } + static void OnSuccessCallback_60(void * context) { (static_cast(context))->OnSuccessResponse_60(); } static void OnFailureCallback_61(void * context, uint8_t status) { @@ -23442,15 +22812,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_61(int16s); } - static void OnFailureCallback_62(void * context, uint8_t status) + static void OnFailureCallback_62(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_62(status); + (static_cast(context))->OnFailureResponse_62(chip::to_underlying(status)); } - static void OnSuccessCallback_62(void * context, int16_t int16s) - { - (static_cast(context))->OnSuccessResponse_62(int16s); - } + static void OnSuccessCallback_62(void * context) { (static_cast(context))->OnSuccessResponse_62(); } static void OnFailureCallback_63(void * context, uint8_t status) { @@ -23472,15 +22839,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_64(int32s); } - static void OnFailureCallback_65(void * context, uint8_t status) + static void OnFailureCallback_65(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_65(status); + (static_cast(context))->OnFailureResponse_65(chip::to_underlying(status)); } - static void OnSuccessCallback_65(void * context, int32_t int32s) - { - (static_cast(context))->OnSuccessResponse_65(int32s); - } + static void OnSuccessCallback_65(void * context) { (static_cast(context))->OnSuccessResponse_65(); } static void OnFailureCallback_66(void * context, uint8_t status) { @@ -23492,15 +22856,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_66(int32s); } - static void OnFailureCallback_67(void * context, uint8_t status) + static void OnFailureCallback_67(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_67(status); + (static_cast(context))->OnFailureResponse_67(chip::to_underlying(status)); } - static void OnSuccessCallback_67(void * context, int32_t int32s) - { - (static_cast(context))->OnSuccessResponse_67(int32s); - } + static void OnSuccessCallback_67(void * context) { (static_cast(context))->OnSuccessResponse_67(); } static void OnFailureCallback_68(void * context, uint8_t status) { @@ -23512,15 +22873,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_68(int32s); } - static void OnFailureCallback_69(void * context, uint8_t status) + static void OnFailureCallback_69(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_69(status); + (static_cast(context))->OnFailureResponse_69(chip::to_underlying(status)); } - static void OnSuccessCallback_69(void * context, int32_t int32s) - { - (static_cast(context))->OnSuccessResponse_69(int32s); - } + static void OnSuccessCallback_69(void * context) { (static_cast(context))->OnSuccessResponse_69(); } static void OnFailureCallback_70(void * context, uint8_t status) { @@ -23542,15 +22900,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_71(int64s); } - static void OnFailureCallback_72(void * context, uint8_t status) + static void OnFailureCallback_72(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_72(status); + (static_cast(context))->OnFailureResponse_72(chip::to_underlying(status)); } - static void OnSuccessCallback_72(void * context, int64_t int64s) - { - (static_cast(context))->OnSuccessResponse_72(int64s); - } + static void OnSuccessCallback_72(void * context) { (static_cast(context))->OnSuccessResponse_72(); } static void OnFailureCallback_73(void * context, uint8_t status) { @@ -23562,15 +22917,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_73(int64s); } - static void OnFailureCallback_74(void * context, uint8_t status) + static void OnFailureCallback_74(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_74(status); + (static_cast(context))->OnFailureResponse_74(chip::to_underlying(status)); } - static void OnSuccessCallback_74(void * context, int64_t int64s) - { - (static_cast(context))->OnSuccessResponse_74(int64s); - } + static void OnSuccessCallback_74(void * context) { (static_cast(context))->OnSuccessResponse_74(); } static void OnFailureCallback_75(void * context, uint8_t status) { @@ -23582,15 +22934,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_75(int64s); } - static void OnFailureCallback_76(void * context, uint8_t status) + static void OnFailureCallback_76(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_76(status); + (static_cast(context))->OnFailureResponse_76(chip::to_underlying(status)); } - static void OnSuccessCallback_76(void * context, int64_t int64s) - { - (static_cast(context))->OnSuccessResponse_76(int64s); - } + static void OnSuccessCallback_76(void * context) { (static_cast(context))->OnSuccessResponse_76(); } static void OnFailureCallback_77(void * context, uint8_t status) { @@ -23612,15 +22961,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_78(enum8); } - static void OnFailureCallback_79(void * context, uint8_t status) + static void OnFailureCallback_79(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_79(status); + (static_cast(context))->OnFailureResponse_79(chip::to_underlying(status)); } - static void OnSuccessCallback_79(void * context, uint8_t enum8) - { - (static_cast(context))->OnSuccessResponse_79(enum8); - } + static void OnSuccessCallback_79(void * context) { (static_cast(context))->OnSuccessResponse_79(); } static void OnFailureCallback_80(void * context, uint8_t status) { @@ -23632,15 +22978,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_80(enum8); } - static void OnFailureCallback_81(void * context, uint8_t status) + static void OnFailureCallback_81(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_81(status); + (static_cast(context))->OnFailureResponse_81(chip::to_underlying(status)); } - static void OnSuccessCallback_81(void * context, uint8_t enum8) - { - (static_cast(context))->OnSuccessResponse_81(enum8); - } + static void OnSuccessCallback_81(void * context) { (static_cast(context))->OnSuccessResponse_81(); } static void OnFailureCallback_82(void * context, uint8_t status) { @@ -23662,15 +23005,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_83(enum16); } - static void OnFailureCallback_84(void * context, uint8_t status) + static void OnFailureCallback_84(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_84(status); + (static_cast(context))->OnFailureResponse_84(chip::to_underlying(status)); } - static void OnSuccessCallback_84(void * context, uint16_t enum16) - { - (static_cast(context))->OnSuccessResponse_84(enum16); - } + static void OnSuccessCallback_84(void * context) { (static_cast(context))->OnSuccessResponse_84(); } static void OnFailureCallback_85(void * context, uint8_t status) { @@ -23682,15 +23022,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_85(enum16); } - static void OnFailureCallback_86(void * context, uint8_t status) + static void OnFailureCallback_86(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_86(status); + (static_cast(context))->OnFailureResponse_86(chip::to_underlying(status)); } - static void OnSuccessCallback_86(void * context, uint16_t enum16) - { - (static_cast(context))->OnSuccessResponse_86(enum16); - } + static void OnSuccessCallback_86(void * context) { (static_cast(context))->OnSuccessResponse_86(); } static void OnFailureCallback_87(void * context, uint8_t status) { @@ -23712,15 +23049,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_88(octetString); } - static void OnFailureCallback_89(void * context, uint8_t status) + static void OnFailureCallback_89(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_89(status); + (static_cast(context))->OnFailureResponse_89(chip::to_underlying(status)); } - static void OnSuccessCallback_89(void * context, chip::ByteSpan octetString) - { - (static_cast(context))->OnSuccessResponse_89(octetString); - } + static void OnSuccessCallback_89(void * context) { (static_cast(context))->OnSuccessResponse_89(); } static void OnFailureCallback_90(void * context, uint8_t status) { @@ -23732,15 +23066,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_90(octetString); } - static void OnFailureCallback_91(void * context, uint8_t status) + static void OnFailureCallback_91(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_91(status); + (static_cast(context))->OnFailureResponse_91(chip::to_underlying(status)); } - static void OnSuccessCallback_91(void * context, chip::ByteSpan octetString) - { - (static_cast(context))->OnSuccessResponse_91(octetString); - } + static void OnSuccessCallback_91(void * context) { (static_cast(context))->OnSuccessResponse_91(); } static void OnFailureCallback_92(void * context, uint8_t status) { @@ -23752,15 +23083,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_92(octetString); } - static void OnFailureCallback_93(void * context, uint8_t status) + static void OnFailureCallback_93(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_93(status); + (static_cast(context))->OnFailureResponse_93(chip::to_underlying(status)); } - static void OnSuccessCallback_93(void * context, chip::ByteSpan octetString) - { - (static_cast(context))->OnSuccessResponse_93(octetString); - } + static void OnSuccessCallback_93(void * context) { (static_cast(context))->OnSuccessResponse_93(); } static void OnFailureCallback_94(void * context, uint8_t status) { @@ -23772,15 +23100,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_94(longOctetString); } - static void OnFailureCallback_95(void * context, uint8_t status) + static void OnFailureCallback_95(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_95(status); + (static_cast(context))->OnFailureResponse_95(chip::to_underlying(status)); } - static void OnSuccessCallback_95(void * context, chip::ByteSpan longOctetString) - { - (static_cast(context))->OnSuccessResponse_95(longOctetString); - } + static void OnSuccessCallback_95(void * context) { (static_cast(context))->OnSuccessResponse_95(); } static void OnFailureCallback_96(void * context, uint8_t status) { @@ -23792,15 +23117,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_96(longOctetString); } - static void OnFailureCallback_97(void * context, uint8_t status) + static void OnFailureCallback_97(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_97(status); + (static_cast(context))->OnFailureResponse_97(chip::to_underlying(status)); } - static void OnSuccessCallback_97(void * context, chip::ByteSpan longOctetString) - { - (static_cast(context))->OnSuccessResponse_97(longOctetString); - } + static void OnSuccessCallback_97(void * context) { (static_cast(context))->OnSuccessResponse_97(); } static void OnFailureCallback_98(void * context, uint8_t status) { @@ -23812,35 +23134,26 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_98(charString); } - static void OnFailureCallback_99(void * context, uint8_t status) + static void OnFailureCallback_99(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_99(status); + (static_cast(context))->OnFailureResponse_99(chip::to_underlying(status)); } - static void OnSuccessCallback_99(void * context, chip::CharSpan charString) - { - (static_cast(context))->OnSuccessResponse_99(charString); - } + static void OnSuccessCallback_99(void * context) { (static_cast(context))->OnSuccessResponse_99(); } - static void OnFailureCallback_100(void * context, uint8_t status) + static void OnFailureCallback_100(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_100(status); + (static_cast(context))->OnFailureResponse_100(chip::to_underlying(status)); } - static void OnSuccessCallback_100(void * context, chip::CharSpan charString) - { - (static_cast(context))->OnSuccessResponse_100(charString); - } + static void OnSuccessCallback_100(void * context) { (static_cast(context))->OnSuccessResponse_100(); } - static void OnFailureCallback_101(void * context, uint8_t status) + static void OnFailureCallback_101(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_101(status); + (static_cast(context))->OnFailureResponse_101(chip::to_underlying(status)); } - static void OnSuccessCallback_101(void * context, chip::CharSpan charString) - { - (static_cast(context))->OnSuccessResponse_101(charString); - } + static void OnSuccessCallback_101(void * context) { (static_cast(context))->OnSuccessResponse_101(); } static void OnFailureCallback_102(void * context, uint8_t status) { @@ -23852,15 +23165,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_102(longCharString); } - static void OnFailureCallback_103(void * context, uint8_t status) + static void OnFailureCallback_103(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_103(status); + (static_cast(context))->OnFailureResponse_103(chip::to_underlying(status)); } - static void OnSuccessCallback_103(void * context, chip::CharSpan longCharString) - { - (static_cast(context))->OnSuccessResponse_103(longCharString); - } + static void OnSuccessCallback_103(void * context) { (static_cast(context))->OnSuccessResponse_103(); } static void OnFailureCallback_104(void * context, uint8_t status) { @@ -23872,15 +23182,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_104(longCharString); } - static void OnFailureCallback_105(void * context, uint8_t status) + static void OnFailureCallback_105(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_105(status); + (static_cast(context))->OnFailureResponse_105(chip::to_underlying(status)); } - static void OnSuccessCallback_105(void * context, chip::CharSpan longCharString) - { - (static_cast(context))->OnSuccessResponse_105(longCharString); - } + static void OnSuccessCallback_105(void * context) { (static_cast(context))->OnSuccessResponse_105(); } static void OnFailureCallback_106(void * context, uint8_t status) { @@ -23925,15 +23232,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_109(epochUs); } - static void OnFailureCallback_110(void * context, uint8_t status) + static void OnFailureCallback_110(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_110(status); + (static_cast(context))->OnFailureResponse_110(chip::to_underlying(status)); } - static void OnSuccessCallback_110(void * context, uint64_t epochUs) - { - (static_cast(context))->OnSuccessResponse_110(epochUs); - } + static void OnSuccessCallback_110(void * context) { (static_cast(context))->OnSuccessResponse_110(); } static void OnFailureCallback_111(void * context, uint8_t status) { @@ -23945,15 +23249,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_111(epochUs); } - static void OnFailureCallback_112(void * context, uint8_t status) + static void OnFailureCallback_112(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_112(status); + (static_cast(context))->OnFailureResponse_112(chip::to_underlying(status)); } - static void OnSuccessCallback_112(void * context, uint64_t epochUs) - { - (static_cast(context))->OnSuccessResponse_112(epochUs); - } + static void OnSuccessCallback_112(void * context) { (static_cast(context))->OnSuccessResponse_112(); } static void OnFailureCallback_113(void * context, uint8_t status) { @@ -23975,15 +23276,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_114(epochS); } - static void OnFailureCallback_115(void * context, uint8_t status) + static void OnFailureCallback_115(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_115(status); + (static_cast(context))->OnFailureResponse_115(chip::to_underlying(status)); } - static void OnSuccessCallback_115(void * context, uint32_t epochS) - { - (static_cast(context))->OnSuccessResponse_115(epochS); - } + static void OnSuccessCallback_115(void * context) { (static_cast(context))->OnSuccessResponse_115(); } static void OnFailureCallback_116(void * context, uint8_t status) { @@ -23995,15 +23293,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_116(epochS); } - static void OnFailureCallback_117(void * context, uint8_t status) + static void OnFailureCallback_117(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_117(status); + (static_cast(context))->OnFailureResponse_117(chip::to_underlying(status)); } - static void OnSuccessCallback_117(void * context, uint32_t epochS) - { - (static_cast(context))->OnSuccessResponse_117(epochS); - } + static void OnSuccessCallback_117(void * context) { (static_cast(context))->OnSuccessResponse_117(); } static void OnFailureCallback_118(void * context, uint8_t status) { @@ -24025,15 +23320,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_119(unsupported); } - static void OnFailureCallback_120(void * context, uint8_t status) + static void OnFailureCallback_120(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_120(status); + (static_cast(context))->OnFailureResponse_120(chip::to_underlying(status)); } - static void OnSuccessCallback_120(void * context, bool unsupported) - { - (static_cast(context))->OnSuccessResponse_120(unsupported); - } + static void OnSuccessCallback_120(void * context) { (static_cast(context))->OnSuccessResponse_120(); } static void OnFailureCallback_122(void * context, uint8_t status) { @@ -24045,15 +23337,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_122(vendorId); } - static void OnFailureCallback_123(void * context, uint8_t status) + static void OnFailureCallback_123(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_123(status); + (static_cast(context))->OnFailureResponse_123(chip::to_underlying(status)); } - static void OnSuccessCallback_123(void * context, chip::VendorId vendorId) - { - (static_cast(context))->OnSuccessResponse_123(vendorId); - } + static void OnSuccessCallback_123(void * context) { (static_cast(context))->OnSuccessResponse_123(); } static void OnFailureCallback_124(void * context, uint8_t status) { @@ -24065,15 +23354,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_124(vendorId); } - static void OnFailureCallback_125(void * context, uint8_t status) + static void OnFailureCallback_125(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_125(status); + (static_cast(context))->OnFailureResponse_125(chip::to_underlying(status)); } - static void OnSuccessCallback_125(void * context, chip::VendorId vendorId) - { - (static_cast(context))->OnSuccessResponse_125(vendorId); - } + static void OnSuccessCallback_125(void * context) { (static_cast(context))->OnSuccessResponse_125(); } // // Tests methods @@ -24234,12 +23520,13 @@ class TestCluster : public TestCommand bool booleanArgument = 1; - return cluster.WriteAttributeBoolean(mOnSuccessCallback_6.Cancel(), mOnFailureCallback_6.Cancel(), booleanArgument); + return cluster.WriteAttribute( + booleanArgument, this, OnSuccessCallback_6, OnFailureCallback_6); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(bool boolean) { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } CHIP_ERROR TestReadAttributeBooleanTrue_7() { @@ -24264,12 +23551,13 @@ class TestCluster : public TestCommand bool booleanArgument = 0; - return cluster.WriteAttributeBoolean(mOnSuccessCallback_8.Cancel(), mOnFailureCallback_8.Cancel(), booleanArgument); + return cluster.WriteAttribute( + booleanArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(bool boolean) { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } CHIP_ERROR TestReadAttributeBooleanFalse_9() { @@ -24310,12 +23598,13 @@ class TestCluster : public TestCommand uint8_t bitmap8Argument = 255; - return cluster.WriteAttributeBitmap8(mOnSuccessCallback_11.Cancel(), mOnFailureCallback_11.Cancel(), bitmap8Argument); + return cluster.WriteAttribute( + bitmap8Argument, this, OnSuccessCallback_11, OnFailureCallback_11); } void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11(uint8_t bitmap8) { NextTest(); } + void OnSuccessResponse_11() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap8MaxValue_12() { @@ -24340,12 +23629,13 @@ class TestCluster : public TestCommand uint8_t bitmap8Argument = 0; - return cluster.WriteAttributeBitmap8(mOnSuccessCallback_13.Cancel(), mOnFailureCallback_13.Cancel(), bitmap8Argument); + return cluster.WriteAttribute( + bitmap8Argument, this, OnSuccessCallback_13, OnFailureCallback_13); } void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13(uint8_t bitmap8) { NextTest(); } + void OnSuccessResponse_13() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap8MinValue_14() { @@ -24386,12 +23676,13 @@ class TestCluster : public TestCommand uint16_t bitmap16Argument = 65535U; - return cluster.WriteAttributeBitmap16(mOnSuccessCallback_16.Cancel(), mOnFailureCallback_16.Cancel(), bitmap16Argument); + return cluster.WriteAttribute( + bitmap16Argument, this, OnSuccessCallback_16, OnFailureCallback_16); } void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_16(uint16_t bitmap16) { NextTest(); } + void OnSuccessResponse_16() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap16MaxValue_17() { @@ -24416,12 +23707,13 @@ class TestCluster : public TestCommand uint16_t bitmap16Argument = 0U; - return cluster.WriteAttributeBitmap16(mOnSuccessCallback_18.Cancel(), mOnFailureCallback_18.Cancel(), bitmap16Argument); + return cluster.WriteAttribute( + bitmap16Argument, this, OnSuccessCallback_18, OnFailureCallback_18); } void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_18(uint16_t bitmap16) { NextTest(); } + void OnSuccessResponse_18() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap16MinValue_19() { @@ -24462,12 +23754,13 @@ class TestCluster : public TestCommand uint32_t bitmap32Argument = 4294967295UL; - return cluster.WriteAttributeBitmap32(mOnSuccessCallback_21.Cancel(), mOnFailureCallback_21.Cancel(), bitmap32Argument); + return cluster.WriteAttribute( + bitmap32Argument, this, OnSuccessCallback_21, OnFailureCallback_21); } void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_21(uint32_t bitmap32) { NextTest(); } + void OnSuccessResponse_21() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap32MaxValue_22() { @@ -24492,12 +23785,13 @@ class TestCluster : public TestCommand uint32_t bitmap32Argument = 0UL; - return cluster.WriteAttributeBitmap32(mOnSuccessCallback_23.Cancel(), mOnFailureCallback_23.Cancel(), bitmap32Argument); + return cluster.WriteAttribute( + bitmap32Argument, this, OnSuccessCallback_23, OnFailureCallback_23); } void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_23(uint32_t bitmap32) { NextTest(); } + void OnSuccessResponse_23() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap32MinValue_24() { @@ -24538,12 +23832,13 @@ class TestCluster : public TestCommand uint64_t bitmap64Argument = 18446744073709551615ULL; - return cluster.WriteAttributeBitmap64(mOnSuccessCallback_26.Cancel(), mOnFailureCallback_26.Cancel(), bitmap64Argument); + return cluster.WriteAttribute( + bitmap64Argument, this, OnSuccessCallback_26, OnFailureCallback_26); } void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_26(uint64_t bitmap64) { NextTest(); } + void OnSuccessResponse_26() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap64MaxValue_27() { @@ -24568,12 +23863,13 @@ class TestCluster : public TestCommand uint64_t bitmap64Argument = 0ULL; - return cluster.WriteAttributeBitmap64(mOnSuccessCallback_28.Cancel(), mOnFailureCallback_28.Cancel(), bitmap64Argument); + return cluster.WriteAttribute( + bitmap64Argument, this, OnSuccessCallback_28, OnFailureCallback_28); } void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_28(uint64_t bitmap64) { NextTest(); } + void OnSuccessResponse_28() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap64MinValue_29() { @@ -24614,12 +23910,13 @@ class TestCluster : public TestCommand uint8_t int8uArgument = 255; - return cluster.WriteAttributeInt8u(mOnSuccessCallback_31.Cancel(), mOnFailureCallback_31.Cancel(), int8uArgument); + return cluster.WriteAttribute( + int8uArgument, this, OnSuccessCallback_31, OnFailureCallback_31); } void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_31(uint8_t int8u) { NextTest(); } + void OnSuccessResponse_31() { NextTest(); } CHIP_ERROR TestReadAttributeInt8uMaxValue_32() { @@ -24644,12 +23941,13 @@ class TestCluster : public TestCommand uint8_t int8uArgument = 0; - return cluster.WriteAttributeInt8u(mOnSuccessCallback_33.Cancel(), mOnFailureCallback_33.Cancel(), int8uArgument); + return cluster.WriteAttribute( + int8uArgument, this, OnSuccessCallback_33, OnFailureCallback_33); } void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_33(uint8_t int8u) { NextTest(); } + void OnSuccessResponse_33() { NextTest(); } CHIP_ERROR TestReadAttributeInt8uMinValue_34() { @@ -24690,12 +23988,13 @@ class TestCluster : public TestCommand uint16_t int16uArgument = 65535U; - return cluster.WriteAttributeInt16u(mOnSuccessCallback_36.Cancel(), mOnFailureCallback_36.Cancel(), int16uArgument); + return cluster.WriteAttribute( + int16uArgument, this, OnSuccessCallback_36, OnFailureCallback_36); } void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_36(uint16_t int16u) { NextTest(); } + void OnSuccessResponse_36() { NextTest(); } CHIP_ERROR TestReadAttributeInt16uMaxValue_37() { @@ -24720,12 +24019,13 @@ class TestCluster : public TestCommand uint16_t int16uArgument = 0U; - return cluster.WriteAttributeInt16u(mOnSuccessCallback_38.Cancel(), mOnFailureCallback_38.Cancel(), int16uArgument); + return cluster.WriteAttribute( + int16uArgument, this, OnSuccessCallback_38, OnFailureCallback_38); } void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_38(uint16_t int16u) { NextTest(); } + void OnSuccessResponse_38() { NextTest(); } CHIP_ERROR TestReadAttributeInt16uMinValue_39() { @@ -24766,12 +24066,13 @@ class TestCluster : public TestCommand uint32_t int32uArgument = 4294967295UL; - return cluster.WriteAttributeInt32u(mOnSuccessCallback_41.Cancel(), mOnFailureCallback_41.Cancel(), int32uArgument); + return cluster.WriteAttribute( + int32uArgument, this, OnSuccessCallback_41, OnFailureCallback_41); } void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_41(uint32_t int32u) { NextTest(); } + void OnSuccessResponse_41() { NextTest(); } CHIP_ERROR TestReadAttributeInt32uMaxValue_42() { @@ -24796,12 +24097,13 @@ class TestCluster : public TestCommand uint32_t int32uArgument = 0UL; - return cluster.WriteAttributeInt32u(mOnSuccessCallback_43.Cancel(), mOnFailureCallback_43.Cancel(), int32uArgument); + return cluster.WriteAttribute( + int32uArgument, this, OnSuccessCallback_43, OnFailureCallback_43); } void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_43(uint32_t int32u) { NextTest(); } + void OnSuccessResponse_43() { NextTest(); } CHIP_ERROR TestReadAttributeInt32uMinValue_44() { @@ -24842,12 +24144,13 @@ class TestCluster : public TestCommand uint64_t int64uArgument = 18446744073709551615ULL; - return cluster.WriteAttributeInt64u(mOnSuccessCallback_46.Cancel(), mOnFailureCallback_46.Cancel(), int64uArgument); + return cluster.WriteAttribute( + int64uArgument, this, OnSuccessCallback_46, OnFailureCallback_46); } void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_46(uint64_t int64u) { NextTest(); } + void OnSuccessResponse_46() { NextTest(); } CHIP_ERROR TestReadAttributeInt64uMaxValue_47() { @@ -24872,12 +24175,13 @@ class TestCluster : public TestCommand uint64_t int64uArgument = 0ULL; - return cluster.WriteAttributeInt64u(mOnSuccessCallback_48.Cancel(), mOnFailureCallback_48.Cancel(), int64uArgument); + return cluster.WriteAttribute( + int64uArgument, this, OnSuccessCallback_48, OnFailureCallback_48); } void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_48(uint64_t int64u) { NextTest(); } + void OnSuccessResponse_48() { NextTest(); } CHIP_ERROR TestReadAttributeInt64uMinValue_49() { @@ -24918,12 +24222,13 @@ class TestCluster : public TestCommand int8_t int8sArgument = 127; - return cluster.WriteAttributeInt8s(mOnSuccessCallback_51.Cancel(), mOnFailureCallback_51.Cancel(), int8sArgument); + return cluster.WriteAttribute( + int8sArgument, this, OnSuccessCallback_51, OnFailureCallback_51); } void OnFailureResponse_51(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_51(int8_t int8s) { NextTest(); } + void OnSuccessResponse_51() { NextTest(); } CHIP_ERROR TestReadAttributeInt8sMaxValue_52() { @@ -24948,12 +24253,13 @@ class TestCluster : public TestCommand int8_t int8sArgument = -128; - return cluster.WriteAttributeInt8s(mOnSuccessCallback_53.Cancel(), mOnFailureCallback_53.Cancel(), int8sArgument); + return cluster.WriteAttribute( + int8sArgument, this, OnSuccessCallback_53, OnFailureCallback_53); } void OnFailureResponse_53(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_53(int8_t int8s) { NextTest(); } + void OnSuccessResponse_53() { NextTest(); } CHIP_ERROR TestReadAttributeInt8sMinValue_54() { @@ -24978,12 +24284,13 @@ class TestCluster : public TestCommand int8_t int8sArgument = 0; - return cluster.WriteAttributeInt8s(mOnSuccessCallback_55.Cancel(), mOnFailureCallback_55.Cancel(), int8sArgument); + return cluster.WriteAttribute( + int8sArgument, this, OnSuccessCallback_55, OnFailureCallback_55); } void OnFailureResponse_55(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_55(int8_t int8s) { NextTest(); } + void OnSuccessResponse_55() { NextTest(); } CHIP_ERROR TestReadAttributeInt8sDefaultValue_56() { @@ -25024,12 +24331,13 @@ class TestCluster : public TestCommand int16_t int16sArgument = 32767; - return cluster.WriteAttributeInt16s(mOnSuccessCallback_58.Cancel(), mOnFailureCallback_58.Cancel(), int16sArgument); + return cluster.WriteAttribute( + int16sArgument, this, OnSuccessCallback_58, OnFailureCallback_58); } void OnFailureResponse_58(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_58(int16_t int16s) { NextTest(); } + void OnSuccessResponse_58() { NextTest(); } CHIP_ERROR TestReadAttributeInt16sMaxValue_59() { @@ -25054,12 +24362,13 @@ class TestCluster : public TestCommand int16_t int16sArgument = -32768; - return cluster.WriteAttributeInt16s(mOnSuccessCallback_60.Cancel(), mOnFailureCallback_60.Cancel(), int16sArgument); + return cluster.WriteAttribute( + int16sArgument, this, OnSuccessCallback_60, OnFailureCallback_60); } void OnFailureResponse_60(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_60(int16_t int16s) { NextTest(); } + void OnSuccessResponse_60() { NextTest(); } CHIP_ERROR TestReadAttributeInt16sMinValue_61() { @@ -25084,12 +24393,13 @@ class TestCluster : public TestCommand int16_t int16sArgument = 0; - return cluster.WriteAttributeInt16s(mOnSuccessCallback_62.Cancel(), mOnFailureCallback_62.Cancel(), int16sArgument); + return cluster.WriteAttribute( + int16sArgument, this, OnSuccessCallback_62, OnFailureCallback_62); } void OnFailureResponse_62(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_62(int16_t int16s) { NextTest(); } + void OnSuccessResponse_62() { NextTest(); } CHIP_ERROR TestReadAttributeInt16sDefaultValue_63() { @@ -25130,12 +24440,13 @@ class TestCluster : public TestCommand int32_t int32sArgument = 2147483647L; - return cluster.WriteAttributeInt32s(mOnSuccessCallback_65.Cancel(), mOnFailureCallback_65.Cancel(), int32sArgument); + return cluster.WriteAttribute( + int32sArgument, this, OnSuccessCallback_65, OnFailureCallback_65); } void OnFailureResponse_65(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_65(int32_t int32s) { NextTest(); } + void OnSuccessResponse_65() { NextTest(); } CHIP_ERROR TestReadAttributeInt32sMaxValue_66() { @@ -25160,12 +24471,13 @@ class TestCluster : public TestCommand int32_t int32sArgument = -2147483648L; - return cluster.WriteAttributeInt32s(mOnSuccessCallback_67.Cancel(), mOnFailureCallback_67.Cancel(), int32sArgument); + return cluster.WriteAttribute( + int32sArgument, this, OnSuccessCallback_67, OnFailureCallback_67); } void OnFailureResponse_67(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_67(int32_t int32s) { NextTest(); } + void OnSuccessResponse_67() { NextTest(); } CHIP_ERROR TestReadAttributeInt32sMinValue_68() { @@ -25190,12 +24502,13 @@ class TestCluster : public TestCommand int32_t int32sArgument = 0L; - return cluster.WriteAttributeInt32s(mOnSuccessCallback_69.Cancel(), mOnFailureCallback_69.Cancel(), int32sArgument); + return cluster.WriteAttribute( + int32sArgument, this, OnSuccessCallback_69, OnFailureCallback_69); } void OnFailureResponse_69(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_69(int32_t int32s) { NextTest(); } + void OnSuccessResponse_69() { NextTest(); } CHIP_ERROR TestReadAttributeInt32sDefaultValue_70() { @@ -25236,12 +24549,13 @@ class TestCluster : public TestCommand int64_t int64sArgument = 9223372036854775807LL; - return cluster.WriteAttributeInt64s(mOnSuccessCallback_72.Cancel(), mOnFailureCallback_72.Cancel(), int64sArgument); + return cluster.WriteAttribute( + int64sArgument, this, OnSuccessCallback_72, OnFailureCallback_72); } void OnFailureResponse_72(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_72(int64_t int64s) { NextTest(); } + void OnSuccessResponse_72() { NextTest(); } CHIP_ERROR TestReadAttributeInt64sMaxValue_73() { @@ -25266,12 +24580,13 @@ class TestCluster : public TestCommand int64_t int64sArgument = -9223372036854775807LL; - return cluster.WriteAttributeInt64s(mOnSuccessCallback_74.Cancel(), mOnFailureCallback_74.Cancel(), int64sArgument); + return cluster.WriteAttribute( + int64sArgument, this, OnSuccessCallback_74, OnFailureCallback_74); } void OnFailureResponse_74(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_74(int64_t int64s) { NextTest(); } + void OnSuccessResponse_74() { NextTest(); } CHIP_ERROR TestReadAttributeInt64sMinValue_75() { @@ -25296,12 +24611,13 @@ class TestCluster : public TestCommand int64_t int64sArgument = 0LL; - return cluster.WriteAttributeInt64s(mOnSuccessCallback_76.Cancel(), mOnFailureCallback_76.Cancel(), int64sArgument); + return cluster.WriteAttribute( + int64sArgument, this, OnSuccessCallback_76, OnFailureCallback_76); } void OnFailureResponse_76(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_76(int64_t int64s) { NextTest(); } + void OnSuccessResponse_76() { NextTest(); } CHIP_ERROR TestReadAttributeInt64sDefaultValue_77() { @@ -25342,12 +24658,13 @@ class TestCluster : public TestCommand uint8_t enum8Argument = static_cast(255); - return cluster.WriteAttributeEnum8(mOnSuccessCallback_79.Cancel(), mOnFailureCallback_79.Cancel(), enum8Argument); + return cluster.WriteAttribute( + enum8Argument, this, OnSuccessCallback_79, OnFailureCallback_79); } void OnFailureResponse_79(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_79(uint8_t enum8) { NextTest(); } + void OnSuccessResponse_79() { NextTest(); } CHIP_ERROR TestReadAttributeEnum8MaxValue_80() { @@ -25372,12 +24689,13 @@ class TestCluster : public TestCommand uint8_t enum8Argument = static_cast(0); - return cluster.WriteAttributeEnum8(mOnSuccessCallback_81.Cancel(), mOnFailureCallback_81.Cancel(), enum8Argument); + return cluster.WriteAttribute( + enum8Argument, this, OnSuccessCallback_81, OnFailureCallback_81); } void OnFailureResponse_81(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_81(uint8_t enum8) { NextTest(); } + void OnSuccessResponse_81() { NextTest(); } CHIP_ERROR TestReadAttributeEnum8MinValue_82() { @@ -25418,12 +24736,13 @@ class TestCluster : public TestCommand uint16_t enum16Argument = static_cast(65535U); - return cluster.WriteAttributeEnum16(mOnSuccessCallback_84.Cancel(), mOnFailureCallback_84.Cancel(), enum16Argument); + return cluster.WriteAttribute( + enum16Argument, this, OnSuccessCallback_84, OnFailureCallback_84); } void OnFailureResponse_84(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_84(uint16_t enum16) { NextTest(); } + void OnSuccessResponse_84() { NextTest(); } CHIP_ERROR TestReadAttributeEnum16MaxValue_85() { @@ -25448,12 +24767,13 @@ class TestCluster : public TestCommand uint16_t enum16Argument = static_cast(0U); - return cluster.WriteAttributeEnum16(mOnSuccessCallback_86.Cancel(), mOnFailureCallback_86.Cancel(), enum16Argument); + return cluster.WriteAttribute( + enum16Argument, this, OnSuccessCallback_86, OnFailureCallback_86); } void OnFailureResponse_86(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_86(uint16_t enum16) { NextTest(); } + void OnSuccessResponse_86() { NextTest(); } CHIP_ERROR TestReadAttributeEnum16MinValue_87() { @@ -25494,13 +24814,13 @@ class TestCluster : public TestCommand chip::ByteSpan octetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char("TestValue"), strlen("TestValue")); - return cluster.WriteAttributeOctetString(mOnSuccessCallback_89.Cancel(), mOnFailureCallback_89.Cancel(), - octetStringArgument); + return cluster.WriteAttribute( + octetStringArgument, this, OnSuccessCallback_89, OnFailureCallback_89); } void OnFailureResponse_89(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_89(chip::ByteSpan octetString) { NextTest(); } + void OnSuccessResponse_89() { NextTest(); } CHIP_ERROR TestReadAttributeOctetString_90() { @@ -25526,13 +24846,13 @@ class TestCluster : public TestCommand chip::ByteSpan octetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char("TestValueLongerThan10"), strlen("TestValueLongerThan10")); - return cluster.WriteAttributeOctetString(mOnSuccessCallback_91.Cancel(), mOnFailureCallback_91.Cancel(), - octetStringArgument); + return cluster.WriteAttribute( + octetStringArgument, this, OnSuccessCallback_91, OnFailureCallback_91); } void OnFailureResponse_91(uint8_t status) { NextTest(); } - void OnSuccessResponse_91(chip::ByteSpan octetString) { ThrowSuccessResponse(); } + void OnSuccessResponse_91() { ThrowSuccessResponse(); } CHIP_ERROR TestReadAttributeOctetString_92() { @@ -25557,13 +24877,13 @@ class TestCluster : public TestCommand chip::ByteSpan octetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char(""), strlen("")); - return cluster.WriteAttributeOctetString(mOnSuccessCallback_93.Cancel(), mOnFailureCallback_93.Cancel(), - octetStringArgument); + return cluster.WriteAttribute( + octetStringArgument, this, OnSuccessCallback_93, OnFailureCallback_93); } void OnFailureResponse_93(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_93(chip::ByteSpan octetString) { NextTest(); } + void OnSuccessResponse_93() { NextTest(); } CHIP_ERROR TestReadAttributeLongOctetStringDefaultValue_94() { @@ -25595,13 +24915,13 @@ class TestCluster : public TestCommand "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111" "111111111111111111111111111111111111111111111111111111111111111111111111111111")); - return cluster.WriteAttributeLongOctetString(mOnSuccessCallback_95.Cancel(), mOnFailureCallback_95.Cancel(), - longOctetStringArgument); + return cluster.WriteAttribute( + longOctetStringArgument, this, OnSuccessCallback_95, OnFailureCallback_95); } void OnFailureResponse_95(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_95(chip::ByteSpan longOctetString) { NextTest(); } + void OnSuccessResponse_95() { NextTest(); } CHIP_ERROR TestReadAttributeLongOctetString_96() { @@ -25630,13 +24950,13 @@ class TestCluster : public TestCommand chip::ByteSpan longOctetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char(""), strlen("")); - return cluster.WriteAttributeLongOctetString(mOnSuccessCallback_97.Cancel(), mOnFailureCallback_97.Cancel(), - longOctetStringArgument); + return cluster.WriteAttribute( + longOctetStringArgument, this, OnSuccessCallback_97, OnFailureCallback_97); } void OnFailureResponse_97(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_97(chip::ByteSpan longOctetString) { NextTest(); } + void OnSuccessResponse_97() { NextTest(); } CHIP_ERROR TestReadAttributeCharStringDefaultValue_98() { @@ -25661,12 +24981,13 @@ class TestCluster : public TestCommand chip::CharSpan charStringArgument = chip::CharSpan("☉T☉", strlen("☉T☉")); - return cluster.WriteAttributeCharString(mOnSuccessCallback_99.Cancel(), mOnFailureCallback_99.Cancel(), charStringArgument); + return cluster.WriteAttribute( + charStringArgument, this, OnSuccessCallback_99, OnFailureCallback_99); } void OnFailureResponse_99(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_99(chip::CharSpan charString) { NextTest(); } + void OnSuccessResponse_99() { NextTest(); } CHIP_ERROR TestWriteAttributeCharStringValueTooLong_100() { @@ -25675,13 +24996,13 @@ class TestCluster : public TestCommand chip::CharSpan charStringArgument = chip::CharSpan("☉TestValueLongerThan10☉", strlen("☉TestValueLongerThan10☉")); - return cluster.WriteAttributeCharString(mOnSuccessCallback_100.Cancel(), mOnFailureCallback_100.Cancel(), - charStringArgument); + return cluster.WriteAttribute( + charStringArgument, this, OnSuccessCallback_100, OnFailureCallback_100); } void OnFailureResponse_100(uint8_t status) { NextTest(); } - void OnSuccessResponse_100(chip::CharSpan charString) { ThrowSuccessResponse(); } + void OnSuccessResponse_100() { ThrowSuccessResponse(); } CHIP_ERROR TestWriteAttributeCharStringEmpty_101() { @@ -25690,13 +25011,13 @@ class TestCluster : public TestCommand chip::CharSpan charStringArgument = chip::CharSpan("", strlen("")); - return cluster.WriteAttributeCharString(mOnSuccessCallback_101.Cancel(), mOnFailureCallback_101.Cancel(), - charStringArgument); + return cluster.WriteAttribute( + charStringArgument, this, OnSuccessCallback_101, OnFailureCallback_101); } void OnFailureResponse_101(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_101(chip::CharSpan charString) { NextTest(); } + void OnSuccessResponse_101() { NextTest(); } CHIP_ERROR TestReadAttributeLongCharStringDefaultValue_102() { @@ -25727,13 +25048,13 @@ class TestCluster : public TestCommand "☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉" "☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉")); - return cluster.WriteAttributeLongCharString(mOnSuccessCallback_103.Cancel(), mOnFailureCallback_103.Cancel(), - longCharStringArgument); + return cluster.WriteAttribute( + longCharStringArgument, this, OnSuccessCallback_103, OnFailureCallback_103); } void OnFailureResponse_103(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_103(chip::CharSpan longCharString) { NextTest(); } + void OnSuccessResponse_103() { NextTest(); } CHIP_ERROR TestReadAttributeLongCharString_104() { @@ -25762,13 +25083,13 @@ class TestCluster : public TestCommand chip::CharSpan longCharStringArgument = chip::CharSpan("", strlen("")); - return cluster.WriteAttributeLongCharString(mOnSuccessCallback_105.Cancel(), mOnFailureCallback_105.Cancel(), - longCharStringArgument); + return cluster.WriteAttribute( + longCharStringArgument, this, OnSuccessCallback_105, OnFailureCallback_105); } void OnFailureResponse_105(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_105(chip::CharSpan longCharString) { NextTest(); } + void OnSuccessResponse_105() { NextTest(); } CHIP_ERROR TestReadAttributeList_106() { @@ -25843,12 +25164,13 @@ class TestCluster : public TestCommand uint64_t epochUsArgument = 18446744073709551615ULL; - return cluster.WriteAttributeEpochUs(mOnSuccessCallback_110.Cancel(), mOnFailureCallback_110.Cancel(), epochUsArgument); + return cluster.WriteAttribute( + epochUsArgument, this, OnSuccessCallback_110, OnFailureCallback_110); } void OnFailureResponse_110(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_110(uint64_t epochUs) { NextTest(); } + void OnSuccessResponse_110() { NextTest(); } CHIP_ERROR TestReadAttributeEpochUsMaxValue_111() { @@ -25873,12 +25195,13 @@ class TestCluster : public TestCommand uint64_t epochUsArgument = 0ULL; - return cluster.WriteAttributeEpochUs(mOnSuccessCallback_112.Cancel(), mOnFailureCallback_112.Cancel(), epochUsArgument); + return cluster.WriteAttribute( + epochUsArgument, this, OnSuccessCallback_112, OnFailureCallback_112); } void OnFailureResponse_112(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_112(uint64_t epochUs) { NextTest(); } + void OnSuccessResponse_112() { NextTest(); } CHIP_ERROR TestReadAttributeEpochUsMinValue_113() { @@ -25919,12 +25242,13 @@ class TestCluster : public TestCommand uint32_t epochSArgument = 4294967295UL; - return cluster.WriteAttributeEpochS(mOnSuccessCallback_115.Cancel(), mOnFailureCallback_115.Cancel(), epochSArgument); + return cluster.WriteAttribute( + epochSArgument, this, OnSuccessCallback_115, OnFailureCallback_115); } void OnFailureResponse_115(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_115(uint32_t epochS) { NextTest(); } + void OnSuccessResponse_115() { NextTest(); } CHIP_ERROR TestReadAttributeEpochSMaxValue_116() { @@ -25949,12 +25273,13 @@ class TestCluster : public TestCommand uint32_t epochSArgument = 0UL; - return cluster.WriteAttributeEpochS(mOnSuccessCallback_117.Cancel(), mOnFailureCallback_117.Cancel(), epochSArgument); + return cluster.WriteAttribute( + epochSArgument, this, OnSuccessCallback_117, OnFailureCallback_117); } void OnFailureResponse_117(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_117(uint32_t epochS) { NextTest(); } + void OnSuccessResponse_117() { NextTest(); } CHIP_ERROR TestReadAttributeEpochSMinValue_118() { @@ -25998,8 +25323,8 @@ class TestCluster : public TestCommand bool unsupportedArgument = 0; - return cluster.WriteAttributeUnsupported(mOnSuccessCallback_120.Cancel(), mOnFailureCallback_120.Cancel(), - unsupportedArgument); + return cluster.WriteAttribute( + unsupportedArgument, this, OnSuccessCallback_120, OnFailureCallback_120); } void OnFailureResponse_120(uint8_t status) @@ -26007,7 +25332,7 @@ class TestCluster : public TestCommand (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_120(bool unsupported) { NextTest(); } + void OnSuccessResponse_120() { NextTest(); } CHIP_ERROR TestSendTestCommandToUnsupportedEndpoint_121() { @@ -26056,12 +25381,13 @@ class TestCluster : public TestCommand chip::VendorId vendorIdArgument = static_cast(17U); - return cluster.WriteAttributeVendorId(mOnSuccessCallback_123.Cancel(), mOnFailureCallback_123.Cancel(), vendorIdArgument); + return cluster.WriteAttribute( + vendorIdArgument, this, OnSuccessCallback_123, OnFailureCallback_123); } void OnFailureResponse_123(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_123(chip::VendorId vendorId) { NextTest(); } + void OnSuccessResponse_123() { NextTest(); } CHIP_ERROR TestReadAttributeVendorId_124() { @@ -26086,12 +25412,13 @@ class TestCluster : public TestCommand chip::VendorId vendorIdArgument = static_cast(0U); - return cluster.WriteAttributeVendorId(mOnSuccessCallback_125.Cancel(), mOnFailureCallback_125.Cancel(), vendorIdArgument); + return cluster.WriteAttribute( + vendorIdArgument, this, OnSuccessCallback_125, OnFailureCallback_125); } void OnFailureResponse_125(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_125(chip::VendorId vendorId) { NextTest(); } + void OnSuccessResponse_125() { NextTest(); } CHIP_ERROR TestSendACommandWithAVendorIdAndEnum_126() { @@ -26668,8 +25995,6 @@ class TestConstraints : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; @@ -26677,15 +26002,12 @@ class TestConstraints : public TestCommand chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint32_t int32u) - { - (static_cast(context))->OnSuccessResponse_0(int32u); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } static void OnFailureCallback_1(void * context, uint8_t status) { @@ -26728,12 +26050,13 @@ class TestConstraints : public TestCommand uint32_t int32uArgument = 5UL; - return cluster.WriteAttributeInt32u(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), int32uArgument); + return cluster.WriteAttribute( + int32uArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint32_t int32u) { NextTest(); } + void OnSuccessResponse_0() { NextTest(); } CHIP_ERROR TestReadAttributeInt32uValueMinValueConstraints_1() { @@ -27139,12 +26462,8 @@ class TestBasicInformation : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; - chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; - chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; static void OnFailureCallback_0(void * context, uint8_t status) { @@ -27156,15 +26475,12 @@ class TestBasicInformation : public TestCommand (static_cast(context))->OnSuccessResponse_0(location); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, chip::CharSpan location) - { - (static_cast(context))->OnSuccessResponse_1(location); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -27176,15 +26492,12 @@ class TestBasicInformation : public TestCommand (static_cast(context))->OnSuccessResponse_2(location); } - static void OnFailureCallback_3(void * context, uint8_t status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, chip::CharSpan location) - { - (static_cast(context))->OnSuccessResponse_3(location); - } + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } // // Tests methods @@ -27213,12 +26526,13 @@ class TestBasicInformation : public TestCommand chip::CharSpan locationArgument = chip::CharSpan("us", strlen("us")); - return cluster.WriteAttributeLocation(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), locationArgument); + return cluster.WriteAttribute( + locationArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(chip::CharSpan location) { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } CHIP_ERROR TestReadBackLocation_2() { @@ -27243,12 +26557,13 @@ class TestBasicInformation : public TestCommand chip::CharSpan locationArgument = chip::CharSpan("", strlen("")); - return cluster.WriteAttributeLocation(mOnSuccessCallback_3.Cancel(), mOnFailureCallback_3.Cancel(), locationArgument); + return cluster.WriteAttribute( + locationArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(chip::CharSpan location) { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } }; class TestIdentifyCluster : public TestCommand @@ -28103,6 +27418,7 @@ class TestSubscribe_OnOff : public TestCommand cluster.Associate(mDevice, 1); ReturnErrorOnFailure(cluster.ReportAttributeOnOff(mOnSuccessCallback_1.Cancel())); + return WaitForMs(0); } diff --git a/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTest.cpp b/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTest.cpp index e05e04282f811a..6b0ea08e3ca788 100644 --- a/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTest.cpp +++ b/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTest.cpp @@ -33,6 +33,10 @@ using namespace chip::Encoding::LittleEndian; namespace chip { namespace Controller { +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::AccountLogin::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR AccountLoginClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -44,6 +48,11 @@ CHIP_ERROR AccountLoginClusterTest::WriteAttributeClusterRevision(Callback::Canc return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::AdministratorCommissioning::Attributes::ClusterRevision::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR AdministratorCommissioningClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -56,6 +65,10 @@ CHIP_ERROR AdministratorCommissioningClusterTest::WriteAttributeClusterRevision( return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::VendorName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -66,6 +79,11 @@ CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeVendorName(Callback::Cance chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::VendorName::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::VendorId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -76,6 +94,11 @@ CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeVendorId(Callback::Cancela chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::VendorId::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::ApplicationName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeApplicationName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) @@ -87,6 +110,11 @@ CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeApplicationName(Callback:: chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::ApplicationName::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::ProductId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeProductId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -97,6 +125,11 @@ CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeProductId(Callback::Cancel chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::ProductId::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::ApplicationId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeApplicationId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -107,6 +140,11 @@ CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeApplicationId(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::ApplicationId::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::CatalogVendorId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -117,6 +155,11 @@ CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeCatalogVendorId(Callback:: chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::CatalogVendorId::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::ApplicationStatus::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeApplicationStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -127,6 +170,11 @@ CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeApplicationStatus(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::ApplicationStatus::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -138,6 +186,15 @@ CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeClusterRevision(Callback:: return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationLauncher::Attributes::ApplicationLauncherList::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationLauncher::Attributes::CatalogVendorId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ApplicationLauncherClusterTest::WriteAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -148,6 +205,11 @@ CHIP_ERROR ApplicationLauncherClusterTest::WriteAttributeCatalogVendorId(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationLauncher::Attributes::CatalogVendorId::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationLauncher::Attributes::ApplicationId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ApplicationLauncherClusterTest::WriteAttributeApplicationId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -158,6 +220,11 @@ CHIP_ERROR ApplicationLauncherClusterTest::WriteAttributeApplicationId(Callback: chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationLauncher::Attributes::ApplicationId::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationLauncher::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ApplicationLauncherClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -169,6 +236,14 @@ CHIP_ERROR ApplicationLauncherClusterTest::WriteAttributeClusterRevision(Callbac return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::AudioOutput::Attributes::AudioOutputList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::AudioOutput::Attributes::CurrentAudioOutput::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR AudioOutputClusterTest::WriteAttributeCurrentAudioOutput(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -179,6 +254,11 @@ CHIP_ERROR AudioOutputClusterTest::WriteAttributeCurrentAudioOutput(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, AudioOutput::Attributes::CurrentAudioOutput::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::AudioOutput::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR AudioOutputClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -190,6 +270,10 @@ CHIP_ERROR AudioOutputClusterTest::WriteAttributeClusterRevision(Callback::Cance return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BarrierControl::Attributes::BarrierMovingState::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BarrierControlClusterTest::WriteAttributeBarrierMovingState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -200,6 +284,11 @@ CHIP_ERROR BarrierControlClusterTest::WriteAttributeBarrierMovingState(Callback: chip::app::AttributePathParams(mEndpoint, mClusterId, BarrierControl::Attributes::BarrierMovingState::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BarrierControl::Attributes::BarrierSafetyStatus::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BarrierControlClusterTest::WriteAttributeBarrierSafetyStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -210,6 +299,11 @@ CHIP_ERROR BarrierControlClusterTest::WriteAttributeBarrierSafetyStatus(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, BarrierControl::Attributes::BarrierSafetyStatus::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BarrierControl::Attributes::BarrierCapabilities::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BarrierControlClusterTest::WriteAttributeBarrierCapabilities(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -220,6 +314,11 @@ CHIP_ERROR BarrierControlClusterTest::WriteAttributeBarrierCapabilities(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, BarrierControl::Attributes::BarrierCapabilities::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BarrierControl::Attributes::BarrierPosition::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BarrierControlClusterTest::WriteAttributeBarrierPosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -230,6 +329,11 @@ CHIP_ERROR BarrierControlClusterTest::WriteAttributeBarrierPosition(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, BarrierControl::Attributes::BarrierPosition::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BarrierControl::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BarrierControlClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -241,6 +345,10 @@ CHIP_ERROR BarrierControlClusterTest::WriteAttributeClusterRevision(Callback::Ca return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::InteractionModelVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeInteractionModelVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -251,6 +359,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeInteractionModelVersion(Callback::Can chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::InteractionModelVersion::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::VendorName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -261,6 +374,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeVendorName(Callback::Cancelable * onS chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::VendorName::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::VendorID::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeVendorID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -271,6 +389,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeVendorID(Callback::Cancelable * onSuc chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::VendorID::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::ProductName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeProductName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -281,6 +404,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeProductName(Callback::Cancelable * on chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::ProductName::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::ProductID::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeProductID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -291,6 +419,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeProductID(Callback::Cancelable * onSu chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::ProductID::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::HardwareVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeHardwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -301,6 +434,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeHardwareVersion(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::HardwareVersion::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::HardwareVersionString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeHardwareVersionString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -311,6 +449,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeHardwareVersionString(Callback::Cance chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::HardwareVersionString::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::SoftwareVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeSoftwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -321,6 +464,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeSoftwareVersion(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::SoftwareVersion::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::SoftwareVersionString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeSoftwareVersionString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -331,6 +479,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeSoftwareVersionString(Callback::Cance chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::SoftwareVersionString::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::ManufacturingDate::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeManufacturingDate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -341,6 +494,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeManufacturingDate(Callback::Cancelabl chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::ManufacturingDate::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::PartNumber::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributePartNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -351,6 +509,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributePartNumber(Callback::Cancelable * onS chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::PartNumber::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::ProductURL::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeProductURL(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -361,6 +524,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeProductURL(Callback::Cancelable * onS chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::ProductURL::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::ProductLabel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeProductLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -371,6 +539,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeProductLabel(Callback::Cancelable * o chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::ProductLabel::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::SerialNumber::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeSerialNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -381,6 +554,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeSerialNumber(Callback::Cancelable * o chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::SerialNumber::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::Reachable::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeReachable(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -391,6 +569,11 @@ CHIP_ERROR BasicClusterTest::WriteAttributeReachable(Callback::Cancelable * onSu chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::Reachable::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BasicClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -402,6 +585,10 @@ CHIP_ERROR BasicClusterTest::WriteAttributeClusterRevision(Callback::Cancelable return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BinaryInputBasic::Attributes::StatusFlags::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BinaryInputBasicClusterTest::WriteAttributeStatusFlags(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -412,6 +599,11 @@ CHIP_ERROR BinaryInputBasicClusterTest::WriteAttributeStatusFlags(Callback::Canc chip::app::AttributePathParams(mEndpoint, mClusterId, BinaryInputBasic::Attributes::StatusFlags::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BinaryInputBasic::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BinaryInputBasicClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -423,6 +615,10 @@ CHIP_ERROR BinaryInputBasicClusterTest::WriteAttributeClusterRevision(Callback:: return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Binding::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BindingClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -434,6 +630,10 @@ CHIP_ERROR BindingClusterTest::WriteAttributeClusterRevision(Callback::Cancelabl return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BooleanState::Attributes::StateValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BooleanStateClusterTest::WriteAttributeStateValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -444,6 +644,11 @@ CHIP_ERROR BooleanStateClusterTest::WriteAttributeStateValue(Callback::Cancelabl chip::app::AttributePathParams(mEndpoint, mClusterId, BooleanState::Attributes::StateValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BooleanState::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BooleanStateClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -455,6 +660,18 @@ CHIP_ERROR BooleanStateClusterTest::WriteAttributeClusterRevision(Callback::Canc return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedActions::Attributes::ActionList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedActions::Attributes::EndpointList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedActions::Attributes::SetupUrl::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedActionsClusterTest::WriteAttributeSetupUrl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -465,6 +682,11 @@ CHIP_ERROR BridgedActionsClusterTest::WriteAttributeSetupUrl(Callback::Cancelabl chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedActions::Attributes::SetupUrl::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedActions::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedActionsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -476,6 +698,10 @@ CHIP_ERROR BridgedActionsClusterTest::WriteAttributeClusterRevision(Callback::Ca return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::VendorName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -486,6 +712,11 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeVendorName(Callback::Can chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::VendorName::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::VendorID::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeVendorID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -496,6 +727,11 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeVendorID(Callback::Cance chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::VendorID::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::ProductName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeProductName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -506,6 +742,11 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeProductName(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::ProductName::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::HardwareVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeHardwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -516,6 +757,12 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeHardwareVersion(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::HardwareVersion::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::HardwareVersionString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeHardwareVersionString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) @@ -527,6 +774,11 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeHardwareVersionString(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::HardwareVersionString::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::SoftwareVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeSoftwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -537,6 +789,12 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeSoftwareVersion(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::SoftwareVersion::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::SoftwareVersionString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeSoftwareVersionString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) @@ -548,6 +806,11 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeSoftwareVersionString(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::SoftwareVersionString::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::ManufacturingDate::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeManufacturingDate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) @@ -559,6 +822,11 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeManufacturingDate(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::ManufacturingDate::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::PartNumber::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributePartNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -569,6 +837,11 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributePartNumber(Callback::Can chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::PartNumber::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::ProductURL::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeProductURL(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -579,6 +852,11 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeProductURL(Callback::Can chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::ProductURL::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::ProductLabel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeProductLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -589,6 +867,11 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeProductLabel(Callback::C chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::ProductLabel::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::SerialNumber::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeSerialNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -599,6 +882,11 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeSerialNumber(Callback::C chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::SerialNumber::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::Reachable::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeReachable(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -609,6 +897,11 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeReachable(Callback::Canc chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::Reachable::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -620,6 +913,10 @@ CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeClusterRevision(Callback return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::CurrentHue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeCurrentHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -630,6 +927,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeCurrentHue(Callback::Cancelabl chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::CurrentHue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::CurrentSaturation::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeCurrentSaturation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -640,6 +942,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeCurrentSaturation(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::CurrentSaturation::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::RemainingTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeRemainingTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -650,6 +957,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeRemainingTime(Callback::Cancel chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::RemainingTime::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::CurrentX::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeCurrentX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -660,6 +972,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeCurrentX(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::CurrentX::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::CurrentY::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeCurrentY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -670,6 +987,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeCurrentY(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::CurrentY::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::DriftCompensation::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeDriftCompensation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -680,6 +1002,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeDriftCompensation(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::DriftCompensation::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::CompensationText::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeCompensationText(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -690,6 +1017,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeCompensationText(Callback::Can chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::CompensationText::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorTemperature::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeColorTemperature(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -700,6 +1032,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeColorTemperature(Callback::Can chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorTemperature::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorMode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeColorMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -710,6 +1047,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeColorMode(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorMode::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::NumberOfPrimaries::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeNumberOfPrimaries(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -720,6 +1062,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeNumberOfPrimaries(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::NumberOfPrimaries::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary1X::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary1X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -730,6 +1077,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary1X(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary1X::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary1Y::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary1Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -740,6 +1092,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary1Y(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary1Y::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary1Intensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary1Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -750,6 +1107,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary1Intensity(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary1Intensity::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary2X::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary2X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -760,6 +1122,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary2X(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary2X::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary2Y::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary2Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -770,6 +1137,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary2Y(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary2Y::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary2Intensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary2Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -780,6 +1152,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary2Intensity(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary2Intensity::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary3X::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary3X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -790,6 +1167,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary3X(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary3X::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary3Y::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary3Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -800,6 +1182,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary3Y(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary3Y::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary3Intensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary3Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -810,6 +1197,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary3Intensity(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary3Intensity::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary4X::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary4X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -820,6 +1212,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary4X(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary4X::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary4Y::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary4Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -830,6 +1227,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary4Y(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary4Y::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary4Intensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary4Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -840,6 +1242,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary4Intensity(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary4Intensity::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary5X::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary5X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -850,6 +1257,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary5X(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary5X::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary5Y::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary5Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -860,6 +1272,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary5Y(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary5Y::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary5Intensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary5Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -870,6 +1287,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary5Intensity(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary5Intensity::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary6X::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary6X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -880,6 +1302,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary6X(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary6X::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary6Y::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary6Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -890,6 +1317,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary6Y(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary6Y::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary6Intensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary6Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -900,6 +1332,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary6Intensity(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary6Intensity::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::EnhancedCurrentHue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeEnhancedCurrentHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -910,6 +1347,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeEnhancedCurrentHue(Callback::C chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::EnhancedCurrentHue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::EnhancedColorMode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeEnhancedColorMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -920,6 +1362,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeEnhancedColorMode(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::EnhancedColorMode::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorLoopActive::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopActive(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -930,6 +1377,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopActive(Callback::Canc chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorLoopActive::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorLoopDirection::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopDirection(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -940,6 +1392,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopDirection(Callback::C chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorLoopDirection::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorLoopTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -950,6 +1407,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopTime(Callback::Cancel chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorLoopTime::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorLoopStartEnhancedHue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopStartEnhancedHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -961,6 +1423,12 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopStartEnhancedHue(Call chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorLoopStartEnhancedHue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorLoopStoredEnhancedHue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopStoredEnhancedHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -972,6 +1440,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopStoredEnhancedHue(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorCapabilities::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeColorCapabilities(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -982,6 +1455,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeColorCapabilities(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorCapabilities::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorTempPhysicalMin::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeColorTempPhysicalMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -992,6 +1470,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeColorTempPhysicalMin(Callback: chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorTempPhysicalMin::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorTempPhysicalMax::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeColorTempPhysicalMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1002,6 +1485,12 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeColorTempPhysicalMax(Callback: chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorTempPhysicalMax::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::CoupleColorTempToLevelMinMireds::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeCoupleColorTempToLevelMinMireds(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -1014,6 +1503,11 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeCoupleColorTempToLevelMinMired value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ColorControlClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1025,6 +1519,19 @@ CHIP_ERROR ColorControlClusterTest::WriteAttributeClusterRevision(Callback::Canc return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ContentLauncher::Attributes::AcceptsHeaderList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ContentLauncher::Attributes::SupportedStreamingTypes::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ContentLauncher::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ContentLauncherClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1036,6 +1543,26 @@ CHIP_ERROR ContentLauncherClusterTest::WriteAttributeClusterRevision(Callback::C return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Descriptor::Attributes::DeviceList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Descriptor::Attributes::ServerList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Descriptor::Attributes::ClientList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Descriptor::Attributes::PartsList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Descriptor::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR DescriptorClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1047,6 +1574,10 @@ CHIP_ERROR DescriptorClusterTest::WriteAttributeClusterRevision(Callback::Cancel return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::DoorLock::Attributes::LockState::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR DoorLockClusterTest::WriteAttributeLockState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1057,6 +1588,11 @@ CHIP_ERROR DoorLockClusterTest::WriteAttributeLockState(Callback::Cancelable * o chip::app::AttributePathParams(mEndpoint, mClusterId, DoorLock::Attributes::LockState::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::DoorLock::Attributes::LockType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR DoorLockClusterTest::WriteAttributeLockType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1067,6 +1603,11 @@ CHIP_ERROR DoorLockClusterTest::WriteAttributeLockType(Callback::Cancelable * on chip::app::AttributePathParams(mEndpoint, mClusterId, DoorLock::Attributes::LockType::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::DoorLock::Attributes::ActuatorEnabled::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR DoorLockClusterTest::WriteAttributeActuatorEnabled(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -1077,6 +1618,11 @@ CHIP_ERROR DoorLockClusterTest::WriteAttributeActuatorEnabled(Callback::Cancelab chip::app::AttributePathParams(mEndpoint, mClusterId, DoorLock::Attributes::ActuatorEnabled::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::DoorLock::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR DoorLockClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1088,6 +1634,10 @@ CHIP_ERROR DoorLockClusterTest::WriteAttributeClusterRevision(Callback::Cancelab return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::MeasurementType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeMeasurementType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -1098,6 +1648,11 @@ CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeMeasurementType(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::MeasurementType::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::TotalActivePower::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeTotalActivePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int32_t value) { @@ -1108,6 +1663,11 @@ CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeTotalActivePower(Call chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::TotalActivePower::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsVoltage::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsVoltage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1118,6 +1678,11 @@ CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsVoltage(Callback:: chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::RmsVoltage::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsVoltageMin::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsVoltageMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1128,6 +1693,11 @@ CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsVoltageMin(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::RmsVoltageMin::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsVoltageMax::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsVoltageMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1138,6 +1708,11 @@ CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsVoltageMax(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::RmsVoltageMax::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsCurrent::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsCurrent(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1148,6 +1723,11 @@ CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsCurrent(Callback:: chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::RmsCurrent::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsCurrentMin::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsCurrentMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1158,6 +1738,11 @@ CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsCurrentMin(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::RmsCurrentMin::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsCurrentMax::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsCurrentMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1168,6 +1753,11 @@ CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsCurrentMax(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::RmsCurrentMax::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::ActivePower::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeActivePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -1178,6 +1768,11 @@ CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeActivePower(Callback: chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::ActivePower::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::ActivePowerMin::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeActivePowerMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -1188,6 +1783,11 @@ CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeActivePowerMin(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::ActivePowerMin::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::ActivePowerMax::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeActivePowerMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -1198,6 +1798,11 @@ CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeActivePowerMax(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::ActivePowerMax::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1209,6 +1814,10 @@ CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeClusterRevision(Callb return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::PHYRate::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributePHYRate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1219,6 +1828,11 @@ CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributePHYRate(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::PHYRate::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::FullDuplex::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeFullDuplex(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -1229,6 +1843,12 @@ CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeFullDuplex(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::FullDuplex::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::PacketRxCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributePacketRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) @@ -1240,6 +1860,12 @@ CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributePacketRxCount(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::PacketRxCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::PacketTxCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributePacketTxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) @@ -1251,6 +1877,11 @@ CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributePacketTxCount(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::PacketTxCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::TxErrCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeTxErrCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -1261,6 +1892,12 @@ CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeTxErrCount(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::TxErrCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::CollisionCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeCollisionCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) @@ -1272,6 +1909,12 @@ CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeCollisionCount(C chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::CollisionCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::OverrunCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) @@ -1283,6 +1926,12 @@ CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeOverrunCount(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::OverrunCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::CarrierDetect::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeCarrierDetect(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -1293,6 +1942,12 @@ CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeCarrierDetect(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::CarrierDetect::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::TimeSinceReset::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeTimeSinceReset(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) @@ -1304,6 +1959,12 @@ CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeTimeSinceReset(C chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::TimeSinceReset::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -1316,6 +1977,14 @@ CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeClusterRevision( return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FixedLabel::Attributes::LabelList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FixedLabel::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR FixedLabelClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1327,6 +1996,10 @@ CHIP_ERROR FixedLabelClusterTest::WriteAttributeClusterRevision(Callback::Cancel return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FlowMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -1337,6 +2010,11 @@ CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeMeasuredValue(Callback::Can chip::app::AttributePathParams(mEndpoint, mClusterId, FlowMeasurement::Attributes::MeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FlowMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -1347,6 +2025,11 @@ CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeMinMeasuredValue(Callback:: chip::app::AttributePathParams(mEndpoint, mClusterId, FlowMeasurement::Attributes::MinMeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FlowMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -1357,6 +2040,11 @@ CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Callback:: chip::app::AttributePathParams(mEndpoint, mClusterId, FlowMeasurement::Attributes::MaxMeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FlowMeasurement::Attributes::Tolerance::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1367,6 +2055,11 @@ CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeTolerance(Callback::Cancela chip::app::AttributePathParams(mEndpoint, mClusterId, FlowMeasurement::Attributes::Tolerance::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FlowMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1378,6 +2071,15 @@ CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeClusterRevision(Callback::C return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralCommissioning::Attributes::BasicCommissioningInfoList::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralCommissioning::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR GeneralCommissioningClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1389,6 +2091,14 @@ CHIP_ERROR GeneralCommissioningClusterTest::WriteAttributeClusterRevision(Callba return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralDiagnostics::Attributes::NetworkInterfaces::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralDiagnostics::Attributes::RebootCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeRebootCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1399,6 +2109,11 @@ CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeRebootCount(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, GeneralDiagnostics::Attributes::RebootCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralDiagnostics::Attributes::UpTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeUpTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -1409,6 +2124,12 @@ CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeUpTime(Callback::Cancela chip::app::AttributePathParams(mEndpoint, mClusterId, GeneralDiagnostics::Attributes::UpTime::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralDiagnostics::Attributes::TotalOperationalHours::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeTotalOperationalHours(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -1420,6 +2141,11 @@ CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeTotalOperationalHours(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, GeneralDiagnostics::Attributes::TotalOperationalHours::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralDiagnostics::Attributes::BootReasons::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeBootReasons(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1430,6 +2156,11 @@ CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeBootReasons(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, GeneralDiagnostics::Attributes::BootReasons::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1441,6 +2172,18 @@ CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeClusterRevision(Callback return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GroupKeyManagement::Attributes::Groups::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GroupKeyManagement::Attributes::GroupKeys::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GroupKeyManagement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR GroupKeyManagementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1452,6 +2195,10 @@ CHIP_ERROR GroupKeyManagementClusterTest::WriteAttributeClusterRevision(Callback return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Groups::Attributes::NameSupport::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR GroupsClusterTest::WriteAttributeNameSupport(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1462,6 +2209,11 @@ CHIP_ERROR GroupsClusterTest::WriteAttributeNameSupport(Callback::Cancelable * o chip::app::AttributePathParams(mEndpoint, mClusterId, Groups::Attributes::NameSupport::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Groups::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR GroupsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1473,6 +2225,10 @@ CHIP_ERROR GroupsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Identify::Attributes::IdentifyType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR IdentifyClusterTest::WriteAttributeIdentifyType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1483,6 +2239,11 @@ CHIP_ERROR IdentifyClusterTest::WriteAttributeIdentifyType(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, Identify::Attributes::IdentifyType::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Identify::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR IdentifyClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1494,6 +2255,10 @@ CHIP_ERROR IdentifyClusterTest::WriteAttributeClusterRevision(Callback::Cancelab return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::IlluminanceMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR IlluminanceMeasurementClusterTest::WriteAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1504,6 +2269,12 @@ CHIP_ERROR IlluminanceMeasurementClusterTest::WriteAttributeMeasuredValue(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, IlluminanceMeasurement::Attributes::MeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::IlluminanceMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR IlluminanceMeasurementClusterTest::WriteAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -1515,6 +2286,12 @@ CHIP_ERROR IlluminanceMeasurementClusterTest::WriteAttributeMinMeasuredValue(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, IlluminanceMeasurement::Attributes::MinMeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::IlluminanceMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR IlluminanceMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -1526,6 +2303,11 @@ CHIP_ERROR IlluminanceMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, IlluminanceMeasurement::Attributes::MaxMeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::IlluminanceMeasurement::Attributes::Tolerance::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR IlluminanceMeasurementClusterTest::WriteAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1536,6 +2318,11 @@ CHIP_ERROR IlluminanceMeasurementClusterTest::WriteAttributeTolerance(Callback:: chip::app::AttributePathParams(mEndpoint, mClusterId, IlluminanceMeasurement::Attributes::Tolerance::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::IlluminanceMeasurement::Attributes::LightSensorType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR IlluminanceMeasurementClusterTest::WriteAttributeLightSensorType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1546,6 +2333,11 @@ CHIP_ERROR IlluminanceMeasurementClusterTest::WriteAttributeLightSensorType(Call chip::app::AttributePathParams(mEndpoint, mClusterId, IlluminanceMeasurement::Attributes::LightSensorType::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::IlluminanceMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR IlluminanceMeasurementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -1558,6 +2350,10 @@ CHIP_ERROR IlluminanceMeasurementClusterTest::WriteAttributeClusterRevision(Call return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::KeypadInput::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR KeypadInputClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1569,6 +2365,10 @@ CHIP_ERROR KeypadInputClusterTest::WriteAttributeClusterRevision(Callback::Cance return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::CurrentLevel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR LevelControlClusterTest::WriteAttributeCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1579,6 +2379,11 @@ CHIP_ERROR LevelControlClusterTest::WriteAttributeCurrentLevel(Callback::Cancela chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::CurrentLevel::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::RemainingTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR LevelControlClusterTest::WriteAttributeRemainingTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1589,6 +2394,11 @@ CHIP_ERROR LevelControlClusterTest::WriteAttributeRemainingTime(Callback::Cancel chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::RemainingTime::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::MinLevel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR LevelControlClusterTest::WriteAttributeMinLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1599,6 +2409,11 @@ CHIP_ERROR LevelControlClusterTest::WriteAttributeMinLevel(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::MinLevel::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::MaxLevel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR LevelControlClusterTest::WriteAttributeMaxLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1609,6 +2424,11 @@ CHIP_ERROR LevelControlClusterTest::WriteAttributeMaxLevel(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::MaxLevel::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::CurrentFrequency::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR LevelControlClusterTest::WriteAttributeCurrentFrequency(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1619,6 +2439,11 @@ CHIP_ERROR LevelControlClusterTest::WriteAttributeCurrentFrequency(Callback::Can chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::CurrentFrequency::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::MinFrequency::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR LevelControlClusterTest::WriteAttributeMinFrequency(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1629,6 +2454,11 @@ CHIP_ERROR LevelControlClusterTest::WriteAttributeMinFrequency(Callback::Cancela chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::MinFrequency::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::MaxFrequency::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR LevelControlClusterTest::WriteAttributeMaxFrequency(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1639,6 +2469,11 @@ CHIP_ERROR LevelControlClusterTest::WriteAttributeMaxFrequency(Callback::Cancela chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::MaxFrequency::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR LevelControlClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1650,6 +2485,10 @@ CHIP_ERROR LevelControlClusterTest::WriteAttributeClusterRevision(Callback::Canc return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LowPower::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR LowPowerClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1661,6 +2500,14 @@ CHIP_ERROR LowPowerClusterTest::WriteAttributeClusterRevision(Callback::Cancelab return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaInput::Attributes::MediaInputList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaInput::Attributes::CurrentMediaInput::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR MediaInputClusterTest::WriteAttributeCurrentMediaInput(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1671,6 +2518,11 @@ CHIP_ERROR MediaInputClusterTest::WriteAttributeCurrentMediaInput(Callback::Canc chip::app::AttributePathParams(mEndpoint, mClusterId, MediaInput::Attributes::CurrentMediaInput::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaInput::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR MediaInputClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1682,6 +2534,10 @@ CHIP_ERROR MediaInputClusterTest::WriteAttributeClusterRevision(Callback::Cancel return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::PlaybackState::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR MediaPlaybackClusterTest::WriteAttributePlaybackState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1692,6 +2548,11 @@ CHIP_ERROR MediaPlaybackClusterTest::WriteAttributePlaybackState(Callback::Cance chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::PlaybackState::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::StartTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeStartTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -1702,6 +2563,11 @@ CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeStartTime(Callback::Cancelabl chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::StartTime::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::Duration::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeDuration(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -1712,6 +2578,11 @@ CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeDuration(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::Duration::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::PositionUpdatedAt::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR MediaPlaybackClusterTest::WriteAttributePositionUpdatedAt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -1722,6 +2593,11 @@ CHIP_ERROR MediaPlaybackClusterTest::WriteAttributePositionUpdatedAt(Callback::C chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::PositionUpdatedAt::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::Position::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR MediaPlaybackClusterTest::WriteAttributePosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -1732,6 +2608,11 @@ CHIP_ERROR MediaPlaybackClusterTest::WriteAttributePosition(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::Position::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::PlaybackSpeed::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR MediaPlaybackClusterTest::WriteAttributePlaybackSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -1742,6 +2623,11 @@ CHIP_ERROR MediaPlaybackClusterTest::WriteAttributePlaybackSpeed(Callback::Cance chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::PlaybackSpeed::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::SeekRangeEnd::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeSeekRangeEnd(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -1752,6 +2638,11 @@ CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeSeekRangeEnd(Callback::Cancel chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::SeekRangeEnd::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::SeekRangeStart::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeSeekRangeStart(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -1762,6 +2653,11 @@ CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeSeekRangeStart(Callback::Canc chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::SeekRangeStart::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1773,6 +2669,10 @@ CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeClusterRevision(Callback::Can return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ModeSelect::Attributes::CurrentMode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ModeSelectClusterTest::WriteAttributeCurrentMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1783,6 +2683,15 @@ CHIP_ERROR ModeSelectClusterTest::WriteAttributeCurrentMode(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ModeSelect::Attributes::CurrentMode::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ModeSelect::Attributes::SupportedModes::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ModeSelect::Attributes::StartUpMode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ModeSelectClusterTest::WriteAttributeStartUpMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1793,6 +2702,11 @@ CHIP_ERROR ModeSelectClusterTest::WriteAttributeStartUpMode(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ModeSelect::Attributes::StartUpMode::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ModeSelect::Attributes::Description::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ModeSelectClusterTest::WriteAttributeDescription(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -1803,6 +2717,11 @@ CHIP_ERROR ModeSelectClusterTest::WriteAttributeDescription(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, ModeSelect::Attributes::Description::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ModeSelect::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ModeSelectClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1814,6 +2733,10 @@ CHIP_ERROR ModeSelectClusterTest::WriteAttributeClusterRevision(Callback::Cancel return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::NetworkCommissioning::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR NetworkCommissioningClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -1824,6 +2747,11 @@ CHIP_ERROR NetworkCommissioningClusterTest::WriteAttributeFeatureMap(Callback::C chip::app::AttributePathParams(mEndpoint, mClusterId, NetworkCommissioning::Attributes::FeatureMap::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::NetworkCommissioning::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR NetworkCommissioningClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1835,6 +2763,11 @@ CHIP_ERROR NetworkCommissioningClusterTest::WriteAttributeClusterRevision(Callba return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OtaSoftwareUpdateProvider::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OtaSoftwareUpdateProviderClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -1847,6 +2780,11 @@ CHIP_ERROR OtaSoftwareUpdateProviderClusterTest::WriteAttributeClusterRevision(C return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OtaSoftwareUpdateRequestor::Attributes::UpdatePossible::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OtaSoftwareUpdateRequestorClusterTest::WriteAttributeUpdatePossible(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -1857,6 +2795,12 @@ CHIP_ERROR OtaSoftwareUpdateRequestorClusterTest::WriteAttributeUpdatePossible(C chip::app::AttributePathParams(mEndpoint, mClusterId, OtaSoftwareUpdateRequestor::Attributes::UpdatePossible::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OtaSoftwareUpdateRequestor::Attributes::ClusterRevision::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OtaSoftwareUpdateRequestorClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -1869,6 +2813,10 @@ CHIP_ERROR OtaSoftwareUpdateRequestorClusterTest::WriteAttributeClusterRevision( return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OccupancySensing::Attributes::Occupancy::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OccupancySensingClusterTest::WriteAttributeOccupancy(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1879,6 +2827,11 @@ CHIP_ERROR OccupancySensingClusterTest::WriteAttributeOccupancy(Callback::Cancel chip::app::AttributePathParams(mEndpoint, mClusterId, OccupancySensing::Attributes::Occupancy::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OccupancySensing::Attributes::OccupancySensorType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OccupancySensingClusterTest::WriteAttributeOccupancySensorType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1889,6 +2842,12 @@ CHIP_ERROR OccupancySensingClusterTest::WriteAttributeOccupancySensorType(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, OccupancySensing::Attributes::OccupancySensorType::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OccupancySensing::Attributes::OccupancySensorTypeBitmap::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OccupancySensingClusterTest::WriteAttributeOccupancySensorTypeBitmap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) @@ -1900,6 +2859,11 @@ CHIP_ERROR OccupancySensingClusterTest::WriteAttributeOccupancySensorTypeBitmap( chip::app::AttributePathParams(mEndpoint, mClusterId, OccupancySensing::Attributes::OccupancySensorTypeBitmap::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OccupancySensing::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OccupancySensingClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1911,6 +2875,10 @@ CHIP_ERROR OccupancySensingClusterTest::WriteAttributeClusterRevision(Callback:: return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::OnOff::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OnOffClusterTest::WriteAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -1921,6 +2889,11 @@ CHIP_ERROR OnOffClusterTest::WriteAttributeOnOff(Callback::Cancelable * onSucces chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::OnOff::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::GlobalSceneControl::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OnOffClusterTest::WriteAttributeGlobalSceneControl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -1931,6 +2904,11 @@ CHIP_ERROR OnOffClusterTest::WriteAttributeGlobalSceneControl(Callback::Cancelab chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::GlobalSceneControl::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OnOffClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -1941,6 +2919,11 @@ CHIP_ERROR OnOffClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onS chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::FeatureMap::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OnOffClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -1952,6 +2935,10 @@ CHIP_ERROR OnOffClusterTest::WriteAttributeClusterRevision(Callback::Cancelable return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOffSwitchConfiguration::Attributes::SwitchType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OnOffSwitchConfigurationClusterTest::WriteAttributeSwitchType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -1962,6 +2949,12 @@ CHIP_ERROR OnOffSwitchConfigurationClusterTest::WriteAttributeSwitchType(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, OnOffSwitchConfiguration::Attributes::SwitchType::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOffSwitchConfiguration::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OnOffSwitchConfigurationClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -1974,6 +2967,15 @@ CHIP_ERROR OnOffSwitchConfigurationClusterTest::WriteAttributeClusterRevision(Ca return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OperationalCredentials::Attributes::FabricsList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OperationalCredentials::Attributes::SupportedFabrics::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OperationalCredentialsClusterTest::WriteAttributeSupportedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) @@ -1985,6 +2987,12 @@ CHIP_ERROR OperationalCredentialsClusterTest::WriteAttributeSupportedFabrics(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, OperationalCredentials::Attributes::SupportedFabrics::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OperationalCredentials::Attributes::CommissionedFabrics::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OperationalCredentialsClusterTest::WriteAttributeCommissionedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) @@ -1996,6 +3004,17 @@ CHIP_ERROR OperationalCredentialsClusterTest::WriteAttributeCommissionedFabrics( chip::app::AttributePathParams(mEndpoint, mClusterId, OperationalCredentials::Attributes::CommissionedFabrics::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OperationalCredentials::Attributes::TrustedRootCertificates::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OperationalCredentials::Attributes::CurrentFabricIndex::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OperationalCredentialsClusterTest::WriteAttributeCurrentFabricIndex(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::FabricIndex value) @@ -2007,6 +3026,11 @@ CHIP_ERROR OperationalCredentialsClusterTest::WriteAttributeCurrentFabricIndex(C chip::app::AttributePathParams(mEndpoint, mClusterId, OperationalCredentials::Attributes::CurrentFabricIndex::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OperationalCredentials::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR OperationalCredentialsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2019,6 +3043,10 @@ CHIP_ERROR OperationalCredentialsClusterTest::WriteAttributeClusterRevision(Call return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::Status::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PowerSourceClusterTest::WriteAttributeStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2029,6 +3057,11 @@ CHIP_ERROR PowerSourceClusterTest::WriteAttributeStatus(Callback::Cancelable * o chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::Status::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::Order::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PowerSourceClusterTest::WriteAttributeOrder(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2039,6 +3072,11 @@ CHIP_ERROR PowerSourceClusterTest::WriteAttributeOrder(Callback::Cancelable * on chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::Order::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::Description::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PowerSourceClusterTest::WriteAttributeDescription(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -2049,6 +3087,11 @@ CHIP_ERROR PowerSourceClusterTest::WriteAttributeDescription(Callback::Cancelabl chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::Description::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::BatteryVoltage::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryVoltage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -2059,6 +3102,11 @@ CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryVoltage(Callback::Cancel chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::BatteryVoltage::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::BatteryPercentRemaining::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryPercentRemaining(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2069,6 +3117,11 @@ CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryPercentRemaining(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::BatteryPercentRemaining::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::BatteryTimeRemaining::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryTimeRemaining(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -2079,6 +3132,11 @@ CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryTimeRemaining(Callback:: chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::BatteryTimeRemaining::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::BatteryChargeLevel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryChargeLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2089,6 +3147,15 @@ CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryChargeLevel(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::BatteryChargeLevel::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::ActiveBatteryFaults::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::BatteryChargeState::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryChargeState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2099,6 +3166,11 @@ CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryChargeState(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::BatteryChargeState::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PowerSourceClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -2109,6 +3181,11 @@ CHIP_ERROR PowerSourceClusterTest::WriteAttributeFeatureMap(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::FeatureMap::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PowerSourceClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2120,6 +3197,10 @@ CHIP_ERROR PowerSourceClusterTest::WriteAttributeClusterRevision(Callback::Cance return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PressureMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PressureMeasurementClusterTest::WriteAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -2130,6 +3211,11 @@ CHIP_ERROR PressureMeasurementClusterTest::WriteAttributeMeasuredValue(Callback: chip::app::AttributePathParams(mEndpoint, mClusterId, PressureMeasurement::Attributes::MeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PressureMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PressureMeasurementClusterTest::WriteAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -2140,6 +3226,11 @@ CHIP_ERROR PressureMeasurementClusterTest::WriteAttributeMinMeasuredValue(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, PressureMeasurement::Attributes::MinMeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PressureMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PressureMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -2150,6 +3241,11 @@ CHIP_ERROR PressureMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, PressureMeasurement::Attributes::MaxMeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PressureMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PressureMeasurementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2161,6 +3257,11 @@ CHIP_ERROR PressureMeasurementClusterTest::WriteAttributeClusterRevision(Callbac return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxPressure::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) @@ -2172,6 +3273,11 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxPressure(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxPressure::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxSpeed::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2182,6 +3288,11 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxSpeed(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxSpeed::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxFlow::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2192,6 +3303,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxFlow(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxFlow::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinConstPressure::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinConstPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) @@ -2204,6 +3321,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinConstPressur value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxConstPressure::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxConstPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) @@ -2216,6 +3339,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxConstPressur value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinCompPressure::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinCompPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) @@ -2228,6 +3357,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinCompPressure value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxCompPressure::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxCompPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) @@ -2240,6 +3375,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxCompPressure value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinConstSpeed::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinConstSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2251,6 +3392,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinConstSpeed(C chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MinConstSpeed::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxConstSpeed::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxConstSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2262,6 +3409,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxConstSpeed(C chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxConstSpeed::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinConstFlow::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinConstFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2273,6 +3426,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinConstFlow(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MinConstFlow::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxConstFlow::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxConstFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2284,6 +3443,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxConstFlow(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxConstFlow::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinConstTemp::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinConstTemp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) @@ -2295,6 +3460,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinConstTemp(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MinConstTemp::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxConstTemp::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxConstTemp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) @@ -2306,6 +3477,11 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxConstTemp(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxConstTemp::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::PumpStatus::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributePumpStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2317,6 +3493,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributePumpStatus(Call chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::PumpStatus::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::EffectiveOperationMode::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeEffectiveOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) @@ -2329,6 +3511,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeEffectiveOperat value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::EffectiveControlMode::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeEffectiveControlMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) @@ -2341,6 +3529,11 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeEffectiveContro value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::Capacity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeCapacity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -2351,6 +3544,11 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeCapacity(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::Capacity::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::Speed::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2361,6 +3559,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeSpeed(Callback: chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::Speed::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::LifetimeEnergyConsumed::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeLifetimeEnergyConsumed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -2373,6 +3577,11 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeLifetimeEnergyC value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::AlarmMask::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeAlarmMask(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2383,6 +3592,11 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeAlarmMask(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::AlarmMask::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -2394,6 +3608,12 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeFeatureMap(Call chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::FeatureMap::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::ClusterRevision::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2407,6 +3627,11 @@ CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeClusterRevision return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2418,6 +3643,12 @@ CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeMeasuredValue(C chip::app::AttributePathParams(mEndpoint, mClusterId, RelativeHumidityMeasurement::Attributes::MeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2430,6 +3661,12 @@ CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeMinMeasuredValu value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2442,6 +3679,11 @@ CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeMaxMeasuredValu value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::Tolerance::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2452,6 +3694,12 @@ CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeTolerance(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, RelativeHumidityMeasurement::Attributes::Tolerance::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2465,6 +3713,10 @@ CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeClusterRevision return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Scenes::Attributes::SceneCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ScenesClusterTest::WriteAttributeSceneCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2475,6 +3727,11 @@ CHIP_ERROR ScenesClusterTest::WriteAttributeSceneCount(Callback::Cancelable * on chip::app::AttributePathParams(mEndpoint, mClusterId, Scenes::Attributes::SceneCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Scenes::Attributes::CurrentScene::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ScenesClusterTest::WriteAttributeCurrentScene(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2485,6 +3742,11 @@ CHIP_ERROR ScenesClusterTest::WriteAttributeCurrentScene(Callback::Cancelable * chip::app::AttributePathParams(mEndpoint, mClusterId, Scenes::Attributes::CurrentScene::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Scenes::Attributes::CurrentGroup::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ScenesClusterTest::WriteAttributeCurrentGroup(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2495,6 +3757,11 @@ CHIP_ERROR ScenesClusterTest::WriteAttributeCurrentGroup(Callback::Cancelable * chip::app::AttributePathParams(mEndpoint, mClusterId, Scenes::Attributes::CurrentGroup::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Scenes::Attributes::SceneValid::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ScenesClusterTest::WriteAttributeSceneValid(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -2505,6 +3772,11 @@ CHIP_ERROR ScenesClusterTest::WriteAttributeSceneValid(Callback::Cancelable * on chip::app::AttributePathParams(mEndpoint, mClusterId, Scenes::Attributes::SceneValid::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Scenes::Attributes::NameSupport::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ScenesClusterTest::WriteAttributeNameSupport(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2515,6 +3787,11 @@ CHIP_ERROR ScenesClusterTest::WriteAttributeNameSupport(Callback::Cancelable * o chip::app::AttributePathParams(mEndpoint, mClusterId, Scenes::Attributes::NameSupport::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Scenes::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ScenesClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2526,6 +3803,10 @@ CHIP_ERROR ScenesClusterTest::WriteAttributeClusterRevision(Callback::Cancelable return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::SoftwareDiagnostics::Attributes::CurrentHeapFree::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR SoftwareDiagnosticsClusterTest::WriteAttributeCurrentHeapFree(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -2536,6 +3817,11 @@ CHIP_ERROR SoftwareDiagnosticsClusterTest::WriteAttributeCurrentHeapFree(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, SoftwareDiagnostics::Attributes::CurrentHeapFree::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::SoftwareDiagnostics::Attributes::CurrentHeapUsed::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR SoftwareDiagnosticsClusterTest::WriteAttributeCurrentHeapUsed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -2546,6 +3832,12 @@ CHIP_ERROR SoftwareDiagnosticsClusterTest::WriteAttributeCurrentHeapUsed(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, SoftwareDiagnostics::Attributes::CurrentHeapUsed::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR SoftwareDiagnosticsClusterTest::WriteAttributeCurrentHeapHighWatermark(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) @@ -2558,6 +3850,11 @@ CHIP_ERROR SoftwareDiagnosticsClusterTest::WriteAttributeCurrentHeapHighWatermar value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::SoftwareDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR SoftwareDiagnosticsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2569,6 +3866,10 @@ CHIP_ERROR SoftwareDiagnosticsClusterTest::WriteAttributeClusterRevision(Callbac return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Switch::Attributes::NumberOfPositions::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR SwitchClusterTest::WriteAttributeNumberOfPositions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2579,6 +3880,11 @@ CHIP_ERROR SwitchClusterTest::WriteAttributeNumberOfPositions(Callback::Cancelab chip::app::AttributePathParams(mEndpoint, mClusterId, Switch::Attributes::NumberOfPositions::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Switch::Attributes::CurrentPosition::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR SwitchClusterTest::WriteAttributeCurrentPosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2589,6 +3895,11 @@ CHIP_ERROR SwitchClusterTest::WriteAttributeCurrentPosition(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, Switch::Attributes::CurrentPosition::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Switch::Attributes::MultiPressMax::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR SwitchClusterTest::WriteAttributeMultiPressMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2599,6 +3910,11 @@ CHIP_ERROR SwitchClusterTest::WriteAttributeMultiPressMax(Callback::Cancelable * chip::app::AttributePathParams(mEndpoint, mClusterId, Switch::Attributes::MultiPressMax::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Switch::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR SwitchClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -2609,6 +3925,11 @@ CHIP_ERROR SwitchClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * on chip::app::AttributePathParams(mEndpoint, mClusterId, Switch::Attributes::FeatureMap::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Switch::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR SwitchClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2620,6 +3941,14 @@ CHIP_ERROR SwitchClusterTest::WriteAttributeClusterRevision(Callback::Cancelable return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TvChannel::Attributes::TvChannelList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TvChannel::Attributes::TvChannelLineup::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR TvChannelClusterTest::WriteAttributeTvChannelLineup(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::ByteSpan value) { @@ -2630,6 +3959,11 @@ CHIP_ERROR TvChannelClusterTest::WriteAttributeTvChannelLineup(Callback::Cancela chip::app::AttributePathParams(mEndpoint, mClusterId, TvChannel::Attributes::TvChannelLineup::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TvChannel::Attributes::CurrentTvChannel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR TvChannelClusterTest::WriteAttributeCurrentTvChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::ByteSpan value) { @@ -2640,6 +3974,11 @@ CHIP_ERROR TvChannelClusterTest::WriteAttributeCurrentTvChannel(Callback::Cancel chip::app::AttributePathParams(mEndpoint, mClusterId, TvChannel::Attributes::CurrentTvChannel::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TvChannel::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR TvChannelClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2651,6 +3990,14 @@ CHIP_ERROR TvChannelClusterTest::WriteAttributeClusterRevision(Callback::Cancela return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TargetNavigator::Attributes::TargetNavigatorList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TargetNavigator::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR TargetNavigatorClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2662,6 +4009,10 @@ CHIP_ERROR TargetNavigatorClusterTest::WriteAttributeClusterRevision(Callback::C return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TemperatureMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -2672,6 +4023,12 @@ CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeMeasuredValue(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, TemperatureMeasurement::Attributes::MeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::TemperatureMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) @@ -2683,6 +4040,12 @@ CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeMinMeasuredValue(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, TemperatureMeasurement::Attributes::MinMeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::TemperatureMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) @@ -2694,6 +4057,11 @@ CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, TemperatureMeasurement::Attributes::MaxMeasuredValue::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TemperatureMeasurement::Attributes::Tolerance::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2704,6 +4072,11 @@ CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeTolerance(Callback:: chip::app::AttributePathParams(mEndpoint, mClusterId, TemperatureMeasurement::Attributes::Tolerance::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TemperatureMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2716,6 +4089,27 @@ CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeClusterRevision(Call return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::ListInt8u::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::ListOctetString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::ListStructOctetString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::ListNullablesAndOptionalsStruct::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR TestClusterClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2727,6 +4121,10 @@ CHIP_ERROR TestClusterClusterTest::WriteAttributeClusterRevision(Callback::Cance return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::LocalTemperature::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThermostatClusterTest::WriteAttributeLocalTemperature(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -2737,6 +4135,11 @@ CHIP_ERROR ThermostatClusterTest::WriteAttributeLocalTemperature(Callback::Cance chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::LocalTemperature::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::AbsMinHeatSetpointLimit::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThermostatClusterTest::WriteAttributeAbsMinHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -2747,6 +4150,11 @@ CHIP_ERROR ThermostatClusterTest::WriteAttributeAbsMinHeatSetpointLimit(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::AbsMinHeatSetpointLimit::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::AbsMaxHeatSetpointLimit::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThermostatClusterTest::WriteAttributeAbsMaxHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -2757,6 +4165,11 @@ CHIP_ERROR ThermostatClusterTest::WriteAttributeAbsMaxHeatSetpointLimit(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::AbsMaxHeatSetpointLimit::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::AbsMinCoolSetpointLimit::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThermostatClusterTest::WriteAttributeAbsMinCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -2767,6 +4180,11 @@ CHIP_ERROR ThermostatClusterTest::WriteAttributeAbsMinCoolSetpointLimit(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::AbsMinCoolSetpointLimit::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::AbsMaxCoolSetpointLimit::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThermostatClusterTest::WriteAttributeAbsMaxCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -2777,6 +4195,11 @@ CHIP_ERROR ThermostatClusterTest::WriteAttributeAbsMaxCoolSetpointLimit(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::AbsMaxCoolSetpointLimit::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::StartOfWeek::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThermostatClusterTest::WriteAttributeStartOfWeek(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2787,6 +4210,11 @@ CHIP_ERROR ThermostatClusterTest::WriteAttributeStartOfWeek(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::StartOfWeek::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::NumberOfWeeklyTransitions::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThermostatClusterTest::WriteAttributeNumberOfWeeklyTransitions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2797,6 +4225,11 @@ CHIP_ERROR ThermostatClusterTest::WriteAttributeNumberOfWeeklyTransitions(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::NumberOfWeeklyTransitions::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::NumberOfDailyTransitions::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThermostatClusterTest::WriteAttributeNumberOfDailyTransitions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2807,6 +4240,11 @@ CHIP_ERROR ThermostatClusterTest::WriteAttributeNumberOfDailyTransitions(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::NumberOfDailyTransitions::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThermostatClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -2817,6 +4255,11 @@ CHIP_ERROR ThermostatClusterTest::WriteAttributeFeatureMap(Callback::Cancelable chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::FeatureMap::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThermostatClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2828,6 +4271,11 @@ CHIP_ERROR ThermostatClusterTest::WriteAttributeClusterRevision(Callback::Cancel return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ClusterRevision::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThermostatUserInterfaceConfigurationClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2842,6 +4290,10 @@ CHIP_ERROR ThermostatUserInterfaceConfigurationClusterTest::WriteAttributeCluste return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::Channel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2852,6 +4304,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeChannel(Callback:: chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::Channel::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RoutingRole::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRoutingRole(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2862,6 +4319,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRoutingRole(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RoutingRole::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::NetworkName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeNetworkName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::ByteSpan value) @@ -2873,6 +4335,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeNetworkName(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::NetworkName::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::PanId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributePanId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -2883,6 +4350,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributePanId(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::PanId::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ExtendedPanId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeExtendedPanId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) @@ -2894,6 +4366,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeExtendedPanId(Call chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::ExtendedPanId::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::MeshLocalPrefix::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeMeshLocalPrefix(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::ByteSpan value) @@ -2905,6 +4383,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeMeshLocalPrefix(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::MeshLocalPrefix::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::OverrunCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -2915,6 +4398,21 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeOverrunCount(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::OverrunCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::NeighborTableList::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RouteTableList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::PartitionId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributePartitionId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -2925,6 +4423,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributePartitionId(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::PartitionId::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::Weighting::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeWeighting(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2935,6 +4438,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeWeighting(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::Weighting::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::DataVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeDataVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -2945,6 +4453,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeDataVersion(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::DataVersion::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::StableDataVersion::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeStableDataVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) @@ -2956,6 +4470,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeStableDataVersion( chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::StableDataVersion::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::LeaderRouterId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeLeaderRouterId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) @@ -2967,6 +4487,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeLeaderRouterId(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::LeaderRouterId::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::DetachedRoleCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeDetachedRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2978,6 +4504,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeDetachedRoleCount( chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::DetachedRoleCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ChildRoleCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeChildRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -2989,6 +4521,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeChildRoleCount(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::ChildRoleCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RouterRoleCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRouterRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3000,6 +4538,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRouterRoleCount(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RouterRoleCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::LeaderRoleCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeLeaderRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3011,6 +4555,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeLeaderRoleCount(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::LeaderRoleCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::AttachAttemptCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeAttachAttemptCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3023,6 +4573,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeAttachAttemptCount value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::PartitionIdChangeCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributePartitionIdChangeCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3035,6 +4591,13 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributePartitionIdChangeC value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::BetterPartitionAttachAttemptCount::TypeInfo::Type & + requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeBetterPartitionAttachAttemptCount( Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3047,6 +4610,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeBetterPartitionAtt value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ParentChangeCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeParentChangeCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3058,6 +4627,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeParentChangeCount( chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::ParentChangeCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxTotalCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxTotalCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -3068,6 +4642,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxTotalCount(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxTotalCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxUnicastCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxUnicastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3079,6 +4659,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxUnicastCount(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxUnicastCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxBroadcastCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxBroadcastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3090,6 +4676,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxBroadcastCount(C chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxBroadcastCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxAckRequestedCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxAckRequestedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3102,6 +4694,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxAckRequestedCoun value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxAckedCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxAckedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -3112,6 +4709,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxAckedCount(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxAckedCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxNoAckRequestedCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxNoAckRequestedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3124,6 +4727,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxNoAckRequestedCo value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxDataCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxDataCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -3134,6 +4742,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxDataCount(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxDataCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxDataPollCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxDataPollCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3145,6 +4759,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxDataPollCount(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxDataPollCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxBeaconCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxBeaconCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3156,6 +4775,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxBeaconCount(Call chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxBeaconCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxBeaconRequestCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxBeaconRequestCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3168,6 +4793,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxBeaconRequestCou value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxOtherCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -3178,6 +4808,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxOtherCount(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxOtherCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxRetryCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxRetryCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -3188,6 +4823,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxRetryCount(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxRetryCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxDirectMaxRetryExpiryCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxDirectMaxRetryExpiryCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3201,6 +4842,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxDirectMaxRetryEx value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxIndirectMaxRetryExpiryCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxIndirectMaxRetryExpiryCount( Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -3213,6 +4860,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxIndirectMaxRetry value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxErrCcaCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxErrCcaCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3224,6 +4876,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxErrCcaCount(Call chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxErrCcaCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxErrAbortCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxErrAbortCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3235,6 +4893,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxErrAbortCount(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxErrAbortCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxErrBusyChannelCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxErrBusyChannelCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3247,6 +4911,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxErrBusyChannelCo value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxTotalCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxTotalCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -3257,6 +4926,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxTotalCount(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxTotalCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxUnicastCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxUnicastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3268,6 +4943,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxUnicastCount(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxUnicastCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxBroadcastCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxBroadcastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3279,6 +4960,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxBroadcastCount(C chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxBroadcastCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxDataCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxDataCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -3289,6 +4975,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxDataCount(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxDataCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxDataPollCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxDataPollCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3300,6 +4992,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxDataPollCount(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxDataPollCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxBeaconCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxBeaconCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3311,6 +5008,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxBeaconCount(Call chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxBeaconCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxBeaconRequestCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxBeaconRequestCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3323,6 +5026,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxBeaconRequestCou value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxOtherCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -3333,6 +5041,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxOtherCount(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxOtherCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxAddressFilteredCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxAddressFilteredCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3345,6 +5059,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxAddressFilteredC value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxDestAddrFilteredCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxDestAddrFilteredCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3357,6 +5077,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxDestAddrFiltered value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxDuplicatedCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxDuplicatedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3368,6 +5094,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxDuplicatedCount( chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxDuplicatedCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrNoFrameCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3379,6 +5111,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrNoFrameCount( chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrUnknownNeighborCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrUnknownNeighborCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3391,6 +5129,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrUnknownNeighb value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrInvalidSrcAddrCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrInvalidSrcAddrCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3403,6 +5147,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrInvalidSrcAdd value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrSecCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrSecCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3414,6 +5163,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrSecCount(Call chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxErrSecCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrFcsCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrFcsCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3425,6 +5179,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrFcsCount(Call chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxErrFcsCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrOtherCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3436,6 +5196,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrOtherCount(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxErrOtherCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ActiveTimestamp::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeActiveTimestamp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) @@ -3447,6 +5213,12 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeActiveTimestamp(Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::ActiveTimestamp::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::PendingTimestamp::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributePendingTimestamp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) @@ -3458,6 +5230,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributePendingTimestamp(C chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::PendingTimestamp::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::Delay::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeDelay(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -3468,6 +5245,16 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeDelay(Callback::Ca chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::Delay::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::SecurityPolicy::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ChannelMask::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeChannelMask(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::ByteSpan value) @@ -3479,6 +5266,22 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeChannelMask(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::ChannelMask::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::OperationalDatasetComponents::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ActiveNetworkFaultsList::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3491,6 +5294,10 @@ CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeClusterRevision(Ca return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WakeOnLan::Attributes::WakeOnLanMacAddress::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WakeOnLanClusterTest::WriteAttributeWakeOnLanMacAddress(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -3501,6 +5308,11 @@ CHIP_ERROR WakeOnLanClusterTest::WriteAttributeWakeOnLanMacAddress(Callback::Can chip::app::AttributePathParams(mEndpoint, mClusterId, WakeOnLan::Attributes::WakeOnLanMacAddress::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WakeOnLan::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WakeOnLanClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3512,6 +5324,10 @@ CHIP_ERROR WakeOnLanClusterTest::WriteAttributeClusterRevision(Callback::Cancela return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::Bssid::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeBssid(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::ByteSpan value) { @@ -3522,6 +5338,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeBssid(Callback::Canc chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::Bssid::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::SecurityType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeSecurityType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -3532,6 +5353,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeSecurityType(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::SecurityType::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::WiFiVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeWiFiVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -3542,6 +5368,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeWiFiVersion(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::WiFiVersion::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::ChannelNumber::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeChannelNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3552,6 +5383,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeChannelNumber(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::ChannelNumber::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::Rssi::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeRssi(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int8_t value) { @@ -3562,6 +5398,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeRssi(Callback::Cance chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::Rssi::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::BeaconLostCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeBeaconLostCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3573,6 +5414,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeBeaconLostCount(Call chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::BeaconLostCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::BeaconRxCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeBeaconRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -3583,6 +5429,12 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeBeaconRxCount(Callba chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::BeaconRxCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributePacketMulticastRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3595,6 +5447,12 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributePacketMulticastRxCou value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributePacketMulticastTxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3607,6 +5465,12 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributePacketMulticastTxCou value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributePacketUnicastRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3619,6 +5483,12 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributePacketUnicastRxCount value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributePacketUnicastTxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) @@ -3631,6 +5501,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributePacketUnicastTxCount value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeCurrentMaxRate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -3641,6 +5516,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeCurrentMaxRate(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::OverrunCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -3651,6 +5531,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeOverrunCount(Callbac chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::OverrunCount::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3663,6 +5548,10 @@ CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeClusterRevision(Call return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::Type::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -3673,6 +5562,11 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeType(Callback::Cancelable * chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::Type::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionLift::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3683,6 +5577,11 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionLift(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::CurrentPositionLift::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionTilt::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3693,6 +5592,11 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionTilt(Callback chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::CurrentPositionTilt::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::ConfigStatus::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeConfigStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -3703,6 +5607,12 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeConfigStatus(Callback::Cance chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::ConfigStatus::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionLiftPercentage::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionLiftPercentage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) @@ -3715,6 +5625,12 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionLiftPercentag value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionTiltPercentage::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionTiltPercentage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) @@ -3727,6 +5643,11 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionTiltPercentag value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::OperationalStatus::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeOperationalStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -3737,6 +5658,12 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeOperationalStatus(Callback:: chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::OperationalStatus::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::TargetPositionLiftPercent100ths::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeTargetPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3749,6 +5676,12 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeTargetPositionLiftPercent100 value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::TargetPositionTiltPercent100ths::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeTargetPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3761,6 +5694,11 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeTargetPositionTiltPercent100 value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::EndProductType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeEndProductType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -3771,6 +5709,12 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeEndProductType(Callback::Can chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::EndProductType::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionLiftPercent100ths::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3783,6 +5727,12 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionLiftPercent10 value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionTiltPercent100ths::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3795,6 +5745,11 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionTiltPercent10 value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::InstalledOpenLimitLift::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeInstalledOpenLimitLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3805,6 +5760,12 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeInstalledOpenLimitLift(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::InstalledOpenLimitLift::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::InstalledClosedLimitLift::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeInstalledClosedLimitLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3816,6 +5777,11 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeInstalledClosedLimitLift(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::InstalledClosedLimitLift::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::InstalledOpenLimitTilt::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeInstalledOpenLimitTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3826,6 +5792,12 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeInstalledOpenLimitTilt(Callb chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::InstalledOpenLimitTilt::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::InstalledClosedLimitTilt::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeInstalledClosedLimitTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -3837,6 +5809,11 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeInstalledClosedLimitTilt(Cal chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::InstalledClosedLimitTilt::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::SafetyStatus::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeSafetyStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3847,6 +5824,11 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeSafetyStatus(Callback::Cance chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::SafetyStatus::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -3857,6 +5839,11 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeFeatureMap(Callback::Cancela chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::FeatureMap::Id), value)); return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + CHIP_ERROR WindowCoveringClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3868,5 +5855,31 @@ CHIP_ERROR WindowCoveringClusterTest::WriteAttributeClusterRevision(Callback::Ca return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback); } +template +CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { + if (successCb != nullptr) + { + successCb(context); + } + }; + + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, + CHIP_ERROR aError) { + if (failureCb != nullptr) + { + failureCb(context, app::ToEmberAfStatus(status.mStatus)); + } + }; + + return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), + mEndpoint, requestData, onSuccessCb, onFailureCb); +} + } // namespace Controller } // namespace chip