diff --git a/src/app/chip_data_model.gni b/src/app/chip_data_model.gni index f676f582969223..ce8af7ab0da49d 100644 --- a/src/app/chip_data_model.gni +++ b/src/app/chip_data_model.gni @@ -157,7 +157,6 @@ template("chip_data_model") { "${invoker.zap_pregenerated_dir}/CHIPClusters.cpp", "${invoker.zap_pregenerated_dir}/CHIPClusters.h", "${invoker.zap_pregenerated_dir}/CHIPClustersInvoke.cpp", - "${invoker.zap_pregenerated_dir}/CHIPClustersWrite.cpp", "${invoker.zap_pregenerated_dir}/attribute-size.cpp", "${invoker.zap_pregenerated_dir}/callback-stub.cpp", ] @@ -178,7 +177,6 @@ template("chip_data_model") { sources += [ "${invoker.zap_pregenerated_dir}/tests/CHIPClustersTest.cpp", "${invoker.zap_pregenerated_dir}/tests/CHIPClustersTest.h", - "${invoker.zap_pregenerated_dir}/tests/CHIPClustersTestWrite.cpp", ] } } diff --git a/src/app/tests/suites/templates/templates.json b/src/app/tests/suites/templates/templates.json index 25969ba92b180c..c89feb38d74ba5 100644 --- a/src/app/tests/suites/templates/templates.json +++ b/src/app/tests/suites/templates/templates.json @@ -23,11 +23,6 @@ "path": "../../../zap-templates/templates/app/tests/CHIPClusters-src.zapt", "name": "Tests C++ API", "output": "tests/CHIPClustersTest.cpp" - }, - { - "path": "../../../zap-templates/templates/app/tests/CHIPClustersWrite-src.zapt", - "name": "Tests WriteAttribute instantiations", - "output": "tests/CHIPClustersTestWrite.cpp" } ] } diff --git a/src/app/zap-templates/app-templates.json b/src/app/zap-templates/app-templates.json index a63053e4b6a09b..123c2b3a3501be 100644 --- a/src/app/zap-templates/app-templates.json +++ b/src/app/zap-templates/app-templates.json @@ -88,11 +88,6 @@ "path": "templates/app/CHIPClustersInvoke-src.zapt", "name": "C++ ZCL Invoke API", "output": "CHIPClustersInvoke.cpp" - }, - { - "path": "templates/app/CHIPClustersWrite-src.zapt", - "name": "C++ ZCL Write API", - "output": "CHIPClustersWrite.cpp" } ] } diff --git a/src/app/zap-templates/templates/app/CHIPClustersWrite-src.zapt b/src/app/zap-templates/templates/app/CHIPClustersWrite-src.zapt deleted file mode 100644 index ea2d742a3ddb2e..00000000000000 --- a/src/app/zap-templates/templates/app/CHIPClustersWrite-src.zapt +++ /dev/null @@ -1,56 +0,0 @@ -{{> header}} - -{{#if (chip_has_client_clusters)}} -#include "CHIPClusters.h" - -#include -#include - -namespace chip { - -using namespace app::Clusters; -using namespace System; -using namespace Encoding::LittleEndian; - -namespace Controller { - -{{#chip_client_clusters}} - -// {{asUpperCamelCase name}} Cluster Attributes -{{#chip_server_cluster_attributes}} -{{#if 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); -{{/if}} -{{/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); - - 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/src/app/zap-templates/templates/app/tests/CHIPClustersWrite-src.zapt b/src/app/zap-templates/templates/app/tests/CHIPClustersWrite-src.zapt deleted file mode 100644 index 1f3b50ae8af49b..00000000000000 --- a/src/app/zap-templates/templates/app/tests/CHIPClustersWrite-src.zapt +++ /dev/null @@ -1,49 +0,0 @@ -{{#if (chip_has_client_clusters)}} -{{> header}} - -#include - -#include - -namespace chip { -namespace Controller { - -{{#chip_client_clusters}} - -{{#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}} -{{/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); - - 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/src/controller/CHIPCluster.h b/src/controller/CHIPCluster.h index 389d46cb8f3cbd..34c48c354141d5 100644 --- a/src/controller/CHIPCluster.h +++ b/src/controller/CHIPCluster.h @@ -62,9 +62,45 @@ class DLL_EXPORT ClusterBase CHIP_ERROR InvokeCommand(const RequestDataT & requestData, void * context, CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb); + /** + * Functions for writing attributes. We have lots of different + * AttributeInfo but a fairly small set of types that get written. So we + * want to keep the template on AttributeInfo very small, and put all the + * work in the template with a small number of instantiations (one per + * type). + */ + template + CHIP_ERROR WriteAttribute(const AttrType & requestData, void * context, ClusterId clusterId, AttributeId attributeId, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) + { + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + + 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->GetSecureSession().Value(), mEndpoint, clusterId, attributeId, + requestData, onSuccessCb, onFailureCb); + } + template CHIP_ERROR WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) + { + return WriteAttribute(requestData, context, AttributeInfo::GetClusterId(), AttributeInfo::GetAttributeId(), successCb, + failureCb); + } protected: ClusterBase(uint16_t cluster) : mClusterId(cluster) {} diff --git a/src/controller/WriteInteraction.h b/src/controller/WriteInteraction.h index f16ea085b4dbbc..5db943846a7228 100644 --- a/src/controller/WriteInteraction.h +++ b/src/controller/WriteInteraction.h @@ -78,9 +78,15 @@ class WriteCallback final : public app::WriteClient::Callback OnDoneCallbackType mOnDone; }; -template -CHIP_ERROR WriteAttribute(Messaging::ExchangeManager * aExchangeMgr, SessionHandle sessionHandle, chip::EndpointId endpointId, - const typename AttributeInfo::Type & requestCommandData, WriteCallback::OnSuccessCallbackType onSuccessCb, +/** + * Functions for writing attributes. We have lots of different AttributeInfo + * but a fairly small set of types that get written. So we want to keep the + * template on AttributeInfo very small, and put all the work in the template + * with a small number of instantiations (one per type). + */ +template +CHIP_ERROR WriteAttribute(SessionHandle sessionHandle, chip::EndpointId endpointId, ClusterId clusterId, AttributeId attributeId, + const AttrType & requestData, WriteCallback::OnSuccessCallbackType onSuccessCb, WriteCallback::OnErrorCallbackType onErrorCb) { app::WriteClientHandle handle; @@ -91,14 +97,22 @@ CHIP_ERROR WriteAttribute(Messaging::ExchangeManager * aExchangeMgr, SessionHand VerifyOrReturnError(callback != nullptr, CHIP_ERROR_NO_MEMORY); ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, callback.get())); - ReturnErrorOnFailure(handle.EncodeAttributeWritePayload( - chip::app::AttributePathParams(endpointId, AttributeInfo::GetClusterId(), AttributeInfo::GetAttributeId()), - requestCommandData)); + ReturnErrorOnFailure( + handle.EncodeAttributeWritePayload(chip::app::AttributePathParams(endpointId, clusterId, attributeId), requestData)); ReturnErrorOnFailure(handle.SendWriteRequest(sessionHandle)); callback.release(); return CHIP_NO_ERROR; } +template +CHIP_ERROR WriteAttribute(SessionHandle sessionHandle, chip::EndpointId endpointId, + const typename AttributeInfo::Type & requestData, WriteCallback::OnSuccessCallbackType onSuccessCb, + WriteCallback::OnErrorCallbackType onErrorCb) +{ + return WriteAttribute(sessionHandle, endpointId, AttributeInfo::GetClusterId(), AttributeInfo::GetAttributeId(), requestData, + onSuccessCb, onErrorCb); +} + } // namespace Controller } // namespace chip diff --git a/src/controller/data_model/BUILD.gn b/src/controller/data_model/BUILD.gn index 48fb1a9fd6d4e6..22548afecd4531 100644 --- a/src/controller/data_model/BUILD.gn +++ b/src/controller/data_model/BUILD.gn @@ -22,12 +22,7 @@ chip_data_model("data_model") { zap_pregenerated_dir = "${chip_root}/zzz_generated/controller-clusters/zap-generated" - # On Android, we don't really need the tests APIs, and the compiler has - # trouble compiling some of those files anyway. - # - # TODO: This should default to false and consumers should opt in to it - # as needed. - use_tests_apis = current_os != "android" + use_tests_apis = true use_default_client_callbacks = true allow_circular_includes_from = [ "${chip_root}/src/controller" ] } diff --git a/src/controller/tests/data_model/TestWrite.cpp b/src/controller/tests/data_model/TestWrite.cpp index d18cf767f99710..0b97160f73490b 100644 --- a/src/controller/tests/data_model/TestWrite.cpp +++ b/src/controller/tests/data_model/TestWrite.cpp @@ -148,8 +148,8 @@ void TestWriteInteraction::TestDataResponse(nlTestSuite * apSuite, void * apCont auto onFailureCb = [&onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, app::StatusIB status, CHIP_ERROR aError) { onFailureCbInvoked = true; }; - chip::Controller::WriteAttribute( - &ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, value, onSuccessCb, onFailureCb); + chip::Controller::WriteAttribute(sessionHandle, kTestEndpointId, + value, onSuccessCb, onFailureCb); ctx.DrainAndServiceIO(); @@ -189,8 +189,8 @@ void TestWriteInteraction::TestAttributeError(nlTestSuite * apSuite, void * apCo onFailureCbInvoked = true; }; - chip::Controller::WriteAttribute( - &ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, value, onSuccessCb, onFailureCb); + chip::Controller::WriteAttribute(sessionHandle, kTestEndpointId, + value, onSuccessCb, onFailureCb); ctx.DrainAndServiceIO(); diff --git a/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj b/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj index 4f66ee17dc13f5..e3415b970cc8fd 100644 --- a/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj +++ b/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj @@ -55,7 +55,6 @@ 2F79A67726CE6672006377B0 /* im-client-callbacks.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2F79A67626CE6672006377B0 /* im-client-callbacks.cpp */; }; 2FD775552695557E00FF4B12 /* error-mapping.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2FD775542695557E00FF4B12 /* error-mapping.cpp */; }; 5129BCFD26A9EE3300122DDF /* CHIPError.h in Headers */ = {isa = PBXBuildFile; fileRef = 5129BCFC26A9EE3300122DDF /* CHIPError.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 515CCFD227351183002A3C82 /* CHIPClustersTestWrite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 515CCFD127351183002A3C82 /* CHIPClustersTestWrite.cpp */; }; 991DC0842475F45400C13860 /* CHIPDeviceController.h in Headers */ = {isa = PBXBuildFile; fileRef = 991DC0822475F45400C13860 /* CHIPDeviceController.h */; settings = {ATTRIBUTES = (Public, ); }; }; 991DC0892475F47D00C13860 /* CHIPDeviceController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 991DC0872475F47D00C13860 /* CHIPDeviceController.mm */; }; 991DC08B247704DC00C13860 /* CHIPLogging.h in Headers */ = {isa = PBXBuildFile; fileRef = 991DC08A247704DC00C13860 /* CHIPLogging.h */; }; @@ -142,7 +141,6 @@ 2F79A67626CE6672006377B0 /* im-client-callbacks.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "im-client-callbacks.cpp"; path = "../../../app/util/im-client-callbacks.cpp"; sourceTree = ""; }; 2FD775542695557E00FF4B12 /* error-mapping.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "error-mapping.cpp"; path = "../../../app/util/error-mapping.cpp"; sourceTree = ""; }; 5129BCFC26A9EE3300122DDF /* CHIPError.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = CHIPError.h; path = CHIP/CHIPError.h; sourceTree = ""; }; - 515CCFD127351183002A3C82 /* CHIPClustersTestWrite.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = CHIPClustersTestWrite.cpp; path = "../../../zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTestWrite.cpp"; sourceTree = ""; }; 991DC0822475F45400C13860 /* CHIPDeviceController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceController.h; sourceTree = ""; }; 991DC0872475F47D00C13860 /* CHIPDeviceController.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPDeviceController.mm; sourceTree = ""; }; 991DC08A247704DC00C13860 /* CHIPLogging.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPLogging.h; sourceTree = ""; }; @@ -242,7 +240,6 @@ B20252832459E34F00F97062 = { isa = PBXGroup; children = ( - 515CCFD127351183002A3C82 /* CHIPClustersTestWrite.cpp */, 5129BCFC26A9EE3300122DDF /* CHIPError.h */, BA107AEE2470CFBB004287EB /* chip_xcode_build_connector.sh */, B202528F2459E34F00F97062 /* CHIP */, @@ -481,7 +478,6 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 515CCFD227351183002A3C82 /* CHIPClustersTestWrite.cpp in Sources */, 2C8C8FC2253E0C2100797F05 /* CHIPPersistentStorageDelegateBridge.mm in Sources */, 2CB7163C252E8A7C0026E2BB /* CHIPDevicePairingDelegateBridge.mm in Sources */, 997DED162695343400975E97 /* CHIPThreadOperationalDataset.mm in Sources */, diff --git a/zzz_generated/all-clusters-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/all-clusters-app/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index 759d13c5028d26..00000000000000 --- a/zzz_generated/all-clusters-app/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP diff --git a/zzz_generated/bridge-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/bridge-app/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index 759d13c5028d26..00000000000000 --- a/zzz_generated/bridge-app/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP diff --git a/zzz_generated/controller-clusters/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/controller-clusters/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index a9158772119f81..00000000000000 --- a/zzz_generated/controller-clusters/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,470 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#include "CHIPClusters.h" - -#include -#include - -namespace chip { - -using namespace app::Clusters; -using namespace System; -using namespace Encoding::LittleEndian; - -namespace Controller { - -// AccountLogin Cluster Attributes - -// AdministratorCommissioning Cluster Attributes - -// ApplicationBasic Cluster Attributes - -// ApplicationLauncher Cluster Attributes - -// AudioOutput Cluster Attributes - -// BarrierControl Cluster Attributes - -// Basic Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::UserLabel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::Location::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::LocalConfigDisabled::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// BinaryInputBasic Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BinaryInputBasic::Attributes::OutOfService::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BinaryInputBasic::Attributes::PresentValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// Binding Cluster Attributes - -// BooleanState Cluster Attributes - -// BridgedActions Cluster Attributes - -// BridgedDeviceBasic Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::UserLabel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// ColorControl Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorControlOptions::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::WhitePointX::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::WhitePointY::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointRX::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointRY::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointRIntensity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointGX::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointGY::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointGIntensity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointBX::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointBY::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointBIntensity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::StartUpColorTemperatureMireds::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// ContentLauncher Cluster Attributes - -// Descriptor Cluster Attributes - -// DiagnosticLogs Cluster Attributes - -// DoorLock Cluster Attributes - -// ElectricalMeasurement Cluster Attributes - -// EthernetNetworkDiagnostics Cluster Attributes - -// FixedLabel Cluster Attributes - -// FlowMeasurement Cluster Attributes - -// GeneralCommissioning Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::GeneralCommissioning::Attributes::Breadcrumb::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// GeneralDiagnostics Cluster Attributes - -// GroupKeyManagement Cluster Attributes - -// Groups Cluster Attributes - -// Identify Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Identify::Attributes::IdentifyTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// IlluminanceMeasurement Cluster Attributes - -// KeypadInput Cluster Attributes - -// LevelControl Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::Options::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::OnOffTransitionTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::OnLevel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::OnTransitionTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::OffTransitionTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::DefaultMoveRate::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::StartUpCurrentLevel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// LowPower Cluster Attributes - -// MediaInput Cluster Attributes - -// MediaPlayback Cluster Attributes - -// ModeSelect Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ModeSelect::Attributes::OnMode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// NetworkCommissioning Cluster Attributes - -// OtaSoftwareUpdateProvider Cluster Attributes - -// OtaSoftwareUpdateRequestor Cluster Attributes - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::OtaSoftwareUpdateRequestor::Attributes::DefaultOtaProvider::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// OccupancySensing Cluster Attributes - -// OnOff Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::OnTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::OffWaitTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::StartUpOnOff::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// OnOffSwitchConfiguration Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOffSwitchConfiguration::Attributes::SwitchActions::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// OperationalCredentials Cluster Attributes - -// PowerSource Cluster Attributes - -// PressureMeasurement Cluster Attributes - -// PumpConfigurationAndControl Cluster Attributes - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::ControlMode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// RelativeHumidityMeasurement Cluster Attributes - -// Scenes Cluster Attributes - -// SoftwareDiagnostics Cluster Attributes - -// Switch Cluster Attributes - -// TvChannel Cluster Attributes - -// TargetNavigator Cluster Attributes - -// TemperatureMeasurement Cluster Attributes - -// TestCluster Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Boolean::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Bitmap8::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Bitmap16::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Bitmap32::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Bitmap64::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int8u::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int16u::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int32u::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int64u::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int8s::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int16s::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int32s::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int64s::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Enum8::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Enum16::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::OctetString::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::LongOctetString::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::CharString::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::LongCharString::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::EpochUs::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::EpochS::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::VendorId::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Unsupported::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// Thermostat Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::OccupiedHeatingSetpoint::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::MinHeatSetpointLimit::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::MaxHeatSetpointLimit::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::MinCoolSetpointLimit::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::MaxCoolSetpointLimit::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::MinSetpointDeadBand::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::ControlSequenceOfOperation::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::SystemMode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// ThermostatUserInterfaceConfiguration Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute< - chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>( - const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo::Type & - requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute< - chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( - const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo::Type & - requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// ThreadNetworkDiagnostics Cluster Attributes - -// WakeOnLan Cluster Attributes - -// WiFiNetworkDiagnostics Cluster Attributes - -// WindowCovering Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::Mode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - - 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 diff --git a/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTestWrite.cpp b/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTestWrite.cpp deleted file mode 100644 index 2882b94c1e4b58..00000000000000 --- a/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTestWrite.cpp +++ /dev/null @@ -1,1733 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#include - -#include - -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); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::AdministratorCommissioning::Attributes::ClusterRevision::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ApplicationBasic::Attributes::VendorName::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ApplicationBasic::Attributes::VendorId::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ApplicationBasic::Attributes::ApplicationName::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ApplicationBasic::Attributes::ProductId::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ApplicationBasic::Attributes::ApplicationId::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ApplicationBasic::Attributes::CatalogVendorId::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ApplicationBasic::Attributes::ApplicationStatus::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ApplicationBasic::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ApplicationLauncher::Attributes::ApplicationId::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ApplicationLauncher::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::AudioOutput::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BarrierControl::Attributes::BarrierMovingState::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BarrierControl::Attributes::BarrierSafetyStatus::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BarrierControl::Attributes::BarrierCapabilities::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BarrierControl::Attributes::BarrierPosition::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BarrierControl::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::InteractionModelVersion::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::VendorName::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::VendorID::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::ProductName::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::ProductID::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::HardwareVersion::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::HardwareVersionString::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::SoftwareVersion::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::SoftwareVersionString::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::ManufacturingDate::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::PartNumber::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::ProductURL::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::ProductLabel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::SerialNumber::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::Reachable::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BinaryInputBasic::Attributes::StatusFlags::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BinaryInputBasic::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Binding::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BooleanState::Attributes::StateValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BooleanState::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedActions::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::VendorName::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::VendorID::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::ProductName::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::HardwareVersion::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::HardwareVersionString::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::SoftwareVersion::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::SoftwareVersionString::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::ManufacturingDate::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::PartNumber::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::ProductURL::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::ProductLabel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::SerialNumber::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::Reachable::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::CurrentHue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::CurrentSaturation::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::RemainingTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::CurrentX::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::CurrentY::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::DriftCompensation::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::CompensationText::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorTemperature::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorMode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::NumberOfPrimaries::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary1X::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary1Y::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary1Intensity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary2X::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary2Y::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary2Intensity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary3X::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary3Y::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary3Intensity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary4X::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary4Y::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary4Intensity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary5X::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary5Y::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary5Intensity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary6X::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary6Y::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::Primary6Intensity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::EnhancedCurrentHue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::EnhancedColorMode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorLoopActive::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorLoopDirection::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorLoopTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorLoopStartEnhancedHue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorLoopStoredEnhancedHue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorCapabilities::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorTempPhysicalMin::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorTempPhysicalMax::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::CoupleColorTempToLevelMinMireds::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::DoorLock::Attributes::LockState::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::DoorLock::Attributes::LockType::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::DoorLock::Attributes::ActuatorEnabled::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::DoorLock::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ElectricalMeasurement::Attributes::MeasurementType::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ElectricalMeasurement::Attributes::TotalActivePower::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsVoltage::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsVoltageMin::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsVoltageMax::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsCurrent::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsCurrentMin::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsCurrentMax::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ElectricalMeasurement::Attributes::ActivePower::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ElectricalMeasurement::Attributes::ActivePowerMin::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ElectricalMeasurement::Attributes::ActivePowerMax::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ElectricalMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::PHYRate::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::FullDuplex::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::PacketRxCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::PacketTxCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::TxErrCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::CollisionCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::OverrunCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::CarrierDetect::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::TimeSinceReset::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::FlowMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::FlowMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::FlowMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::FlowMeasurement::Attributes::Tolerance::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::FlowMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::GeneralDiagnostics::Attributes::UpTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::GeneralDiagnostics::Attributes::TotalOperationalHours::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::GeneralDiagnostics::Attributes::BootReasons::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::GeneralDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Groups::Attributes::NameSupport::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Groups::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Identify::Attributes::IdentifyType::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Identify::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::IlluminanceMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::IlluminanceMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::IlluminanceMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::IlluminanceMeasurement::Attributes::Tolerance::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::IlluminanceMeasurement::Attributes::LightSensorType::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::IlluminanceMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::KeypadInput::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::CurrentLevel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::RemainingTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::MinLevel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::MaxLevel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::CurrentFrequency::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::MinFrequency::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::MaxFrequency::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LowPower::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::MediaInput::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::MediaPlayback::Attributes::PlaybackState::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::MediaPlayback::Attributes::StartTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::MediaPlayback::Attributes::Duration::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::MediaPlayback::Attributes::PositionUpdatedAt::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::MediaPlayback::Attributes::Position::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::MediaPlayback::Attributes::PlaybackSpeed::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::MediaPlayback::Attributes::SeekRangeEnd::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::MediaPlayback::Attributes::SeekRangeStart::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::MediaPlayback::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ModeSelect::Attributes::CurrentMode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ModeSelect::Attributes::Description::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ModeSelect::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::NetworkCommissioning::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::NetworkCommissioning::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::OtaSoftwareUpdateProvider::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::OtaSoftwareUpdateRequestor::Attributes::UpdatePossible::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::OtaSoftwareUpdateRequestor::Attributes::ClusterRevision::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OccupancySensing::Attributes::Occupancy::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OccupancySensing::Attributes::OccupancySensorType::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::OccupancySensing::Attributes::OccupancySensorTypeBitmap::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OccupancySensing::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::OnOff::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::GlobalSceneControl::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOffSwitchConfiguration::Attributes::SwitchType::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOffSwitchConfiguration::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::OperationalCredentials::Attributes::CommissionedFabrics::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OperationalCredentials::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PowerSource::Attributes::Status::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PowerSource::Attributes::Order::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PowerSource::Attributes::Description::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PowerSource::Attributes::BatteryVoltage::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PowerSource::Attributes::BatteryPercentRemaining::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PowerSource::Attributes::BatteryTimeRemaining::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PowerSource::Attributes::BatteryChargeLevel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PowerSource::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PowerSource::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PressureMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PressureMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PressureMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PressureMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxPressure::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxSpeed::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxFlow::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinConstPressure::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxConstPressure::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinCompPressure::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxCompPressure::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinConstSpeed::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxConstSpeed::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinConstFlow::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxConstFlow::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinConstTemp::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxConstTemp::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::PumpStatus::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::EffectiveOperationMode::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::EffectiveControlMode::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::Capacity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::Speed::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::LifetimeEnergyConsumed::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::AlarmMask::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::ClusterRevision::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::Tolerance::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Scenes::Attributes::SceneCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Scenes::Attributes::CurrentScene::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Scenes::Attributes::CurrentGroup::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Scenes::Attributes::SceneValid::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Scenes::Attributes::NameSupport::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Scenes::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::SoftwareDiagnostics::Attributes::CurrentHeapFree::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::SoftwareDiagnostics::Attributes::CurrentHeapUsed::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::SoftwareDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Switch::Attributes::NumberOfPositions::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Switch::Attributes::CurrentPosition::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Switch::Attributes::MultiPressMax::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Switch::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Switch::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TvChannel::Attributes::CurrentTvChannel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TvChannel::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TemperatureMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::TemperatureMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::TemperatureMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TemperatureMeasurement::Attributes::Tolerance::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TemperatureMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::LocalTemperature::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::AbsMinHeatSetpointLimit::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::AbsMaxHeatSetpointLimit::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::AbsMinCoolSetpointLimit::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::AbsMaxCoolSetpointLimit::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::StartOfWeek::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::NumberOfWeeklyTransitions::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::NumberOfDailyTransitions::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ClusterRevision::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::Channel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RoutingRole::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::NetworkName::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::PanId::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ExtendedPanId::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::MeshLocalPrefix::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::OverrunCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::Weighting::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::DataVersion::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::StableDataVersion::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::LeaderRouterId::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::DetachedRoleCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ChildRoleCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RouterRoleCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::LeaderRoleCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::AttachAttemptCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::PartitionIdChangeCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::BetterPartitionAttachAttemptCount::TypeInfo::Type & - requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ParentChangeCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxTotalCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxUnicastCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxBroadcastCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxAckRequestedCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxAckedCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxNoAckRequestedCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxDataCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxDataPollCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxBeaconCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxBeaconRequestCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxOtherCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxRetryCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxDirectMaxRetryExpiryCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxIndirectMaxRetryExpiryCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxErrCcaCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxErrAbortCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxErrBusyChannelCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxTotalCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxUnicastCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxBroadcastCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxDataCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxDataPollCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxBeaconCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxBeaconRequestCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxOtherCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxAddressFilteredCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxDestAddrFilteredCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxDuplicatedCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrUnknownNeighborCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrInvalidSrcAddrCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrSecCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrFcsCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrOtherCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ActiveTimestamp::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::PendingTimestamp::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::Delay::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -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); - -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); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WakeOnLan::Attributes::WakeOnLanMacAddress::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WakeOnLan::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::Bssid::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::SecurityType::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::WiFiVersion::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::ChannelNumber::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::Rssi::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::BeaconLostCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::BeaconRxCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::OverrunCount::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::Type::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionLift::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionTilt::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::ConfigStatus::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionLiftPercentage::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionTiltPercentage::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::OperationalStatus::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::TargetPositionLiftPercent100ths::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::TargetPositionTiltPercent100ths::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::EndProductType::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionLiftPercent100ths::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionTiltPercent100ths::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::InstalledOpenLimitLift::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::InstalledClosedLimitLift::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::InstalledOpenLimitTilt::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::InstalledClosedLimitTilt::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::SafetyStatus::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - - 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 diff --git a/zzz_generated/lighting-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/lighting-app/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index fee2f00d3c0949..00000000000000 --- a/zzz_generated/lighting-app/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#include "CHIPClusters.h" - -#include -#include - -namespace chip { - -using namespace app::Clusters; -using namespace System; -using namespace Encoding::LittleEndian; - -namespace Controller { - -// OnOff Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::OnTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::OffWaitTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::StartUpOnOff::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - - 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 diff --git a/zzz_generated/lock-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/lock-app/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index 759d13c5028d26..00000000000000 --- a/zzz_generated/lock-app/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP diff --git a/zzz_generated/ota-provider-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/ota-provider-app/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index 759d13c5028d26..00000000000000 --- a/zzz_generated/ota-provider-app/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP diff --git a/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index 871174345e8627..00000000000000 --- a/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,61 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#include "CHIPClusters.h" - -#include -#include - -namespace chip { - -using namespace app::Clusters; -using namespace System; -using namespace Encoding::LittleEndian; - -namespace Controller { - -// OtaSoftwareUpdateProvider Cluster Attributes - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - - 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 diff --git a/zzz_generated/pump-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/pump-app/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index 1f13f6e29f48b6..00000000000000 --- a/zzz_generated/pump-app/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,65 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#include "CHIPClusters.h" - -#include -#include - -namespace chip { - -using namespace app::Clusters; -using namespace System; -using namespace Encoding::LittleEndian; - -namespace Controller { - -// FlowMeasurement Cluster Attributes - -// PressureMeasurement Cluster Attributes - -// TemperatureMeasurement Cluster Attributes - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - - 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 diff --git a/zzz_generated/pump-controller-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/pump-controller-app/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index 6fdaa146d149e4..00000000000000 --- a/zzz_generated/pump-controller-app/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,76 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#include "CHIPClusters.h" - -#include -#include - -namespace chip { - -using namespace app::Clusters; -using namespace System; -using namespace Encoding::LittleEndian; - -namespace Controller { - -// FlowMeasurement Cluster Attributes - -// LevelControl Cluster Attributes - -// OnOff Cluster Attributes - -// PressureMeasurement Cluster Attributes - -// PumpConfigurationAndControl Cluster Attributes - -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// TemperatureMeasurement Cluster Attributes - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - - 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 diff --git a/zzz_generated/temperature-measurement-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/temperature-measurement-app/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index 759d13c5028d26..00000000000000 --- a/zzz_generated/temperature-measurement-app/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP diff --git a/zzz_generated/thermostat/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/thermostat/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index c80771474d302a..00000000000000 --- a/zzz_generated/thermostat/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,65 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#include "CHIPClusters.h" - -#include -#include - -namespace chip { - -using namespace app::Clusters; -using namespace System; -using namespace Encoding::LittleEndian; - -namespace Controller { - -// Identify Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Identify::Attributes::IdentifyTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - - 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 diff --git a/zzz_generated/tv-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/tv-app/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index 6c9e93882da143..00000000000000 --- a/zzz_generated/tv-app/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,69 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#include "CHIPClusters.h" - -#include -#include - -namespace chip { - -using namespace app::Clusters; -using namespace System; -using namespace Encoding::LittleEndian; - -namespace Controller { - -// GeneralCommissioning Cluster Attributes - -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::GeneralCommissioning::Attributes::Breadcrumb::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - -// NetworkCommissioning Cluster Attributes - -// OperationalCredentials Cluster Attributes - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - - 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 diff --git a/zzz_generated/tv-casting-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/tv-casting-app/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index 759d13c5028d26..00000000000000 --- a/zzz_generated/tv-casting-app/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP diff --git a/zzz_generated/window-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/window-app/zap-generated/CHIPClustersWrite.cpp deleted file mode 100644 index 759d13c5028d26..00000000000000 --- a/zzz_generated/window-app/zap-generated/CHIPClustersWrite.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP