diff --git a/examples/chip-tool/templates/commands.zapt b/examples/chip-tool/templates/commands.zapt index def111efe730db..78fd416bb433e4 100644 --- a/examples/chip-tool/templates/commands.zapt +++ b/examples/chip-tool/templates/commands.zapt @@ -74,7 +74,15 @@ CHIP_ERROR LogValue(const char * label, size_t indent, chip::CharSpan value) CHIP_ERROR LogValue(const char * label, size_t indent, chip::ByteSpan value) { - ChipLogProgress(chipTool, "%s%s: %zu", IndentStr(indent).c_str(), label, value.size()); + char buffer[CHIP_CONFIG_LOG_MESSAGE_MAX_SIZE]; + if (CHIP_NO_ERROR == chip::Encoding::BytesToUppercaseHexString(value.data(), value.size(), &buffer[0], CHIP_CONFIG_LOG_MESSAGE_MAX_SIZE)) + { + ChipLogProgress(chipTool, "%s%s: %s", IndentStr(indent).c_str(), label, buffer); + } + else + { + ChipLogProgress(chipTool, "%s%s: %zu", IndentStr(indent).c_str(), label, value.size()); + } return CHIP_NO_ERROR; } @@ -197,144 +205,56 @@ static void OnBooleanAttributeReport(void * context, bool value) ChipLogProgress(chipTool, "Boolean attribute Response: %d", value); } -static void OnBooleanAttributeResponse(void * context, bool value) -{ - OnBooleanAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt8uAttributeReport(void * context, uint8_t value) { ChipLogProgress(chipTool, "Int8u attribute Response: %" PRIu8, value); } -static void OnInt8uAttributeResponse(void * context, uint8_t value) -{ - OnInt8uAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt16uAttributeReport(void * context, uint16_t value) { ChipLogProgress(chipTool, "Int16u attribute Response: %" PRIu16, value); } -static void OnInt16uAttributeResponse(void * context, uint16_t value) -{ - OnInt16uAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt32uAttributeReport(void * context, uint32_t value) { ChipLogProgress(chipTool, "Int32u attribute Response: %" PRIu32, value); } -static void OnInt32uAttributeResponse(void * context, uint32_t value) -{ - OnInt32uAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt64uAttributeReport(void * context, uint64_t value) { ChipLogProgress(chipTool, "Int64u attribute Response: %" PRIu64, value); } -static void OnInt64uAttributeResponse(void * context, uint64_t value) -{ - OnInt64uAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt8sAttributeReport(void * context, int8_t value) { ChipLogProgress(chipTool, "Int8s attribute Response: %" PRId8, value); } -static void OnInt8sAttributeResponse(void * context, int8_t value) -{ - OnInt8sAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt16sAttributeReport(void * context, int16_t value) { ChipLogProgress(chipTool, "Int16s attribute Response: %" PRId16, value); } -static void OnInt16sAttributeResponse(void * context, int16_t value) -{ - OnInt16sAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt32sAttributeReport(void * context, int32_t value) { ChipLogProgress(chipTool, "Int32s attribute Response: %" PRId32, value); } -static void OnInt32sAttributeResponse(void * context, int32_t value) -{ - OnInt32sAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt64sAttributeReport(void * context, int64_t value) { ChipLogProgress(chipTool, "Int64s attribute Response: %" PRId64, value); } -static void OnInt64sAttributeResponse(void * context, int64_t value) -{ - OnInt64sAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnFloatAttributeReport(void * context, float value) { ChipLogProgress(chipTool, "Float attribute Response: %f", value); } -static void OnFloatAttributeResponse(void * context, float value) -{ - OnFloatAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnDoubleAttributeReport(void * context, double value) { ChipLogProgress(chipTool, "Double attribute Response: %f", value); } -static void OnDoubleAttributeResponse(void * context, double value) -{ - OnDoubleAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnOctetStringAttributeReport(void * context, const chip::ByteSpan value) { char buffer[CHIP_CONFIG_LOG_MESSAGE_MAX_SIZE]; @@ -345,42 +265,20 @@ static void OnOctetStringAttributeReport(void * context, const chip::ByteSpan va } } -static void OnOctetStringAttributeResponse(void * context, const chip::ByteSpan value) -{ - OnOctetStringAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnCharStringAttributeReport(void * context, const chip::CharSpan value) { ChipLogProgress(chipTool, "CharString attribute Response: %.*s", static_cast(value.size()), value.data()); } -static void OnCharStringAttributeResponse(void * context, const chip::CharSpan value) -{ - OnCharStringAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - -{{#chip_client_clusters}} -{{#chip_server_cluster_attributes}} -{{#if isList}} -static void On{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeResponse(void * context, {{zapTypeToDecodableClusterObjectType type ns=parent.name isArgument=true}} list) +template +static void OnGeneralAttributeResponse(void * context, const char * label, T value) { - CHIP_ERROR err = LogValue("On{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeResponse", 0, list); + CHIP_ERROR err = LogValue(label, 0, value); - ModelCommand * command = static_cast(context); + auto * command = static_cast(context); command->SetCommandExitStatus(err); } -{{/if}} -{{/chip_server_cluster_attributes}} -{{/chip_client_clusters}} - {{#chip_client_clusters}} {{#chip_cluster_responses}} static void On{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}Success(void * context, const chip::app::Clusters::{{asUpperCamelCase parent.name}}::Commands::{{asUpperCamelCase name}}::DecodableType & data) @@ -471,8 +369,6 @@ public: ~Read{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}() { - delete onSuccessCallback; - delete onFailureCallback; } CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override @@ -481,16 +377,15 @@ public: chip::Controller::{{asUpperCamelCase parent.name}}Cluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttribute{{asUpperCamelCase name}}(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, + OnAttributeResponse, + OnDefaultFailure); } -private: -{{#if isList}} - chip::Callback::Callback<{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeCallback> * onSuccessCallback = new chip::Callback::Callback<{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeCallback>(On{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeResponse, this); -{{else}} - chip::Callback::Callback<{{chipCallback.name}}AttributeCallback> * onSuccessCallback = new chip::Callback::Callback<{{chipCallback.name}}AttributeCallback>(On{{chipCallback.name}}AttributeResponse, this); -{{/if}} - chip::Callback::Callback * onFailureCallback = new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, {{zapTypeToDecodableClusterObjectType type ns=parent.name isArgument=true}} value) + { + OnGeneralAttributeResponse(context, "{{asUpperCamelCase parent.name}}.{{asUpperCamelCase name}} response", value); + } }; {{#if isWritableAttribute}} diff --git a/examples/chip-tool/templates/reporting-commands.zapt b/examples/chip-tool/templates/reporting-commands.zapt index 6ba2e8e29b1c53..a0d10f149d49a4 100644 --- a/examples/chip-tool/templates/reporting-commands.zapt +++ b/examples/chip-tool/templates/reporting-commands.zapt @@ -3,7 +3,7 @@ #pragma once #include - +#include "../cluster/Commands.h" // For the LogValue bits and read callbacks typedef void (*UnsupportedAttributeCallback)(void * context); @@ -45,49 +45,14 @@ public: {{/chip_client_clusters}} } - static void OnDefaultSuccessResponse(void * context) - { - ChipLogProgress(chipTool, "Default Success Response"); - } - - static void OnDefaultFailureResponse(void * context, uint8_t status) - { - ChipLogProgress(chipTool, "Default Failure Response: 0x%02x", status); - } - - static void OnUnsupportedAttributeResponse(void * context) - { - ChipLogError(chipTool, "Unsupported attribute Response. This should never happen !"); - } - - static void OnBooleanAttributeResponse(void * context, bool value) - { - ChipLogProgress(chipTool, "Boolean attribute Response: %d", value); - } - - static void OnInt8uAttributeResponse(void * context, uint8_t value) - { - ChipLogProgress(chipTool, "Int8u attribute Response: %" PRIu8, value); - } - - static void OnInt16uAttributeResponse(void * context, uint16_t value) - { - ChipLogProgress(chipTool, "Int16u attribute Response: %" PRIu16, value); - } - - static void OnInt16sAttributeResponse(void * context, int16_t value) - { - ChipLogProgress(chipTool, "Int16s attribute Response: %" PRId16, value); - } - private: {{#chip_client_clusters}} {{#chip_server_cluster_attributes}} {{#if isReportableAttribute}} {{#unless isList}} {{#unless (isStrEqual chipCallback.name "Unsupported")}} - chip::Callback::Callback<{{chipCallback.name}}AttributeCallback> * onReport{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}Callback = new chip::Callback::Callback<{{chipCallback.name}}AttributeCallback>(On{{chipCallback.name}}AttributeResponse, this); -{{/unless}} + chip::Callback::Callback * onReport{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}Callback = new chip::Callback::Callback(Read{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}::OnAttributeResponse, this); + {{/unless}} {{/unless}} {{/if}} {{/chip_server_cluster_attributes}} diff --git a/src/app/DeviceProxy.cpp b/src/app/DeviceProxy.cpp index 5f3826186ae3a4..d98213eb63bb09 100644 --- a/src/app/DeviceProxy.cpp +++ b/src/app/DeviceProxy.cpp @@ -74,34 +74,6 @@ void DeviceProxy::AddReportHandler(EndpointId endpoint, ClusterId cluster, Attri mCallbacksMgr.AddReportCallback(GetDeviceId(), endpoint, cluster, attribute, onReportCallback, tlvDataFilter); } -CHIP_ERROR DeviceProxy::SendReadAttributeRequest(app::AttributePathParams aPath, Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, app::TLVDataFilter aTlvDataFilter) -{ - VerifyOrReturnLogError(IsSecureConnected(), CHIP_ERROR_INCORRECT_STATE); - - app::ReadClient * readClient = nullptr; - ReturnErrorOnFailure(chip::app::InteractionModelEngine::GetInstance()->NewReadClient( - &readClient, app::ReadClient::InteractionType::Read, &GetInteractionModelDelegate()->GetBufferedCallback())); - - if (onSuccessCallback != nullptr || onFailureCallback != nullptr) - { - AddIMResponseHandler(readClient, onSuccessCallback, onFailureCallback, aTlvDataFilter); - } - // The application context is used to identify different requests from client application the type of it is intptr_t, here we - // use the seqNum. - chip::app::ReadPrepareParams readPrepareParams(GetSecureSession().Value()); - readPrepareParams.mpAttributePathParamsList = &aPath; - readPrepareParams.mAttributePathParamsListSize = 1; - - CHIP_ERROR err = readClient->SendReadRequest(readPrepareParams); - - if (err != CHIP_NO_ERROR) - { - CancelIMResponseHandler(readClient); - } - return err; -} - CHIP_ERROR DeviceProxy::SendSubscribeAttributeRequest(app::AttributePathParams aPath, uint16_t mMinIntervalFloorSeconds, uint16_t mMaxIntervalCeilingSeconds, Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) diff --git a/src/app/DeviceProxy.h b/src/app/DeviceProxy.h index c09b1705d95e33..15378279cf3ddb 100644 --- a/src/app/DeviceProxy.h +++ b/src/app/DeviceProxy.h @@ -51,9 +51,6 @@ class DLL_EXPORT DeviceProxy virtual bool GetAddress(Inet::IPAddress & addr, uint16_t & port) const { return false; } - virtual CHIP_ERROR SendReadAttributeRequest(app::AttributePathParams aPath, Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, app::TLVDataFilter aTlvDataFilter); - virtual CHIP_ERROR SendSubscribeAttributeRequest(app::AttributePathParams aPath, uint16_t mMinIntervalFloorSeconds, uint16_t mMaxIntervalCeilingSeconds, Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); diff --git a/src/app/zap-templates/templates/app/CHIPClusters-src.zapt b/src/app/zap-templates/templates/app/CHIPClusters-src.zapt index 4882504c2ff788..d368a6ff73d4c0 100644 --- a/src/app/zap-templates/templates/app/CHIPClusters-src.zapt +++ b/src/app/zap-templates/templates/app/CHIPClusters-src.zapt @@ -77,15 +77,6 @@ exit: // {{asUpperCamelCase name}} Cluster Attributes {{#chip_server_cluster_attributes}} {{#unless (isStrEqual chipCallback.name "Unsupported")}} -CHIP_ERROR {{asUpperCamelCase parent.name}}Cluster::ReadAttribute{{asUpperCamelCase name}}(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = {{asHex code 8}}; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback,{{#if isList}}{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}ListAttributeFilter{{else}}BasicAttributeFilter<{{chipCallback.name}}AttributeCallback>{{/if}}); -} - {{#if isReportableAttribute}} {{#unless isList}} CHIP_ERROR {{asUpperCamelCase parent.name}}Cluster::SubscribeAttribute{{asUpperCamelCase name}}(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) diff --git a/src/app/zap-templates/templates/app/CHIPClusters.zapt b/src/app/zap-templates/templates/app/CHIPClusters.zapt index 5903eca2ec2e2d..342d396b3a7b4f 100644 --- a/src/app/zap-templates/templates/app/CHIPClusters.zapt +++ b/src/app/zap-templates/templates/app/CHIPClusters.zapt @@ -31,7 +31,6 @@ public: // Cluster Attributes {{#chip_server_cluster_attributes}} {{#unless (isStrEqual chipCallback.name "Unsupported")}} - CHIP_ERROR ReadAttribute{{asUpperCamelCase name}}(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); {{#if isReportableAttribute}} {{#unless isList}} CHIP_ERROR SubscribeAttribute{{asUpperCamelCase name}}(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); diff --git a/zzz_generated/all-clusters-app/zap-generated/CHIPClusters.cpp b/zzz_generated/all-clusters-app/zap-generated/CHIPClusters.cpp index 3abd6a7b9c3916..9cc87d3624e9df 100644 --- a/zzz_generated/all-clusters-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/all-clusters-app/zap-generated/CHIPClusters.cpp @@ -185,17 +185,6 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::QueryImage(Callback::Cancelable * o } // OtaSoftwareUpdateProvider Cluster Attributes -CHIP_ERROR OtaSoftwareUpdateProviderCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OtaSoftwareUpdateProviderCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) diff --git a/zzz_generated/all-clusters-app/zap-generated/CHIPClusters.h b/zzz_generated/all-clusters-app/zap-generated/CHIPClusters.h index 7b04b96f436f42..213ff93d0e6c54 100644 --- a/zzz_generated/all-clusters-app/zap-generated/CHIPClusters.h +++ b/zzz_generated/all-clusters-app/zap-generated/CHIPClusters.h @@ -47,7 +47,6 @@ class DLL_EXPORT OtaSoftwareUpdateProviderCluster : public ClusterBase chip::ByteSpan metadataForProvider); // Cluster Attributes - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h index 47443bde42b70c..b437e8060e1ba0 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h @@ -185,7 +185,16 @@ CHIP_ERROR LogValue(const char * label, size_t indent, chip::CharSpan value) CHIP_ERROR LogValue(const char * label, size_t indent, chip::ByteSpan value) { - ChipLogProgress(chipTool, "%s%s: %zu", IndentStr(indent).c_str(), label, value.size()); + char buffer[CHIP_CONFIG_LOG_MESSAGE_MAX_SIZE]; + if (CHIP_NO_ERROR == + chip::Encoding::BytesToUppercaseHexString(value.data(), value.size(), &buffer[0], CHIP_CONFIG_LOG_MESSAGE_MAX_SIZE)) + { + ChipLogProgress(chipTool, "%s%s: %s", IndentStr(indent).c_str(), label, buffer); + } + else + { + ChipLogProgress(chipTool, "%s%s: %zu", IndentStr(indent).c_str(), label, value.size()); + } return CHIP_NO_ERROR; } @@ -2251,144 +2260,56 @@ static void OnBooleanAttributeReport(void * context, bool value) ChipLogProgress(chipTool, "Boolean attribute Response: %d", value); } -static void OnBooleanAttributeResponse(void * context, bool value) -{ - OnBooleanAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt8uAttributeReport(void * context, uint8_t value) { ChipLogProgress(chipTool, "Int8u attribute Response: %" PRIu8, value); } -static void OnInt8uAttributeResponse(void * context, uint8_t value) -{ - OnInt8uAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt16uAttributeReport(void * context, uint16_t value) { ChipLogProgress(chipTool, "Int16u attribute Response: %" PRIu16, value); } -static void OnInt16uAttributeResponse(void * context, uint16_t value) -{ - OnInt16uAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt32uAttributeReport(void * context, uint32_t value) { ChipLogProgress(chipTool, "Int32u attribute Response: %" PRIu32, value); } -static void OnInt32uAttributeResponse(void * context, uint32_t value) -{ - OnInt32uAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt64uAttributeReport(void * context, uint64_t value) { ChipLogProgress(chipTool, "Int64u attribute Response: %" PRIu64, value); } -static void OnInt64uAttributeResponse(void * context, uint64_t value) -{ - OnInt64uAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt8sAttributeReport(void * context, int8_t value) { ChipLogProgress(chipTool, "Int8s attribute Response: %" PRId8, value); } -static void OnInt8sAttributeResponse(void * context, int8_t value) -{ - OnInt8sAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt16sAttributeReport(void * context, int16_t value) { ChipLogProgress(chipTool, "Int16s attribute Response: %" PRId16, value); } -static void OnInt16sAttributeResponse(void * context, int16_t value) -{ - OnInt16sAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt32sAttributeReport(void * context, int32_t value) { ChipLogProgress(chipTool, "Int32s attribute Response: %" PRId32, value); } -static void OnInt32sAttributeResponse(void * context, int32_t value) -{ - OnInt32sAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnInt64sAttributeReport(void * context, int64_t value) { ChipLogProgress(chipTool, "Int64s attribute Response: %" PRId64, value); } -static void OnInt64sAttributeResponse(void * context, int64_t value) -{ - OnInt64sAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnFloatAttributeReport(void * context, float value) { ChipLogProgress(chipTool, "Float attribute Response: %f", value); } -static void OnFloatAttributeResponse(void * context, float value) -{ - OnFloatAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnDoubleAttributeReport(void * context, double value) { ChipLogProgress(chipTool, "Double attribute Response: %f", value); } -static void OnDoubleAttributeResponse(void * context, double value) -{ - OnDoubleAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnOctetStringAttributeReport(void * context, const chip::ByteSpan value) { char buffer[CHIP_CONFIG_LOG_MESSAGE_MAX_SIZE]; @@ -2403,412 +2324,17 @@ static void OnOctetStringAttributeReport(void * context, const chip::ByteSpan va } } -static void OnOctetStringAttributeResponse(void * context, const chip::ByteSpan value) -{ - OnOctetStringAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - static void OnCharStringAttributeReport(void * context, const chip::CharSpan value) { ChipLogProgress(chipTool, "CharString attribute Response: %.*s", static_cast(value.size()), value.data()); } -static void OnCharStringAttributeResponse(void * context, const chip::CharSpan value) -{ - OnCharStringAttributeReport(context, value); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(CHIP_NO_ERROR); -} - -static void OnAccessControlAclListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & - list) -{ - CHIP_ERROR err = LogValue("OnAccessControlAclListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnAccessControlExtensionListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnAccessControlExtensionListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void -OnApplicationLauncherApplicationLauncherListListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnApplicationLauncherApplicationLauncherListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnAudioOutputAudioOutputListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnAudioOutputAudioOutputListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnBridgedActionsActionListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnBridgedActionsActionListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnBridgedActionsEndpointListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & - list) -{ - CHIP_ERROR err = LogValue("OnBridgedActionsEndpointListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void -OnContentLauncherAcceptsHeaderListListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnContentLauncherAcceptsHeaderListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnContentLauncherSupportedStreamingTypesListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnContentLauncherSupportedStreamingTypesListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnDescriptorDeviceListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnDescriptorDeviceListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnDescriptorServerListListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnDescriptorServerListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnDescriptorClientListListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnDescriptorClientListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnDescriptorPartsListListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnDescriptorPartsListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnFixedLabelLabelListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnFixedLabelLabelListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnGeneralCommissioningBasicCommissioningInfoListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::GeneralCommissioning::Structs::BasicCommissioningInfoType::DecodableType> & list) -{ - CHIP_ERROR err = LogValue("OnGeneralCommissioningBasicCommissioningInfoListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnGeneralDiagnosticsNetworkInterfacesListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::GeneralDiagnostics::Structs::NetworkInterfaceType::DecodableType> & list) -{ - CHIP_ERROR err = LogValue("OnGeneralDiagnosticsNetworkInterfacesListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnGeneralDiagnosticsActiveHardwareFaultsListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnGeneralDiagnosticsActiveHardwareFaultsListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnGeneralDiagnosticsActiveRadioFaultsListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnGeneralDiagnosticsActiveRadioFaultsListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnGeneralDiagnosticsActiveNetworkFaultsListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnGeneralDiagnosticsActiveNetworkFaultsListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnGroupKeyManagementGroupsListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnGroupKeyManagementGroupsListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnGroupKeyManagementGroupKeysListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnGroupKeyManagementGroupKeysListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnMediaInputMediaInputListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnMediaInputMediaInputListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnModeSelectSupportedModesListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnModeSelectSupportedModesListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnOperationalCredentialsFabricsListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & list) -{ - CHIP_ERROR err = LogValue("OnOperationalCredentialsFabricsListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnOperationalCredentialsTrustedRootCertificatesListAttributeResponse( - void * context, const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnOperationalCredentialsTrustedRootCertificatesListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnPowerSourceActiveBatteryFaultsListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnPowerSourceActiveBatteryFaultsListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnPowerSourceConfigurationSourcesListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnPowerSourceConfigurationSourcesListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnSoftwareDiagnosticsThreadMetricsListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & - list) -{ - CHIP_ERROR err = LogValue("OnSoftwareDiagnosticsThreadMetricsListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnTvChannelTvChannelListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnTvChannelTvChannelListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnTargetNavigatorTargetNavigatorListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::TargetNavigator::Structs::NavigateTargetTargetInfo::DecodableType> & list) -{ - CHIP_ERROR err = LogValue("OnTargetNavigatorTargetNavigatorListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnTestClusterListInt8uListAttributeResponse(void * context, const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnTestClusterListInt8uListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnTestClusterListOctetStringListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnTestClusterListOctetStringListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnTestClusterListStructOctetStringListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnTestClusterListStructOctetStringListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnTestClusterListNullablesAndOptionalsStructListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::TestCluster::Structs::NullablesAndOptionalsStruct::DecodableType> & list) -{ - CHIP_ERROR err = LogValue("OnTestClusterListNullablesAndOptionalsStructListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnTestClusterListLongOctetStringListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - CHIP_ERROR err = LogValue("OnTestClusterListLongOctetStringListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnThreadNetworkDiagnosticsNeighborTableListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::ThreadNetworkDiagnostics::Structs::NeighborTable::DecodableType> & list) -{ - CHIP_ERROR err = LogValue("OnThreadNetworkDiagnosticsNeighborTableListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnThreadNetworkDiagnosticsRouteTableListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & - list) -{ - CHIP_ERROR err = LogValue("OnThreadNetworkDiagnosticsRouteTableListListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnThreadNetworkDiagnosticsSecurityPolicyListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::ThreadNetworkDiagnostics::Structs::SecurityPolicy::DecodableType> & list) -{ - CHIP_ERROR err = LogValue("OnThreadNetworkDiagnosticsSecurityPolicyListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnThreadNetworkDiagnosticsOperationalDatasetComponentsListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::ThreadNetworkDiagnostics::Structs::OperationalDatasetComponents::DecodableType> & list) -{ - CHIP_ERROR err = LogValue("OnThreadNetworkDiagnosticsOperationalDatasetComponentsListAttributeResponse", 0, list); - - ModelCommand * command = static_cast(context); - command->SetCommandExitStatus(err); -} - -static void OnThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeResponse( - void * context, const chip::app::DataModel::DecodableList & list) +template +static void OnGeneralAttributeResponse(void * context, const char * label, T value) { - CHIP_ERROR err = LogValue("OnThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeResponse", 0, list); + CHIP_ERROR err = LogValue(label, 0, value); - ModelCommand * command = static_cast(context); + auto * command = static_cast(context); command->SetCommandExitStatus(err); } @@ -4113,11 +3639,7 @@ class ReadAccessControlAcl : public ModelCommand ModelCommand::AddArguments(); } - ~ReadAccessControlAcl() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadAccessControlAcl() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -4125,14 +3647,17 @@ class ReadAccessControlAcl : public ModelCommand chip::Controller::AccessControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeAcl(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnAccessControlAclListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & + value) + { + OnGeneralAttributeResponse(context, "AccessControl.Acl response", value); + } }; /* @@ -4147,11 +3672,7 @@ class ReadAccessControlExtension : public ModelCommand ModelCommand::AddArguments(); } - ~ReadAccessControlExtension() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadAccessControlExtension() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -4159,15 +3680,17 @@ class ReadAccessControlExtension : public ModelCommand chip::Controller::AccessControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeExtension(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnAccessControlExtensionListAttributeResponse, - this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & + value) + { + OnGeneralAttributeResponse(context, "AccessControl.Extension response", value); + } }; /* @@ -4182,11 +3705,7 @@ class ReadAccessControlClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadAccessControlClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadAccessControlClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -4194,14 +3713,14 @@ class ReadAccessControlClusterRevision : public ModelCommand chip::Controller::AccessControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "AccessControl.ClusterRevision response", value); + } }; /*----------------------------------------------------------------------------*\ @@ -4276,11 +3795,7 @@ class ReadAccountLoginClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadAccountLoginClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadAccountLoginClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -4288,14 +3803,14 @@ class ReadAccountLoginClusterRevision : public ModelCommand chip::Controller::AccountLoginCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "AccountLogin.ClusterRevision response", value); + } }; class ReportAccountLoginClusterRevision : public ModelCommand @@ -4447,11 +3962,7 @@ class ReadAdministratorCommissioningClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadAdministratorCommissioningClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadAdministratorCommissioningClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -4459,14 +3970,14 @@ class ReadAdministratorCommissioningClusterRevision : public ModelCommand chip::Controller::AdministratorCommissioningCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "AdministratorCommissioning.ClusterRevision response", value); + } }; class ReportAdministratorCommissioningClusterRevision : public ModelCommand @@ -4575,11 +4086,7 @@ class ReadApplicationBasicVendorName : public ModelCommand ModelCommand::AddArguments(); } - ~ReadApplicationBasicVendorName() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadApplicationBasicVendorName() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -4587,14 +4094,14 @@ class ReadApplicationBasicVendorName : public ModelCommand chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeVendorName(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "ApplicationBasic.VendorName response", value); + } }; class ReportApplicationBasicVendorName : public ModelCommand @@ -4661,11 +4168,7 @@ class ReadApplicationBasicVendorId : public ModelCommand ModelCommand::AddArguments(); } - ~ReadApplicationBasicVendorId() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadApplicationBasicVendorId() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -4673,14 +4176,14 @@ class ReadApplicationBasicVendorId : public ModelCommand chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeVendorId(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ApplicationBasic.VendorId response", value); + } }; class ReportApplicationBasicVendorId : public ModelCommand @@ -4747,11 +4250,7 @@ class ReadApplicationBasicApplicationName : public ModelCommand ModelCommand::AddArguments(); } - ~ReadApplicationBasicApplicationName() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadApplicationBasicApplicationName() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -4759,14 +4258,14 @@ class ReadApplicationBasicApplicationName : public ModelCommand chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeApplicationName(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "ApplicationBasic.ApplicationName response", value); + } }; class ReportApplicationBasicApplicationName : public ModelCommand @@ -4833,11 +4332,7 @@ class ReadApplicationBasicProductId : public ModelCommand ModelCommand::AddArguments(); } - ~ReadApplicationBasicProductId() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadApplicationBasicProductId() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -4845,14 +4340,14 @@ class ReadApplicationBasicProductId : public ModelCommand chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeProductId(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ApplicationBasic.ProductId response", value); + } }; class ReportApplicationBasicProductId : public ModelCommand @@ -4919,11 +4414,7 @@ class ReadApplicationBasicApplicationId : public ModelCommand ModelCommand::AddArguments(); } - ~ReadApplicationBasicApplicationId() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadApplicationBasicApplicationId() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -4931,14 +4422,14 @@ class ReadApplicationBasicApplicationId : public ModelCommand chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeApplicationId(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "ApplicationBasic.ApplicationId response", value); + } }; class ReportApplicationBasicApplicationId : public ModelCommand @@ -5005,11 +4496,7 @@ class ReadApplicationBasicCatalogVendorId : public ModelCommand ModelCommand::AddArguments(); } - ~ReadApplicationBasicCatalogVendorId() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadApplicationBasicCatalogVendorId() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -5017,14 +4504,14 @@ class ReadApplicationBasicCatalogVendorId : public ModelCommand chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCatalogVendorId(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ApplicationBasic.CatalogVendorId response", value); + } }; class ReportApplicationBasicCatalogVendorId : public ModelCommand @@ -5091,11 +4578,7 @@ class ReadApplicationBasicApplicationStatus : public ModelCommand ModelCommand::AddArguments(); } - ~ReadApplicationBasicApplicationStatus() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadApplicationBasicApplicationStatus() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -5103,14 +4586,14 @@ class ReadApplicationBasicApplicationStatus : public ModelCommand chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeApplicationStatus(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ApplicationBasic.ApplicationStatus response", value); + } }; class ReportApplicationBasicApplicationStatus : public ModelCommand @@ -5178,11 +4661,7 @@ class ReadApplicationBasicClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadApplicationBasicClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadApplicationBasicClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -5190,14 +4669,14 @@ class ReadApplicationBasicClusterRevision : public ModelCommand chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ApplicationBasic.ClusterRevision response", value); + } }; class ReportApplicationBasicClusterRevision : public ModelCommand @@ -5303,11 +4782,7 @@ class ReadApplicationLauncherApplicationLauncherList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadApplicationLauncherApplicationLauncherList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadApplicationLauncherApplicationLauncherList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -5315,15 +4790,14 @@ class ReadApplicationLauncherApplicationLauncherList : public ModelCommand chip::Controller::ApplicationLauncherCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeApplicationLauncherList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnApplicationLauncherApplicationLauncherListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "ApplicationLauncher.ApplicationLauncherList response", value); + } }; /* @@ -5338,11 +4812,7 @@ class ReadApplicationLauncherCatalogVendorId : public ModelCommand ModelCommand::AddArguments(); } - ~ReadApplicationLauncherCatalogVendorId() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadApplicationLauncherCatalogVendorId() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -5350,14 +4820,14 @@ class ReadApplicationLauncherCatalogVendorId : public ModelCommand chip::Controller::ApplicationLauncherCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCatalogVendorId(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ApplicationLauncher.CatalogVendorId response", value); + } }; class ReportApplicationLauncherCatalogVendorId : public ModelCommand @@ -5424,11 +4894,7 @@ class ReadApplicationLauncherApplicationId : public ModelCommand ModelCommand::AddArguments(); } - ~ReadApplicationLauncherApplicationId() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadApplicationLauncherApplicationId() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -5436,14 +4902,14 @@ class ReadApplicationLauncherApplicationId : public ModelCommand chip::Controller::ApplicationLauncherCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeApplicationId(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ApplicationLauncher.ApplicationId response", value); + } }; class ReportApplicationLauncherApplicationId : public ModelCommand @@ -5510,11 +4976,7 @@ class ReadApplicationLauncherClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadApplicationLauncherClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadApplicationLauncherClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -5522,14 +4984,14 @@ class ReadApplicationLauncherClusterRevision : public ModelCommand chip::Controller::ApplicationLauncherCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ApplicationLauncher.ClusterRevision response", value); + } }; class ReportApplicationLauncherClusterRevision : public ModelCommand @@ -5658,11 +5120,7 @@ class ReadAudioOutputAudioOutputList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadAudioOutputAudioOutputList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadAudioOutputAudioOutputList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -5670,15 +5128,17 @@ class ReadAudioOutputAudioOutputList : public ModelCommand chip::Controller::AudioOutputCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeAudioOutputList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnAudioOutputAudioOutputListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & + value) + { + OnGeneralAttributeResponse(context, "AudioOutput.AudioOutputList response", value); + } }; /* @@ -5693,11 +5153,7 @@ class ReadAudioOutputCurrentAudioOutput : public ModelCommand ModelCommand::AddArguments(); } - ~ReadAudioOutputCurrentAudioOutput() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadAudioOutputCurrentAudioOutput() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -5705,14 +5161,14 @@ class ReadAudioOutputCurrentAudioOutput : public ModelCommand chip::Controller::AudioOutputCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentAudioOutput(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "AudioOutput.CurrentAudioOutput response", value); + } }; class ReportAudioOutputCurrentAudioOutput : public ModelCommand @@ -5780,11 +5236,7 @@ class ReadAudioOutputClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadAudioOutputClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadAudioOutputClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -5792,14 +5244,14 @@ class ReadAudioOutputClusterRevision : public ModelCommand chip::Controller::AudioOutputCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "AudioOutput.ClusterRevision response", value); + } }; class ReportAudioOutputClusterRevision : public ModelCommand @@ -5925,11 +5377,7 @@ class ReadBarrierControlBarrierMovingState : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBarrierControlBarrierMovingState() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBarrierControlBarrierMovingState() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -5937,14 +5385,14 @@ class ReadBarrierControlBarrierMovingState : public ModelCommand chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBarrierMovingState(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "BarrierControl.BarrierMovingState response", value); + } }; class ReportBarrierControlBarrierMovingState : public ModelCommand @@ -6012,11 +5460,7 @@ class ReadBarrierControlBarrierSafetyStatus : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBarrierControlBarrierSafetyStatus() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBarrierControlBarrierSafetyStatus() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -6024,14 +5468,14 @@ class ReadBarrierControlBarrierSafetyStatus : public ModelCommand chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBarrierSafetyStatus(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "BarrierControl.BarrierSafetyStatus response", value); + } }; class ReportBarrierControlBarrierSafetyStatus : public ModelCommand @@ -6099,11 +5543,7 @@ class ReadBarrierControlBarrierCapabilities : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBarrierControlBarrierCapabilities() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBarrierControlBarrierCapabilities() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -6111,14 +5551,14 @@ class ReadBarrierControlBarrierCapabilities : public ModelCommand chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBarrierCapabilities(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "BarrierControl.BarrierCapabilities response", value); + } }; class ReportBarrierControlBarrierCapabilities : public ModelCommand @@ -6186,11 +5626,7 @@ class ReadBarrierControlBarrierPosition : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBarrierControlBarrierPosition() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBarrierControlBarrierPosition() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -6198,14 +5634,14 @@ class ReadBarrierControlBarrierPosition : public ModelCommand chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBarrierPosition(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "BarrierControl.BarrierPosition response", value); + } }; class ReportBarrierControlBarrierPosition : public ModelCommand @@ -6272,11 +5708,7 @@ class ReadBarrierControlClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBarrierControlClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBarrierControlClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -6284,14 +5716,14 @@ class ReadBarrierControlClusterRevision : public ModelCommand chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "BarrierControl.ClusterRevision response", value); + } }; class ReportBarrierControlClusterRevision : public ModelCommand @@ -6407,11 +5839,7 @@ class ReadBasicInteractionModelVersion : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicInteractionModelVersion() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicInteractionModelVersion() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -6419,14 +5847,14 @@ class ReadBasicInteractionModelVersion : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInteractionModelVersion(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Basic.InteractionModelVersion response", value); + } }; class ReportBasicInteractionModelVersion : public ModelCommand @@ -6494,11 +5922,7 @@ class ReadBasicVendorName : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicVendorName() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicVendorName() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -6506,14 +5930,14 @@ class ReadBasicVendorName : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeVendorName(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "Basic.VendorName response", value); + } }; class ReportBasicVendorName : public ModelCommand @@ -6580,11 +6004,7 @@ class ReadBasicVendorID : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicVendorID() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicVendorID() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -6592,14 +6012,14 @@ class ReadBasicVendorID : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeVendorID(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Basic.VendorID response", value); + } }; class ReportBasicVendorID : public ModelCommand @@ -6666,11 +6086,7 @@ class ReadBasicProductName : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicProductName() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicProductName() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -6678,14 +6094,14 @@ class ReadBasicProductName : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeProductName(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "Basic.ProductName response", value); + } }; class ReportBasicProductName : public ModelCommand @@ -6752,11 +6168,7 @@ class ReadBasicProductID : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicProductID() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicProductID() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -6764,14 +6176,14 @@ class ReadBasicProductID : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeProductID(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Basic.ProductID response", value); + } }; class ReportBasicProductID : public ModelCommand @@ -6838,11 +6250,7 @@ class ReadBasicNodeLabel : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicNodeLabel() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicNodeLabel() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -6850,14 +6258,14 @@ class ReadBasicNodeLabel : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNodeLabel(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "Basic.NodeLabel response", value); + } }; class WriteBasicNodeLabel : public ModelCommand @@ -6950,11 +6358,7 @@ class ReadBasicLocation : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicLocation() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicLocation() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -6962,14 +6366,14 @@ class ReadBasicLocation : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeLocation(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "Basic.Location response", value); + } }; class WriteBasicLocation : public ModelCommand @@ -7062,11 +6466,7 @@ class ReadBasicHardwareVersion : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicHardwareVersion() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicHardwareVersion() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -7074,14 +6474,14 @@ class ReadBasicHardwareVersion : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeHardwareVersion(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Basic.HardwareVersion response", value); + } }; class ReportBasicHardwareVersion : public ModelCommand @@ -7148,11 +6548,7 @@ class ReadBasicHardwareVersionString : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicHardwareVersionString() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicHardwareVersionString() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -7160,14 +6556,14 @@ class ReadBasicHardwareVersionString : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeHardwareVersionString(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "Basic.HardwareVersionString response", value); + } }; class ReportBasicHardwareVersionString : public ModelCommand @@ -7235,11 +6631,7 @@ class ReadBasicSoftwareVersion : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicSoftwareVersion() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicSoftwareVersion() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -7247,14 +6639,14 @@ class ReadBasicSoftwareVersion : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSoftwareVersion(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "Basic.SoftwareVersion response", value); + } }; class ReportBasicSoftwareVersion : public ModelCommand @@ -7321,11 +6713,7 @@ class ReadBasicSoftwareVersionString : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicSoftwareVersionString() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicSoftwareVersionString() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -7333,14 +6721,14 @@ class ReadBasicSoftwareVersionString : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSoftwareVersionString(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "Basic.SoftwareVersionString response", value); + } }; class ReportBasicSoftwareVersionString : public ModelCommand @@ -7408,11 +6796,7 @@ class ReadBasicManufacturingDate : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicManufacturingDate() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicManufacturingDate() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -7420,14 +6804,14 @@ class ReadBasicManufacturingDate : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeManufacturingDate(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "Basic.ManufacturingDate response", value); + } }; class ReportBasicManufacturingDate : public ModelCommand @@ -7495,11 +6879,7 @@ class ReadBasicPartNumber : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicPartNumber() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicPartNumber() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -7507,14 +6887,14 @@ class ReadBasicPartNumber : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePartNumber(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "Basic.PartNumber response", value); + } }; class ReportBasicPartNumber : public ModelCommand @@ -7581,11 +6961,7 @@ class ReadBasicProductURL : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicProductURL() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicProductURL() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -7593,14 +6969,14 @@ class ReadBasicProductURL : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeProductURL(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "Basic.ProductURL response", value); + } }; class ReportBasicProductURL : public ModelCommand @@ -7667,11 +7043,7 @@ class ReadBasicProductLabel : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicProductLabel() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicProductLabel() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -7679,14 +7051,14 @@ class ReadBasicProductLabel : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeProductLabel(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "Basic.ProductLabel response", value); + } }; class ReportBasicProductLabel : public ModelCommand @@ -7753,11 +7125,7 @@ class ReadBasicSerialNumber : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicSerialNumber() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicSerialNumber() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -7765,14 +7133,14 @@ class ReadBasicSerialNumber : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSerialNumber(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "Basic.SerialNumber response", value); + } }; class ReportBasicSerialNumber : public ModelCommand @@ -7839,11 +7207,7 @@ class ReadBasicLocalConfigDisabled : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicLocalConfigDisabled() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicLocalConfigDisabled() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -7851,14 +7215,14 @@ class ReadBasicLocalConfigDisabled : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeLocalConfigDisabled(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "Basic.LocalConfigDisabled response", value); + } }; class WriteBasicLocalConfigDisabled : public ModelCommand @@ -7952,11 +7316,7 @@ class ReadBasicReachable : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicReachable() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicReachable() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -7964,14 +7324,14 @@ class ReadBasicReachable : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeReachable(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "Basic.Reachable response", value); + } }; class ReportBasicReachable : public ModelCommand @@ -8038,11 +7398,7 @@ class ReadBasicUniqueID : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicUniqueID() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicUniqueID() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -8050,14 +7406,14 @@ class ReadBasicUniqueID : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeUniqueID(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "Basic.UniqueID response", value); + } }; /* @@ -8072,11 +7428,7 @@ class ReadBasicClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBasicClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBasicClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -8084,14 +7436,14 @@ class ReadBasicClusterRevision : public ModelCommand chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Basic.ClusterRevision response", value); + } }; class ReportBasicClusterRevision : public ModelCommand @@ -8170,11 +7522,7 @@ class ReadBinaryInputBasicOutOfService : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBinaryInputBasicOutOfService() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBinaryInputBasicOutOfService() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -8182,14 +7530,14 @@ class ReadBinaryInputBasicOutOfService : public ModelCommand chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOutOfService(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "BinaryInputBasic.OutOfService response", value); + } }; class WriteBinaryInputBasicOutOfService : public ModelCommand @@ -8282,11 +7630,7 @@ class ReadBinaryInputBasicPresentValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBinaryInputBasicPresentValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBinaryInputBasicPresentValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -8294,14 +7638,14 @@ class ReadBinaryInputBasicPresentValue : public ModelCommand chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePresentValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "BinaryInputBasic.PresentValue response", value); + } }; class WriteBinaryInputBasicPresentValue : public ModelCommand @@ -8394,11 +7738,7 @@ class ReadBinaryInputBasicStatusFlags : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBinaryInputBasicStatusFlags() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBinaryInputBasicStatusFlags() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -8406,14 +7746,14 @@ class ReadBinaryInputBasicStatusFlags : public ModelCommand chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeStatusFlags(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "BinaryInputBasic.StatusFlags response", value); + } }; class ReportBinaryInputBasicStatusFlags : public ModelCommand @@ -8480,11 +7820,7 @@ class ReadBinaryInputBasicClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBinaryInputBasicClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBinaryInputBasicClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -8492,14 +7828,14 @@ class ReadBinaryInputBasicClusterRevision : public ModelCommand chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "BinaryInputBasic.ClusterRevision response", value); + } }; class ReportBinaryInputBasicClusterRevision : public ModelCommand @@ -8631,11 +7967,7 @@ class ReadBindingClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBindingClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBindingClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -8643,14 +7975,14 @@ class ReadBindingClusterRevision : public ModelCommand chip::Controller::BindingCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Binding.ClusterRevision response", value); + } }; class ReportBindingClusterRevision : public ModelCommand @@ -8727,11 +8059,7 @@ class ReadBooleanStateStateValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBooleanStateStateValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBooleanStateStateValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -8739,14 +8067,14 @@ class ReadBooleanStateStateValue : public ModelCommand chip::Controller::BooleanStateCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeStateValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "BooleanState.StateValue response", value); + } }; class ReportBooleanStateStateValue : public ModelCommand @@ -8813,11 +8141,7 @@ class ReadBooleanStateClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBooleanStateClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBooleanStateClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -8825,14 +8149,14 @@ class ReadBooleanStateClusterRevision : public ModelCommand chip::Controller::BooleanStateCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "BooleanState.ClusterRevision response", value); + } }; class ReportBooleanStateClusterRevision : public ModelCommand @@ -9228,11 +8552,7 @@ class ReadBridgedActionsActionList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBridgedActionsActionList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBridgedActionsActionList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -9240,15 +8560,17 @@ class ReadBridgedActionsActionList : public ModelCommand chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeActionList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBridgedActionsActionListListAttributeResponse, - this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & + value) + { + OnGeneralAttributeResponse(context, "BridgedActions.ActionList response", value); + } }; /* @@ -9263,11 +8585,7 @@ class ReadBridgedActionsEndpointList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBridgedActionsEndpointList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBridgedActionsEndpointList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -9275,15 +8593,17 @@ class ReadBridgedActionsEndpointList : public ModelCommand chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeEndpointList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnBridgedActionsEndpointListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & + value) + { + OnGeneralAttributeResponse(context, "BridgedActions.EndpointList response", value); + } }; /* @@ -9298,11 +8618,7 @@ class ReadBridgedActionsSetupUrl : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBridgedActionsSetupUrl() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBridgedActionsSetupUrl() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -9310,14 +8626,14 @@ class ReadBridgedActionsSetupUrl : public ModelCommand chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSetupUrl(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "BridgedActions.SetupUrl response", value); + } }; class ReportBridgedActionsSetupUrl : public ModelCommand @@ -9384,11 +8700,7 @@ class ReadBridgedActionsClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBridgedActionsClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBridgedActionsClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -9396,14 +8708,14 @@ class ReadBridgedActionsClusterRevision : public ModelCommand chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "BridgedActions.ClusterRevision response", value); + } }; class ReportBridgedActionsClusterRevision : public ModelCommand @@ -9479,11 +8791,7 @@ class ReadBridgedDeviceBasicClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadBridgedDeviceBasicClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadBridgedDeviceBasicClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -9491,14 +8799,14 @@ class ReadBridgedDeviceBasicClusterRevision : public ModelCommand chip::Controller::BridgedDeviceBasicCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "BridgedDeviceBasic.ClusterRevision response", value); + } }; class ReportBridgedDeviceBasicClusterRevision : public ModelCommand @@ -10187,11 +9495,7 @@ class ReadColorControlCurrentHue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlCurrentHue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlCurrentHue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -10199,14 +9503,14 @@ class ReadColorControlCurrentHue : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentHue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.CurrentHue response", value); + } }; class ReportColorControlCurrentHue : public ModelCommand @@ -10273,11 +9577,7 @@ class ReadColorControlCurrentSaturation : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlCurrentSaturation() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlCurrentSaturation() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -10285,14 +9585,14 @@ class ReadColorControlCurrentSaturation : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentSaturation(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.CurrentSaturation response", value); + } }; class ReportColorControlCurrentSaturation : public ModelCommand @@ -10360,11 +9660,7 @@ class ReadColorControlRemainingTime : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlRemainingTime() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlRemainingTime() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -10372,14 +9668,14 @@ class ReadColorControlRemainingTime : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRemainingTime(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.RemainingTime response", value); + } }; class ReportColorControlRemainingTime : public ModelCommand @@ -10446,11 +9742,7 @@ class ReadColorControlCurrentX : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlCurrentX() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlCurrentX() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -10458,14 +9750,14 @@ class ReadColorControlCurrentX : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentX(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.CurrentX response", value); + } }; class ReportColorControlCurrentX : public ModelCommand @@ -10532,11 +9824,7 @@ class ReadColorControlCurrentY : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlCurrentY() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlCurrentY() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -10544,14 +9832,14 @@ class ReadColorControlCurrentY : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentY(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.CurrentY response", value); + } }; class ReportColorControlCurrentY : public ModelCommand @@ -10618,11 +9906,7 @@ class ReadColorControlDriftCompensation : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlDriftCompensation() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlDriftCompensation() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -10630,14 +9914,14 @@ class ReadColorControlDriftCompensation : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeDriftCompensation(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.DriftCompensation response", value); + } }; class ReportColorControlDriftCompensation : public ModelCommand @@ -10705,11 +9989,7 @@ class ReadColorControlCompensationText : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlCompensationText() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlCompensationText() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -10717,14 +9997,14 @@ class ReadColorControlCompensationText : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCompensationText(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "ColorControl.CompensationText response", value); + } }; class ReportColorControlCompensationText : public ModelCommand @@ -10791,11 +10071,7 @@ class ReadColorControlColorTemperature : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorTemperature() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorTemperature() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -10803,14 +10079,14 @@ class ReadColorControlColorTemperature : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorTemperature(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorTemperature response", value); + } }; class ReportColorControlColorTemperature : public ModelCommand @@ -10877,11 +10153,7 @@ class ReadColorControlColorMode : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorMode() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorMode() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -10889,14 +10161,14 @@ class ReadColorControlColorMode : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorMode(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorMode response", value); + } }; class ReportColorControlColorMode : public ModelCommand @@ -10963,11 +10235,7 @@ class ReadColorControlColorControlOptions : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorControlOptions() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorControlOptions() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -10975,14 +10243,14 @@ class ReadColorControlColorControlOptions : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorControlOptions(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorControlOptions response", value); + } }; class WriteColorControlColorControlOptions : public ModelCommand @@ -11076,11 +10344,7 @@ class ReadColorControlNumberOfPrimaries : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlNumberOfPrimaries() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlNumberOfPrimaries() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -11088,14 +10352,14 @@ class ReadColorControlNumberOfPrimaries : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNumberOfPrimaries(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.NumberOfPrimaries response", value); + } }; class ReportColorControlNumberOfPrimaries : public ModelCommand @@ -11163,11 +10427,7 @@ class ReadColorControlPrimary1X : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary1X() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary1X() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -11175,14 +10435,14 @@ class ReadColorControlPrimary1X : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary1X(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary1X response", value); + } }; class ReportColorControlPrimary1X : public ModelCommand @@ -11249,11 +10509,7 @@ class ReadColorControlPrimary1Y : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary1Y() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary1Y() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -11261,14 +10517,14 @@ class ReadColorControlPrimary1Y : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary1Y(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary1Y response", value); + } }; class ReportColorControlPrimary1Y : public ModelCommand @@ -11335,11 +10591,7 @@ class ReadColorControlPrimary1Intensity : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary1Intensity() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary1Intensity() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -11347,14 +10599,14 @@ class ReadColorControlPrimary1Intensity : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary1Intensity(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary1Intensity response", value); + } }; class ReportColorControlPrimary1Intensity : public ModelCommand @@ -11422,11 +10674,7 @@ class ReadColorControlPrimary2X : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary2X() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary2X() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -11434,14 +10682,14 @@ class ReadColorControlPrimary2X : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary2X(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary2X response", value); + } }; class ReportColorControlPrimary2X : public ModelCommand @@ -11508,11 +10756,7 @@ class ReadColorControlPrimary2Y : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary2Y() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary2Y() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -11520,14 +10764,14 @@ class ReadColorControlPrimary2Y : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary2Y(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary2Y response", value); + } }; class ReportColorControlPrimary2Y : public ModelCommand @@ -11594,11 +10838,7 @@ class ReadColorControlPrimary2Intensity : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary2Intensity() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary2Intensity() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -11606,14 +10846,14 @@ class ReadColorControlPrimary2Intensity : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary2Intensity(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary2Intensity response", value); + } }; class ReportColorControlPrimary2Intensity : public ModelCommand @@ -11681,11 +10921,7 @@ class ReadColorControlPrimary3X : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary3X() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary3X() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -11693,14 +10929,14 @@ class ReadColorControlPrimary3X : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary3X(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary3X response", value); + } }; class ReportColorControlPrimary3X : public ModelCommand @@ -11767,11 +11003,7 @@ class ReadColorControlPrimary3Y : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary3Y() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary3Y() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -11779,14 +11011,14 @@ class ReadColorControlPrimary3Y : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary3Y(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary3Y response", value); + } }; class ReportColorControlPrimary3Y : public ModelCommand @@ -11853,11 +11085,7 @@ class ReadColorControlPrimary3Intensity : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary3Intensity() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary3Intensity() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -11865,14 +11093,14 @@ class ReadColorControlPrimary3Intensity : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary3Intensity(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary3Intensity response", value); + } }; class ReportColorControlPrimary3Intensity : public ModelCommand @@ -11940,11 +11168,7 @@ class ReadColorControlPrimary4X : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary4X() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary4X() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -11952,14 +11176,14 @@ class ReadColorControlPrimary4X : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary4X(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary4X response", value); + } }; class ReportColorControlPrimary4X : public ModelCommand @@ -12026,11 +11250,7 @@ class ReadColorControlPrimary4Y : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary4Y() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary4Y() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -12038,14 +11258,14 @@ class ReadColorControlPrimary4Y : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary4Y(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary4Y response", value); + } }; class ReportColorControlPrimary4Y : public ModelCommand @@ -12112,11 +11332,7 @@ class ReadColorControlPrimary4Intensity : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary4Intensity() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary4Intensity() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -12124,14 +11340,14 @@ class ReadColorControlPrimary4Intensity : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary4Intensity(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary4Intensity response", value); + } }; class ReportColorControlPrimary4Intensity : public ModelCommand @@ -12199,11 +11415,7 @@ class ReadColorControlPrimary5X : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary5X() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary5X() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -12211,14 +11423,14 @@ class ReadColorControlPrimary5X : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary5X(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary5X response", value); + } }; class ReportColorControlPrimary5X : public ModelCommand @@ -12285,11 +11497,7 @@ class ReadColorControlPrimary5Y : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary5Y() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary5Y() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -12297,14 +11505,14 @@ class ReadColorControlPrimary5Y : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary5Y(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary5Y response", value); + } }; class ReportColorControlPrimary5Y : public ModelCommand @@ -12371,11 +11579,7 @@ class ReadColorControlPrimary5Intensity : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary5Intensity() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary5Intensity() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -12383,14 +11587,14 @@ class ReadColorControlPrimary5Intensity : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary5Intensity(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary5Intensity response", value); + } }; class ReportColorControlPrimary5Intensity : public ModelCommand @@ -12458,11 +11662,7 @@ class ReadColorControlPrimary6X : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary6X() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary6X() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -12470,14 +11670,14 @@ class ReadColorControlPrimary6X : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary6X(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary6X response", value); + } }; class ReportColorControlPrimary6X : public ModelCommand @@ -12544,11 +11744,7 @@ class ReadColorControlPrimary6Y : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary6Y() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary6Y() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -12556,14 +11752,14 @@ class ReadColorControlPrimary6Y : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary6Y(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary6Y response", value); + } }; class ReportColorControlPrimary6Y : public ModelCommand @@ -12630,11 +11826,7 @@ class ReadColorControlPrimary6Intensity : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlPrimary6Intensity() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlPrimary6Intensity() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -12642,14 +11834,14 @@ class ReadColorControlPrimary6Intensity : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePrimary6Intensity(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.Primary6Intensity response", value); + } }; class ReportColorControlPrimary6Intensity : public ModelCommand @@ -12717,11 +11909,7 @@ class ReadColorControlWhitePointX : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlWhitePointX() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlWhitePointX() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -12729,14 +11917,14 @@ class ReadColorControlWhitePointX : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeWhitePointX(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.WhitePointX response", value); + } }; class WriteColorControlWhitePointX : public ModelCommand @@ -12829,11 +12017,7 @@ class ReadColorControlWhitePointY : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlWhitePointY() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlWhitePointY() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -12841,14 +12025,14 @@ class ReadColorControlWhitePointY : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeWhitePointY(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.WhitePointY response", value); + } }; class WriteColorControlWhitePointY : public ModelCommand @@ -12941,11 +12125,7 @@ class ReadColorControlColorPointRX : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorPointRX() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorPointRX() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -12953,14 +12133,14 @@ class ReadColorControlColorPointRX : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorPointRX(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorPointRX response", value); + } }; class WriteColorControlColorPointRX : public ModelCommand @@ -13053,11 +12233,7 @@ class ReadColorControlColorPointRY : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorPointRY() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorPointRY() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -13065,14 +12241,14 @@ class ReadColorControlColorPointRY : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorPointRY(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorPointRY response", value); + } }; class WriteColorControlColorPointRY : public ModelCommand @@ -13165,11 +12341,7 @@ class ReadColorControlColorPointRIntensity : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorPointRIntensity() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorPointRIntensity() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -13177,14 +12349,14 @@ class ReadColorControlColorPointRIntensity : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorPointRIntensity(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorPointRIntensity response", value); + } }; class WriteColorControlColorPointRIntensity : public ModelCommand @@ -13278,11 +12450,7 @@ class ReadColorControlColorPointGX : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorPointGX() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorPointGX() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -13290,14 +12458,14 @@ class ReadColorControlColorPointGX : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorPointGX(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorPointGX response", value); + } }; class WriteColorControlColorPointGX : public ModelCommand @@ -13390,11 +12558,7 @@ class ReadColorControlColorPointGY : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorPointGY() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorPointGY() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -13402,14 +12566,14 @@ class ReadColorControlColorPointGY : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorPointGY(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorPointGY response", value); + } }; class WriteColorControlColorPointGY : public ModelCommand @@ -13502,11 +12666,7 @@ class ReadColorControlColorPointGIntensity : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorPointGIntensity() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorPointGIntensity() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -13514,14 +12674,14 @@ class ReadColorControlColorPointGIntensity : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorPointGIntensity(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorPointGIntensity response", value); + } }; class WriteColorControlColorPointGIntensity : public ModelCommand @@ -13615,11 +12775,7 @@ class ReadColorControlColorPointBX : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorPointBX() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorPointBX() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -13627,14 +12783,14 @@ class ReadColorControlColorPointBX : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorPointBX(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorPointBX response", value); + } }; class WriteColorControlColorPointBX : public ModelCommand @@ -13727,11 +12883,7 @@ class ReadColorControlColorPointBY : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorPointBY() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorPointBY() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -13739,14 +12891,14 @@ class ReadColorControlColorPointBY : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorPointBY(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorPointBY response", value); + } }; class WriteColorControlColorPointBY : public ModelCommand @@ -13839,11 +12991,7 @@ class ReadColorControlColorPointBIntensity : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorPointBIntensity() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorPointBIntensity() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -13851,14 +12999,14 @@ class ReadColorControlColorPointBIntensity : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorPointBIntensity(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorPointBIntensity response", value); + } }; class WriteColorControlColorPointBIntensity : public ModelCommand @@ -13952,11 +13100,7 @@ class ReadColorControlEnhancedCurrentHue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlEnhancedCurrentHue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlEnhancedCurrentHue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -13964,14 +13108,14 @@ class ReadColorControlEnhancedCurrentHue : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeEnhancedCurrentHue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.EnhancedCurrentHue response", value); + } }; class ReportColorControlEnhancedCurrentHue : public ModelCommand @@ -14039,11 +13183,7 @@ class ReadColorControlEnhancedColorMode : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlEnhancedColorMode() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlEnhancedColorMode() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -14051,14 +13191,14 @@ class ReadColorControlEnhancedColorMode : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeEnhancedColorMode(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.EnhancedColorMode response", value); + } }; class ReportColorControlEnhancedColorMode : public ModelCommand @@ -14115,210 +13255,198 @@ class ReportColorControlEnhancedColorMode : public ModelCommand }; /* - * Attribute ColorLoopActive - */ -class ReadColorControlColorLoopActive : public ModelCommand -{ -public: - ReadColorControlColorLoopActive() : ModelCommand("read") - { - AddArgument("attr-name", "color-loop-active"); - ModelCommand::AddArguments(); - } - - ~ReadColorControlColorLoopActive() - { - delete onSuccessCallback; - delete onFailureCallback; - } - - CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); - - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorLoopActive(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); - } - -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); -}; - -class ReportColorControlColorLoopActive : public ModelCommand -{ -public: - ReportColorControlColorLoopActive() : ModelCommand("report") - { - AddArgument("attr-name", "color-loop-active"); - AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval); - AddArgument("max-interval", 0, UINT16_MAX, &mMaxInterval); - AddArgument("wait", 0, 1, &mWait); - ModelCommand::AddArguments(); - } - - ~ReportColorControlColorLoopActive() - { - delete onSuccessCallback; - delete onSuccessCallbackWithoutExit; - delete onFailureCallback; - delete onReportCallback; - } - - CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); - - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, endpointId); - - ReturnErrorOnFailure(cluster.ReportAttributeColorLoopActive(onReportCallback->Cancel())); - - chip::Callback::Cancelable * successCallback = mWait ? onSuccessCallbackWithoutExit->Cancel() : onSuccessCallback->Cancel(); - return cluster.SubscribeAttributeColorLoopActive(successCallback, onFailureCallback->Cancel(), mMinInterval, mMaxInterval); - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } - -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnDefaultSuccessResponse, this); - chip::Callback::Callback * onSuccessCallbackWithoutExit = - new chip::Callback::Callback(OnDefaultSuccessResponseWithoutExit, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); - chip::Callback::Callback * onReportCallback = - new chip::Callback::Callback(OnInt8uAttributeReport, this); - uint16_t mMinInterval; - uint16_t mMaxInterval; - bool mWait; -}; - -/* - * Attribute ColorLoopDirection - */ -class ReadColorControlColorLoopDirection : public ModelCommand -{ -public: - ReadColorControlColorLoopDirection() : ModelCommand("read") - { - AddArgument("attr-name", "color-loop-direction"); - ModelCommand::AddArguments(); - } - - ~ReadColorControlColorLoopDirection() - { - delete onSuccessCallback; - delete onFailureCallback; - } - - CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); - - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorLoopDirection(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); - } - -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); -}; - -class ReportColorControlColorLoopDirection : public ModelCommand -{ -public: - ReportColorControlColorLoopDirection() : ModelCommand("report") - { - AddArgument("attr-name", "color-loop-direction"); - AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval); - AddArgument("max-interval", 0, UINT16_MAX, &mMaxInterval); - AddArgument("wait", 0, 1, &mWait); - ModelCommand::AddArguments(); - } - - ~ReportColorControlColorLoopDirection() - { - delete onSuccessCallback; - delete onSuccessCallbackWithoutExit; - delete onFailureCallback; - delete onReportCallback; - } - - CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); - - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, endpointId); - - ReturnErrorOnFailure(cluster.ReportAttributeColorLoopDirection(onReportCallback->Cancel())); - - chip::Callback::Cancelable * successCallback = mWait ? onSuccessCallbackWithoutExit->Cancel() : onSuccessCallback->Cancel(); - return cluster.SubscribeAttributeColorLoopDirection(successCallback, onFailureCallback->Cancel(), mMinInterval, - mMaxInterval); - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } - -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnDefaultSuccessResponse, this); - chip::Callback::Callback * onSuccessCallbackWithoutExit = - new chip::Callback::Callback(OnDefaultSuccessResponseWithoutExit, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); - chip::Callback::Callback * onReportCallback = - new chip::Callback::Callback(OnInt8uAttributeReport, this); - uint16_t mMinInterval; - uint16_t mMaxInterval; - bool mWait; -}; - -/* - * Attribute ColorLoopTime + * Attribute ColorLoopActive */ -class ReadColorControlColorLoopTime : public ModelCommand +class ReadColorControlColorLoopActive : public ModelCommand { public: - ReadColorControlColorLoopTime() : ModelCommand("read") + ReadColorControlColorLoopActive() : ModelCommand("read") { - AddArgument("attr-name", "color-loop-time"); + AddArgument("attr-name", "color-loop-active"); ModelCommand::AddArguments(); } - ~ReadColorControlColorLoopTime() + ~ReadColorControlColorLoopActive() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + + chip::Controller::ColorControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); + } + + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorLoopActive response", value); + } +}; + +class ReportColorControlColorLoopActive : public ModelCommand +{ +public: + ReportColorControlColorLoopActive() : ModelCommand("report") + { + AddArgument("attr-name", "color-loop-active"); + AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval); + AddArgument("max-interval", 0, UINT16_MAX, &mMaxInterval); + AddArgument("wait", 0, 1, &mWait); + ModelCommand::AddArguments(); + } + + ~ReportColorControlColorLoopActive() { delete onSuccessCallback; + delete onSuccessCallbackWithoutExit; delete onFailureCallback; + delete onReportCallback; } + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + + chip::Controller::ColorControlCluster cluster; + cluster.Associate(device, endpointId); + + ReturnErrorOnFailure(cluster.ReportAttributeColorLoopActive(onReportCallback->Cancel())); + + chip::Callback::Cancelable * successCallback = mWait ? onSuccessCallbackWithoutExit->Cancel() : onSuccessCallback->Cancel(); + return cluster.SubscribeAttributeColorLoopActive(successCallback, onFailureCallback->Cancel(), mMinInterval, mMaxInterval); + } + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); + } + +private: + chip::Callback::Callback * onSuccessCallback = + new chip::Callback::Callback(OnDefaultSuccessResponse, this); + chip::Callback::Callback * onSuccessCallbackWithoutExit = + new chip::Callback::Callback(OnDefaultSuccessResponseWithoutExit, this); + chip::Callback::Callback * onFailureCallback = + new chip::Callback::Callback(OnDefaultFailureResponse, this); + chip::Callback::Callback * onReportCallback = + new chip::Callback::Callback(OnInt8uAttributeReport, this); + uint16_t mMinInterval; + uint16_t mMaxInterval; + bool mWait; +}; + +/* + * Attribute ColorLoopDirection + */ +class ReadColorControlColorLoopDirection : public ModelCommand +{ +public: + ReadColorControlColorLoopDirection() : ModelCommand("read") + { + AddArgument("attr-name", "color-loop-direction"); + ModelCommand::AddArguments(); + } + + ~ReadColorControlColorLoopDirection() {} + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorLoopTime(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); + } + + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorLoopDirection response", value); + } +}; + +class ReportColorControlColorLoopDirection : public ModelCommand +{ +public: + ReportColorControlColorLoopDirection() : ModelCommand("report") + { + AddArgument("attr-name", "color-loop-direction"); + AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval); + AddArgument("max-interval", 0, UINT16_MAX, &mMaxInterval); + AddArgument("wait", 0, 1, &mWait); + ModelCommand::AddArguments(); + } + + ~ReportColorControlColorLoopDirection() + { + delete onSuccessCallback; + delete onSuccessCallbackWithoutExit; + delete onFailureCallback; + delete onReportCallback; + } + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + + chip::Controller::ColorControlCluster cluster; + cluster.Associate(device, endpointId); + + ReturnErrorOnFailure(cluster.ReportAttributeColorLoopDirection(onReportCallback->Cancel())); + + chip::Callback::Cancelable * successCallback = mWait ? onSuccessCallbackWithoutExit->Cancel() : onSuccessCallback->Cancel(); + return cluster.SubscribeAttributeColorLoopDirection(successCallback, onFailureCallback->Cancel(), mMinInterval, + mMaxInterval); + } + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); } private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); + chip::Callback::Callback * onSuccessCallback = + new chip::Callback::Callback(OnDefaultSuccessResponse, this); + chip::Callback::Callback * onSuccessCallbackWithoutExit = + new chip::Callback::Callback(OnDefaultSuccessResponseWithoutExit, this); chip::Callback::Callback * onFailureCallback = new chip::Callback::Callback(OnDefaultFailureResponse, this); + chip::Callback::Callback * onReportCallback = + new chip::Callback::Callback(OnInt8uAttributeReport, this); + uint16_t mMinInterval; + uint16_t mMaxInterval; + bool mWait; +}; + +/* + * Attribute ColorLoopTime + */ +class ReadColorControlColorLoopTime : public ModelCommand +{ +public: + ReadColorControlColorLoopTime() : ModelCommand("read") + { + AddArgument("attr-name", "color-loop-time"); + ModelCommand::AddArguments(); + } + + ~ReadColorControlColorLoopTime() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + + chip::Controller::ColorControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); + } + + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorLoopTime response", value); + } }; class ReportColorControlColorLoopTime : public ModelCommand @@ -14385,11 +13513,7 @@ class ReadColorControlColorLoopStartEnhancedHue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorLoopStartEnhancedHue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorLoopStartEnhancedHue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -14397,14 +13521,14 @@ class ReadColorControlColorLoopStartEnhancedHue : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorLoopStartEnhancedHue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorLoopStartEnhancedHue response", value); + } }; class ReportColorControlColorLoopStartEnhancedHue : public ModelCommand @@ -14472,11 +13596,7 @@ class ReadColorControlColorLoopStoredEnhancedHue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorLoopStoredEnhancedHue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorLoopStoredEnhancedHue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -14484,14 +13604,14 @@ class ReadColorControlColorLoopStoredEnhancedHue : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorLoopStoredEnhancedHue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorLoopStoredEnhancedHue response", value); + } }; class ReportColorControlColorLoopStoredEnhancedHue : public ModelCommand @@ -14559,11 +13679,7 @@ class ReadColorControlColorCapabilities : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorCapabilities() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorCapabilities() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -14571,14 +13687,14 @@ class ReadColorControlColorCapabilities : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorCapabilities(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorCapabilities response", value); + } }; class ReportColorControlColorCapabilities : public ModelCommand @@ -14646,11 +13762,7 @@ class ReadColorControlColorTempPhysicalMin : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorTempPhysicalMin() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorTempPhysicalMin() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -14658,14 +13770,14 @@ class ReadColorControlColorTempPhysicalMin : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorTempPhysicalMin(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorTempPhysicalMin response", value); + } }; class ReportColorControlColorTempPhysicalMin : public ModelCommand @@ -14733,11 +13845,7 @@ class ReadColorControlColorTempPhysicalMax : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlColorTempPhysicalMax() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlColorTempPhysicalMax() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -14745,14 +13853,14 @@ class ReadColorControlColorTempPhysicalMax : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeColorTempPhysicalMax(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ColorTempPhysicalMax response", value); + } }; class ReportColorControlColorTempPhysicalMax : public ModelCommand @@ -14820,11 +13928,7 @@ class ReadColorControlCoupleColorTempToLevelMinMireds : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlCoupleColorTempToLevelMinMireds() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlCoupleColorTempToLevelMinMireds() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -14832,14 +13936,14 @@ class ReadColorControlCoupleColorTempToLevelMinMireds : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCoupleColorTempToLevelMinMireds(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.CoupleColorTempToLevelMinMireds response", value); + } }; class ReportColorControlCoupleColorTempToLevelMinMireds : public ModelCommand @@ -14907,11 +14011,7 @@ class ReadColorControlStartUpColorTemperatureMireds : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlStartUpColorTemperatureMireds() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlStartUpColorTemperatureMireds() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -14919,14 +14019,14 @@ class ReadColorControlStartUpColorTemperatureMireds : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeStartUpColorTemperatureMireds(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.StartUpColorTemperatureMireds response", value); + } }; class WriteColorControlStartUpColorTemperatureMireds : public ModelCommand @@ -15020,11 +14120,7 @@ class ReadColorControlClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadColorControlClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadColorControlClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -15032,14 +14128,14 @@ class ReadColorControlClusterRevision : public ModelCommand chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ColorControl.ClusterRevision response", value); + } }; class ReportColorControlClusterRevision : public ModelCommand @@ -15169,11 +14265,7 @@ class ReadContentLauncherAcceptsHeaderList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadContentLauncherAcceptsHeaderList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadContentLauncherAcceptsHeaderList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -15181,15 +14273,14 @@ class ReadContentLauncherAcceptsHeaderList : public ModelCommand chip::Controller::ContentLauncherCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeAcceptsHeaderList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnContentLauncherAcceptsHeaderListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "ContentLauncher.AcceptsHeaderList response", value); + } }; /* @@ -15204,11 +14295,7 @@ class ReadContentLauncherSupportedStreamingTypes : public ModelCommand ModelCommand::AddArguments(); } - ~ReadContentLauncherSupportedStreamingTypes() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadContentLauncherSupportedStreamingTypes() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -15216,15 +14303,16 @@ class ReadContentLauncherSupportedStreamingTypes : public ModelCommand chip::Controller::ContentLauncherCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSupportedStreamingTypes(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnContentLauncherSupportedStreamingTypesListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "ContentLauncher.SupportedStreamingTypes response", value); + } }; /* @@ -15239,11 +14327,7 @@ class ReadContentLauncherClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadContentLauncherClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadContentLauncherClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -15251,14 +14335,14 @@ class ReadContentLauncherClusterRevision : public ModelCommand chip::Controller::ContentLauncherCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ContentLauncher.ClusterRevision response", value); + } }; class ReportContentLauncherClusterRevision : public ModelCommand @@ -15338,11 +14422,7 @@ class ReadDescriptorDeviceList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadDescriptorDeviceList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadDescriptorDeviceList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -15350,14 +14430,16 @@ class ReadDescriptorDeviceList : public ModelCommand chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeDeviceList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnDescriptorDeviceListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "Descriptor.DeviceList response", value); + } }; /* @@ -15372,11 +14454,7 @@ class ReadDescriptorServerList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadDescriptorServerList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadDescriptorServerList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -15384,14 +14462,14 @@ class ReadDescriptorServerList : public ModelCommand chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeServerList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnDescriptorServerListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "Descriptor.ServerList response", value); + } }; /* @@ -15406,11 +14484,7 @@ class ReadDescriptorClientList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadDescriptorClientList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadDescriptorClientList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -15418,14 +14492,14 @@ class ReadDescriptorClientList : public ModelCommand chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClientList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnDescriptorClientListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "Descriptor.ClientList response", value); + } }; /* @@ -15440,11 +14514,7 @@ class ReadDescriptorPartsList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadDescriptorPartsList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadDescriptorPartsList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -15452,14 +14522,14 @@ class ReadDescriptorPartsList : public ModelCommand chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePartsList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnDescriptorPartsListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "Descriptor.PartsList response", value); + } }; /* @@ -15474,11 +14544,7 @@ class ReadDescriptorClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadDescriptorClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadDescriptorClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -15486,14 +14552,14 @@ class ReadDescriptorClusterRevision : public ModelCommand chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Descriptor.ClusterRevision response", value); + } }; class ReportDescriptorClusterRevision : public ModelCommand @@ -16207,11 +15273,7 @@ class ReadDoorLockActuatorEnabled : public ModelCommand ModelCommand::AddArguments(); } - ~ReadDoorLockActuatorEnabled() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadDoorLockActuatorEnabled() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -16219,14 +15281,14 @@ class ReadDoorLockActuatorEnabled : public ModelCommand chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeActuatorEnabled(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "DoorLock.ActuatorEnabled response", value); + } }; class ReportDoorLockActuatorEnabled : public ModelCommand @@ -16293,11 +15355,7 @@ class ReadDoorLockClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadDoorLockClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadDoorLockClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -16305,14 +15363,14 @@ class ReadDoorLockClusterRevision : public ModelCommand chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "DoorLock.ClusterRevision response", value); + } }; class ReportDoorLockClusterRevision : public ModelCommand @@ -16399,11 +15457,7 @@ class ReadElectricalMeasurementMeasurementType : public ModelCommand ModelCommand::AddArguments(); } - ~ReadElectricalMeasurementMeasurementType() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadElectricalMeasurementMeasurementType() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -16411,14 +15465,14 @@ class ReadElectricalMeasurementMeasurementType : public ModelCommand chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMeasurementType(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ElectricalMeasurement.MeasurementType response", value); + } }; class ReportElectricalMeasurementMeasurementType : public ModelCommand @@ -16485,11 +15539,7 @@ class ReadElectricalMeasurementTotalActivePower : public ModelCommand ModelCommand::AddArguments(); } - ~ReadElectricalMeasurementTotalActivePower() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadElectricalMeasurementTotalActivePower() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -16497,14 +15547,14 @@ class ReadElectricalMeasurementTotalActivePower : public ModelCommand chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTotalActivePower(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int32_t value) + { + OnGeneralAttributeResponse(context, "ElectricalMeasurement.TotalActivePower response", value); + } }; class ReportElectricalMeasurementTotalActivePower : public ModelCommand @@ -16571,11 +15621,7 @@ class ReadElectricalMeasurementRmsVoltage : public ModelCommand ModelCommand::AddArguments(); } - ~ReadElectricalMeasurementRmsVoltage() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadElectricalMeasurementRmsVoltage() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -16583,14 +15629,14 @@ class ReadElectricalMeasurementRmsVoltage : public ModelCommand chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRmsVoltage(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ElectricalMeasurement.RmsVoltage response", value); + } }; class ReportElectricalMeasurementRmsVoltage : public ModelCommand @@ -16657,11 +15703,7 @@ class ReadElectricalMeasurementRmsVoltageMin : public ModelCommand ModelCommand::AddArguments(); } - ~ReadElectricalMeasurementRmsVoltageMin() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadElectricalMeasurementRmsVoltageMin() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -16669,14 +15711,14 @@ class ReadElectricalMeasurementRmsVoltageMin : public ModelCommand chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRmsVoltageMin(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ElectricalMeasurement.RmsVoltageMin response", value); + } }; class ReportElectricalMeasurementRmsVoltageMin : public ModelCommand @@ -16743,11 +15785,7 @@ class ReadElectricalMeasurementRmsVoltageMax : public ModelCommand ModelCommand::AddArguments(); } - ~ReadElectricalMeasurementRmsVoltageMax() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadElectricalMeasurementRmsVoltageMax() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -16755,14 +15793,14 @@ class ReadElectricalMeasurementRmsVoltageMax : public ModelCommand chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRmsVoltageMax(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ElectricalMeasurement.RmsVoltageMax response", value); + } }; class ReportElectricalMeasurementRmsVoltageMax : public ModelCommand @@ -16829,11 +15867,7 @@ class ReadElectricalMeasurementRmsCurrent : public ModelCommand ModelCommand::AddArguments(); } - ~ReadElectricalMeasurementRmsCurrent() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadElectricalMeasurementRmsCurrent() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -16841,14 +15875,14 @@ class ReadElectricalMeasurementRmsCurrent : public ModelCommand chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRmsCurrent(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ElectricalMeasurement.RmsCurrent response", value); + } }; class ReportElectricalMeasurementRmsCurrent : public ModelCommand @@ -16904,209 +15938,197 @@ class ReportElectricalMeasurementRmsCurrent : public ModelCommand }; /* - * Attribute RmsCurrentMin - */ -class ReadElectricalMeasurementRmsCurrentMin : public ModelCommand -{ -public: - ReadElectricalMeasurementRmsCurrentMin() : ModelCommand("read") - { - AddArgument("attr-name", "rms-current-min"); - ModelCommand::AddArguments(); - } - - ~ReadElectricalMeasurementRmsCurrentMin() - { - delete onSuccessCallback; - delete onFailureCallback; - } - - CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); - - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, endpointId); - return cluster.ReadAttributeRmsCurrentMin(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); - } - -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); -}; - -class ReportElectricalMeasurementRmsCurrentMin : public ModelCommand -{ -public: - ReportElectricalMeasurementRmsCurrentMin() : ModelCommand("report") - { - AddArgument("attr-name", "rms-current-min"); - AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval); - AddArgument("max-interval", 0, UINT16_MAX, &mMaxInterval); - AddArgument("wait", 0, 1, &mWait); - ModelCommand::AddArguments(); - } - - ~ReportElectricalMeasurementRmsCurrentMin() - { - delete onSuccessCallback; - delete onSuccessCallbackWithoutExit; - delete onFailureCallback; - delete onReportCallback; - } - - CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); - - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, endpointId); - - ReturnErrorOnFailure(cluster.ReportAttributeRmsCurrentMin(onReportCallback->Cancel())); - - chip::Callback::Cancelable * successCallback = mWait ? onSuccessCallbackWithoutExit->Cancel() : onSuccessCallback->Cancel(); - return cluster.SubscribeAttributeRmsCurrentMin(successCallback, onFailureCallback->Cancel(), mMinInterval, mMaxInterval); - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } - -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnDefaultSuccessResponse, this); - chip::Callback::Callback * onSuccessCallbackWithoutExit = - new chip::Callback::Callback(OnDefaultSuccessResponseWithoutExit, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); - chip::Callback::Callback * onReportCallback = - new chip::Callback::Callback(OnInt16uAttributeReport, this); - uint16_t mMinInterval; - uint16_t mMaxInterval; - bool mWait; -}; - -/* - * Attribute RmsCurrentMax - */ -class ReadElectricalMeasurementRmsCurrentMax : public ModelCommand -{ -public: - ReadElectricalMeasurementRmsCurrentMax() : ModelCommand("read") - { - AddArgument("attr-name", "rms-current-max"); - ModelCommand::AddArguments(); - } - - ~ReadElectricalMeasurementRmsCurrentMax() - { - delete onSuccessCallback; - delete onFailureCallback; - } - - CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); - - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, endpointId); - return cluster.ReadAttributeRmsCurrentMax(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); - } - -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); -}; - -class ReportElectricalMeasurementRmsCurrentMax : public ModelCommand -{ -public: - ReportElectricalMeasurementRmsCurrentMax() : ModelCommand("report") - { - AddArgument("attr-name", "rms-current-max"); - AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval); - AddArgument("max-interval", 0, UINT16_MAX, &mMaxInterval); - AddArgument("wait", 0, 1, &mWait); - ModelCommand::AddArguments(); - } - - ~ReportElectricalMeasurementRmsCurrentMax() - { - delete onSuccessCallback; - delete onSuccessCallbackWithoutExit; - delete onFailureCallback; - delete onReportCallback; - } - - CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); - - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, endpointId); - - ReturnErrorOnFailure(cluster.ReportAttributeRmsCurrentMax(onReportCallback->Cancel())); - - chip::Callback::Cancelable * successCallback = mWait ? onSuccessCallbackWithoutExit->Cancel() : onSuccessCallback->Cancel(); - return cluster.SubscribeAttributeRmsCurrentMax(successCallback, onFailureCallback->Cancel(), mMinInterval, mMaxInterval); - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } - -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnDefaultSuccessResponse, this); - chip::Callback::Callback * onSuccessCallbackWithoutExit = - new chip::Callback::Callback(OnDefaultSuccessResponseWithoutExit, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); - chip::Callback::Callback * onReportCallback = - new chip::Callback::Callback(OnInt16uAttributeReport, this); - uint16_t mMinInterval; - uint16_t mMaxInterval; - bool mWait; -}; - -/* - * Attribute ActivePower + * Attribute RmsCurrentMin */ -class ReadElectricalMeasurementActivePower : public ModelCommand +class ReadElectricalMeasurementRmsCurrentMin : public ModelCommand { public: - ReadElectricalMeasurementActivePower() : ModelCommand("read") + ReadElectricalMeasurementRmsCurrentMin() : ModelCommand("read") { - AddArgument("attr-name", "active-power"); + AddArgument("attr-name", "rms-current-min"); + ModelCommand::AddArguments(); + } + + ~ReadElectricalMeasurementRmsCurrentMin() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + + chip::Controller::ElectricalMeasurementCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); + } + + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ElectricalMeasurement.RmsCurrentMin response", value); + } +}; + +class ReportElectricalMeasurementRmsCurrentMin : public ModelCommand +{ +public: + ReportElectricalMeasurementRmsCurrentMin() : ModelCommand("report") + { + AddArgument("attr-name", "rms-current-min"); + AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval); + AddArgument("max-interval", 0, UINT16_MAX, &mMaxInterval); + AddArgument("wait", 0, 1, &mWait); ModelCommand::AddArguments(); } - ~ReadElectricalMeasurementActivePower() + ~ReportElectricalMeasurementRmsCurrentMin() { delete onSuccessCallback; + delete onSuccessCallbackWithoutExit; delete onFailureCallback; + delete onReportCallback; } + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + + chip::Controller::ElectricalMeasurementCluster cluster; + cluster.Associate(device, endpointId); + + ReturnErrorOnFailure(cluster.ReportAttributeRmsCurrentMin(onReportCallback->Cancel())); + + chip::Callback::Cancelable * successCallback = mWait ? onSuccessCallbackWithoutExit->Cancel() : onSuccessCallback->Cancel(); + return cluster.SubscribeAttributeRmsCurrentMin(successCallback, onFailureCallback->Cancel(), mMinInterval, mMaxInterval); + } + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); + } + +private: + chip::Callback::Callback * onSuccessCallback = + new chip::Callback::Callback(OnDefaultSuccessResponse, this); + chip::Callback::Callback * onSuccessCallbackWithoutExit = + new chip::Callback::Callback(OnDefaultSuccessResponseWithoutExit, this); + chip::Callback::Callback * onFailureCallback = + new chip::Callback::Callback(OnDefaultFailureResponse, this); + chip::Callback::Callback * onReportCallback = + new chip::Callback::Callback(OnInt16uAttributeReport, this); + uint16_t mMinInterval; + uint16_t mMaxInterval; + bool mWait; +}; + +/* + * Attribute RmsCurrentMax + */ +class ReadElectricalMeasurementRmsCurrentMax : public ModelCommand +{ +public: + ReadElectricalMeasurementRmsCurrentMax() : ModelCommand("read") + { + AddArgument("attr-name", "rms-current-max"); + ModelCommand::AddArguments(); + } + + ~ReadElectricalMeasurementRmsCurrentMax() {} + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeActivePower(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); + } + + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ElectricalMeasurement.RmsCurrentMax response", value); + } +}; + +class ReportElectricalMeasurementRmsCurrentMax : public ModelCommand +{ +public: + ReportElectricalMeasurementRmsCurrentMax() : ModelCommand("report") + { + AddArgument("attr-name", "rms-current-max"); + AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval); + AddArgument("max-interval", 0, UINT16_MAX, &mMaxInterval); + AddArgument("wait", 0, 1, &mWait); + ModelCommand::AddArguments(); + } + + ~ReportElectricalMeasurementRmsCurrentMax() + { + delete onSuccessCallback; + delete onSuccessCallbackWithoutExit; + delete onFailureCallback; + delete onReportCallback; + } + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + + chip::Controller::ElectricalMeasurementCluster cluster; + cluster.Associate(device, endpointId); + + ReturnErrorOnFailure(cluster.ReportAttributeRmsCurrentMax(onReportCallback->Cancel())); + + chip::Callback::Cancelable * successCallback = mWait ? onSuccessCallbackWithoutExit->Cancel() : onSuccessCallback->Cancel(); + return cluster.SubscribeAttributeRmsCurrentMax(successCallback, onFailureCallback->Cancel(), mMinInterval, mMaxInterval); + } + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); } private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); + chip::Callback::Callback * onSuccessCallback = + new chip::Callback::Callback(OnDefaultSuccessResponse, this); + chip::Callback::Callback * onSuccessCallbackWithoutExit = + new chip::Callback::Callback(OnDefaultSuccessResponseWithoutExit, this); chip::Callback::Callback * onFailureCallback = new chip::Callback::Callback(OnDefaultFailureResponse, this); + chip::Callback::Callback * onReportCallback = + new chip::Callback::Callback(OnInt16uAttributeReport, this); + uint16_t mMinInterval; + uint16_t mMaxInterval; + bool mWait; +}; + +/* + * Attribute ActivePower + */ +class ReadElectricalMeasurementActivePower : public ModelCommand +{ +public: + ReadElectricalMeasurementActivePower() : ModelCommand("read") + { + AddArgument("attr-name", "active-power"); + ModelCommand::AddArguments(); + } + + ~ReadElectricalMeasurementActivePower() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + + chip::Controller::ElectricalMeasurementCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); + } + + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "ElectricalMeasurement.ActivePower response", value); + } }; class ReportElectricalMeasurementActivePower : public ModelCommand @@ -17173,11 +16195,7 @@ class ReadElectricalMeasurementActivePowerMin : public ModelCommand ModelCommand::AddArguments(); } - ~ReadElectricalMeasurementActivePowerMin() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadElectricalMeasurementActivePowerMin() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -17185,14 +16203,14 @@ class ReadElectricalMeasurementActivePowerMin : public ModelCommand chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeActivePowerMin(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "ElectricalMeasurement.ActivePowerMin response", value); + } }; class ReportElectricalMeasurementActivePowerMin : public ModelCommand @@ -17259,11 +16277,7 @@ class ReadElectricalMeasurementActivePowerMax : public ModelCommand ModelCommand::AddArguments(); } - ~ReadElectricalMeasurementActivePowerMax() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadElectricalMeasurementActivePowerMax() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -17271,14 +16285,14 @@ class ReadElectricalMeasurementActivePowerMax : public ModelCommand chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeActivePowerMax(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "ElectricalMeasurement.ActivePowerMax response", value); + } }; class ReportElectricalMeasurementActivePowerMax : public ModelCommand @@ -17345,11 +16359,7 @@ class ReadElectricalMeasurementClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadElectricalMeasurementClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadElectricalMeasurementClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -17357,14 +16367,14 @@ class ReadElectricalMeasurementClusterRevision : public ModelCommand chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ElectricalMeasurement.ClusterRevision response", value); + } }; class ReportElectricalMeasurementClusterRevision : public ModelCommand @@ -17471,11 +16481,7 @@ class ReadEthernetNetworkDiagnosticsPHYRate : public ModelCommand ModelCommand::AddArguments(); } - ~ReadEthernetNetworkDiagnosticsPHYRate() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadEthernetNetworkDiagnosticsPHYRate() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -17483,14 +16489,14 @@ class ReadEthernetNetworkDiagnosticsPHYRate : public ModelCommand chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePHYRate(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.PHYRate response", value); + } }; class ReportEthernetNetworkDiagnosticsPHYRate : public ModelCommand @@ -17557,11 +16563,7 @@ class ReadEthernetNetworkDiagnosticsFullDuplex : public ModelCommand ModelCommand::AddArguments(); } - ~ReadEthernetNetworkDiagnosticsFullDuplex() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadEthernetNetworkDiagnosticsFullDuplex() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -17569,14 +16571,14 @@ class ReadEthernetNetworkDiagnosticsFullDuplex : public ModelCommand chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFullDuplex(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.FullDuplex response", value); + } }; class ReportEthernetNetworkDiagnosticsFullDuplex : public ModelCommand @@ -17643,11 +16645,7 @@ class ReadEthernetNetworkDiagnosticsPacketRxCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadEthernetNetworkDiagnosticsPacketRxCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadEthernetNetworkDiagnosticsPacketRxCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -17655,14 +16653,14 @@ class ReadEthernetNetworkDiagnosticsPacketRxCount : public ModelCommand chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePacketRxCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.PacketRxCount response", value); + } }; class ReportEthernetNetworkDiagnosticsPacketRxCount : public ModelCommand @@ -17729,11 +16727,7 @@ class ReadEthernetNetworkDiagnosticsPacketTxCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadEthernetNetworkDiagnosticsPacketTxCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadEthernetNetworkDiagnosticsPacketTxCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -17741,14 +16735,14 @@ class ReadEthernetNetworkDiagnosticsPacketTxCount : public ModelCommand chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePacketTxCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.PacketTxCount response", value); + } }; class ReportEthernetNetworkDiagnosticsPacketTxCount : public ModelCommand @@ -17815,11 +16809,7 @@ class ReadEthernetNetworkDiagnosticsTxErrCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadEthernetNetworkDiagnosticsTxErrCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadEthernetNetworkDiagnosticsTxErrCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -17827,14 +16817,14 @@ class ReadEthernetNetworkDiagnosticsTxErrCount : public ModelCommand chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxErrCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.TxErrCount response", value); + } }; class ReportEthernetNetworkDiagnosticsTxErrCount : public ModelCommand @@ -17901,11 +16891,7 @@ class ReadEthernetNetworkDiagnosticsCollisionCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadEthernetNetworkDiagnosticsCollisionCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadEthernetNetworkDiagnosticsCollisionCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -17913,14 +16899,14 @@ class ReadEthernetNetworkDiagnosticsCollisionCount : public ModelCommand chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCollisionCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.CollisionCount response", value); + } }; class ReportEthernetNetworkDiagnosticsCollisionCount : public ModelCommand @@ -17987,11 +16973,7 @@ class ReadEthernetNetworkDiagnosticsOverrunCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadEthernetNetworkDiagnosticsOverrunCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadEthernetNetworkDiagnosticsOverrunCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -17999,14 +16981,14 @@ class ReadEthernetNetworkDiagnosticsOverrunCount : public ModelCommand chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOverrunCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.OverrunCount response", value); + } }; class ReportEthernetNetworkDiagnosticsOverrunCount : public ModelCommand @@ -18073,11 +17055,7 @@ class ReadEthernetNetworkDiagnosticsCarrierDetect : public ModelCommand ModelCommand::AddArguments(); } - ~ReadEthernetNetworkDiagnosticsCarrierDetect() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadEthernetNetworkDiagnosticsCarrierDetect() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -18085,14 +17063,14 @@ class ReadEthernetNetworkDiagnosticsCarrierDetect : public ModelCommand chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCarrierDetect(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.CarrierDetect response", value); + } }; class ReportEthernetNetworkDiagnosticsCarrierDetect : public ModelCommand @@ -18159,11 +17137,7 @@ class ReadEthernetNetworkDiagnosticsTimeSinceReset : public ModelCommand ModelCommand::AddArguments(); } - ~ReadEthernetNetworkDiagnosticsTimeSinceReset() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadEthernetNetworkDiagnosticsTimeSinceReset() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -18171,14 +17145,14 @@ class ReadEthernetNetworkDiagnosticsTimeSinceReset : public ModelCommand chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTimeSinceReset(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.TimeSinceReset response", value); + } }; class ReportEthernetNetworkDiagnosticsTimeSinceReset : public ModelCommand @@ -18245,11 +17219,7 @@ class ReadEthernetNetworkDiagnosticsFeatureMap : public ModelCommand ModelCommand::AddArguments(); } - ~ReadEthernetNetworkDiagnosticsFeatureMap() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadEthernetNetworkDiagnosticsFeatureMap() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -18257,14 +17227,14 @@ class ReadEthernetNetworkDiagnosticsFeatureMap : public ModelCommand chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFeatureMap(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.FeatureMap response", value); + } }; /* @@ -18279,11 +17249,7 @@ class ReadEthernetNetworkDiagnosticsClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadEthernetNetworkDiagnosticsClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadEthernetNetworkDiagnosticsClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -18291,14 +17257,14 @@ class ReadEthernetNetworkDiagnosticsClusterRevision : public ModelCommand chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.ClusterRevision response", value); + } }; class ReportEthernetNetworkDiagnosticsClusterRevision : public ModelCommand @@ -18375,11 +17341,7 @@ class ReadFixedLabelLabelList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadFixedLabelLabelList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadFixedLabelLabelList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -18387,14 +17349,16 @@ class ReadFixedLabelLabelList : public ModelCommand chip::Controller::FixedLabelCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeLabelList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnFixedLabelLabelListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "FixedLabel.LabelList response", value); + } }; /* @@ -18409,11 +17373,7 @@ class ReadFixedLabelClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadFixedLabelClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadFixedLabelClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -18421,14 +17381,14 @@ class ReadFixedLabelClusterRevision : public ModelCommand chip::Controller::FixedLabelCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "FixedLabel.ClusterRevision response", value); + } }; class ReportFixedLabelClusterRevision : public ModelCommand @@ -18508,11 +17468,7 @@ class ReadFlowMeasurementMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadFlowMeasurementMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadFlowMeasurementMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -18520,14 +17476,14 @@ class ReadFlowMeasurementMeasuredValue : public ModelCommand chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "FlowMeasurement.MeasuredValue response", value); + } }; class ReportFlowMeasurementMeasuredValue : public ModelCommand @@ -18594,11 +17550,7 @@ class ReadFlowMeasurementMinMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadFlowMeasurementMinMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadFlowMeasurementMinMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -18606,14 +17558,14 @@ class ReadFlowMeasurementMinMeasuredValue : public ModelCommand chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "FlowMeasurement.MinMeasuredValue response", value); + } }; class ReportFlowMeasurementMinMeasuredValue : public ModelCommand @@ -18680,11 +17632,7 @@ class ReadFlowMeasurementMaxMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadFlowMeasurementMaxMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadFlowMeasurementMaxMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -18692,14 +17640,14 @@ class ReadFlowMeasurementMaxMeasuredValue : public ModelCommand chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "FlowMeasurement.MaxMeasuredValue response", value); + } }; class ReportFlowMeasurementMaxMeasuredValue : public ModelCommand @@ -18766,11 +17714,7 @@ class ReadFlowMeasurementTolerance : public ModelCommand ModelCommand::AddArguments(); } - ~ReadFlowMeasurementTolerance() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadFlowMeasurementTolerance() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -18778,14 +17722,14 @@ class ReadFlowMeasurementTolerance : public ModelCommand chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTolerance(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "FlowMeasurement.Tolerance response", value); + } }; class ReportFlowMeasurementTolerance : public ModelCommand @@ -18852,11 +17796,7 @@ class ReadFlowMeasurementClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadFlowMeasurementClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadFlowMeasurementClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -18864,14 +17804,14 @@ class ReadFlowMeasurementClusterRevision : public ModelCommand chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "FlowMeasurement.ClusterRevision response", value); + } }; class ReportFlowMeasurementClusterRevision : public ModelCommand @@ -19028,11 +17968,7 @@ class ReadGeneralCommissioningBreadcrumb : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralCommissioningBreadcrumb() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralCommissioningBreadcrumb() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19040,14 +17976,14 @@ class ReadGeneralCommissioningBreadcrumb : public ModelCommand chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBreadcrumb(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "GeneralCommissioning.Breadcrumb response", value); + } }; class WriteGeneralCommissioningBreadcrumb : public ModelCommand @@ -19140,11 +18076,7 @@ class ReadGeneralCommissioningBasicCommissioningInfoList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralCommissioningBasicCommissioningInfoList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralCommissioningBasicCommissioningInfoList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19152,15 +18084,17 @@ class ReadGeneralCommissioningBasicCommissioningInfoList : public ModelCommand chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBasicCommissioningInfoList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnGeneralCommissioningBasicCommissioningInfoListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void + OnAttributeResponse(void * context, + const chip::app::DataModel::DecodableList< + chip::app::Clusters::GeneralCommissioning::Structs::BasicCommissioningInfoType::DecodableType> & value) + { + OnGeneralAttributeResponse(context, "GeneralCommissioning.BasicCommissioningInfoList response", value); + } }; /* @@ -19175,11 +18109,7 @@ class ReadGeneralCommissioningRegulatoryConfig : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralCommissioningRegulatoryConfig() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralCommissioningRegulatoryConfig() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19187,14 +18117,14 @@ class ReadGeneralCommissioningRegulatoryConfig : public ModelCommand chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRegulatoryConfig(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "GeneralCommissioning.RegulatoryConfig response", value); + } }; /* @@ -19209,11 +18139,7 @@ class ReadGeneralCommissioningLocationCapability : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralCommissioningLocationCapability() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralCommissioningLocationCapability() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19221,14 +18147,14 @@ class ReadGeneralCommissioningLocationCapability : public ModelCommand chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeLocationCapability(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "GeneralCommissioning.LocationCapability response", value); + } }; /* @@ -19243,11 +18169,7 @@ class ReadGeneralCommissioningClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralCommissioningClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralCommissioningClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19255,14 +18177,14 @@ class ReadGeneralCommissioningClusterRevision : public ModelCommand chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "GeneralCommissioning.ClusterRevision response", value); + } }; class ReportGeneralCommissioningClusterRevision : public ModelCommand @@ -19346,11 +18268,7 @@ class ReadGeneralDiagnosticsNetworkInterfaces : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralDiagnosticsNetworkInterfaces() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralDiagnosticsNetworkInterfaces() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19358,15 +18276,17 @@ class ReadGeneralDiagnosticsNetworkInterfaces : public ModelCommand chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNetworkInterfaces(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnGeneralDiagnosticsNetworkInterfacesListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void + OnAttributeResponse(void * context, + const chip::app::DataModel::DecodableList< + chip::app::Clusters::GeneralDiagnostics::Structs::NetworkInterfaceType::DecodableType> & value) + { + OnGeneralAttributeResponse(context, "GeneralDiagnostics.NetworkInterfaces response", value); + } }; /* @@ -19381,11 +18301,7 @@ class ReadGeneralDiagnosticsRebootCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralDiagnosticsRebootCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralDiagnosticsRebootCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19393,14 +18309,14 @@ class ReadGeneralDiagnosticsRebootCount : public ModelCommand chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRebootCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "GeneralDiagnostics.RebootCount response", value); + } }; class ReportGeneralDiagnosticsRebootCount : public ModelCommand @@ -19467,11 +18383,7 @@ class ReadGeneralDiagnosticsUpTime : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralDiagnosticsUpTime() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralDiagnosticsUpTime() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19479,14 +18391,14 @@ class ReadGeneralDiagnosticsUpTime : public ModelCommand chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeUpTime(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "GeneralDiagnostics.UpTime response", value); + } }; class ReportGeneralDiagnosticsUpTime : public ModelCommand @@ -19553,11 +18465,7 @@ class ReadGeneralDiagnosticsTotalOperationalHours : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralDiagnosticsTotalOperationalHours() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralDiagnosticsTotalOperationalHours() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19565,14 +18473,14 @@ class ReadGeneralDiagnosticsTotalOperationalHours : public ModelCommand chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTotalOperationalHours(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "GeneralDiagnostics.TotalOperationalHours response", value); + } }; class ReportGeneralDiagnosticsTotalOperationalHours : public ModelCommand @@ -19640,11 +18548,7 @@ class ReadGeneralDiagnosticsBootReasons : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralDiagnosticsBootReasons() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralDiagnosticsBootReasons() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19652,14 +18556,14 @@ class ReadGeneralDiagnosticsBootReasons : public ModelCommand chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBootReasons(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "GeneralDiagnostics.BootReasons response", value); + } }; class ReportGeneralDiagnosticsBootReasons : public ModelCommand @@ -19726,11 +18630,7 @@ class ReadGeneralDiagnosticsActiveHardwareFaults : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralDiagnosticsActiveHardwareFaults() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralDiagnosticsActiveHardwareFaults() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19738,15 +18638,14 @@ class ReadGeneralDiagnosticsActiveHardwareFaults : public ModelCommand chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeActiveHardwareFaults(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnGeneralDiagnosticsActiveHardwareFaultsListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "GeneralDiagnostics.ActiveHardwareFaults response", value); + } }; /* @@ -19761,11 +18660,7 @@ class ReadGeneralDiagnosticsActiveRadioFaults : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralDiagnosticsActiveRadioFaults() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralDiagnosticsActiveRadioFaults() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19773,15 +18668,14 @@ class ReadGeneralDiagnosticsActiveRadioFaults : public ModelCommand chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeActiveRadioFaults(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnGeneralDiagnosticsActiveRadioFaultsListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "GeneralDiagnostics.ActiveRadioFaults response", value); + } }; /* @@ -19796,11 +18690,7 @@ class ReadGeneralDiagnosticsActiveNetworkFaults : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralDiagnosticsActiveNetworkFaults() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralDiagnosticsActiveNetworkFaults() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19808,15 +18698,14 @@ class ReadGeneralDiagnosticsActiveNetworkFaults : public ModelCommand chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeActiveNetworkFaults(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnGeneralDiagnosticsActiveNetworkFaultsListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "GeneralDiagnostics.ActiveNetworkFaults response", value); + } }; /* @@ -19831,11 +18720,7 @@ class ReadGeneralDiagnosticsClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGeneralDiagnosticsClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGeneralDiagnosticsClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19843,14 +18728,14 @@ class ReadGeneralDiagnosticsClusterRevision : public ModelCommand chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "GeneralDiagnostics.ClusterRevision response", value); + } }; class ReportGeneralDiagnosticsClusterRevision : public ModelCommand @@ -19928,11 +18813,7 @@ class ReadGroupKeyManagementGroups : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGroupKeyManagementGroups() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGroupKeyManagementGroups() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19940,15 +18821,17 @@ class ReadGroupKeyManagementGroups : public ModelCommand chip::Controller::GroupKeyManagementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeGroups(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnGroupKeyManagementGroupsListAttributeResponse, - this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & + value) + { + OnGeneralAttributeResponse(context, "GroupKeyManagement.Groups response", value); + } }; /* @@ -19963,11 +18846,7 @@ class ReadGroupKeyManagementGroupKeys : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGroupKeyManagementGroupKeys() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGroupKeyManagementGroupKeys() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -19975,15 +18854,17 @@ class ReadGroupKeyManagementGroupKeys : public ModelCommand chip::Controller::GroupKeyManagementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeGroupKeys(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnGroupKeyManagementGroupKeysListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & + value) + { + OnGeneralAttributeResponse(context, "GroupKeyManagement.GroupKeys response", value); + } }; /* @@ -19998,11 +18879,7 @@ class ReadGroupKeyManagementClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGroupKeyManagementClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGroupKeyManagementClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -20010,14 +18887,14 @@ class ReadGroupKeyManagementClusterRevision : public ModelCommand chip::Controller::GroupKeyManagementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "GroupKeyManagement.ClusterRevision response", value); + } }; class ReportGroupKeyManagementClusterRevision : public ModelCommand @@ -20242,11 +19119,7 @@ class ReadGroupsNameSupport : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGroupsNameSupport() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGroupsNameSupport() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -20254,14 +19127,14 @@ class ReadGroupsNameSupport : public ModelCommand chip::Controller::GroupsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNameSupport(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Groups.NameSupport response", value); + } }; class ReportGroupsNameSupport : public ModelCommand @@ -20328,11 +19201,7 @@ class ReadGroupsClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadGroupsClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadGroupsClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -20340,14 +19209,14 @@ class ReadGroupsClusterRevision : public ModelCommand chip::Controller::GroupsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Groups.ClusterRevision response", value); + } }; class ReportGroupsClusterRevision : public ModelCommand @@ -20499,11 +19368,7 @@ class ReadIdentifyIdentifyTime : public ModelCommand ModelCommand::AddArguments(); } - ~ReadIdentifyIdentifyTime() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadIdentifyIdentifyTime() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -20511,14 +19376,14 @@ class ReadIdentifyIdentifyTime : public ModelCommand chip::Controller::IdentifyCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeIdentifyTime(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Identify.IdentifyTime response", value); + } }; class WriteIdentifyIdentifyTime : public ModelCommand @@ -20611,11 +19476,7 @@ class ReadIdentifyIdentifyType : public ModelCommand ModelCommand::AddArguments(); } - ~ReadIdentifyIdentifyType() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadIdentifyIdentifyType() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -20623,14 +19484,14 @@ class ReadIdentifyIdentifyType : public ModelCommand chip::Controller::IdentifyCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeIdentifyType(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Identify.IdentifyType response", value); + } }; class ReportIdentifyIdentifyType : public ModelCommand @@ -20697,11 +19558,7 @@ class ReadIdentifyClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadIdentifyClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadIdentifyClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -20709,14 +19566,14 @@ class ReadIdentifyClusterRevision : public ModelCommand chip::Controller::IdentifyCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Identify.ClusterRevision response", value); + } }; class ReportIdentifyClusterRevision : public ModelCommand @@ -20797,11 +19654,7 @@ class ReadIlluminanceMeasurementMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadIlluminanceMeasurementMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadIlluminanceMeasurementMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -20809,14 +19662,14 @@ class ReadIlluminanceMeasurementMeasuredValue : public ModelCommand chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "IlluminanceMeasurement.MeasuredValue response", value); + } }; class ReportIlluminanceMeasurementMeasuredValue : public ModelCommand @@ -20883,11 +19736,7 @@ class ReadIlluminanceMeasurementMinMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadIlluminanceMeasurementMinMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadIlluminanceMeasurementMinMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -20895,14 +19744,14 @@ class ReadIlluminanceMeasurementMinMeasuredValue : public ModelCommand chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "IlluminanceMeasurement.MinMeasuredValue response", value); + } }; class ReportIlluminanceMeasurementMinMeasuredValue : public ModelCommand @@ -20969,11 +19818,7 @@ class ReadIlluminanceMeasurementMaxMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadIlluminanceMeasurementMaxMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadIlluminanceMeasurementMaxMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -20981,14 +19826,14 @@ class ReadIlluminanceMeasurementMaxMeasuredValue : public ModelCommand chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "IlluminanceMeasurement.MaxMeasuredValue response", value); + } }; class ReportIlluminanceMeasurementMaxMeasuredValue : public ModelCommand @@ -21055,11 +19900,7 @@ class ReadIlluminanceMeasurementTolerance : public ModelCommand ModelCommand::AddArguments(); } - ~ReadIlluminanceMeasurementTolerance() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadIlluminanceMeasurementTolerance() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -21067,14 +19908,14 @@ class ReadIlluminanceMeasurementTolerance : public ModelCommand chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTolerance(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "IlluminanceMeasurement.Tolerance response", value); + } }; class ReportIlluminanceMeasurementTolerance : public ModelCommand @@ -21141,11 +19982,7 @@ class ReadIlluminanceMeasurementLightSensorType : public ModelCommand ModelCommand::AddArguments(); } - ~ReadIlluminanceMeasurementLightSensorType() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadIlluminanceMeasurementLightSensorType() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -21153,14 +19990,14 @@ class ReadIlluminanceMeasurementLightSensorType : public ModelCommand chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeLightSensorType(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "IlluminanceMeasurement.LightSensorType response", value); + } }; class ReportIlluminanceMeasurementLightSensorType : public ModelCommand @@ -21227,11 +20064,7 @@ class ReadIlluminanceMeasurementClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadIlluminanceMeasurementClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadIlluminanceMeasurementClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -21239,14 +20072,14 @@ class ReadIlluminanceMeasurementClusterRevision : public ModelCommand chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "IlluminanceMeasurement.ClusterRevision response", value); + } }; class ReportIlluminanceMeasurementClusterRevision : public ModelCommand @@ -21348,11 +20181,7 @@ class ReadKeypadInputClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadKeypadInputClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadKeypadInputClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -21360,14 +20189,14 @@ class ReadKeypadInputClusterRevision : public ModelCommand chip::Controller::KeypadInputCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "KeypadInput.ClusterRevision response", value); + } }; class ReportKeypadInputClusterRevision : public ModelCommand @@ -21672,11 +20501,7 @@ class ReadLevelControlCurrentLevel : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlCurrentLevel() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlCurrentLevel() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -21684,14 +20509,14 @@ class ReadLevelControlCurrentLevel : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentLevel(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "LevelControl.CurrentLevel response", value); + } }; class ReportLevelControlCurrentLevel : public ModelCommand @@ -21758,11 +20583,7 @@ class ReadLevelControlRemainingTime : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlRemainingTime() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlRemainingTime() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -21770,14 +20591,14 @@ class ReadLevelControlRemainingTime : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRemainingTime(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "LevelControl.RemainingTime response", value); + } }; class ReportLevelControlRemainingTime : public ModelCommand @@ -21844,11 +20665,7 @@ class ReadLevelControlMinLevel : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlMinLevel() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlMinLevel() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -21856,14 +20673,14 @@ class ReadLevelControlMinLevel : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinLevel(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "LevelControl.MinLevel response", value); + } }; class ReportLevelControlMinLevel : public ModelCommand @@ -21930,11 +20747,7 @@ class ReadLevelControlMaxLevel : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlMaxLevel() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlMaxLevel() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -21942,14 +20755,14 @@ class ReadLevelControlMaxLevel : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxLevel(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "LevelControl.MaxLevel response", value); + } }; class ReportLevelControlMaxLevel : public ModelCommand @@ -22016,11 +20829,7 @@ class ReadLevelControlCurrentFrequency : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlCurrentFrequency() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlCurrentFrequency() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -22028,14 +20837,14 @@ class ReadLevelControlCurrentFrequency : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentFrequency(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "LevelControl.CurrentFrequency response", value); + } }; class ReportLevelControlCurrentFrequency : public ModelCommand @@ -22102,11 +20911,7 @@ class ReadLevelControlMinFrequency : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlMinFrequency() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlMinFrequency() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -22114,14 +20919,14 @@ class ReadLevelControlMinFrequency : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinFrequency(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "LevelControl.MinFrequency response", value); + } }; class ReportLevelControlMinFrequency : public ModelCommand @@ -22188,11 +20993,7 @@ class ReadLevelControlMaxFrequency : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlMaxFrequency() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlMaxFrequency() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -22200,14 +21001,14 @@ class ReadLevelControlMaxFrequency : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxFrequency(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "LevelControl.MaxFrequency response", value); + } }; class ReportLevelControlMaxFrequency : public ModelCommand @@ -22274,11 +21075,7 @@ class ReadLevelControlOptions : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlOptions() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlOptions() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -22286,14 +21083,14 @@ class ReadLevelControlOptions : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOptions(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "LevelControl.Options response", value); + } }; class WriteLevelControlOptions : public ModelCommand @@ -22386,11 +21183,7 @@ class ReadLevelControlOnOffTransitionTime : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlOnOffTransitionTime() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlOnOffTransitionTime() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -22398,14 +21191,14 @@ class ReadLevelControlOnOffTransitionTime : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOnOffTransitionTime(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "LevelControl.OnOffTransitionTime response", value); + } }; class WriteLevelControlOnOffTransitionTime : public ModelCommand @@ -22499,11 +21292,7 @@ class ReadLevelControlOnLevel : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlOnLevel() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlOnLevel() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -22511,14 +21300,14 @@ class ReadLevelControlOnLevel : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOnLevel(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "LevelControl.OnLevel response", value); + } }; class WriteLevelControlOnLevel : public ModelCommand @@ -22611,11 +21400,7 @@ class ReadLevelControlOnTransitionTime : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlOnTransitionTime() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlOnTransitionTime() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -22623,14 +21408,14 @@ class ReadLevelControlOnTransitionTime : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOnTransitionTime(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "LevelControl.OnTransitionTime response", value); + } }; class WriteLevelControlOnTransitionTime : public ModelCommand @@ -22723,11 +21508,7 @@ class ReadLevelControlOffTransitionTime : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlOffTransitionTime() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlOffTransitionTime() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -22735,14 +21516,14 @@ class ReadLevelControlOffTransitionTime : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOffTransitionTime(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "LevelControl.OffTransitionTime response", value); + } }; class WriteLevelControlOffTransitionTime : public ModelCommand @@ -22836,11 +21617,7 @@ class ReadLevelControlDefaultMoveRate : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlDefaultMoveRate() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlDefaultMoveRate() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -22848,14 +21625,14 @@ class ReadLevelControlDefaultMoveRate : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeDefaultMoveRate(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "LevelControl.DefaultMoveRate response", value); + } }; class WriteLevelControlDefaultMoveRate : public ModelCommand @@ -22948,11 +21725,7 @@ class ReadLevelControlStartUpCurrentLevel : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlStartUpCurrentLevel() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlStartUpCurrentLevel() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -22960,14 +21733,14 @@ class ReadLevelControlStartUpCurrentLevel : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeStartUpCurrentLevel(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "LevelControl.StartUpCurrentLevel response", value); + } }; class WriteLevelControlStartUpCurrentLevel : public ModelCommand @@ -23061,11 +21834,7 @@ class ReadLevelControlClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLevelControlClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLevelControlClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -23073,14 +21842,14 @@ class ReadLevelControlClusterRevision : public ModelCommand chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "LevelControl.ClusterRevision response", value); + } }; class ReportLevelControlClusterRevision : public ModelCommand @@ -23177,11 +21946,7 @@ class ReadLowPowerClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadLowPowerClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadLowPowerClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -23189,14 +21954,14 @@ class ReadLowPowerClusterRevision : public ModelCommand chip::Controller::LowPowerCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "LowPower.ClusterRevision response", value); + } }; class ReportLowPowerClusterRevision : public ModelCommand @@ -23367,11 +22132,7 @@ class ReadMediaInputMediaInputList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadMediaInputMediaInputList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadMediaInputMediaInputList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -23379,15 +22140,16 @@ class ReadMediaInputMediaInputList : public ModelCommand chip::Controller::MediaInputCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMediaInputList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnMediaInputMediaInputListListAttributeResponse, - this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "MediaInput.MediaInputList response", value); + } }; /* @@ -23402,11 +22164,7 @@ class ReadMediaInputCurrentMediaInput : public ModelCommand ModelCommand::AddArguments(); } - ~ReadMediaInputCurrentMediaInput() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadMediaInputCurrentMediaInput() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -23414,14 +22172,14 @@ class ReadMediaInputCurrentMediaInput : public ModelCommand chip::Controller::MediaInputCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentMediaInput(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "MediaInput.CurrentMediaInput response", value); + } }; class ReportMediaInputCurrentMediaInput : public ModelCommand @@ -23489,11 +22247,7 @@ class ReadMediaInputClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadMediaInputClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadMediaInputClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -23501,14 +22255,14 @@ class ReadMediaInputClusterRevision : public ModelCommand chip::Controller::MediaInputCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "MediaInput.ClusterRevision response", value); + } }; class ReportMediaInputClusterRevision : public ModelCommand @@ -23835,11 +22589,7 @@ class ReadMediaPlaybackPlaybackState : public ModelCommand ModelCommand::AddArguments(); } - ~ReadMediaPlaybackPlaybackState() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadMediaPlaybackPlaybackState() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -23847,14 +22597,14 @@ class ReadMediaPlaybackPlaybackState : public ModelCommand chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePlaybackState(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "MediaPlayback.PlaybackState response", value); + } }; class ReportMediaPlaybackPlaybackState : public ModelCommand @@ -23921,11 +22671,7 @@ class ReadMediaPlaybackStartTime : public ModelCommand ModelCommand::AddArguments(); } - ~ReadMediaPlaybackStartTime() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadMediaPlaybackStartTime() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -23933,14 +22679,14 @@ class ReadMediaPlaybackStartTime : public ModelCommand chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeStartTime(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "MediaPlayback.StartTime response", value); + } }; class ReportMediaPlaybackStartTime : public ModelCommand @@ -24007,11 +22753,7 @@ class ReadMediaPlaybackDuration : public ModelCommand ModelCommand::AddArguments(); } - ~ReadMediaPlaybackDuration() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadMediaPlaybackDuration() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -24019,14 +22761,14 @@ class ReadMediaPlaybackDuration : public ModelCommand chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeDuration(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "MediaPlayback.Duration response", value); + } }; class ReportMediaPlaybackDuration : public ModelCommand @@ -24093,11 +22835,7 @@ class ReadMediaPlaybackPositionUpdatedAt : public ModelCommand ModelCommand::AddArguments(); } - ~ReadMediaPlaybackPositionUpdatedAt() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadMediaPlaybackPositionUpdatedAt() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -24105,14 +22843,14 @@ class ReadMediaPlaybackPositionUpdatedAt : public ModelCommand chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePositionUpdatedAt(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "MediaPlayback.PositionUpdatedAt response", value); + } }; class ReportMediaPlaybackPositionUpdatedAt : public ModelCommand @@ -24180,11 +22918,7 @@ class ReadMediaPlaybackPosition : public ModelCommand ModelCommand::AddArguments(); } - ~ReadMediaPlaybackPosition() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadMediaPlaybackPosition() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -24192,14 +22926,14 @@ class ReadMediaPlaybackPosition : public ModelCommand chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePosition(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "MediaPlayback.Position response", value); + } }; class ReportMediaPlaybackPosition : public ModelCommand @@ -24266,11 +23000,7 @@ class ReadMediaPlaybackPlaybackSpeed : public ModelCommand ModelCommand::AddArguments(); } - ~ReadMediaPlaybackPlaybackSpeed() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadMediaPlaybackPlaybackSpeed() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -24278,14 +23008,14 @@ class ReadMediaPlaybackPlaybackSpeed : public ModelCommand chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePlaybackSpeed(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "MediaPlayback.PlaybackSpeed response", value); + } }; class ReportMediaPlaybackPlaybackSpeed : public ModelCommand @@ -24352,11 +23082,7 @@ class ReadMediaPlaybackSeekRangeEnd : public ModelCommand ModelCommand::AddArguments(); } - ~ReadMediaPlaybackSeekRangeEnd() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadMediaPlaybackSeekRangeEnd() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -24364,14 +23090,14 @@ class ReadMediaPlaybackSeekRangeEnd : public ModelCommand chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSeekRangeEnd(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "MediaPlayback.SeekRangeEnd response", value); + } }; class ReportMediaPlaybackSeekRangeEnd : public ModelCommand @@ -24438,11 +23164,7 @@ class ReadMediaPlaybackSeekRangeStart : public ModelCommand ModelCommand::AddArguments(); } - ~ReadMediaPlaybackSeekRangeStart() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadMediaPlaybackSeekRangeStart() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -24450,14 +23172,14 @@ class ReadMediaPlaybackSeekRangeStart : public ModelCommand chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSeekRangeStart(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "MediaPlayback.SeekRangeStart response", value); + } }; class ReportMediaPlaybackSeekRangeStart : public ModelCommand @@ -24524,11 +23246,7 @@ class ReadMediaPlaybackClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadMediaPlaybackClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadMediaPlaybackClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -24536,14 +23254,14 @@ class ReadMediaPlaybackClusterRevision : public ModelCommand chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "MediaPlayback.ClusterRevision response", value); + } }; class ReportMediaPlaybackClusterRevision : public ModelCommand @@ -24649,11 +23367,7 @@ class ReadModeSelectCurrentMode : public ModelCommand ModelCommand::AddArguments(); } - ~ReadModeSelectCurrentMode() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadModeSelectCurrentMode() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -24661,14 +23375,14 @@ class ReadModeSelectCurrentMode : public ModelCommand chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentMode(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ModeSelect.CurrentMode response", value); + } }; class ReportModeSelectCurrentMode : public ModelCommand @@ -24735,11 +23449,7 @@ class ReadModeSelectSupportedModes : public ModelCommand ModelCommand::AddArguments(); } - ~ReadModeSelectSupportedModes() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadModeSelectSupportedModes() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -24747,15 +23457,17 @@ class ReadModeSelectSupportedModes : public ModelCommand chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSupportedModes(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnModeSelectSupportedModesListAttributeResponse, - this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & + value) + { + OnGeneralAttributeResponse(context, "ModeSelect.SupportedModes response", value); + } }; /* @@ -24770,11 +23482,7 @@ class ReadModeSelectOnMode : public ModelCommand ModelCommand::AddArguments(); } - ~ReadModeSelectOnMode() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadModeSelectOnMode() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -24782,14 +23490,14 @@ class ReadModeSelectOnMode : public ModelCommand chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOnMode(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ModeSelect.OnMode response", value); + } }; class WriteModeSelectOnMode : public ModelCommand @@ -24882,11 +23590,7 @@ class ReadModeSelectStartUpMode : public ModelCommand ModelCommand::AddArguments(); } - ~ReadModeSelectStartUpMode() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadModeSelectStartUpMode() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -24894,14 +23598,14 @@ class ReadModeSelectStartUpMode : public ModelCommand chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeStartUpMode(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ModeSelect.StartUpMode response", value); + } }; class ReportModeSelectStartUpMode : public ModelCommand @@ -24968,11 +23672,7 @@ class ReadModeSelectDescription : public ModelCommand ModelCommand::AddArguments(); } - ~ReadModeSelectDescription() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadModeSelectDescription() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -24980,14 +23680,14 @@ class ReadModeSelectDescription : public ModelCommand chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeDescription(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "ModeSelect.Description response", value); + } }; class ReportModeSelectDescription : public ModelCommand @@ -25054,11 +23754,7 @@ class ReadModeSelectClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadModeSelectClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadModeSelectClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -25066,14 +23762,14 @@ class ReadModeSelectClusterRevision : public ModelCommand chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ModeSelect.ClusterRevision response", value); + } }; class ReportModeSelectClusterRevision : public ModelCommand @@ -25368,11 +24064,7 @@ class ReadNetworkCommissioningFeatureMap : public ModelCommand ModelCommand::AddArguments(); } - ~ReadNetworkCommissioningFeatureMap() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadNetworkCommissioningFeatureMap() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -25380,14 +24072,14 @@ class ReadNetworkCommissioningFeatureMap : public ModelCommand chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFeatureMap(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "NetworkCommissioning.FeatureMap response", value); + } }; class ReportNetworkCommissioningFeatureMap : public ModelCommand @@ -25454,11 +24146,7 @@ class ReadNetworkCommissioningClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadNetworkCommissioningClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadNetworkCommissioningClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -25466,14 +24154,14 @@ class ReadNetworkCommissioningClusterRevision : public ModelCommand chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "NetworkCommissioning.ClusterRevision response", value); + } }; class ReportNetworkCommissioningClusterRevision : public ModelCommand @@ -25633,11 +24321,7 @@ class ReadOtaSoftwareUpdateProviderClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOtaSoftwareUpdateProviderClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOtaSoftwareUpdateProviderClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -25645,14 +24329,14 @@ class ReadOtaSoftwareUpdateProviderClusterRevision : public ModelCommand chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "OtaSoftwareUpdateProvider.ClusterRevision response", value); + } }; class ReportOtaSoftwareUpdateProviderClusterRevision : public ModelCommand @@ -25760,11 +24444,7 @@ class ReadOtaSoftwareUpdateRequestorDefaultOtaProvider : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOtaSoftwareUpdateRequestorDefaultOtaProvider() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOtaSoftwareUpdateRequestorDefaultOtaProvider() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -25772,14 +24452,14 @@ class ReadOtaSoftwareUpdateRequestorDefaultOtaProvider : public ModelCommand chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeDefaultOtaProvider(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::ByteSpan value) + { + OnGeneralAttributeResponse(context, "OtaSoftwareUpdateRequestor.DefaultOtaProvider response", value); + } }; class WriteOtaSoftwareUpdateRequestorDefaultOtaProvider : public ModelCommand @@ -25873,11 +24553,7 @@ class ReadOtaSoftwareUpdateRequestorUpdatePossible : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOtaSoftwareUpdateRequestorUpdatePossible() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOtaSoftwareUpdateRequestorUpdatePossible() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -25885,14 +24561,14 @@ class ReadOtaSoftwareUpdateRequestorUpdatePossible : public ModelCommand chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeUpdatePossible(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "OtaSoftwareUpdateRequestor.UpdatePossible response", value); + } }; class ReportOtaSoftwareUpdateRequestorUpdatePossible : public ModelCommand @@ -25959,11 +24635,7 @@ class ReadOtaSoftwareUpdateRequestorClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOtaSoftwareUpdateRequestorClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOtaSoftwareUpdateRequestorClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -25971,14 +24643,14 @@ class ReadOtaSoftwareUpdateRequestorClusterRevision : public ModelCommand chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "OtaSoftwareUpdateRequestor.ClusterRevision response", value); + } }; class ReportOtaSoftwareUpdateRequestorClusterRevision : public ModelCommand @@ -26057,11 +24729,7 @@ class ReadOccupancySensingOccupancy : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOccupancySensingOccupancy() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOccupancySensingOccupancy() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -26069,14 +24737,14 @@ class ReadOccupancySensingOccupancy : public ModelCommand chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOccupancy(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "OccupancySensing.Occupancy response", value); + } }; class ReportOccupancySensingOccupancy : public ModelCommand @@ -26143,11 +24811,7 @@ class ReadOccupancySensingOccupancySensorType : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOccupancySensingOccupancySensorType() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOccupancySensingOccupancySensorType() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -26155,14 +24819,14 @@ class ReadOccupancySensingOccupancySensorType : public ModelCommand chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOccupancySensorType(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "OccupancySensing.OccupancySensorType response", value); + } }; class ReportOccupancySensingOccupancySensorType : public ModelCommand @@ -26230,11 +24894,7 @@ class ReadOccupancySensingOccupancySensorTypeBitmap : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOccupancySensingOccupancySensorTypeBitmap() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOccupancySensingOccupancySensorTypeBitmap() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -26242,14 +24902,14 @@ class ReadOccupancySensingOccupancySensorTypeBitmap : public ModelCommand chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOccupancySensorTypeBitmap(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "OccupancySensing.OccupancySensorTypeBitmap response", value); + } }; class ReportOccupancySensingOccupancySensorTypeBitmap : public ModelCommand @@ -26317,11 +24977,7 @@ class ReadOccupancySensingClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOccupancySensingClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOccupancySensingClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -26329,14 +24985,14 @@ class ReadOccupancySensingClusterRevision : public ModelCommand chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "OccupancySensing.ClusterRevision response", value); + } }; class ReportOccupancySensingClusterRevision : public ModelCommand @@ -26558,11 +25214,7 @@ class ReadOnOffOnOff : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOnOffOnOff() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOnOffOnOff() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -26570,14 +25222,14 @@ class ReadOnOffOnOff : public ModelCommand chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOnOff(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "OnOff.OnOff response", value); + } }; class ReportOnOffOnOff : public ModelCommand @@ -26644,11 +25296,7 @@ class ReadOnOffGlobalSceneControl : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOnOffGlobalSceneControl() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOnOffGlobalSceneControl() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -26656,14 +25304,14 @@ class ReadOnOffGlobalSceneControl : public ModelCommand chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeGlobalSceneControl(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "OnOff.GlobalSceneControl response", value); + } }; class ReportOnOffGlobalSceneControl : public ModelCommand @@ -26731,11 +25379,7 @@ class ReadOnOffOnTime : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOnOffOnTime() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOnOffOnTime() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -26743,14 +25387,14 @@ class ReadOnOffOnTime : public ModelCommand chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOnTime(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "OnOff.OnTime response", value); + } }; class WriteOnOffOnTime : public ModelCommand @@ -26843,11 +25487,7 @@ class ReadOnOffOffWaitTime : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOnOffOffWaitTime() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOnOffOffWaitTime() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -26855,14 +25495,14 @@ class ReadOnOffOffWaitTime : public ModelCommand chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOffWaitTime(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "OnOff.OffWaitTime response", value); + } }; class WriteOnOffOffWaitTime : public ModelCommand @@ -26955,11 +25595,7 @@ class ReadOnOffStartUpOnOff : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOnOffStartUpOnOff() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOnOffStartUpOnOff() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -26967,14 +25603,14 @@ class ReadOnOffStartUpOnOff : public ModelCommand chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeStartUpOnOff(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "OnOff.StartUpOnOff response", value); + } }; class WriteOnOffStartUpOnOff : public ModelCommand @@ -27067,11 +25703,7 @@ class ReadOnOffFeatureMap : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOnOffFeatureMap() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOnOffFeatureMap() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -27079,14 +25711,14 @@ class ReadOnOffFeatureMap : public ModelCommand chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFeatureMap(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "OnOff.FeatureMap response", value); + } }; class ReportOnOffFeatureMap : public ModelCommand @@ -27153,11 +25785,7 @@ class ReadOnOffClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOnOffClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOnOffClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -27165,14 +25793,14 @@ class ReadOnOffClusterRevision : public ModelCommand chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "OnOff.ClusterRevision response", value); + } }; class ReportOnOffClusterRevision : public ModelCommand @@ -27250,11 +25878,7 @@ class ReadOnOffSwitchConfigurationSwitchType : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOnOffSwitchConfigurationSwitchType() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOnOffSwitchConfigurationSwitchType() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -27262,14 +25886,14 @@ class ReadOnOffSwitchConfigurationSwitchType : public ModelCommand chip::Controller::OnOffSwitchConfigurationCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSwitchType(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "OnOffSwitchConfiguration.SwitchType response", value); + } }; class ReportOnOffSwitchConfigurationSwitchType : public ModelCommand @@ -27336,11 +25960,7 @@ class ReadOnOffSwitchConfigurationSwitchActions : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOnOffSwitchConfigurationSwitchActions() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOnOffSwitchConfigurationSwitchActions() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -27348,14 +25968,14 @@ class ReadOnOffSwitchConfigurationSwitchActions : public ModelCommand chip::Controller::OnOffSwitchConfigurationCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSwitchActions(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "OnOffSwitchConfiguration.SwitchActions response", value); + } }; class WriteOnOffSwitchConfigurationSwitchActions : public ModelCommand @@ -27448,11 +26068,7 @@ class ReadOnOffSwitchConfigurationClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOnOffSwitchConfigurationClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOnOffSwitchConfigurationClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -27460,14 +26076,14 @@ class ReadOnOffSwitchConfigurationClusterRevision : public ModelCommand chip::Controller::OnOffSwitchConfigurationCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "OnOffSwitchConfiguration.ClusterRevision response", value); + } }; class ReportOnOffSwitchConfigurationClusterRevision : public ModelCommand @@ -27778,11 +26394,7 @@ class ReadOperationalCredentialsFabricsList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOperationalCredentialsFabricsList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOperationalCredentialsFabricsList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -27790,15 +26402,17 @@ class ReadOperationalCredentialsFabricsList : public ModelCommand chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFabricsList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnOperationalCredentialsFabricsListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void + OnAttributeResponse(void * context, + const chip::app::DataModel::DecodableList< + chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & value) + { + OnGeneralAttributeResponse(context, "OperationalCredentials.FabricsList response", value); + } }; /* @@ -27813,11 +26427,7 @@ class ReadOperationalCredentialsSupportedFabrics : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOperationalCredentialsSupportedFabrics() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOperationalCredentialsSupportedFabrics() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -27825,14 +26435,14 @@ class ReadOperationalCredentialsSupportedFabrics : public ModelCommand chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSupportedFabrics(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "OperationalCredentials.SupportedFabrics response", value); + } }; class ReportOperationalCredentialsSupportedFabrics : public ModelCommand @@ -27899,11 +26509,7 @@ class ReadOperationalCredentialsCommissionedFabrics : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOperationalCredentialsCommissionedFabrics() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOperationalCredentialsCommissionedFabrics() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -27911,14 +26517,14 @@ class ReadOperationalCredentialsCommissionedFabrics : public ModelCommand chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCommissionedFabrics(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "OperationalCredentials.CommissionedFabrics response", value); + } }; class ReportOperationalCredentialsCommissionedFabrics : public ModelCommand @@ -27986,11 +26592,7 @@ class ReadOperationalCredentialsTrustedRootCertificates : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOperationalCredentialsTrustedRootCertificates() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOperationalCredentialsTrustedRootCertificates() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -27998,15 +26600,14 @@ class ReadOperationalCredentialsTrustedRootCertificates : public ModelCommand chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTrustedRootCertificates(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnOperationalCredentialsTrustedRootCertificatesListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "OperationalCredentials.TrustedRootCertificates response", value); + } }; /* @@ -28021,11 +26622,7 @@ class ReadOperationalCredentialsCurrentFabricIndex : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOperationalCredentialsCurrentFabricIndex() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOperationalCredentialsCurrentFabricIndex() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -28033,14 +26630,14 @@ class ReadOperationalCredentialsCurrentFabricIndex : public ModelCommand chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentFabricIndex(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::FabricIndex value) + { + OnGeneralAttributeResponse(context, "OperationalCredentials.CurrentFabricIndex response", value); + } }; class ReportOperationalCredentialsCurrentFabricIndex : public ModelCommand @@ -28108,11 +26705,7 @@ class ReadOperationalCredentialsClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadOperationalCredentialsClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadOperationalCredentialsClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -28120,14 +26713,14 @@ class ReadOperationalCredentialsClusterRevision : public ModelCommand chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "OperationalCredentials.ClusterRevision response", value); + } }; class ReportOperationalCredentialsClusterRevision : public ModelCommand @@ -28213,11 +26806,7 @@ class ReadPowerSourceStatus : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceStatus() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceStatus() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -28225,14 +26814,14 @@ class ReadPowerSourceStatus : public ModelCommand chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeStatus(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "PowerSource.Status response", value); + } }; class ReportPowerSourceStatus : public ModelCommand @@ -28299,11 +26888,7 @@ class ReadPowerSourceOrder : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceOrder() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceOrder() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -28311,14 +26896,14 @@ class ReadPowerSourceOrder : public ModelCommand chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOrder(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "PowerSource.Order response", value); + } }; class ReportPowerSourceOrder : public ModelCommand @@ -28385,11 +26970,7 @@ class ReadPowerSourceDescription : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceDescription() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceDescription() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -28397,14 +26978,14 @@ class ReadPowerSourceDescription : public ModelCommand chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeDescription(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "PowerSource.Description response", value); + } }; class ReportPowerSourceDescription : public ModelCommand @@ -28471,11 +27052,7 @@ class ReadPowerSourceBatteryVoltage : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceBatteryVoltage() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceBatteryVoltage() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -28483,14 +27060,14 @@ class ReadPowerSourceBatteryVoltage : public ModelCommand chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBatteryVoltage(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "PowerSource.BatteryVoltage response", value); + } }; class ReportPowerSourceBatteryVoltage : public ModelCommand @@ -28557,11 +27134,7 @@ class ReadPowerSourceBatteryPercentRemaining : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceBatteryPercentRemaining() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceBatteryPercentRemaining() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -28569,14 +27142,14 @@ class ReadPowerSourceBatteryPercentRemaining : public ModelCommand chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBatteryPercentRemaining(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "PowerSource.BatteryPercentRemaining response", value); + } }; class ReportPowerSourceBatteryPercentRemaining : public ModelCommand @@ -28644,11 +27217,7 @@ class ReadPowerSourceBatteryTimeRemaining : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceBatteryTimeRemaining() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceBatteryTimeRemaining() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -28656,14 +27225,14 @@ class ReadPowerSourceBatteryTimeRemaining : public ModelCommand chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBatteryTimeRemaining(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "PowerSource.BatteryTimeRemaining response", value); + } }; class ReportPowerSourceBatteryTimeRemaining : public ModelCommand @@ -28731,11 +27300,7 @@ class ReadPowerSourceBatteryChargeLevel : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceBatteryChargeLevel() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceBatteryChargeLevel() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -28743,14 +27308,14 @@ class ReadPowerSourceBatteryChargeLevel : public ModelCommand chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBatteryChargeLevel(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "PowerSource.BatteryChargeLevel response", value); + } }; class ReportPowerSourceBatteryChargeLevel : public ModelCommand @@ -28818,11 +27383,7 @@ class ReadPowerSourceActiveBatteryFaults : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceActiveBatteryFaults() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceActiveBatteryFaults() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -28830,15 +27391,14 @@ class ReadPowerSourceActiveBatteryFaults : public ModelCommand chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeActiveBatteryFaults(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnPowerSourceActiveBatteryFaultsListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "PowerSource.ActiveBatteryFaults response", value); + } }; /* @@ -28853,11 +27413,7 @@ class ReadPowerSourceBatteryChargeState : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceBatteryChargeState() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceBatteryChargeState() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -28865,14 +27421,14 @@ class ReadPowerSourceBatteryChargeState : public ModelCommand chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBatteryChargeState(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "PowerSource.BatteryChargeState response", value); + } }; class ReportPowerSourceBatteryChargeState : public ModelCommand @@ -28940,11 +27496,7 @@ class ReadPowerSourceFeatureMap : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceFeatureMap() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceFeatureMap() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -28952,14 +27504,14 @@ class ReadPowerSourceFeatureMap : public ModelCommand chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFeatureMap(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "PowerSource.FeatureMap response", value); + } }; class ReportPowerSourceFeatureMap : public ModelCommand @@ -29026,11 +27578,7 @@ class ReadPowerSourceClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -29038,14 +27586,14 @@ class ReadPowerSourceClusterRevision : public ModelCommand chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PowerSource.ClusterRevision response", value); + } }; class ReportPowerSourceClusterRevision : public ModelCommand @@ -29122,11 +27670,7 @@ class ReadPowerSourceConfigurationSources : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceConfigurationSources() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceConfigurationSources() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -29134,15 +27678,14 @@ class ReadPowerSourceConfigurationSources : public ModelCommand chip::Controller::PowerSourceConfigurationCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSources(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnPowerSourceConfigurationSourcesListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "PowerSourceConfiguration.Sources response", value); + } }; /* @@ -29157,11 +27700,7 @@ class ReadPowerSourceConfigurationClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPowerSourceConfigurationClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPowerSourceConfigurationClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -29169,14 +27708,14 @@ class ReadPowerSourceConfigurationClusterRevision : public ModelCommand chip::Controller::PowerSourceConfigurationCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PowerSourceConfiguration.ClusterRevision response", value); + } }; /*----------------------------------------------------------------------------*\ @@ -29203,11 +27742,7 @@ class ReadPressureMeasurementMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPressureMeasurementMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPressureMeasurementMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -29215,14 +27750,14 @@ class ReadPressureMeasurementMeasuredValue : public ModelCommand chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "PressureMeasurement.MeasuredValue response", value); + } }; class ReportPressureMeasurementMeasuredValue : public ModelCommand @@ -29289,11 +27824,7 @@ class ReadPressureMeasurementMinMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPressureMeasurementMinMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPressureMeasurementMinMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -29301,14 +27832,14 @@ class ReadPressureMeasurementMinMeasuredValue : public ModelCommand chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "PressureMeasurement.MinMeasuredValue response", value); + } }; class ReportPressureMeasurementMinMeasuredValue : public ModelCommand @@ -29375,11 +27906,7 @@ class ReadPressureMeasurementMaxMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPressureMeasurementMaxMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPressureMeasurementMaxMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -29387,14 +27914,14 @@ class ReadPressureMeasurementMaxMeasuredValue : public ModelCommand chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "PressureMeasurement.MaxMeasuredValue response", value); + } }; class ReportPressureMeasurementMaxMeasuredValue : public ModelCommand @@ -29461,11 +27988,7 @@ class ReadPressureMeasurementClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPressureMeasurementClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPressureMeasurementClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -29473,14 +27996,14 @@ class ReadPressureMeasurementClusterRevision : public ModelCommand chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PressureMeasurement.ClusterRevision response", value); + } }; class ReportPressureMeasurementClusterRevision : public ModelCommand @@ -29581,11 +28104,7 @@ class ReadPumpConfigurationAndControlMaxPressure : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMaxPressure() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMaxPressure() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -29593,14 +28112,14 @@ class ReadPumpConfigurationAndControlMaxPressure : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxPressure(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxPressure response", value); + } }; class ReportPumpConfigurationAndControlMaxPressure : public ModelCommand @@ -29667,11 +28186,7 @@ class ReadPumpConfigurationAndControlMaxSpeed : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMaxSpeed() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMaxSpeed() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -29679,14 +28194,14 @@ class ReadPumpConfigurationAndControlMaxSpeed : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxSpeed(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxSpeed response", value); + } }; class ReportPumpConfigurationAndControlMaxSpeed : public ModelCommand @@ -29753,11 +28268,7 @@ class ReadPumpConfigurationAndControlMaxFlow : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMaxFlow() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMaxFlow() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -29765,14 +28276,14 @@ class ReadPumpConfigurationAndControlMaxFlow : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxFlow(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxFlow response", value); + } }; class ReportPumpConfigurationAndControlMaxFlow : public ModelCommand @@ -29839,11 +28350,7 @@ class ReadPumpConfigurationAndControlMinConstPressure : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMinConstPressure() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMinConstPressure() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -29851,14 +28358,14 @@ class ReadPumpConfigurationAndControlMinConstPressure : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinConstPressure(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MinConstPressure response", value); + } }; class ReportPumpConfigurationAndControlMinConstPressure : public ModelCommand @@ -29925,11 +28432,7 @@ class ReadPumpConfigurationAndControlMaxConstPressure : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMaxConstPressure() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMaxConstPressure() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -29937,14 +28440,14 @@ class ReadPumpConfigurationAndControlMaxConstPressure : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxConstPressure(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxConstPressure response", value); + } }; class ReportPumpConfigurationAndControlMaxConstPressure : public ModelCommand @@ -30011,11 +28514,7 @@ class ReadPumpConfigurationAndControlMinCompPressure : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMinCompPressure() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMinCompPressure() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -30023,14 +28522,14 @@ class ReadPumpConfigurationAndControlMinCompPressure : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinCompPressure(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MinCompPressure response", value); + } }; class ReportPumpConfigurationAndControlMinCompPressure : public ModelCommand @@ -30097,11 +28596,7 @@ class ReadPumpConfigurationAndControlMaxCompPressure : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMaxCompPressure() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMaxCompPressure() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -30109,14 +28604,14 @@ class ReadPumpConfigurationAndControlMaxCompPressure : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxCompPressure(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxCompPressure response", value); + } }; class ReportPumpConfigurationAndControlMaxCompPressure : public ModelCommand @@ -30183,11 +28678,7 @@ class ReadPumpConfigurationAndControlMinConstSpeed : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMinConstSpeed() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMinConstSpeed() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -30195,14 +28686,14 @@ class ReadPumpConfigurationAndControlMinConstSpeed : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinConstSpeed(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MinConstSpeed response", value); + } }; class ReportPumpConfigurationAndControlMinConstSpeed : public ModelCommand @@ -30269,11 +28760,7 @@ class ReadPumpConfigurationAndControlMaxConstSpeed : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMaxConstSpeed() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMaxConstSpeed() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -30281,14 +28768,14 @@ class ReadPumpConfigurationAndControlMaxConstSpeed : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxConstSpeed(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxConstSpeed response", value); + } }; class ReportPumpConfigurationAndControlMaxConstSpeed : public ModelCommand @@ -30355,11 +28842,7 @@ class ReadPumpConfigurationAndControlMinConstFlow : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMinConstFlow() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMinConstFlow() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -30367,14 +28850,14 @@ class ReadPumpConfigurationAndControlMinConstFlow : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinConstFlow(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MinConstFlow response", value); + } }; class ReportPumpConfigurationAndControlMinConstFlow : public ModelCommand @@ -30441,11 +28924,7 @@ class ReadPumpConfigurationAndControlMaxConstFlow : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMaxConstFlow() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMaxConstFlow() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -30453,14 +28932,14 @@ class ReadPumpConfigurationAndControlMaxConstFlow : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxConstFlow(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxConstFlow response", value); + } }; class ReportPumpConfigurationAndControlMaxConstFlow : public ModelCommand @@ -30527,11 +29006,7 @@ class ReadPumpConfigurationAndControlMinConstTemp : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMinConstTemp() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMinConstTemp() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -30539,14 +29014,14 @@ class ReadPumpConfigurationAndControlMinConstTemp : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinConstTemp(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MinConstTemp response", value); + } }; class ReportPumpConfigurationAndControlMinConstTemp : public ModelCommand @@ -30613,11 +29088,7 @@ class ReadPumpConfigurationAndControlMaxConstTemp : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlMaxConstTemp() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlMaxConstTemp() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -30625,14 +29096,14 @@ class ReadPumpConfigurationAndControlMaxConstTemp : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxConstTemp(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxConstTemp response", value); + } }; class ReportPumpConfigurationAndControlMaxConstTemp : public ModelCommand @@ -30699,11 +29170,7 @@ class ReadPumpConfigurationAndControlPumpStatus : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlPumpStatus() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlPumpStatus() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -30711,14 +29178,14 @@ class ReadPumpConfigurationAndControlPumpStatus : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePumpStatus(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.PumpStatus response", value); + } }; class ReportPumpConfigurationAndControlPumpStatus : public ModelCommand @@ -30785,11 +29252,7 @@ class ReadPumpConfigurationAndControlEffectiveOperationMode : public ModelComman ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlEffectiveOperationMode() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlEffectiveOperationMode() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -30797,14 +29260,15 @@ class ReadPumpConfigurationAndControlEffectiveOperationMode : public ModelComman chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeEffectiveOperationMode(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster + .ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.EffectiveOperationMode response", value); + } }; class ReportPumpConfigurationAndControlEffectiveOperationMode : public ModelCommand @@ -30872,11 +29336,7 @@ class ReadPumpConfigurationAndControlEffectiveControlMode : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlEffectiveControlMode() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlEffectiveControlMode() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -30884,14 +29344,14 @@ class ReadPumpConfigurationAndControlEffectiveControlMode : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeEffectiveControlMode(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.EffectiveControlMode response", value); + } }; class ReportPumpConfigurationAndControlEffectiveControlMode : public ModelCommand @@ -30959,11 +29419,7 @@ class ReadPumpConfigurationAndControlCapacity : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlCapacity() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlCapacity() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -30971,14 +29427,14 @@ class ReadPumpConfigurationAndControlCapacity : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCapacity(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.Capacity response", value); + } }; class ReportPumpConfigurationAndControlCapacity : public ModelCommand @@ -31045,11 +29501,7 @@ class ReadPumpConfigurationAndControlSpeed : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlSpeed() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlSpeed() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -31057,14 +29509,14 @@ class ReadPumpConfigurationAndControlSpeed : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSpeed(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.Speed response", value); + } }; class ReportPumpConfigurationAndControlSpeed : public ModelCommand @@ -31131,11 +29583,7 @@ class ReadPumpConfigurationAndControlLifetimeRunningHours : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlLifetimeRunningHours() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlLifetimeRunningHours() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -31143,14 +29591,14 @@ class ReadPumpConfigurationAndControlLifetimeRunningHours : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeLifetimeRunningHours(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.LifetimeRunningHours response", value); + } }; class WritePumpConfigurationAndControlLifetimeRunningHours : public ModelCommand @@ -31244,11 +29692,7 @@ class ReadPumpConfigurationAndControlPower : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlPower() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlPower() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -31256,14 +29700,14 @@ class ReadPumpConfigurationAndControlPower : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePower(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.Power response", value); + } }; class ReportPumpConfigurationAndControlPower : public ModelCommand @@ -31330,11 +29774,7 @@ class ReadPumpConfigurationAndControlLifetimeEnergyConsumed : public ModelComman ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlLifetimeEnergyConsumed() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlLifetimeEnergyConsumed() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -31342,14 +29782,15 @@ class ReadPumpConfigurationAndControlLifetimeEnergyConsumed : public ModelComman chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeLifetimeEnergyConsumed(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster + .ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.LifetimeEnergyConsumed response", value); + } }; class WritePumpConfigurationAndControlLifetimeEnergyConsumed : public ModelCommand @@ -31444,11 +29885,7 @@ class ReadPumpConfigurationAndControlOperationMode : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlOperationMode() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlOperationMode() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -31456,14 +29893,14 @@ class ReadPumpConfigurationAndControlOperationMode : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOperationMode(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.OperationMode response", value); + } }; class WritePumpConfigurationAndControlOperationMode : public ModelCommand @@ -31556,11 +29993,7 @@ class ReadPumpConfigurationAndControlControlMode : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlControlMode() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlControlMode() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -31568,14 +30001,14 @@ class ReadPumpConfigurationAndControlControlMode : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeControlMode(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.ControlMode response", value); + } }; class WritePumpConfigurationAndControlControlMode : public ModelCommand @@ -31668,11 +30101,7 @@ class ReadPumpConfigurationAndControlAlarmMask : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlAlarmMask() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlAlarmMask() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -31680,14 +30109,14 @@ class ReadPumpConfigurationAndControlAlarmMask : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeAlarmMask(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.AlarmMask response", value); + } }; class ReportPumpConfigurationAndControlAlarmMask : public ModelCommand @@ -31754,11 +30183,7 @@ class ReadPumpConfigurationAndControlFeatureMap : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlFeatureMap() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlFeatureMap() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -31766,14 +30191,14 @@ class ReadPumpConfigurationAndControlFeatureMap : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFeatureMap(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.FeatureMap response", value); + } }; class ReportPumpConfigurationAndControlFeatureMap : public ModelCommand @@ -31840,11 +30265,7 @@ class ReadPumpConfigurationAndControlClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadPumpConfigurationAndControlClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadPumpConfigurationAndControlClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -31852,14 +30273,14 @@ class ReadPumpConfigurationAndControlClusterRevision : public ModelCommand chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.ClusterRevision response", value); + } }; class ReportPumpConfigurationAndControlClusterRevision : public ModelCommand @@ -31939,11 +30360,7 @@ class ReadRelativeHumidityMeasurementMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadRelativeHumidityMeasurementMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadRelativeHumidityMeasurementMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -31951,14 +30368,14 @@ class ReadRelativeHumidityMeasurementMeasuredValue : public ModelCommand chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "RelativeHumidityMeasurement.MeasuredValue response", value); + } }; class ReportRelativeHumidityMeasurementMeasuredValue : public ModelCommand @@ -32025,11 +30442,7 @@ class ReadRelativeHumidityMeasurementMinMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadRelativeHumidityMeasurementMinMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadRelativeHumidityMeasurementMinMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -32037,14 +30450,14 @@ class ReadRelativeHumidityMeasurementMinMeasuredValue : public ModelCommand chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "RelativeHumidityMeasurement.MinMeasuredValue response", value); + } }; class ReportRelativeHumidityMeasurementMinMeasuredValue : public ModelCommand @@ -32111,11 +30524,7 @@ class ReadRelativeHumidityMeasurementMaxMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadRelativeHumidityMeasurementMaxMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadRelativeHumidityMeasurementMaxMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -32123,14 +30532,14 @@ class ReadRelativeHumidityMeasurementMaxMeasuredValue : public ModelCommand chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "RelativeHumidityMeasurement.MaxMeasuredValue response", value); + } }; class ReportRelativeHumidityMeasurementMaxMeasuredValue : public ModelCommand @@ -32197,11 +30606,7 @@ class ReadRelativeHumidityMeasurementTolerance : public ModelCommand ModelCommand::AddArguments(); } - ~ReadRelativeHumidityMeasurementTolerance() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadRelativeHumidityMeasurementTolerance() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -32209,14 +30614,14 @@ class ReadRelativeHumidityMeasurementTolerance : public ModelCommand chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTolerance(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "RelativeHumidityMeasurement.Tolerance response", value); + } }; class ReportRelativeHumidityMeasurementTolerance : public ModelCommand @@ -32283,11 +30688,7 @@ class ReadRelativeHumidityMeasurementClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadRelativeHumidityMeasurementClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadRelativeHumidityMeasurementClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -32295,14 +30696,14 @@ class ReadRelativeHumidityMeasurementClusterRevision : public ModelCommand chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "RelativeHumidityMeasurement.ClusterRevision response", value); + } }; class ReportRelativeHumidityMeasurementClusterRevision : public ModelCommand @@ -32567,11 +30968,7 @@ class ReadScenesSceneCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadScenesSceneCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadScenesSceneCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -32579,14 +30976,14 @@ class ReadScenesSceneCount : public ModelCommand chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSceneCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Scenes.SceneCount response", value); + } }; class ReportScenesSceneCount : public ModelCommand @@ -32653,11 +31050,7 @@ class ReadScenesCurrentScene : public ModelCommand ModelCommand::AddArguments(); } - ~ReadScenesCurrentScene() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadScenesCurrentScene() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -32665,14 +31058,14 @@ class ReadScenesCurrentScene : public ModelCommand chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentScene(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Scenes.CurrentScene response", value); + } }; class ReportScenesCurrentScene : public ModelCommand @@ -32739,11 +31132,7 @@ class ReadScenesCurrentGroup : public ModelCommand ModelCommand::AddArguments(); } - ~ReadScenesCurrentGroup() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadScenesCurrentGroup() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -32751,14 +31140,14 @@ class ReadScenesCurrentGroup : public ModelCommand chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentGroup(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Scenes.CurrentGroup response", value); + } }; class ReportScenesCurrentGroup : public ModelCommand @@ -32825,11 +31214,7 @@ class ReadScenesSceneValid : public ModelCommand ModelCommand::AddArguments(); } - ~ReadScenesSceneValid() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadScenesSceneValid() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -32837,14 +31222,14 @@ class ReadScenesSceneValid : public ModelCommand chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSceneValid(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "Scenes.SceneValid response", value); + } }; class ReportScenesSceneValid : public ModelCommand @@ -32911,11 +31296,7 @@ class ReadScenesNameSupport : public ModelCommand ModelCommand::AddArguments(); } - ~ReadScenesNameSupport() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadScenesNameSupport() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -32923,14 +31304,14 @@ class ReadScenesNameSupport : public ModelCommand chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNameSupport(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Scenes.NameSupport response", value); + } }; class ReportScenesNameSupport : public ModelCommand @@ -32997,11 +31378,7 @@ class ReadScenesClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadScenesClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadScenesClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -33009,14 +31386,14 @@ class ReadScenesClusterRevision : public ModelCommand chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Scenes.ClusterRevision response", value); + } }; class ReportScenesClusterRevision : public ModelCommand @@ -33118,11 +31495,7 @@ class ReadSoftwareDiagnosticsThreadMetrics : public ModelCommand ModelCommand::AddArguments(); } - ~ReadSoftwareDiagnosticsThreadMetrics() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadSoftwareDiagnosticsThreadMetrics() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -33130,15 +31503,17 @@ class ReadSoftwareDiagnosticsThreadMetrics : public ModelCommand chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeThreadMetrics(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnSoftwareDiagnosticsThreadMetricsListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & + value) + { + OnGeneralAttributeResponse(context, "SoftwareDiagnostics.ThreadMetrics response", value); + } }; /* @@ -33153,11 +31528,7 @@ class ReadSoftwareDiagnosticsCurrentHeapFree : public ModelCommand ModelCommand::AddArguments(); } - ~ReadSoftwareDiagnosticsCurrentHeapFree() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadSoftwareDiagnosticsCurrentHeapFree() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -33165,14 +31536,14 @@ class ReadSoftwareDiagnosticsCurrentHeapFree : public ModelCommand chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentHeapFree(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "SoftwareDiagnostics.CurrentHeapFree response", value); + } }; class ReportSoftwareDiagnosticsCurrentHeapFree : public ModelCommand @@ -33239,11 +31610,7 @@ class ReadSoftwareDiagnosticsCurrentHeapUsed : public ModelCommand ModelCommand::AddArguments(); } - ~ReadSoftwareDiagnosticsCurrentHeapUsed() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadSoftwareDiagnosticsCurrentHeapUsed() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -33251,14 +31618,14 @@ class ReadSoftwareDiagnosticsCurrentHeapUsed : public ModelCommand chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentHeapUsed(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "SoftwareDiagnostics.CurrentHeapUsed response", value); + } }; class ReportSoftwareDiagnosticsCurrentHeapUsed : public ModelCommand @@ -33325,11 +31692,7 @@ class ReadSoftwareDiagnosticsCurrentHeapHighWatermark : public ModelCommand ModelCommand::AddArguments(); } - ~ReadSoftwareDiagnosticsCurrentHeapHighWatermark() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadSoftwareDiagnosticsCurrentHeapHighWatermark() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -33337,14 +31700,14 @@ class ReadSoftwareDiagnosticsCurrentHeapHighWatermark : public ModelCommand chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentHeapHighWatermark(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "SoftwareDiagnostics.CurrentHeapHighWatermark response", value); + } }; class ReportSoftwareDiagnosticsCurrentHeapHighWatermark : public ModelCommand @@ -33412,11 +31775,7 @@ class ReadSoftwareDiagnosticsFeatureMap : public ModelCommand ModelCommand::AddArguments(); } - ~ReadSoftwareDiagnosticsFeatureMap() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadSoftwareDiagnosticsFeatureMap() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -33424,14 +31783,14 @@ class ReadSoftwareDiagnosticsFeatureMap : public ModelCommand chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFeatureMap(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "SoftwareDiagnostics.FeatureMap response", value); + } }; /* @@ -33446,11 +31805,7 @@ class ReadSoftwareDiagnosticsClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadSoftwareDiagnosticsClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadSoftwareDiagnosticsClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -33458,14 +31813,14 @@ class ReadSoftwareDiagnosticsClusterRevision : public ModelCommand chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "SoftwareDiagnostics.ClusterRevision response", value); + } }; class ReportSoftwareDiagnosticsClusterRevision : public ModelCommand @@ -33545,11 +31900,7 @@ class ReadSwitchNumberOfPositions : public ModelCommand ModelCommand::AddArguments(); } - ~ReadSwitchNumberOfPositions() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadSwitchNumberOfPositions() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -33557,14 +31908,14 @@ class ReadSwitchNumberOfPositions : public ModelCommand chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNumberOfPositions(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Switch.NumberOfPositions response", value); + } }; class ReportSwitchNumberOfPositions : public ModelCommand @@ -33632,11 +31983,7 @@ class ReadSwitchCurrentPosition : public ModelCommand ModelCommand::AddArguments(); } - ~ReadSwitchCurrentPosition() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadSwitchCurrentPosition() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -33644,14 +31991,14 @@ class ReadSwitchCurrentPosition : public ModelCommand chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentPosition(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Switch.CurrentPosition response", value); + } }; class ReportSwitchCurrentPosition : public ModelCommand @@ -33718,11 +32065,7 @@ class ReadSwitchMultiPressMax : public ModelCommand ModelCommand::AddArguments(); } - ~ReadSwitchMultiPressMax() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadSwitchMultiPressMax() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -33730,14 +32073,14 @@ class ReadSwitchMultiPressMax : public ModelCommand chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMultiPressMax(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Switch.MultiPressMax response", value); + } }; class ReportSwitchMultiPressMax : public ModelCommand @@ -33804,11 +32147,7 @@ class ReadSwitchFeatureMap : public ModelCommand ModelCommand::AddArguments(); } - ~ReadSwitchFeatureMap() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadSwitchFeatureMap() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -33816,14 +32155,14 @@ class ReadSwitchFeatureMap : public ModelCommand chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFeatureMap(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "Switch.FeatureMap response", value); + } }; class ReportSwitchFeatureMap : public ModelCommand @@ -33890,11 +32229,7 @@ class ReadSwitchClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadSwitchClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadSwitchClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -33902,14 +32237,14 @@ class ReadSwitchClusterRevision : public ModelCommand chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Switch.ClusterRevision response", value); + } }; class ReportSwitchClusterRevision : public ModelCommand @@ -34064,11 +32399,7 @@ class ReadTvChannelTvChannelList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTvChannelTvChannelList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTvChannelTvChannelList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -34076,15 +32407,16 @@ class ReadTvChannelTvChannelList : public ModelCommand chip::Controller::TvChannelCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTvChannelList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnTvChannelTvChannelListListAttributeResponse, - this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "TvChannel.TvChannelList response", value); + } }; /* @@ -34099,11 +32431,7 @@ class ReadTvChannelTvChannelLineup : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTvChannelTvChannelLineup() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTvChannelTvChannelLineup() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -34111,14 +32439,14 @@ class ReadTvChannelTvChannelLineup : public ModelCommand chip::Controller::TvChannelCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTvChannelLineup(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::ByteSpan value) + { + OnGeneralAttributeResponse(context, "TvChannel.TvChannelLineup response", value); + } }; class ReportTvChannelTvChannelLineup : public ModelCommand @@ -34185,11 +32513,7 @@ class ReadTvChannelCurrentTvChannel : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTvChannelCurrentTvChannel() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTvChannelCurrentTvChannel() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -34197,14 +32521,14 @@ class ReadTvChannelCurrentTvChannel : public ModelCommand chip::Controller::TvChannelCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentTvChannel(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::ByteSpan value) + { + OnGeneralAttributeResponse(context, "TvChannel.CurrentTvChannel response", value); + } }; class ReportTvChannelCurrentTvChannel : public ModelCommand @@ -34271,11 +32595,7 @@ class ReadTvChannelClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTvChannelClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTvChannelClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -34283,14 +32603,14 @@ class ReadTvChannelClusterRevision : public ModelCommand chip::Controller::TvChannelCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "TvChannel.ClusterRevision response", value); + } }; class ReportTvChannelClusterRevision : public ModelCommand @@ -34393,11 +32713,7 @@ class ReadTargetNavigatorTargetNavigatorList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTargetNavigatorTargetNavigatorList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTargetNavigatorTargetNavigatorList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -34405,15 +32721,17 @@ class ReadTargetNavigatorTargetNavigatorList : public ModelCommand chip::Controller::TargetNavigatorCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTargetNavigatorList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnTargetNavigatorTargetNavigatorListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void + OnAttributeResponse(void * context, + const chip::app::DataModel::DecodableList< + chip::app::Clusters::TargetNavigator::Structs::NavigateTargetTargetInfo::DecodableType> & value) + { + OnGeneralAttributeResponse(context, "TargetNavigator.TargetNavigatorList response", value); + } }; /* @@ -34428,11 +32746,7 @@ class ReadTargetNavigatorClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTargetNavigatorClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTargetNavigatorClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -34440,14 +32754,14 @@ class ReadTargetNavigatorClusterRevision : public ModelCommand chip::Controller::TargetNavigatorCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "TargetNavigator.ClusterRevision response", value); + } }; class ReportTargetNavigatorClusterRevision : public ModelCommand @@ -34527,11 +32841,7 @@ class ReadTemperatureMeasurementMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTemperatureMeasurementMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTemperatureMeasurementMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -34539,14 +32849,14 @@ class ReadTemperatureMeasurementMeasuredValue : public ModelCommand chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "TemperatureMeasurement.MeasuredValue response", value); + } }; class ReportTemperatureMeasurementMeasuredValue : public ModelCommand @@ -34613,11 +32923,7 @@ class ReadTemperatureMeasurementMinMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTemperatureMeasurementMinMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTemperatureMeasurementMinMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -34625,14 +32931,14 @@ class ReadTemperatureMeasurementMinMeasuredValue : public ModelCommand chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "TemperatureMeasurement.MinMeasuredValue response", value); + } }; class ReportTemperatureMeasurementMinMeasuredValue : public ModelCommand @@ -34699,11 +33005,7 @@ class ReadTemperatureMeasurementMaxMeasuredValue : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTemperatureMeasurementMaxMeasuredValue() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTemperatureMeasurementMaxMeasuredValue() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -34711,14 +33013,14 @@ class ReadTemperatureMeasurementMaxMeasuredValue : public ModelCommand chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxMeasuredValue(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "TemperatureMeasurement.MaxMeasuredValue response", value); + } }; class ReportTemperatureMeasurementMaxMeasuredValue : public ModelCommand @@ -34785,11 +33087,7 @@ class ReadTemperatureMeasurementTolerance : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTemperatureMeasurementTolerance() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTemperatureMeasurementTolerance() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -34797,14 +33095,14 @@ class ReadTemperatureMeasurementTolerance : public ModelCommand chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTolerance(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "TemperatureMeasurement.Tolerance response", value); + } }; class ReportTemperatureMeasurementTolerance : public ModelCommand @@ -34871,11 +33169,7 @@ class ReadTemperatureMeasurementClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTemperatureMeasurementClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTemperatureMeasurementClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -34883,14 +33177,14 @@ class ReadTemperatureMeasurementClusterRevision : public ModelCommand chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "TemperatureMeasurement.ClusterRevision response", value); + } }; class ReportTemperatureMeasurementClusterRevision : public ModelCommand @@ -35451,11 +33745,7 @@ class ReadTestClusterBoolean : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterBoolean() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterBoolean() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -35463,14 +33753,14 @@ class ReadTestClusterBoolean : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBoolean(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "TestCluster.Boolean response", value); + } }; class WriteTestClusterBoolean : public ModelCommand @@ -35563,11 +33853,7 @@ class ReadTestClusterBitmap8 : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterBitmap8() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterBitmap8() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -35575,14 +33861,14 @@ class ReadTestClusterBitmap8 : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBitmap8(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Bitmap8 response", value); + } }; class WriteTestClusterBitmap8 : public ModelCommand @@ -35675,11 +33961,7 @@ class ReadTestClusterBitmap16 : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterBitmap16() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterBitmap16() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -35687,14 +33969,14 @@ class ReadTestClusterBitmap16 : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBitmap16(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Bitmap16 response", value); + } }; class WriteTestClusterBitmap16 : public ModelCommand @@ -35787,11 +34069,7 @@ class ReadTestClusterBitmap32 : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterBitmap32() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterBitmap32() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -35799,14 +34077,14 @@ class ReadTestClusterBitmap32 : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBitmap32(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Bitmap32 response", value); + } }; class WriteTestClusterBitmap32 : public ModelCommand @@ -35899,11 +34177,7 @@ class ReadTestClusterBitmap64 : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterBitmap64() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterBitmap64() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -35911,14 +34185,14 @@ class ReadTestClusterBitmap64 : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBitmap64(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Bitmap64 response", value); + } }; class WriteTestClusterBitmap64 : public ModelCommand @@ -36011,11 +34285,7 @@ class ReadTestClusterInt8u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt8u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt8u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -36023,14 +34293,14 @@ class ReadTestClusterInt8u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt8u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int8u response", value); + } }; class WriteTestClusterInt8u : public ModelCommand @@ -36123,11 +34393,7 @@ class ReadTestClusterInt16u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt16u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt16u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -36135,14 +34401,14 @@ class ReadTestClusterInt16u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt16u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int16u response", value); + } }; class WriteTestClusterInt16u : public ModelCommand @@ -36235,11 +34501,7 @@ class ReadTestClusterInt24u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt24u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt24u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -36247,14 +34509,14 @@ class ReadTestClusterInt24u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt24u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int24u response", value); + } }; class WriteTestClusterInt24u : public ModelCommand @@ -36347,11 +34609,7 @@ class ReadTestClusterInt32u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt32u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt32u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -36359,14 +34617,14 @@ class ReadTestClusterInt32u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt32u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int32u response", value); + } }; class WriteTestClusterInt32u : public ModelCommand @@ -36459,11 +34717,7 @@ class ReadTestClusterInt40u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt40u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt40u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -36471,14 +34725,14 @@ class ReadTestClusterInt40u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt40u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int40u response", value); + } }; class WriteTestClusterInt40u : public ModelCommand @@ -36571,11 +34825,7 @@ class ReadTestClusterInt48u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt48u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt48u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -36583,14 +34833,14 @@ class ReadTestClusterInt48u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt48u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int48u response", value); + } }; class WriteTestClusterInt48u : public ModelCommand @@ -36683,11 +34933,7 @@ class ReadTestClusterInt56u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt56u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt56u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -36695,14 +34941,14 @@ class ReadTestClusterInt56u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt56u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int56u response", value); + } }; class WriteTestClusterInt56u : public ModelCommand @@ -36795,11 +35041,7 @@ class ReadTestClusterInt64u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt64u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt64u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -36807,14 +35049,14 @@ class ReadTestClusterInt64u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt64u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int64u response", value); + } }; class WriteTestClusterInt64u : public ModelCommand @@ -36907,11 +35149,7 @@ class ReadTestClusterInt8s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt8s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt8s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -36919,14 +35157,14 @@ class ReadTestClusterInt8s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt8s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int8_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int8s response", value); + } }; class WriteTestClusterInt8s : public ModelCommand @@ -37019,11 +35257,7 @@ class ReadTestClusterInt16s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt16s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt16s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -37031,14 +35265,14 @@ class ReadTestClusterInt16s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt16s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int16s response", value); + } }; class WriteTestClusterInt16s : public ModelCommand @@ -37131,11 +35365,7 @@ class ReadTestClusterInt24s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt24s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt24s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -37143,14 +35373,14 @@ class ReadTestClusterInt24s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt24s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int32_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int24s response", value); + } }; class WriteTestClusterInt24s : public ModelCommand @@ -37243,11 +35473,7 @@ class ReadTestClusterInt32s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt32s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt32s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -37255,14 +35481,14 @@ class ReadTestClusterInt32s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt32s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int32_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int32s response", value); + } }; class WriteTestClusterInt32s : public ModelCommand @@ -37355,11 +35581,7 @@ class ReadTestClusterInt40s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt40s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt40s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -37367,14 +35589,14 @@ class ReadTestClusterInt40s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt40s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int64_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int40s response", value); + } }; class WriteTestClusterInt40s : public ModelCommand @@ -37467,11 +35689,7 @@ class ReadTestClusterInt48s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt48s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt48s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -37479,14 +35697,14 @@ class ReadTestClusterInt48s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt48s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int64_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int48s response", value); + } }; class WriteTestClusterInt48s : public ModelCommand @@ -37579,11 +35797,7 @@ class ReadTestClusterInt56s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt56s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt56s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -37591,14 +35805,14 @@ class ReadTestClusterInt56s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt56s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int64_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int56s response", value); + } }; class WriteTestClusterInt56s : public ModelCommand @@ -37691,11 +35905,7 @@ class ReadTestClusterInt64s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterInt64s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterInt64s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -37703,14 +35913,14 @@ class ReadTestClusterInt64s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInt64s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int64_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Int64s response", value); + } }; class WriteTestClusterInt64s : public ModelCommand @@ -37803,11 +36013,7 @@ class ReadTestClusterEnum8 : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterEnum8() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterEnum8() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -37815,14 +36021,14 @@ class ReadTestClusterEnum8 : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeEnum8(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Enum8 response", value); + } }; class WriteTestClusterEnum8 : public ModelCommand @@ -37915,11 +36121,7 @@ class ReadTestClusterEnum16 : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterEnum16() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterEnum16() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -37927,14 +36129,14 @@ class ReadTestClusterEnum16 : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeEnum16(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.Enum16 response", value); + } }; class WriteTestClusterEnum16 : public ModelCommand @@ -38027,11 +36229,7 @@ class ReadTestClusterFloatSingle : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterFloatSingle() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterFloatSingle() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -38039,14 +36237,14 @@ class ReadTestClusterFloatSingle : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFloatSingle(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnFloatAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, float value) + { + OnGeneralAttributeResponse(context, "TestCluster.FloatSingle response", value); + } }; class WriteTestClusterFloatSingle : public ModelCommand @@ -38139,11 +36337,7 @@ class ReadTestClusterFloatDouble : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterFloatDouble() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterFloatDouble() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -38151,14 +36345,14 @@ class ReadTestClusterFloatDouble : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFloatDouble(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnDoubleAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, double value) + { + OnGeneralAttributeResponse(context, "TestCluster.FloatDouble response", value); + } }; class WriteTestClusterFloatDouble : public ModelCommand @@ -38251,11 +36445,7 @@ class ReadTestClusterOctetString : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterOctetString() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterOctetString() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -38263,14 +36453,14 @@ class ReadTestClusterOctetString : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOctetString(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::ByteSpan value) + { + OnGeneralAttributeResponse(context, "TestCluster.OctetString response", value); + } }; class WriteTestClusterOctetString : public ModelCommand @@ -38363,11 +36553,7 @@ class ReadTestClusterListInt8u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterListInt8u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterListInt8u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -38375,14 +36561,14 @@ class ReadTestClusterListInt8u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeListInt8u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnTestClusterListInt8uListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "TestCluster.ListInt8u response", value); + } }; /* @@ -38397,11 +36583,7 @@ class ReadTestClusterListOctetString : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterListOctetString() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterListOctetString() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -38409,15 +36591,14 @@ class ReadTestClusterListOctetString : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeListOctetString(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnTestClusterListOctetStringListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "TestCluster.ListOctetString response", value); + } }; /* @@ -38432,11 +36613,7 @@ class ReadTestClusterListStructOctetString : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterListStructOctetString() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterListStructOctetString() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -38444,15 +36621,17 @@ class ReadTestClusterListStructOctetString : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeListStructOctetString(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnTestClusterListStructOctetStringListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & + value) + { + OnGeneralAttributeResponse(context, "TestCluster.ListStructOctetString response", value); + } }; /* @@ -38467,11 +36646,7 @@ class ReadTestClusterLongOctetString : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterLongOctetString() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterLongOctetString() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -38479,14 +36654,14 @@ class ReadTestClusterLongOctetString : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeLongOctetString(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::ByteSpan value) + { + OnGeneralAttributeResponse(context, "TestCluster.LongOctetString response", value); + } }; class WriteTestClusterLongOctetString : public ModelCommand @@ -38579,11 +36754,7 @@ class ReadTestClusterCharString : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterCharString() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterCharString() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -38591,14 +36762,14 @@ class ReadTestClusterCharString : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCharString(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "TestCluster.CharString response", value); + } }; class WriteTestClusterCharString : public ModelCommand @@ -38691,11 +36862,7 @@ class ReadTestClusterLongCharString : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterLongCharString() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterLongCharString() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -38703,14 +36870,14 @@ class ReadTestClusterLongCharString : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeLongCharString(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "TestCluster.LongCharString response", value); + } }; class WriteTestClusterLongCharString : public ModelCommand @@ -38803,11 +36970,7 @@ class ReadTestClusterEpochUs : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterEpochUs() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterEpochUs() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -38815,14 +36978,14 @@ class ReadTestClusterEpochUs : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeEpochUs(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.EpochUs response", value); + } }; class WriteTestClusterEpochUs : public ModelCommand @@ -38915,11 +37078,7 @@ class ReadTestClusterEpochS : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterEpochS() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterEpochS() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -38927,14 +37086,14 @@ class ReadTestClusterEpochS : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeEpochS(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.EpochS response", value); + } }; class WriteTestClusterEpochS : public ModelCommand @@ -39027,11 +37186,7 @@ class ReadTestClusterVendorId : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterVendorId() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterVendorId() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -39039,14 +37194,14 @@ class ReadTestClusterVendorId : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeVendorId(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::VendorId value) + { + OnGeneralAttributeResponse(context, "TestCluster.VendorId response", value); + } }; class WriteTestClusterVendorId : public ModelCommand @@ -39139,11 +37294,7 @@ class ReadTestClusterListNullablesAndOptionalsStruct : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterListNullablesAndOptionalsStruct() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterListNullablesAndOptionalsStruct() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -39151,15 +37302,17 @@ class ReadTestClusterListNullablesAndOptionalsStruct : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeListNullablesAndOptionalsStruct(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnTestClusterListNullablesAndOptionalsStructListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void + OnAttributeResponse(void * context, + const chip::app::DataModel::DecodableList< + chip::app::Clusters::TestCluster::Structs::NullablesAndOptionalsStruct::DecodableType> & value) + { + OnGeneralAttributeResponse(context, "TestCluster.ListNullablesAndOptionalsStruct response", value); + } }; /* @@ -39174,11 +37327,7 @@ class ReadTestClusterRangeRestrictedInt8u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterRangeRestrictedInt8u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterRangeRestrictedInt8u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -39186,14 +37335,14 @@ class ReadTestClusterRangeRestrictedInt8u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRangeRestrictedInt8u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.RangeRestrictedInt8u response", value); + } }; class WriteTestClusterRangeRestrictedInt8u : public ModelCommand @@ -39287,11 +37436,7 @@ class ReadTestClusterRangeRestrictedInt8s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterRangeRestrictedInt8s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterRangeRestrictedInt8s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -39299,14 +37444,14 @@ class ReadTestClusterRangeRestrictedInt8s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRangeRestrictedInt8s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int8_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.RangeRestrictedInt8s response", value); + } }; class WriteTestClusterRangeRestrictedInt8s : public ModelCommand @@ -39400,11 +37545,7 @@ class ReadTestClusterRangeRestrictedInt16u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterRangeRestrictedInt16u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterRangeRestrictedInt16u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -39412,14 +37553,14 @@ class ReadTestClusterRangeRestrictedInt16u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRangeRestrictedInt16u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.RangeRestrictedInt16u response", value); + } }; class WriteTestClusterRangeRestrictedInt16u : public ModelCommand @@ -39513,11 +37654,7 @@ class ReadTestClusterRangeRestrictedInt16s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterRangeRestrictedInt16s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterRangeRestrictedInt16s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -39525,14 +37662,14 @@ class ReadTestClusterRangeRestrictedInt16s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRangeRestrictedInt16s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.RangeRestrictedInt16s response", value); + } }; class WriteTestClusterRangeRestrictedInt16s : public ModelCommand @@ -39626,11 +37763,7 @@ class ReadTestClusterListLongOctetString : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterListLongOctetString() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterListLongOctetString() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -39638,15 +37771,14 @@ class ReadTestClusterListLongOctetString : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeListLongOctetString(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnTestClusterListLongOctetStringListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "TestCluster.ListLongOctetString response", value); + } }; /* @@ -39661,11 +37793,7 @@ class ReadTestClusterTimedWriteBoolean : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterTimedWriteBoolean() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterTimedWriteBoolean() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -39673,14 +37801,14 @@ class ReadTestClusterTimedWriteBoolean : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTimedWriteBoolean(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "TestCluster.TimedWriteBoolean response", value); + } }; class WriteTestClusterTimedWriteBoolean : public ModelCommand @@ -39721,11 +37849,7 @@ class ReadTestClusterUnsupported : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterUnsupported() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterUnsupported() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -39733,14 +37857,14 @@ class ReadTestClusterUnsupported : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeUnsupported(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, bool value) + { + OnGeneralAttributeResponse(context, "TestCluster.Unsupported response", value); + } }; class WriteTestClusterUnsupported : public ModelCommand @@ -39833,11 +37957,7 @@ class ReadTestClusterNullableBoolean : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableBoolean() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableBoolean() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -39845,14 +37965,14 @@ class ReadTestClusterNullableBoolean : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableBoolean(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableBoolean response", value); + } }; class WriteTestClusterNullableBoolean : public ModelCommand @@ -39945,11 +38065,7 @@ class ReadTestClusterNullableBitmap8 : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableBitmap8() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableBitmap8() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -39957,14 +38073,14 @@ class ReadTestClusterNullableBitmap8 : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableBitmap8(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableBitmap8 response", value); + } }; class WriteTestClusterNullableBitmap8 : public ModelCommand @@ -40057,11 +38173,7 @@ class ReadTestClusterNullableBitmap16 : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableBitmap16() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableBitmap16() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -40069,14 +38181,14 @@ class ReadTestClusterNullableBitmap16 : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableBitmap16(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableBitmap16 response", value); + } }; class WriteTestClusterNullableBitmap16 : public ModelCommand @@ -40169,11 +38281,7 @@ class ReadTestClusterNullableBitmap32 : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableBitmap32() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableBitmap32() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -40181,14 +38289,14 @@ class ReadTestClusterNullableBitmap32 : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableBitmap32(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableBitmap32 response", value); + } }; class WriteTestClusterNullableBitmap32 : public ModelCommand @@ -40281,11 +38389,7 @@ class ReadTestClusterNullableBitmap64 : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableBitmap64() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableBitmap64() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -40293,14 +38397,14 @@ class ReadTestClusterNullableBitmap64 : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableBitmap64(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableBitmap64 response", value); + } }; class WriteTestClusterNullableBitmap64 : public ModelCommand @@ -40393,11 +38497,7 @@ class ReadTestClusterNullableInt8u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt8u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt8u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -40405,14 +38505,14 @@ class ReadTestClusterNullableInt8u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt8u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt8u response", value); + } }; class WriteTestClusterNullableInt8u : public ModelCommand @@ -40505,11 +38605,7 @@ class ReadTestClusterNullableInt16u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt16u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt16u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -40517,14 +38613,14 @@ class ReadTestClusterNullableInt16u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt16u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt16u response", value); + } }; class WriteTestClusterNullableInt16u : public ModelCommand @@ -40617,11 +38713,7 @@ class ReadTestClusterNullableInt24u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt24u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt24u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -40629,14 +38721,14 @@ class ReadTestClusterNullableInt24u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt24u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt24u response", value); + } }; class WriteTestClusterNullableInt24u : public ModelCommand @@ -40729,11 +38821,7 @@ class ReadTestClusterNullableInt32u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt32u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt32u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -40741,14 +38829,14 @@ class ReadTestClusterNullableInt32u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt32u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt32u response", value); + } }; class WriteTestClusterNullableInt32u : public ModelCommand @@ -40841,11 +38929,7 @@ class ReadTestClusterNullableInt40u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt40u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt40u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -40853,14 +38937,14 @@ class ReadTestClusterNullableInt40u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt40u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt40u response", value); + } }; class WriteTestClusterNullableInt40u : public ModelCommand @@ -40953,11 +39037,7 @@ class ReadTestClusterNullableInt48u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt48u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt48u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -40965,14 +39045,14 @@ class ReadTestClusterNullableInt48u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt48u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt48u response", value); + } }; class WriteTestClusterNullableInt48u : public ModelCommand @@ -41065,11 +39145,7 @@ class ReadTestClusterNullableInt56u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt56u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt56u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -41077,14 +39153,14 @@ class ReadTestClusterNullableInt56u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt56u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt56u response", value); + } }; class WriteTestClusterNullableInt56u : public ModelCommand @@ -41177,11 +39253,7 @@ class ReadTestClusterNullableInt64u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt64u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt64u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -41189,14 +39261,14 @@ class ReadTestClusterNullableInt64u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt64u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt64u response", value); + } }; class WriteTestClusterNullableInt64u : public ModelCommand @@ -41289,11 +39361,7 @@ class ReadTestClusterNullableInt8s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt8s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt8s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -41301,14 +39369,14 @@ class ReadTestClusterNullableInt8s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt8s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt8s response", value); + } }; class WriteTestClusterNullableInt8s : public ModelCommand @@ -41401,11 +39469,7 @@ class ReadTestClusterNullableInt16s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt16s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt16s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -41413,14 +39477,14 @@ class ReadTestClusterNullableInt16s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt16s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt16s response", value); + } }; class WriteTestClusterNullableInt16s : public ModelCommand @@ -41513,11 +39577,7 @@ class ReadTestClusterNullableInt24s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt24s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt24s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -41525,14 +39585,14 @@ class ReadTestClusterNullableInt24s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt24s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt24s response", value); + } }; class WriteTestClusterNullableInt24s : public ModelCommand @@ -41625,11 +39685,7 @@ class ReadTestClusterNullableInt32s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt32s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt32s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -41637,14 +39693,14 @@ class ReadTestClusterNullableInt32s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt32s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt32s response", value); + } }; class WriteTestClusterNullableInt32s : public ModelCommand @@ -41737,11 +39793,7 @@ class ReadTestClusterNullableInt40s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt40s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt40s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -41749,14 +39801,14 @@ class ReadTestClusterNullableInt40s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt40s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt40s response", value); + } }; class WriteTestClusterNullableInt40s : public ModelCommand @@ -41849,11 +39901,7 @@ class ReadTestClusterNullableInt48s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt48s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt48s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -41861,14 +39909,14 @@ class ReadTestClusterNullableInt48s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt48s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt48s response", value); + } }; class WriteTestClusterNullableInt48s : public ModelCommand @@ -41961,11 +40009,7 @@ class ReadTestClusterNullableInt56s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt56s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt56s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -41973,14 +40017,14 @@ class ReadTestClusterNullableInt56s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt56s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt56s response", value); + } }; class WriteTestClusterNullableInt56s : public ModelCommand @@ -42073,11 +40117,7 @@ class ReadTestClusterNullableInt64s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableInt64s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableInt64s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -42085,14 +40125,14 @@ class ReadTestClusterNullableInt64s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableInt64s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableInt64s response", value); + } }; class WriteTestClusterNullableInt64s : public ModelCommand @@ -42185,11 +40225,7 @@ class ReadTestClusterNullableEnum8 : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableEnum8() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableEnum8() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -42197,14 +40233,14 @@ class ReadTestClusterNullableEnum8 : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableEnum8(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableEnum8 response", value); + } }; class WriteTestClusterNullableEnum8 : public ModelCommand @@ -42297,11 +40333,7 @@ class ReadTestClusterNullableEnum16 : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableEnum16() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableEnum16() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -42309,14 +40341,14 @@ class ReadTestClusterNullableEnum16 : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableEnum16(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableEnum16 response", value); + } }; class WriteTestClusterNullableEnum16 : public ModelCommand @@ -42409,11 +40441,7 @@ class ReadTestClusterNullableFloatSingle : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableFloatSingle() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableFloatSingle() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -42421,14 +40449,14 @@ class ReadTestClusterNullableFloatSingle : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableFloatSingle(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnFloatAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableFloatSingle response", value); + } }; class WriteTestClusterNullableFloatSingle : public ModelCommand @@ -42522,11 +40550,7 @@ class ReadTestClusterNullableFloatDouble : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableFloatDouble() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableFloatDouble() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -42534,14 +40558,14 @@ class ReadTestClusterNullableFloatDouble : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableFloatDouble(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnDoubleAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableFloatDouble response", value); + } }; class WriteTestClusterNullableFloatDouble : public ModelCommand @@ -42635,11 +40659,7 @@ class ReadTestClusterNullableOctetString : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableOctetString() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableOctetString() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -42647,14 +40667,14 @@ class ReadTestClusterNullableOctetString : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableOctetString(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableOctetString response", value); + } }; class WriteTestClusterNullableOctetString : public ModelCommand @@ -42748,11 +40768,7 @@ class ReadTestClusterNullableCharString : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableCharString() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableCharString() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -42760,14 +40776,14 @@ class ReadTestClusterNullableCharString : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableCharString(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableCharString response", value); + } }; class WriteTestClusterNullableCharString : public ModelCommand @@ -42861,11 +40877,7 @@ class ReadTestClusterNullableRangeRestrictedInt8u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableRangeRestrictedInt8u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableRangeRestrictedInt8u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -42873,14 +40885,14 @@ class ReadTestClusterNullableRangeRestrictedInt8u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableRangeRestrictedInt8u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableRangeRestrictedInt8u response", value); + } }; class WriteTestClusterNullableRangeRestrictedInt8u : public ModelCommand @@ -42974,11 +40986,7 @@ class ReadTestClusterNullableRangeRestrictedInt8s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableRangeRestrictedInt8s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableRangeRestrictedInt8s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -42986,14 +40994,14 @@ class ReadTestClusterNullableRangeRestrictedInt8s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableRangeRestrictedInt8s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableRangeRestrictedInt8s response", value); + } }; class WriteTestClusterNullableRangeRestrictedInt8s : public ModelCommand @@ -43087,11 +41095,7 @@ class ReadTestClusterNullableRangeRestrictedInt16u : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableRangeRestrictedInt16u() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableRangeRestrictedInt16u() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -43099,14 +41103,14 @@ class ReadTestClusterNullableRangeRestrictedInt16u : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableRangeRestrictedInt16u(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableRangeRestrictedInt16u response", value); + } }; class WriteTestClusterNullableRangeRestrictedInt16u : public ModelCommand @@ -43200,11 +41204,7 @@ class ReadTestClusterNullableRangeRestrictedInt16s : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterNullableRangeRestrictedInt16s() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterNullableRangeRestrictedInt16s() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -43212,14 +41212,14 @@ class ReadTestClusterNullableRangeRestrictedInt16s : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNullableRangeRestrictedInt16s(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) + { + OnGeneralAttributeResponse(context, "TestCluster.NullableRangeRestrictedInt16s response", value); + } }; class WriteTestClusterNullableRangeRestrictedInt16s : public ModelCommand @@ -43313,11 +41313,7 @@ class ReadTestClusterClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadTestClusterClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadTestClusterClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -43325,14 +41321,14 @@ class ReadTestClusterClusterRevision : public ModelCommand chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "TestCluster.ClusterRevision response", value); + } }; class ReportTestClusterClusterRevision : public ModelCommand @@ -43555,11 +41551,7 @@ class ReadThermostatLocalTemperature : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatLocalTemperature() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatLocalTemperature() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -43567,14 +41559,14 @@ class ReadThermostatLocalTemperature : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeLocalTemperature(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.LocalTemperature response", value); + } }; class ReportThermostatLocalTemperature : public ModelCommand @@ -43641,11 +41633,7 @@ class ReadThermostatAbsMinHeatSetpointLimit : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatAbsMinHeatSetpointLimit() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatAbsMinHeatSetpointLimit() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -43653,14 +41641,14 @@ class ReadThermostatAbsMinHeatSetpointLimit : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeAbsMinHeatSetpointLimit(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.AbsMinHeatSetpointLimit response", value); + } }; class ReportThermostatAbsMinHeatSetpointLimit : public ModelCommand @@ -43728,11 +41716,7 @@ class ReadThermostatAbsMaxHeatSetpointLimit : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatAbsMaxHeatSetpointLimit() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatAbsMaxHeatSetpointLimit() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -43740,14 +41724,14 @@ class ReadThermostatAbsMaxHeatSetpointLimit : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeAbsMaxHeatSetpointLimit(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.AbsMaxHeatSetpointLimit response", value); + } }; class ReportThermostatAbsMaxHeatSetpointLimit : public ModelCommand @@ -43815,11 +41799,7 @@ class ReadThermostatAbsMinCoolSetpointLimit : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatAbsMinCoolSetpointLimit() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatAbsMinCoolSetpointLimit() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -43827,14 +41807,14 @@ class ReadThermostatAbsMinCoolSetpointLimit : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeAbsMinCoolSetpointLimit(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.AbsMinCoolSetpointLimit response", value); + } }; class ReportThermostatAbsMinCoolSetpointLimit : public ModelCommand @@ -43902,11 +41882,7 @@ class ReadThermostatAbsMaxCoolSetpointLimit : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatAbsMaxCoolSetpointLimit() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatAbsMaxCoolSetpointLimit() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -43914,14 +41890,14 @@ class ReadThermostatAbsMaxCoolSetpointLimit : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeAbsMaxCoolSetpointLimit(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.AbsMaxCoolSetpointLimit response", value); + } }; class ReportThermostatAbsMaxCoolSetpointLimit : public ModelCommand @@ -43989,11 +41965,7 @@ class ReadThermostatOccupiedCoolingSetpoint : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatOccupiedCoolingSetpoint() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatOccupiedCoolingSetpoint() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -44001,14 +41973,14 @@ class ReadThermostatOccupiedCoolingSetpoint : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOccupiedCoolingSetpoint(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.OccupiedCoolingSetpoint response", value); + } }; class WriteThermostatOccupiedCoolingSetpoint : public ModelCommand @@ -44102,11 +42074,7 @@ class ReadThermostatOccupiedHeatingSetpoint : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatOccupiedHeatingSetpoint() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatOccupiedHeatingSetpoint() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -44114,14 +42082,14 @@ class ReadThermostatOccupiedHeatingSetpoint : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOccupiedHeatingSetpoint(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.OccupiedHeatingSetpoint response", value); + } }; class WriteThermostatOccupiedHeatingSetpoint : public ModelCommand @@ -44215,11 +42183,7 @@ class ReadThermostatMinHeatSetpointLimit : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatMinHeatSetpointLimit() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatMinHeatSetpointLimit() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -44227,14 +42191,14 @@ class ReadThermostatMinHeatSetpointLimit : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinHeatSetpointLimit(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.MinHeatSetpointLimit response", value); + } }; class WriteThermostatMinHeatSetpointLimit : public ModelCommand @@ -44328,11 +42292,7 @@ class ReadThermostatMaxHeatSetpointLimit : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatMaxHeatSetpointLimit() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatMaxHeatSetpointLimit() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -44340,14 +42300,14 @@ class ReadThermostatMaxHeatSetpointLimit : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxHeatSetpointLimit(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.MaxHeatSetpointLimit response", value); + } }; class WriteThermostatMaxHeatSetpointLimit : public ModelCommand @@ -44441,11 +42401,7 @@ class ReadThermostatMinCoolSetpointLimit : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatMinCoolSetpointLimit() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatMinCoolSetpointLimit() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -44453,14 +42409,14 @@ class ReadThermostatMinCoolSetpointLimit : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinCoolSetpointLimit(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.MinCoolSetpointLimit response", value); + } }; class WriteThermostatMinCoolSetpointLimit : public ModelCommand @@ -44554,11 +42510,7 @@ class ReadThermostatMaxCoolSetpointLimit : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatMaxCoolSetpointLimit() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatMaxCoolSetpointLimit() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -44566,14 +42518,14 @@ class ReadThermostatMaxCoolSetpointLimit : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMaxCoolSetpointLimit(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int16_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.MaxCoolSetpointLimit response", value); + } }; class WriteThermostatMaxCoolSetpointLimit : public ModelCommand @@ -44667,11 +42619,7 @@ class ReadThermostatMinSetpointDeadBand : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatMinSetpointDeadBand() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatMinSetpointDeadBand() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -44679,14 +42627,14 @@ class ReadThermostatMinSetpointDeadBand : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMinSetpointDeadBand(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int8_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.MinSetpointDeadBand response", value); + } }; class WriteThermostatMinSetpointDeadBand : public ModelCommand @@ -44780,11 +42728,7 @@ class ReadThermostatControlSequenceOfOperation : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatControlSequenceOfOperation() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatControlSequenceOfOperation() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -44792,14 +42736,14 @@ class ReadThermostatControlSequenceOfOperation : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeControlSequenceOfOperation(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.ControlSequenceOfOperation response", value); + } }; class WriteThermostatControlSequenceOfOperation : public ModelCommand @@ -44893,11 +42837,7 @@ class ReadThermostatSystemMode : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatSystemMode() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatSystemMode() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -44905,14 +42845,14 @@ class ReadThermostatSystemMode : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSystemMode(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.SystemMode response", value); + } }; class WriteThermostatSystemMode : public ModelCommand @@ -45005,11 +42945,7 @@ class ReadThermostatStartOfWeek : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatStartOfWeek() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatStartOfWeek() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -45017,14 +42953,14 @@ class ReadThermostatStartOfWeek : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeStartOfWeek(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.StartOfWeek response", value); + } }; class ReportThermostatStartOfWeek : public ModelCommand @@ -45091,11 +43027,7 @@ class ReadThermostatNumberOfWeeklyTransitions : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatNumberOfWeeklyTransitions() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatNumberOfWeeklyTransitions() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -45103,14 +43035,14 @@ class ReadThermostatNumberOfWeeklyTransitions : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNumberOfWeeklyTransitions(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.NumberOfWeeklyTransitions response", value); + } }; class ReportThermostatNumberOfWeeklyTransitions : public ModelCommand @@ -45178,11 +43110,7 @@ class ReadThermostatNumberOfDailyTransitions : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatNumberOfDailyTransitions() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatNumberOfDailyTransitions() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -45190,14 +43118,14 @@ class ReadThermostatNumberOfDailyTransitions : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNumberOfDailyTransitions(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.NumberOfDailyTransitions response", value); + } }; class ReportThermostatNumberOfDailyTransitions : public ModelCommand @@ -45265,11 +43193,7 @@ class ReadThermostatFeatureMap : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatFeatureMap() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatFeatureMap() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -45277,14 +43201,14 @@ class ReadThermostatFeatureMap : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFeatureMap(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.FeatureMap response", value); + } }; class ReportThermostatFeatureMap : public ModelCommand @@ -45351,11 +43275,7 @@ class ReadThermostatClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThermostatClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -45363,14 +43283,14 @@ class ReadThermostatClusterRevision : public ModelCommand chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "Thermostat.ClusterRevision response", value); + } }; class ReportThermostatClusterRevision : public ModelCommand @@ -45449,11 +43369,7 @@ class ReadThermostatUserInterfaceConfigurationTemperatureDisplayMode : public Mo ModelCommand::AddArguments(); } - ~ReadThermostatUserInterfaceConfigurationTemperatureDisplayMode() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatUserInterfaceConfigurationTemperatureDisplayMode() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -45461,14 +43377,15 @@ class ReadThermostatUserInterfaceConfigurationTemperatureDisplayMode : public Mo chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTemperatureDisplayMode(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster + .ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ThermostatUserInterfaceConfiguration.TemperatureDisplayMode response", value); + } }; class WriteThermostatUserInterfaceConfigurationTemperatureDisplayMode : public ModelCommand @@ -45563,11 +43480,7 @@ class ReadThermostatUserInterfaceConfigurationKeypadLockout : public ModelComman ModelCommand::AddArguments(); } - ~ReadThermostatUserInterfaceConfigurationKeypadLockout() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatUserInterfaceConfigurationKeypadLockout() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -45575,14 +43488,15 @@ class ReadThermostatUserInterfaceConfigurationKeypadLockout : public ModelComman chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeKeypadLockout(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster + .ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ThermostatUserInterfaceConfiguration.KeypadLockout response", value); + } }; class WriteThermostatUserInterfaceConfigurationKeypadLockout : public ModelCommand @@ -45676,11 +43590,7 @@ class ReadThermostatUserInterfaceConfigurationScheduleProgrammingVisibility : pu ModelCommand::AddArguments(); } - ~ReadThermostatUserInterfaceConfigurationScheduleProgrammingVisibility() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatUserInterfaceConfigurationScheduleProgrammingVisibility() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -45688,14 +43598,15 @@ class ReadThermostatUserInterfaceConfigurationScheduleProgrammingVisibility : pu chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeScheduleProgrammingVisibility(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ThermostatUserInterfaceConfiguration.ScheduleProgrammingVisibility response", value); + } }; class WriteThermostatUserInterfaceConfigurationScheduleProgrammingVisibility : public ModelCommand @@ -45790,11 +43701,7 @@ class ReadThermostatUserInterfaceConfigurationClusterRevision : public ModelComm ModelCommand::AddArguments(); } - ~ReadThermostatUserInterfaceConfigurationClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThermostatUserInterfaceConfigurationClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -45802,14 +43709,15 @@ class ReadThermostatUserInterfaceConfigurationClusterRevision : public ModelComm chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster + .ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ThermostatUserInterfaceConfiguration.ClusterRevision response", value); + } }; class ReportThermostatUserInterfaceConfigurationClusterRevision : public ModelCommand @@ -45970,11 +43878,7 @@ class ReadThreadNetworkDiagnosticsChannel : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsChannel() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsChannel() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -45982,14 +43886,14 @@ class ReadThreadNetworkDiagnosticsChannel : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeChannel(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.Channel response", value); + } }; class ReportThreadNetworkDiagnosticsChannel : public ModelCommand @@ -46056,11 +43960,7 @@ class ReadThreadNetworkDiagnosticsRoutingRole : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRoutingRole() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRoutingRole() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46068,14 +43968,14 @@ class ReadThreadNetworkDiagnosticsRoutingRole : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRoutingRole(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RoutingRole response", value); + } }; class ReportThreadNetworkDiagnosticsRoutingRole : public ModelCommand @@ -46142,11 +44042,7 @@ class ReadThreadNetworkDiagnosticsNetworkName : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsNetworkName() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsNetworkName() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46154,14 +44050,14 @@ class ReadThreadNetworkDiagnosticsNetworkName : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNetworkName(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::ByteSpan value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.NetworkName response", value); + } }; class ReportThreadNetworkDiagnosticsNetworkName : public ModelCommand @@ -46228,11 +44124,7 @@ class ReadThreadNetworkDiagnosticsPanId : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsPanId() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsPanId() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46240,14 +44132,14 @@ class ReadThreadNetworkDiagnosticsPanId : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePanId(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.PanId response", value); + } }; class ReportThreadNetworkDiagnosticsPanId : public ModelCommand @@ -46314,11 +44206,7 @@ class ReadThreadNetworkDiagnosticsExtendedPanId : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsExtendedPanId() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsExtendedPanId() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46326,14 +44214,14 @@ class ReadThreadNetworkDiagnosticsExtendedPanId : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeExtendedPanId(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ExtendedPanId response", value); + } }; class ReportThreadNetworkDiagnosticsExtendedPanId : public ModelCommand @@ -46400,11 +44288,7 @@ class ReadThreadNetworkDiagnosticsMeshLocalPrefix : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsMeshLocalPrefix() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsMeshLocalPrefix() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46412,14 +44296,14 @@ class ReadThreadNetworkDiagnosticsMeshLocalPrefix : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMeshLocalPrefix(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::ByteSpan value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.MeshLocalPrefix response", value); + } }; class ReportThreadNetworkDiagnosticsMeshLocalPrefix : public ModelCommand @@ -46486,11 +44370,7 @@ class ReadThreadNetworkDiagnosticsOverrunCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsOverrunCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsOverrunCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46498,14 +44378,14 @@ class ReadThreadNetworkDiagnosticsOverrunCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOverrunCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.OverrunCount response", value); + } }; class ReportThreadNetworkDiagnosticsOverrunCount : public ModelCommand @@ -46572,11 +44452,7 @@ class ReadThreadNetworkDiagnosticsNeighborTableList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsNeighborTableList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsNeighborTableList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46584,15 +44460,17 @@ class ReadThreadNetworkDiagnosticsNeighborTableList : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeNeighborTableList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnThreadNetworkDiagnosticsNeighborTableListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void + OnAttributeResponse(void * context, + const chip::app::DataModel::DecodableList< + chip::app::Clusters::ThreadNetworkDiagnostics::Structs::NeighborTable::DecodableType> & value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.NeighborTableList response", value); + } }; /* @@ -46607,11 +44485,7 @@ class ReadThreadNetworkDiagnosticsRouteTableList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRouteTableList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRouteTableList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46619,15 +44493,16 @@ class ReadThreadNetworkDiagnosticsRouteTableList : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRouteTableList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnThreadNetworkDiagnosticsRouteTableListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, + const chip::app::DataModel::DecodableList< + chip::app::Clusters::ThreadNetworkDiagnostics::Structs::RouteTable::DecodableType> & value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RouteTableList response", value); + } }; /* @@ -46642,11 +44517,7 @@ class ReadThreadNetworkDiagnosticsPartitionId : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsPartitionId() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsPartitionId() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46654,14 +44525,14 @@ class ReadThreadNetworkDiagnosticsPartitionId : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePartitionId(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.PartitionId response", value); + } }; class ReportThreadNetworkDiagnosticsPartitionId : public ModelCommand @@ -46728,11 +44599,7 @@ class ReadThreadNetworkDiagnosticsWeighting : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsWeighting() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsWeighting() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46740,14 +44607,14 @@ class ReadThreadNetworkDiagnosticsWeighting : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeWeighting(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.Weighting response", value); + } }; class ReportThreadNetworkDiagnosticsWeighting : public ModelCommand @@ -46814,11 +44681,7 @@ class ReadThreadNetworkDiagnosticsDataVersion : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsDataVersion() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsDataVersion() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46826,14 +44689,14 @@ class ReadThreadNetworkDiagnosticsDataVersion : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeDataVersion(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.DataVersion response", value); + } }; class ReportThreadNetworkDiagnosticsDataVersion : public ModelCommand @@ -46900,11 +44763,7 @@ class ReadThreadNetworkDiagnosticsStableDataVersion : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsStableDataVersion() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsStableDataVersion() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46912,14 +44771,14 @@ class ReadThreadNetworkDiagnosticsStableDataVersion : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeStableDataVersion(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.StableDataVersion response", value); + } }; class ReportThreadNetworkDiagnosticsStableDataVersion : public ModelCommand @@ -46987,11 +44846,7 @@ class ReadThreadNetworkDiagnosticsLeaderRouterId : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsLeaderRouterId() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsLeaderRouterId() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -46999,14 +44854,14 @@ class ReadThreadNetworkDiagnosticsLeaderRouterId : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeLeaderRouterId(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.LeaderRouterId response", value); + } }; class ReportThreadNetworkDiagnosticsLeaderRouterId : public ModelCommand @@ -47073,11 +44928,7 @@ class ReadThreadNetworkDiagnosticsDetachedRoleCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsDetachedRoleCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsDetachedRoleCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -47085,14 +44936,14 @@ class ReadThreadNetworkDiagnosticsDetachedRoleCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeDetachedRoleCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.DetachedRoleCount response", value); + } }; class ReportThreadNetworkDiagnosticsDetachedRoleCount : public ModelCommand @@ -47160,11 +45011,7 @@ class ReadThreadNetworkDiagnosticsChildRoleCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsChildRoleCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsChildRoleCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -47172,14 +45019,14 @@ class ReadThreadNetworkDiagnosticsChildRoleCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeChildRoleCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ChildRoleCount response", value); + } }; class ReportThreadNetworkDiagnosticsChildRoleCount : public ModelCommand @@ -47246,11 +45093,7 @@ class ReadThreadNetworkDiagnosticsRouterRoleCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRouterRoleCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRouterRoleCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -47258,14 +45101,14 @@ class ReadThreadNetworkDiagnosticsRouterRoleCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRouterRoleCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RouterRoleCount response", value); + } }; class ReportThreadNetworkDiagnosticsRouterRoleCount : public ModelCommand @@ -47332,11 +45175,7 @@ class ReadThreadNetworkDiagnosticsLeaderRoleCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsLeaderRoleCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsLeaderRoleCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -47344,14 +45183,14 @@ class ReadThreadNetworkDiagnosticsLeaderRoleCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeLeaderRoleCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.LeaderRoleCount response", value); + } }; class ReportThreadNetworkDiagnosticsLeaderRoleCount : public ModelCommand @@ -47418,11 +45257,7 @@ class ReadThreadNetworkDiagnosticsAttachAttemptCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsAttachAttemptCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsAttachAttemptCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -47430,14 +45265,14 @@ class ReadThreadNetworkDiagnosticsAttachAttemptCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeAttachAttemptCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.AttachAttemptCount response", value); + } }; class ReportThreadNetworkDiagnosticsAttachAttemptCount : public ModelCommand @@ -47505,11 +45340,7 @@ class ReadThreadNetworkDiagnosticsPartitionIdChangeCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsPartitionIdChangeCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsPartitionIdChangeCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -47517,14 +45348,14 @@ class ReadThreadNetworkDiagnosticsPartitionIdChangeCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePartitionIdChangeCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.PartitionIdChangeCount response", value); + } }; class ReportThreadNetworkDiagnosticsPartitionIdChangeCount : public ModelCommand @@ -47592,11 +45423,7 @@ class ReadThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount : public Mod ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -47604,14 +45431,15 @@ class ReadThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount : public Mod chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBetterPartitionAttachAttemptCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster + .ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.BetterPartitionAttachAttemptCount response", value); + } }; class ReportThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount : public ModelCommand @@ -47679,11 +45507,7 @@ class ReadThreadNetworkDiagnosticsParentChangeCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsParentChangeCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsParentChangeCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -47691,14 +45515,14 @@ class ReadThreadNetworkDiagnosticsParentChangeCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeParentChangeCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ParentChangeCount response", value); + } }; class ReportThreadNetworkDiagnosticsParentChangeCount : public ModelCommand @@ -47766,11 +45590,7 @@ class ReadThreadNetworkDiagnosticsTxTotalCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxTotalCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxTotalCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -47778,14 +45598,14 @@ class ReadThreadNetworkDiagnosticsTxTotalCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxTotalCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxTotalCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxTotalCount : public ModelCommand @@ -47852,11 +45672,7 @@ class ReadThreadNetworkDiagnosticsTxUnicastCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxUnicastCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxUnicastCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -47864,14 +45680,14 @@ class ReadThreadNetworkDiagnosticsTxUnicastCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxUnicastCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxUnicastCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxUnicastCount : public ModelCommand @@ -47938,11 +45754,7 @@ class ReadThreadNetworkDiagnosticsTxBroadcastCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxBroadcastCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxBroadcastCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -47950,14 +45762,14 @@ class ReadThreadNetworkDiagnosticsTxBroadcastCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxBroadcastCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxBroadcastCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxBroadcastCount : public ModelCommand @@ -48024,11 +45836,7 @@ class ReadThreadNetworkDiagnosticsTxAckRequestedCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxAckRequestedCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxAckRequestedCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -48036,14 +45844,14 @@ class ReadThreadNetworkDiagnosticsTxAckRequestedCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxAckRequestedCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxAckRequestedCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxAckRequestedCount : public ModelCommand @@ -48111,11 +45919,7 @@ class ReadThreadNetworkDiagnosticsTxAckedCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxAckedCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxAckedCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -48123,14 +45927,14 @@ class ReadThreadNetworkDiagnosticsTxAckedCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxAckedCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxAckedCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxAckedCount : public ModelCommand @@ -48197,11 +46001,7 @@ class ReadThreadNetworkDiagnosticsTxNoAckRequestedCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxNoAckRequestedCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxNoAckRequestedCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -48209,14 +46009,14 @@ class ReadThreadNetworkDiagnosticsTxNoAckRequestedCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxNoAckRequestedCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxNoAckRequestedCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxNoAckRequestedCount : public ModelCommand @@ -48284,11 +46084,7 @@ class ReadThreadNetworkDiagnosticsTxDataCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxDataCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxDataCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -48296,14 +46092,14 @@ class ReadThreadNetworkDiagnosticsTxDataCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxDataCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxDataCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxDataCount : public ModelCommand @@ -48370,11 +46166,7 @@ class ReadThreadNetworkDiagnosticsTxDataPollCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxDataPollCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxDataPollCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -48382,14 +46174,14 @@ class ReadThreadNetworkDiagnosticsTxDataPollCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxDataPollCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxDataPollCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxDataPollCount : public ModelCommand @@ -48445,210 +46237,198 @@ class ReportThreadNetworkDiagnosticsTxDataPollCount : public ModelCommand }; /* - * Attribute TxBeaconCount - */ -class ReadThreadNetworkDiagnosticsTxBeaconCount : public ModelCommand -{ -public: - ReadThreadNetworkDiagnosticsTxBeaconCount() : ModelCommand("read") - { - AddArgument("attr-name", "tx-beacon-count"); - ModelCommand::AddArguments(); - } - - ~ReadThreadNetworkDiagnosticsTxBeaconCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } - - CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); - - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxBeaconCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); - } - -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); -}; - -class ReportThreadNetworkDiagnosticsTxBeaconCount : public ModelCommand -{ -public: - ReportThreadNetworkDiagnosticsTxBeaconCount() : ModelCommand("report") - { - AddArgument("attr-name", "tx-beacon-count"); - AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval); - AddArgument("max-interval", 0, UINT16_MAX, &mMaxInterval); - AddArgument("wait", 0, 1, &mWait); - ModelCommand::AddArguments(); - } - - ~ReportThreadNetworkDiagnosticsTxBeaconCount() - { - delete onSuccessCallback; - delete onSuccessCallbackWithoutExit; - delete onFailureCallback; - delete onReportCallback; - } - - CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); - - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, endpointId); - - ReturnErrorOnFailure(cluster.ReportAttributeTxBeaconCount(onReportCallback->Cancel())); - - chip::Callback::Cancelable * successCallback = mWait ? onSuccessCallbackWithoutExit->Cancel() : onSuccessCallback->Cancel(); - return cluster.SubscribeAttributeTxBeaconCount(successCallback, onFailureCallback->Cancel(), mMinInterval, mMaxInterval); - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } - -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnDefaultSuccessResponse, this); - chip::Callback::Callback * onSuccessCallbackWithoutExit = - new chip::Callback::Callback(OnDefaultSuccessResponseWithoutExit, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); - chip::Callback::Callback * onReportCallback = - new chip::Callback::Callback(OnInt32uAttributeReport, this); - uint16_t mMinInterval; - uint16_t mMaxInterval; - bool mWait; -}; - -/* - * Attribute TxBeaconRequestCount - */ -class ReadThreadNetworkDiagnosticsTxBeaconRequestCount : public ModelCommand -{ -public: - ReadThreadNetworkDiagnosticsTxBeaconRequestCount() : ModelCommand("read") - { - AddArgument("attr-name", "tx-beacon-request-count"); - ModelCommand::AddArguments(); - } - - ~ReadThreadNetworkDiagnosticsTxBeaconRequestCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } - - CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); - - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxBeaconRequestCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); - } - -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); -}; - -class ReportThreadNetworkDiagnosticsTxBeaconRequestCount : public ModelCommand -{ -public: - ReportThreadNetworkDiagnosticsTxBeaconRequestCount() : ModelCommand("report") - { - AddArgument("attr-name", "tx-beacon-request-count"); - AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval); - AddArgument("max-interval", 0, UINT16_MAX, &mMaxInterval); - AddArgument("wait", 0, 1, &mWait); - ModelCommand::AddArguments(); - } - - ~ReportThreadNetworkDiagnosticsTxBeaconRequestCount() - { - delete onSuccessCallback; - delete onSuccessCallbackWithoutExit; - delete onFailureCallback; - delete onReportCallback; - } - - CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); - - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, endpointId); - - ReturnErrorOnFailure(cluster.ReportAttributeTxBeaconRequestCount(onReportCallback->Cancel())); - - chip::Callback::Cancelable * successCallback = mWait ? onSuccessCallbackWithoutExit->Cancel() : onSuccessCallback->Cancel(); - return cluster.SubscribeAttributeTxBeaconRequestCount(successCallback, onFailureCallback->Cancel(), mMinInterval, - mMaxInterval); - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } - -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnDefaultSuccessResponse, this); - chip::Callback::Callback * onSuccessCallbackWithoutExit = - new chip::Callback::Callback(OnDefaultSuccessResponseWithoutExit, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); - chip::Callback::Callback * onReportCallback = - new chip::Callback::Callback(OnInt32uAttributeReport, this); - uint16_t mMinInterval; - uint16_t mMaxInterval; - bool mWait; -}; - -/* - * Attribute TxOtherCount + * Attribute TxBeaconCount */ -class ReadThreadNetworkDiagnosticsTxOtherCount : public ModelCommand +class ReadThreadNetworkDiagnosticsTxBeaconCount : public ModelCommand { public: - ReadThreadNetworkDiagnosticsTxOtherCount() : ModelCommand("read") + ReadThreadNetworkDiagnosticsTxBeaconCount() : ModelCommand("read") { - AddArgument("attr-name", "tx-other-count"); + AddArgument("attr-name", "tx-beacon-count"); ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxOtherCount() + ~ReadThreadNetworkDiagnosticsTxBeaconCount() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + + chip::Controller::ThreadNetworkDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); + } + + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxBeaconCount response", value); + } +}; + +class ReportThreadNetworkDiagnosticsTxBeaconCount : public ModelCommand +{ +public: + ReportThreadNetworkDiagnosticsTxBeaconCount() : ModelCommand("report") + { + AddArgument("attr-name", "tx-beacon-count"); + AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval); + AddArgument("max-interval", 0, UINT16_MAX, &mMaxInterval); + AddArgument("wait", 0, 1, &mWait); + ModelCommand::AddArguments(); + } + + ~ReportThreadNetworkDiagnosticsTxBeaconCount() { delete onSuccessCallback; + delete onSuccessCallbackWithoutExit; delete onFailureCallback; + delete onReportCallback; + } + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + + chip::Controller::ThreadNetworkDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + + ReturnErrorOnFailure(cluster.ReportAttributeTxBeaconCount(onReportCallback->Cancel())); + + chip::Callback::Cancelable * successCallback = mWait ? onSuccessCallbackWithoutExit->Cancel() : onSuccessCallback->Cancel(); + return cluster.SubscribeAttributeTxBeaconCount(successCallback, onFailureCallback->Cancel(), mMinInterval, mMaxInterval); + } + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); + } + +private: + chip::Callback::Callback * onSuccessCallback = + new chip::Callback::Callback(OnDefaultSuccessResponse, this); + chip::Callback::Callback * onSuccessCallbackWithoutExit = + new chip::Callback::Callback(OnDefaultSuccessResponseWithoutExit, this); + chip::Callback::Callback * onFailureCallback = + new chip::Callback::Callback(OnDefaultFailureResponse, this); + chip::Callback::Callback * onReportCallback = + new chip::Callback::Callback(OnInt32uAttributeReport, this); + uint16_t mMinInterval; + uint16_t mMaxInterval; + bool mWait; +}; + +/* + * Attribute TxBeaconRequestCount + */ +class ReadThreadNetworkDiagnosticsTxBeaconRequestCount : public ModelCommand +{ +public: + ReadThreadNetworkDiagnosticsTxBeaconRequestCount() : ModelCommand("read") + { + AddArgument("attr-name", "tx-beacon-request-count"); + ModelCommand::AddArguments(); } + ~ReadThreadNetworkDiagnosticsTxBeaconRequestCount() {} + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxOtherCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); + } + + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxBeaconRequestCount response", value); + } +}; + +class ReportThreadNetworkDiagnosticsTxBeaconRequestCount : public ModelCommand +{ +public: + ReportThreadNetworkDiagnosticsTxBeaconRequestCount() : ModelCommand("report") + { + AddArgument("attr-name", "tx-beacon-request-count"); + AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval); + AddArgument("max-interval", 0, UINT16_MAX, &mMaxInterval); + AddArgument("wait", 0, 1, &mWait); + ModelCommand::AddArguments(); + } + + ~ReportThreadNetworkDiagnosticsTxBeaconRequestCount() + { + delete onSuccessCallback; + delete onSuccessCallbackWithoutExit; + delete onFailureCallback; + delete onReportCallback; + } + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + + chip::Controller::ThreadNetworkDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + + ReturnErrorOnFailure(cluster.ReportAttributeTxBeaconRequestCount(onReportCallback->Cancel())); + + chip::Callback::Cancelable * successCallback = mWait ? onSuccessCallbackWithoutExit->Cancel() : onSuccessCallback->Cancel(); + return cluster.SubscribeAttributeTxBeaconRequestCount(successCallback, onFailureCallback->Cancel(), mMinInterval, + mMaxInterval); + } + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); } private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); + chip::Callback::Callback * onSuccessCallback = + new chip::Callback::Callback(OnDefaultSuccessResponse, this); + chip::Callback::Callback * onSuccessCallbackWithoutExit = + new chip::Callback::Callback(OnDefaultSuccessResponseWithoutExit, this); chip::Callback::Callback * onFailureCallback = new chip::Callback::Callback(OnDefaultFailureResponse, this); + chip::Callback::Callback * onReportCallback = + new chip::Callback::Callback(OnInt32uAttributeReport, this); + uint16_t mMinInterval; + uint16_t mMaxInterval; + bool mWait; +}; + +/* + * Attribute TxOtherCount + */ +class ReadThreadNetworkDiagnosticsTxOtherCount : public ModelCommand +{ +public: + ReadThreadNetworkDiagnosticsTxOtherCount() : ModelCommand("read") + { + AddArgument("attr-name", "tx-other-count"); + ModelCommand::AddArguments(); + } + + ~ReadThreadNetworkDiagnosticsTxOtherCount() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + + chip::Controller::ThreadNetworkDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); + } + + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxOtherCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxOtherCount : public ModelCommand @@ -48715,11 +46495,7 @@ class ReadThreadNetworkDiagnosticsTxRetryCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxRetryCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxRetryCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -48727,14 +46503,14 @@ class ReadThreadNetworkDiagnosticsTxRetryCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxRetryCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxRetryCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxRetryCount : public ModelCommand @@ -48801,11 +46577,7 @@ class ReadThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount : public ModelComm ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -48813,14 +46585,15 @@ class ReadThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount : public ModelComm chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxDirectMaxRetryExpiryCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster + .ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxDirectMaxRetryExpiryCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount : public ModelCommand @@ -48888,11 +46661,7 @@ class ReadThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount : public ModelCo ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -48900,14 +46669,15 @@ class ReadThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount : public ModelCo chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxIndirectMaxRetryExpiryCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster + .ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxIndirectMaxRetryExpiryCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount : public ModelCommand @@ -48975,11 +46745,7 @@ class ReadThreadNetworkDiagnosticsTxErrCcaCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxErrCcaCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxErrCcaCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -48987,14 +46753,14 @@ class ReadThreadNetworkDiagnosticsTxErrCcaCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxErrCcaCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxErrCcaCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxErrCcaCount : public ModelCommand @@ -49061,11 +46827,7 @@ class ReadThreadNetworkDiagnosticsTxErrAbortCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxErrAbortCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxErrAbortCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -49073,14 +46835,14 @@ class ReadThreadNetworkDiagnosticsTxErrAbortCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxErrAbortCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxErrAbortCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxErrAbortCount : public ModelCommand @@ -49147,11 +46909,7 @@ class ReadThreadNetworkDiagnosticsTxErrBusyChannelCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsTxErrBusyChannelCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsTxErrBusyChannelCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -49159,14 +46917,14 @@ class ReadThreadNetworkDiagnosticsTxErrBusyChannelCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTxErrBusyChannelCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxErrBusyChannelCount response", value); + } }; class ReportThreadNetworkDiagnosticsTxErrBusyChannelCount : public ModelCommand @@ -49234,11 +46992,7 @@ class ReadThreadNetworkDiagnosticsRxTotalCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxTotalCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxTotalCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -49246,14 +47000,14 @@ class ReadThreadNetworkDiagnosticsRxTotalCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxTotalCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxTotalCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxTotalCount : public ModelCommand @@ -49320,11 +47074,7 @@ class ReadThreadNetworkDiagnosticsRxUnicastCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxUnicastCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxUnicastCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -49332,14 +47082,14 @@ class ReadThreadNetworkDiagnosticsRxUnicastCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxUnicastCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxUnicastCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxUnicastCount : public ModelCommand @@ -49406,11 +47156,7 @@ class ReadThreadNetworkDiagnosticsRxBroadcastCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxBroadcastCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxBroadcastCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -49418,14 +47164,14 @@ class ReadThreadNetworkDiagnosticsRxBroadcastCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxBroadcastCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxBroadcastCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxBroadcastCount : public ModelCommand @@ -49492,11 +47238,7 @@ class ReadThreadNetworkDiagnosticsRxDataCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxDataCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxDataCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -49504,14 +47246,14 @@ class ReadThreadNetworkDiagnosticsRxDataCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxDataCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxDataCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxDataCount : public ModelCommand @@ -49578,11 +47320,7 @@ class ReadThreadNetworkDiagnosticsRxDataPollCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxDataPollCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxDataPollCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -49590,14 +47328,14 @@ class ReadThreadNetworkDiagnosticsRxDataPollCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxDataPollCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxDataPollCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxDataPollCount : public ModelCommand @@ -49664,11 +47402,7 @@ class ReadThreadNetworkDiagnosticsRxBeaconCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxBeaconCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxBeaconCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -49676,14 +47410,14 @@ class ReadThreadNetworkDiagnosticsRxBeaconCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxBeaconCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxBeaconCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxBeaconCount : public ModelCommand @@ -49750,11 +47484,7 @@ class ReadThreadNetworkDiagnosticsRxBeaconRequestCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxBeaconRequestCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxBeaconRequestCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -49762,14 +47492,14 @@ class ReadThreadNetworkDiagnosticsRxBeaconRequestCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxBeaconRequestCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxBeaconRequestCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxBeaconRequestCount : public ModelCommand @@ -49837,11 +47567,7 @@ class ReadThreadNetworkDiagnosticsRxOtherCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxOtherCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxOtherCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -49849,14 +47575,14 @@ class ReadThreadNetworkDiagnosticsRxOtherCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxOtherCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxOtherCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxOtherCount : public ModelCommand @@ -49923,11 +47649,7 @@ class ReadThreadNetworkDiagnosticsRxAddressFilteredCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxAddressFilteredCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxAddressFilteredCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -49935,14 +47657,14 @@ class ReadThreadNetworkDiagnosticsRxAddressFilteredCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxAddressFilteredCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxAddressFilteredCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxAddressFilteredCount : public ModelCommand @@ -50010,11 +47732,7 @@ class ReadThreadNetworkDiagnosticsRxDestAddrFilteredCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxDestAddrFilteredCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxDestAddrFilteredCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -50022,14 +47740,14 @@ class ReadThreadNetworkDiagnosticsRxDestAddrFilteredCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxDestAddrFilteredCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxDestAddrFilteredCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxDestAddrFilteredCount : public ModelCommand @@ -50097,11 +47815,7 @@ class ReadThreadNetworkDiagnosticsRxDuplicatedCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxDuplicatedCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxDuplicatedCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -50109,14 +47823,14 @@ class ReadThreadNetworkDiagnosticsRxDuplicatedCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxDuplicatedCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxDuplicatedCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxDuplicatedCount : public ModelCommand @@ -50184,11 +47898,7 @@ class ReadThreadNetworkDiagnosticsRxErrNoFrameCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxErrNoFrameCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxErrNoFrameCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -50196,14 +47906,14 @@ class ReadThreadNetworkDiagnosticsRxErrNoFrameCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxErrNoFrameCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxErrNoFrameCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxErrNoFrameCount : public ModelCommand @@ -50271,11 +47981,7 @@ class ReadThreadNetworkDiagnosticsRxErrUnknownNeighborCount : public ModelComman ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxErrUnknownNeighborCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxErrUnknownNeighborCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -50283,14 +47989,15 @@ class ReadThreadNetworkDiagnosticsRxErrUnknownNeighborCount : public ModelComman chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxErrUnknownNeighborCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster + .ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxErrUnknownNeighborCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxErrUnknownNeighborCount : public ModelCommand @@ -50358,11 +48065,7 @@ class ReadThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -50370,14 +48073,14 @@ class ReadThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxErrInvalidSrcAddrCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxErrInvalidSrcAddrCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount : public ModelCommand @@ -50445,11 +48148,7 @@ class ReadThreadNetworkDiagnosticsRxErrSecCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxErrSecCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxErrSecCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -50457,14 +48156,14 @@ class ReadThreadNetworkDiagnosticsRxErrSecCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxErrSecCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxErrSecCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxErrSecCount : public ModelCommand @@ -50531,11 +48230,7 @@ class ReadThreadNetworkDiagnosticsRxErrFcsCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxErrFcsCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxErrFcsCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -50543,14 +48238,14 @@ class ReadThreadNetworkDiagnosticsRxErrFcsCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxErrFcsCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxErrFcsCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxErrFcsCount : public ModelCommand @@ -50617,11 +48312,7 @@ class ReadThreadNetworkDiagnosticsRxErrOtherCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsRxErrOtherCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsRxErrOtherCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -50629,14 +48320,14 @@ class ReadThreadNetworkDiagnosticsRxErrOtherCount : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRxErrOtherCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxErrOtherCount response", value); + } }; class ReportThreadNetworkDiagnosticsRxErrOtherCount : public ModelCommand @@ -50703,11 +48394,7 @@ class ReadThreadNetworkDiagnosticsActiveTimestamp : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsActiveTimestamp() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsActiveTimestamp() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -50715,14 +48402,14 @@ class ReadThreadNetworkDiagnosticsActiveTimestamp : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeActiveTimestamp(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ActiveTimestamp response", value); + } }; class ReportThreadNetworkDiagnosticsActiveTimestamp : public ModelCommand @@ -50789,11 +48476,7 @@ class ReadThreadNetworkDiagnosticsPendingTimestamp : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsPendingTimestamp() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsPendingTimestamp() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -50801,14 +48484,14 @@ class ReadThreadNetworkDiagnosticsPendingTimestamp : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePendingTimestamp(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.PendingTimestamp response", value); + } }; class ReportThreadNetworkDiagnosticsPendingTimestamp : public ModelCommand @@ -50875,11 +48558,7 @@ class ReadThreadNetworkDiagnosticsDelay : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsDelay() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsDelay() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -50887,14 +48566,14 @@ class ReadThreadNetworkDiagnosticsDelay : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeDelay(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.Delay response", value); + } }; class ReportThreadNetworkDiagnosticsDelay : public ModelCommand @@ -50961,11 +48640,7 @@ class ReadThreadNetworkDiagnosticsSecurityPolicy : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsSecurityPolicy() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsSecurityPolicy() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -50973,15 +48648,17 @@ class ReadThreadNetworkDiagnosticsSecurityPolicy : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSecurityPolicy(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnThreadNetworkDiagnosticsSecurityPolicyListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void + OnAttributeResponse(void * context, + const chip::app::DataModel::DecodableList< + chip::app::Clusters::ThreadNetworkDiagnostics::Structs::SecurityPolicy::DecodableType> & value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.SecurityPolicy response", value); + } }; /* @@ -50996,11 +48673,7 @@ class ReadThreadNetworkDiagnosticsChannelMask : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsChannelMask() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsChannelMask() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51008,14 +48681,14 @@ class ReadThreadNetworkDiagnosticsChannelMask : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeChannelMask(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::ByteSpan value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ChannelMask response", value); + } }; class ReportThreadNetworkDiagnosticsChannelMask : public ModelCommand @@ -51082,11 +48755,7 @@ class ReadThreadNetworkDiagnosticsOperationalDatasetComponents : public ModelCom ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsOperationalDatasetComponents() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsOperationalDatasetComponents() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51094,15 +48763,18 @@ class ReadThreadNetworkDiagnosticsOperationalDatasetComponents : public ModelCom chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOperationalDatasetComponents(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster + .ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnThreadNetworkDiagnosticsOperationalDatasetComponentsListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList< + chip::app::Clusters::ThreadNetworkDiagnostics::Structs::OperationalDatasetComponents::DecodableType> & value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.OperationalDatasetComponents response", value); + } }; /* @@ -51117,11 +48789,7 @@ class ReadThreadNetworkDiagnosticsActiveNetworkFaultsList : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsActiveNetworkFaultsList() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsActiveNetworkFaultsList() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51129,15 +48797,16 @@ class ReadThreadNetworkDiagnosticsActiveNetworkFaultsList : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeActiveNetworkFaultsList(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse( + void * context, + const chip::app::DataModel::DecodableList & value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ActiveNetworkFaultsList response", value); + } }; /* @@ -51152,11 +48821,7 @@ class ReadThreadNetworkDiagnosticsFeatureMap : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsFeatureMap() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsFeatureMap() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51164,14 +48829,14 @@ class ReadThreadNetworkDiagnosticsFeatureMap : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFeatureMap(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.FeatureMap response", value); + } }; /* @@ -51186,11 +48851,7 @@ class ReadThreadNetworkDiagnosticsClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadThreadNetworkDiagnosticsClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadThreadNetworkDiagnosticsClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51198,14 +48859,14 @@ class ReadThreadNetworkDiagnosticsClusterRevision : public ModelCommand chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ClusterRevision response", value); + } }; class ReportThreadNetworkDiagnosticsClusterRevision : public ModelCommand @@ -51282,11 +48943,7 @@ class ReadWakeOnLanWakeOnLanMacAddress : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWakeOnLanWakeOnLanMacAddress() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWakeOnLanWakeOnLanMacAddress() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51294,14 +48951,14 @@ class ReadWakeOnLanWakeOnLanMacAddress : public ModelCommand chip::Controller::WakeOnLanCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeWakeOnLanMacAddress(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::CharSpan value) + { + OnGeneralAttributeResponse(context, "WakeOnLan.WakeOnLanMacAddress response", value); + } }; class ReportWakeOnLanWakeOnLanMacAddress : public ModelCommand @@ -51369,11 +49026,7 @@ class ReadWakeOnLanClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWakeOnLanClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWakeOnLanClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51381,14 +49034,14 @@ class ReadWakeOnLanClusterRevision : public ModelCommand chip::Controller::WakeOnLanCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WakeOnLan.ClusterRevision response", value); + } }; class ReportWakeOnLanClusterRevision : public ModelCommand @@ -51499,11 +49152,7 @@ class ReadWiFiNetworkDiagnosticsBssid : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsBssid() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsBssid() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51511,14 +49160,14 @@ class ReadWiFiNetworkDiagnosticsBssid : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBssid(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, chip::ByteSpan value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.Bssid response", value); + } }; class ReportWiFiNetworkDiagnosticsBssid : public ModelCommand @@ -51585,11 +49234,7 @@ class ReadWiFiNetworkDiagnosticsSecurityType : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsSecurityType() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsSecurityType() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51597,14 +49242,14 @@ class ReadWiFiNetworkDiagnosticsSecurityType : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSecurityType(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.SecurityType response", value); + } }; class ReportWiFiNetworkDiagnosticsSecurityType : public ModelCommand @@ -51671,11 +49316,7 @@ class ReadWiFiNetworkDiagnosticsWiFiVersion : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsWiFiVersion() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsWiFiVersion() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51683,14 +49324,14 @@ class ReadWiFiNetworkDiagnosticsWiFiVersion : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeWiFiVersion(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.WiFiVersion response", value); + } }; class ReportWiFiNetworkDiagnosticsWiFiVersion : public ModelCommand @@ -51757,11 +49398,7 @@ class ReadWiFiNetworkDiagnosticsChannelNumber : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsChannelNumber() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsChannelNumber() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51769,14 +49406,14 @@ class ReadWiFiNetworkDiagnosticsChannelNumber : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeChannelNumber(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.ChannelNumber response", value); + } }; class ReportWiFiNetworkDiagnosticsChannelNumber : public ModelCommand @@ -51843,11 +49480,7 @@ class ReadWiFiNetworkDiagnosticsRssi : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsRssi() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsRssi() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51855,14 +49488,14 @@ class ReadWiFiNetworkDiagnosticsRssi : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeRssi(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8sAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, int8_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.Rssi response", value); + } }; class ReportWiFiNetworkDiagnosticsRssi : public ModelCommand @@ -51929,11 +49562,7 @@ class ReadWiFiNetworkDiagnosticsBeaconLostCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsBeaconLostCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsBeaconLostCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -51941,14 +49570,14 @@ class ReadWiFiNetworkDiagnosticsBeaconLostCount : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBeaconLostCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.BeaconLostCount response", value); + } }; class ReportWiFiNetworkDiagnosticsBeaconLostCount : public ModelCommand @@ -52015,11 +49644,7 @@ class ReadWiFiNetworkDiagnosticsBeaconRxCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsBeaconRxCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsBeaconRxCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -52027,14 +49652,14 @@ class ReadWiFiNetworkDiagnosticsBeaconRxCount : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeBeaconRxCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.BeaconRxCount response", value); + } }; class ReportWiFiNetworkDiagnosticsBeaconRxCount : public ModelCommand @@ -52101,11 +49726,7 @@ class ReadWiFiNetworkDiagnosticsPacketMulticastRxCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsPacketMulticastRxCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsPacketMulticastRxCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -52113,14 +49734,14 @@ class ReadWiFiNetworkDiagnosticsPacketMulticastRxCount : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePacketMulticastRxCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.PacketMulticastRxCount response", value); + } }; class ReportWiFiNetworkDiagnosticsPacketMulticastRxCount : public ModelCommand @@ -52188,11 +49809,7 @@ class ReadWiFiNetworkDiagnosticsPacketMulticastTxCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsPacketMulticastTxCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsPacketMulticastTxCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -52200,14 +49817,14 @@ class ReadWiFiNetworkDiagnosticsPacketMulticastTxCount : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePacketMulticastTxCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.PacketMulticastTxCount response", value); + } }; class ReportWiFiNetworkDiagnosticsPacketMulticastTxCount : public ModelCommand @@ -52275,11 +49892,7 @@ class ReadWiFiNetworkDiagnosticsPacketUnicastRxCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsPacketUnicastRxCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsPacketUnicastRxCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -52287,14 +49900,14 @@ class ReadWiFiNetworkDiagnosticsPacketUnicastRxCount : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePacketUnicastRxCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.PacketUnicastRxCount response", value); + } }; class ReportWiFiNetworkDiagnosticsPacketUnicastRxCount : public ModelCommand @@ -52362,11 +49975,7 @@ class ReadWiFiNetworkDiagnosticsPacketUnicastTxCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsPacketUnicastTxCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsPacketUnicastTxCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -52374,14 +49983,14 @@ class ReadWiFiNetworkDiagnosticsPacketUnicastTxCount : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributePacketUnicastTxCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.PacketUnicastTxCount response", value); + } }; class ReportWiFiNetworkDiagnosticsPacketUnicastTxCount : public ModelCommand @@ -52449,11 +50058,7 @@ class ReadWiFiNetworkDiagnosticsCurrentMaxRate : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsCurrentMaxRate() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsCurrentMaxRate() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -52461,14 +50066,14 @@ class ReadWiFiNetworkDiagnosticsCurrentMaxRate : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentMaxRate(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.CurrentMaxRate response", value); + } }; class ReportWiFiNetworkDiagnosticsCurrentMaxRate : public ModelCommand @@ -52535,11 +50140,7 @@ class ReadWiFiNetworkDiagnosticsOverrunCount : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsOverrunCount() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsOverrunCount() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -52547,14 +50148,14 @@ class ReadWiFiNetworkDiagnosticsOverrunCount : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOverrunCount(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint64_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.OverrunCount response", value); + } }; class ReportWiFiNetworkDiagnosticsOverrunCount : public ModelCommand @@ -52621,11 +50222,7 @@ class ReadWiFiNetworkDiagnosticsFeatureMap : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsFeatureMap() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsFeatureMap() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -52633,14 +50230,14 @@ class ReadWiFiNetworkDiagnosticsFeatureMap : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFeatureMap(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.FeatureMap response", value); + } }; /* @@ -52655,11 +50252,7 @@ class ReadWiFiNetworkDiagnosticsClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWiFiNetworkDiagnosticsClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWiFiNetworkDiagnosticsClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -52667,14 +50260,14 @@ class ReadWiFiNetworkDiagnosticsClusterRevision : public ModelCommand chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.ClusterRevision response", value); + } }; class ReportWiFiNetworkDiagnosticsClusterRevision : public ModelCommand @@ -52934,11 +50527,7 @@ class ReadWindowCoveringType : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringType() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringType() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -52946,14 +50535,14 @@ class ReadWindowCoveringType : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeType(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.Type response", value); + } }; class ReportWindowCoveringType : public ModelCommand @@ -53020,11 +50609,7 @@ class ReadWindowCoveringCurrentPositionLift : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringCurrentPositionLift() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringCurrentPositionLift() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -53032,14 +50617,14 @@ class ReadWindowCoveringCurrentPositionLift : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentPositionLift(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.CurrentPositionLift response", value); + } }; class ReportWindowCoveringCurrentPositionLift : public ModelCommand @@ -53107,11 +50692,7 @@ class ReadWindowCoveringCurrentPositionTilt : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringCurrentPositionTilt() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringCurrentPositionTilt() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -53119,14 +50700,14 @@ class ReadWindowCoveringCurrentPositionTilt : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentPositionTilt(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.CurrentPositionTilt response", value); + } }; class ReportWindowCoveringCurrentPositionTilt : public ModelCommand @@ -53194,11 +50775,7 @@ class ReadWindowCoveringConfigStatus : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringConfigStatus() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringConfigStatus() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -53206,14 +50783,14 @@ class ReadWindowCoveringConfigStatus : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeConfigStatus(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.ConfigStatus response", value); + } }; class ReportWindowCoveringConfigStatus : public ModelCommand @@ -53280,11 +50857,7 @@ class ReadWindowCoveringCurrentPositionLiftPercentage : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringCurrentPositionLiftPercentage() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringCurrentPositionLiftPercentage() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -53292,14 +50865,14 @@ class ReadWindowCoveringCurrentPositionLiftPercentage : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentPositionLiftPercentage(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.CurrentPositionLiftPercentage response", value); + } }; class ReportWindowCoveringCurrentPositionLiftPercentage : public ModelCommand @@ -53367,11 +50940,7 @@ class ReadWindowCoveringCurrentPositionTiltPercentage : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringCurrentPositionTiltPercentage() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringCurrentPositionTiltPercentage() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -53379,14 +50948,14 @@ class ReadWindowCoveringCurrentPositionTiltPercentage : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentPositionTiltPercentage(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.CurrentPositionTiltPercentage response", value); + } }; class ReportWindowCoveringCurrentPositionTiltPercentage : public ModelCommand @@ -53454,11 +51023,7 @@ class ReadWindowCoveringOperationalStatus : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringOperationalStatus() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringOperationalStatus() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -53466,14 +51031,14 @@ class ReadWindowCoveringOperationalStatus : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeOperationalStatus(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.OperationalStatus response", value); + } }; class ReportWindowCoveringOperationalStatus : public ModelCommand @@ -53541,11 +51106,7 @@ class ReadWindowCoveringTargetPositionLiftPercent100ths : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringTargetPositionLiftPercent100ths() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringTargetPositionLiftPercent100ths() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -53553,14 +51114,14 @@ class ReadWindowCoveringTargetPositionLiftPercent100ths : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTargetPositionLiftPercent100ths(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.TargetPositionLiftPercent100ths response", value); + } }; class ReportWindowCoveringTargetPositionLiftPercent100ths : public ModelCommand @@ -53628,11 +51189,7 @@ class ReadWindowCoveringTargetPositionTiltPercent100ths : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringTargetPositionTiltPercent100ths() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringTargetPositionTiltPercent100ths() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -53640,14 +51197,14 @@ class ReadWindowCoveringTargetPositionTiltPercent100ths : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeTargetPositionTiltPercent100ths(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.TargetPositionTiltPercent100ths response", value); + } }; class ReportWindowCoveringTargetPositionTiltPercent100ths : public ModelCommand @@ -53715,11 +51272,7 @@ class ReadWindowCoveringEndProductType : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringEndProductType() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringEndProductType() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -53727,14 +51280,14 @@ class ReadWindowCoveringEndProductType : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeEndProductType(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.EndProductType response", value); + } }; class ReportWindowCoveringEndProductType : public ModelCommand @@ -53801,11 +51354,7 @@ class ReadWindowCoveringCurrentPositionLiftPercent100ths : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringCurrentPositionLiftPercent100ths() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringCurrentPositionLiftPercent100ths() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -53813,14 +51362,14 @@ class ReadWindowCoveringCurrentPositionLiftPercent100ths : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentPositionLiftPercent100ths(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.CurrentPositionLiftPercent100ths response", value); + } }; class ReportWindowCoveringCurrentPositionLiftPercent100ths : public ModelCommand @@ -53888,11 +51437,7 @@ class ReadWindowCoveringCurrentPositionTiltPercent100ths : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringCurrentPositionTiltPercent100ths() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringCurrentPositionTiltPercent100ths() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -53900,14 +51445,14 @@ class ReadWindowCoveringCurrentPositionTiltPercent100ths : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeCurrentPositionTiltPercent100ths(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.CurrentPositionTiltPercent100ths response", value); + } }; class ReportWindowCoveringCurrentPositionTiltPercent100ths : public ModelCommand @@ -53975,11 +51520,7 @@ class ReadWindowCoveringInstalledOpenLimitLift : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringInstalledOpenLimitLift() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringInstalledOpenLimitLift() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -53987,14 +51528,14 @@ class ReadWindowCoveringInstalledOpenLimitLift : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInstalledOpenLimitLift(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.InstalledOpenLimitLift response", value); + } }; class ReportWindowCoveringInstalledOpenLimitLift : public ModelCommand @@ -54062,11 +51603,7 @@ class ReadWindowCoveringInstalledClosedLimitLift : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringInstalledClosedLimitLift() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringInstalledClosedLimitLift() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -54074,14 +51611,14 @@ class ReadWindowCoveringInstalledClosedLimitLift : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInstalledClosedLimitLift(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.InstalledClosedLimitLift response", value); + } }; class ReportWindowCoveringInstalledClosedLimitLift : public ModelCommand @@ -54149,11 +51686,7 @@ class ReadWindowCoveringInstalledOpenLimitTilt : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringInstalledOpenLimitTilt() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringInstalledOpenLimitTilt() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -54161,14 +51694,14 @@ class ReadWindowCoveringInstalledOpenLimitTilt : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInstalledOpenLimitTilt(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.InstalledOpenLimitTilt response", value); + } }; class ReportWindowCoveringInstalledOpenLimitTilt : public ModelCommand @@ -54236,11 +51769,7 @@ class ReadWindowCoveringInstalledClosedLimitTilt : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringInstalledClosedLimitTilt() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringInstalledClosedLimitTilt() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -54248,14 +51777,14 @@ class ReadWindowCoveringInstalledClosedLimitTilt : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeInstalledClosedLimitTilt(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.InstalledClosedLimitTilt response", value); + } }; class ReportWindowCoveringInstalledClosedLimitTilt : public ModelCommand @@ -54323,11 +51852,7 @@ class ReadWindowCoveringMode : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringMode() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringMode() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -54335,14 +51860,14 @@ class ReadWindowCoveringMode : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeMode(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute(this, OnAttributeResponse, + OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint8_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.Mode response", value); + } }; class WriteWindowCoveringMode : public ModelCommand @@ -54435,11 +51960,7 @@ class ReadWindowCoveringSafetyStatus : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringSafetyStatus() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringSafetyStatus() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -54447,14 +51968,14 @@ class ReadWindowCoveringSafetyStatus : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeSafetyStatus(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.SafetyStatus response", value); + } }; class ReportWindowCoveringSafetyStatus : public ModelCommand @@ -54521,11 +52042,7 @@ class ReadWindowCoveringFeatureMap : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringFeatureMap() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringFeatureMap() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -54533,14 +52050,14 @@ class ReadWindowCoveringFeatureMap : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeFeatureMap(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint32_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.FeatureMap response", value); + } }; class ReportWindowCoveringFeatureMap : public ModelCommand @@ -54607,11 +52124,7 @@ class ReadWindowCoveringClusterRevision : public ModelCommand ModelCommand::AddArguments(); } - ~ReadWindowCoveringClusterRevision() - { - delete onSuccessCallback; - delete onFailureCallback; - } + ~ReadWindowCoveringClusterRevision() {} CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { @@ -54619,14 +52132,14 @@ class ReadWindowCoveringClusterRevision : public ModelCommand chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); - return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); + return cluster.ReadAttribute( + this, OnAttributeResponse, OnDefaultFailure); } -private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onFailureCallback = - new chip::Callback::Callback(OnDefaultFailureResponse, this); + static void OnAttributeResponse(void * context, uint16_t value) + { + OnGeneralAttributeResponse(context, "WindowCovering.ClusterRevision response", value); + } }; class ReportWindowCoveringClusterRevision : public ModelCommand diff --git a/zzz_generated/chip-tool/zap-generated/reporting/Commands.h b/zzz_generated/chip-tool/zap-generated/reporting/Commands.h index 287318c8a1ca9a..ba98f5abae0929 100644 --- a/zzz_generated/chip-tool/zap-generated/reporting/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/reporting/Commands.h @@ -19,6 +19,7 @@ #pragma once +#include "../cluster/Commands.h" // For the LogValue bits and read callbacks #include typedef void (*UnsupportedAttributeCallback)(void * context); @@ -1699,972 +1700,1765 @@ class Listen : public ReportingCommand BasicAttributeFilter); } - static void OnDefaultSuccessResponse(void * context) { ChipLogProgress(chipTool, "Default Success Response"); } - - static void OnDefaultFailureResponse(void * context, uint8_t status) - { - ChipLogProgress(chipTool, "Default Failure Response: 0x%02x", status); - } - - static void OnUnsupportedAttributeResponse(void * context) - { - ChipLogError(chipTool, "Unsupported attribute Response. This should never happen !"); - } - - static void OnBooleanAttributeResponse(void * context, bool value) - { - ChipLogProgress(chipTool, "Boolean attribute Response: %d", value); - } - - static void OnInt8uAttributeResponse(void * context, uint8_t value) - { - ChipLogProgress(chipTool, "Int8u attribute Response: %" PRIu8, value); - } - - static void OnInt16uAttributeResponse(void * context, uint16_t value) - { - ChipLogProgress(chipTool, "Int16u attribute Response: %" PRIu16, value); - } - - static void OnInt16sAttributeResponse(void * context, int16_t value) - { - ChipLogProgress(chipTool, "Int16s attribute Response: %" PRId16, value); - } - private: - chip::Callback::Callback * onReportAccountLoginClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportAdministratorCommissioningClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportApplicationBasicVendorNameCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportApplicationBasicVendorIdCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportApplicationBasicApplicationNameCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportApplicationBasicProductIdCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportApplicationBasicApplicationIdCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportApplicationBasicCatalogVendorIdCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportApplicationBasicApplicationStatusCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportApplicationBasicClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportApplicationLauncherCatalogVendorIdCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportApplicationLauncherApplicationIdCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportApplicationLauncherClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportAudioOutputCurrentAudioOutputCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportAudioOutputClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportBarrierControlBarrierMovingStateCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportBarrierControlBarrierSafetyStatusCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportBarrierControlBarrierCapabilitiesCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportBarrierControlBarrierPositionCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportBarrierControlClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportBasicInteractionModelVersionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportBasicVendorNameCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportBasicVendorIDCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportBasicProductNameCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportBasicProductIDCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportBasicNodeLabelCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportBasicLocationCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportBasicHardwareVersionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportBasicHardwareVersionStringCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportBasicSoftwareVersionCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportBasicSoftwareVersionStringCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportBasicManufacturingDateCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportBasicPartNumberCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportBasicProductURLCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportBasicProductLabelCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportBasicSerialNumberCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportBasicLocalConfigDisabledCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportBasicReachableCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportBasicClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportBinaryInputBasicOutOfServiceCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportBinaryInputBasicPresentValueCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportBinaryInputBasicStatusFlagsCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportBinaryInputBasicClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportBindingClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportBooleanStateStateValueCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportBooleanStateClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportBridgedActionsSetupUrlCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportBridgedActionsClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportBridgedDeviceBasicClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlCurrentHueCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlCurrentSaturationCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlRemainingTimeCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlCurrentXCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlCurrentYCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlDriftCompensationCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlCompensationTextCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorTemperatureCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorModeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorControlOptionsCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlNumberOfPrimariesCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary1XCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary1YCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary1IntensityCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary2XCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary2YCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary2IntensityCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary3XCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary3YCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary3IntensityCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary4XCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary4YCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary4IntensityCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary5XCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary5YCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary5IntensityCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary6XCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary6YCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary6IntensityCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlWhitePointXCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlWhitePointYCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorPointRXCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorPointRYCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorPointRIntensityCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorPointGXCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorPointGYCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorPointGIntensityCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorPointBXCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorPointBYCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorPointBIntensityCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlEnhancedCurrentHueCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlEnhancedColorModeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorLoopActiveCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorLoopDirectionCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorLoopTimeCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorLoopStartEnhancedHueCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorLoopStoredEnhancedHueCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorCapabilitiesCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorTempPhysicalMinCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorTempPhysicalMaxCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlCoupleColorTempToLevelMinMiredsCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlStartUpColorTemperatureMiredsCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportColorControlClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportContentLauncherClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportDescriptorClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportDoorLockActuatorEnabledCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportDoorLockClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportElectricalMeasurementMeasurementTypeCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportElectricalMeasurementTotalActivePowerCallback = - new chip::Callback::Callback(OnInt32sAttributeResponse, this); - chip::Callback::Callback * onReportElectricalMeasurementRmsVoltageCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportElectricalMeasurementRmsVoltageMinCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportElectricalMeasurementRmsVoltageMaxCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportElectricalMeasurementRmsCurrentCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportElectricalMeasurementRmsCurrentMinCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportElectricalMeasurementRmsCurrentMaxCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportElectricalMeasurementActivePowerCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportElectricalMeasurementActivePowerMinCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportElectricalMeasurementActivePowerMaxCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportElectricalMeasurementClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportEthernetNetworkDiagnosticsPHYRateCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportEthernetNetworkDiagnosticsFullDuplexCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportEthernetNetworkDiagnosticsPacketRxCountCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportEthernetNetworkDiagnosticsPacketTxCountCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportEthernetNetworkDiagnosticsTxErrCountCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportEthernetNetworkDiagnosticsCollisionCountCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportEthernetNetworkDiagnosticsOverrunCountCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportEthernetNetworkDiagnosticsCarrierDetectCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportEthernetNetworkDiagnosticsTimeSinceResetCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportEthernetNetworkDiagnosticsClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportFixedLabelClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportFlowMeasurementMeasuredValueCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportFlowMeasurementMinMeasuredValueCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportFlowMeasurementMaxMeasuredValueCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportFlowMeasurementToleranceCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportFlowMeasurementClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportGeneralCommissioningBreadcrumbCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportGeneralCommissioningClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportGeneralDiagnosticsRebootCountCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportGeneralDiagnosticsUpTimeCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportGeneralDiagnosticsTotalOperationalHoursCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportGeneralDiagnosticsBootReasonsCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportGeneralDiagnosticsClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportGroupKeyManagementClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportGroupsNameSupportCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportGroupsClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportIdentifyIdentifyTimeCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportIdentifyIdentifyTypeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportIdentifyClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportIlluminanceMeasurementMeasuredValueCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportIlluminanceMeasurementMinMeasuredValueCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportIlluminanceMeasurementMaxMeasuredValueCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportIlluminanceMeasurementToleranceCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportIlluminanceMeasurementLightSensorTypeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportIlluminanceMeasurementClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportKeypadInputClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlCurrentLevelCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlRemainingTimeCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlMinLevelCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlMaxLevelCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlCurrentFrequencyCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlMinFrequencyCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlMaxFrequencyCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlOptionsCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlOnOffTransitionTimeCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlOnLevelCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlOnTransitionTimeCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlOffTransitionTimeCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlDefaultMoveRateCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlStartUpCurrentLevelCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportLowPowerClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportMediaInputCurrentMediaInputCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportMediaInputClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportMediaPlaybackPlaybackStateCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportMediaPlaybackStartTimeCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportMediaPlaybackDurationCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportMediaPlaybackPositionUpdatedAtCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportMediaPlaybackPositionCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportMediaPlaybackPlaybackSpeedCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportMediaPlaybackSeekRangeEndCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportMediaPlaybackSeekRangeStartCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportMediaPlaybackClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportModeSelectCurrentModeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportModeSelectOnModeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportModeSelectStartUpModeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportModeSelectDescriptionCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportModeSelectClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportNetworkCommissioningFeatureMapCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportNetworkCommissioningClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportOtaSoftwareUpdateProviderClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportOtaSoftwareUpdateRequestorDefaultOtaProviderCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onReportOtaSoftwareUpdateRequestorUpdatePossibleCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportOtaSoftwareUpdateRequestorClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportOccupancySensingOccupancyCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportOccupancySensingOccupancySensorTypeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportOccupancySensingOccupancySensorTypeBitmapCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportOccupancySensingClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportOnOffOnOffCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportOnOffGlobalSceneControlCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportOnOffOnTimeCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportOnOffOffWaitTimeCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportOnOffStartUpOnOffCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportOnOffFeatureMapCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportOnOffClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportOnOffSwitchConfigurationSwitchTypeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportOnOffSwitchConfigurationSwitchActionsCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportOnOffSwitchConfigurationClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportOperationalCredentialsSupportedFabricsCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportOperationalCredentialsCommissionedFabricsCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportOperationalCredentialsCurrentFabricIndexCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportOperationalCredentialsClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceStatusCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceOrderCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceDescriptionCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceBatteryVoltageCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceBatteryPercentRemainingCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceBatteryTimeRemainingCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceBatteryChargeLevelCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceBatteryChargeStateCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceFeatureMapCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportPressureMeasurementMeasuredValueCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportPressureMeasurementMinMeasuredValueCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportPressureMeasurementMaxMeasuredValueCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportPressureMeasurementClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMaxPressureCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMaxSpeedCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMaxFlowCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMinConstPressureCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMaxConstPressureCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMinCompPressureCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMaxCompPressureCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMinConstSpeedCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMaxConstSpeedCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMinConstFlowCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMaxConstFlowCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMinConstTempCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlMaxConstTempCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlPumpStatusCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlEffectiveOperationModeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlEffectiveControlModeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlCapacityCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlSpeedCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlLifetimeRunningHoursCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlPowerCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlLifetimeEnergyConsumedCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlOperationModeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlControlModeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlAlarmMaskCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlFeatureMapCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportPumpConfigurationAndControlClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportRelativeHumidityMeasurementMeasuredValueCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportRelativeHumidityMeasurementMinMeasuredValueCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportRelativeHumidityMeasurementMaxMeasuredValueCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportRelativeHumidityMeasurementToleranceCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportRelativeHumidityMeasurementClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportScenesSceneCountCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportScenesCurrentSceneCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportScenesCurrentGroupCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportScenesSceneValidCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportScenesNameSupportCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportScenesClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportSoftwareDiagnosticsCurrentHeapFreeCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportSoftwareDiagnosticsCurrentHeapUsedCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportSoftwareDiagnosticsCurrentHeapHighWatermarkCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportSoftwareDiagnosticsClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportSwitchNumberOfPositionsCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportSwitchCurrentPositionCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportSwitchMultiPressMaxCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportSwitchFeatureMapCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportSwitchClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTvChannelTvChannelLineupCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onReportTvChannelCurrentTvChannelCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onReportTvChannelClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTargetNavigatorClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTemperatureMeasurementMeasuredValueCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportTemperatureMeasurementMinMeasuredValueCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportTemperatureMeasurementMaxMeasuredValueCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportTemperatureMeasurementToleranceCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTemperatureMeasurementClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterBooleanCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterBitmap8Callback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterBitmap16Callback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterBitmap32Callback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterBitmap64Callback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt8uCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt16uCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt24uCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt32uCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt40uCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt48uCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt56uCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt64uCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt8sCallback = - new chip::Callback::Callback(OnInt8sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt16sCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt24sCallback = - new chip::Callback::Callback(OnInt32sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt32sCallback = - new chip::Callback::Callback(OnInt32sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt40sCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt48sCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt56sCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt64sCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterEnum8Callback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterEnum16Callback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterFloatSingleCallback = - new chip::Callback::Callback(OnFloatAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterFloatDoubleCallback = - new chip::Callback::Callback(OnDoubleAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterOctetStringCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterLongOctetStringCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterCharStringCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterLongCharStringCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterEpochUsCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterEpochSCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterVendorIdCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterRangeRestrictedInt8uCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterRangeRestrictedInt8sCallback = - new chip::Callback::Callback(OnInt8sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterRangeRestrictedInt16uCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterRangeRestrictedInt16sCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterUnsupportedCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableBooleanCallback = - new chip::Callback::Callback(OnBooleanAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableBitmap8Callback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableBitmap16Callback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableBitmap32Callback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableBitmap64Callback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt8uCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt16uCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt24uCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt32uCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt40uCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt48uCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt56uCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt64uCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt8sCallback = - new chip::Callback::Callback(OnInt8sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt16sCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt24sCallback = - new chip::Callback::Callback(OnInt32sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt32sCallback = - new chip::Callback::Callback(OnInt32sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt40sCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt48sCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt56sCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableInt64sCallback = - new chip::Callback::Callback(OnInt64sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableEnum8Callback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableEnum16Callback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableFloatSingleCallback = - new chip::Callback::Callback(OnFloatAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableFloatDoubleCallback = - new chip::Callback::Callback(OnDoubleAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableOctetStringCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableCharStringCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableRangeRestrictedInt8uCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableRangeRestrictedInt8sCallback = - new chip::Callback::Callback(OnInt8sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableRangeRestrictedInt16uCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterNullableRangeRestrictedInt16sCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThermostatLocalTemperatureCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportThermostatAbsMinHeatSetpointLimitCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportThermostatAbsMaxHeatSetpointLimitCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportThermostatAbsMinCoolSetpointLimitCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportThermostatAbsMaxCoolSetpointLimitCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportThermostatOccupiedCoolingSetpointCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportThermostatOccupiedHeatingSetpointCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportThermostatMinHeatSetpointLimitCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportThermostatMaxHeatSetpointLimitCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportThermostatMinCoolSetpointLimitCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportThermostatMaxCoolSetpointLimitCallback = - new chip::Callback::Callback(OnInt16sAttributeResponse, this); - chip::Callback::Callback * onReportThermostatMinSetpointDeadBandCallback = - new chip::Callback::Callback(OnInt8sAttributeResponse, this); - chip::Callback::Callback * onReportThermostatControlSequenceOfOperationCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportThermostatSystemModeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportThermostatStartOfWeekCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportThermostatNumberOfWeeklyTransitionsCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportThermostatNumberOfDailyTransitionsCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportThermostatFeatureMapCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThermostatClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThermostatUserInterfaceConfigurationTemperatureDisplayModeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportThermostatUserInterfaceConfigurationKeypadLockoutCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportThermostatUserInterfaceConfigurationClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsChannelCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRoutingRoleCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsNetworkNameCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsPanIdCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsExtendedPanIdCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsMeshLocalPrefixCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsOverrunCountCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsPartitionIdCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsWeightingCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsDataVersionCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsStableDataVersionCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsLeaderRouterIdCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsDetachedRoleCountCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsChildRoleCountCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRouterRoleCountCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsLeaderRoleCountCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsAttachAttemptCountCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsPartitionIdChangeCountCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsBetterPartitionAttachAttemptCountCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsParentChangeCountCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxTotalCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxUnicastCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxBroadcastCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxAckRequestedCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxAckedCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxNoAckRequestedCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxDataCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxDataPollCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxBeaconCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxBeaconRequestCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxOtherCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxRetryCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxErrCcaCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxErrAbortCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsTxErrBusyChannelCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxTotalCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxUnicastCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxBroadcastCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxDataCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxDataPollCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxBeaconCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxBeaconRequestCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxOtherCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxAddressFilteredCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxDestAddrFilteredCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxDuplicatedCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxErrNoFrameCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxErrUnknownNeighborCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxErrInvalidSrcAddrCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxErrSecCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxErrFcsCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsRxErrOtherCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsActiveTimestampCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsPendingTimestampCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsDelayCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsChannelMaskCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onReportThreadNetworkDiagnosticsClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWakeOnLanWakeOnLanMacAddressCallback = - new chip::Callback::Callback(OnCharStringAttributeResponse, this); - chip::Callback::Callback * onReportWakeOnLanClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsBssidCallback = - new chip::Callback::Callback(OnOctetStringAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsSecurityTypeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsWiFiVersionCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsChannelNumberCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsRssiCallback = - new chip::Callback::Callback(OnInt8sAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsBeaconLostCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsBeaconRxCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsPacketMulticastRxCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsPacketMulticastTxCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsPacketUnicastRxCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsPacketUnicastTxCountCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsCurrentMaxRateCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsOverrunCountCallback = - new chip::Callback::Callback(OnInt64uAttributeResponse, this); - chip::Callback::Callback * onReportWiFiNetworkDiagnosticsClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringTypeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringCurrentPositionLiftCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringCurrentPositionTiltCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringConfigStatusCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringCurrentPositionLiftPercentageCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringCurrentPositionTiltPercentageCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringOperationalStatusCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringTargetPositionLiftPercent100thsCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringTargetPositionTiltPercent100thsCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringEndProductTypeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringCurrentPositionLiftPercent100thsCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringCurrentPositionTiltPercent100thsCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringInstalledOpenLimitLiftCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringInstalledClosedLimitLiftCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringInstalledOpenLimitTiltCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringInstalledClosedLimitTiltCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringModeCallback = - new chip::Callback::Callback(OnInt8uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringSafetyStatusCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringFeatureMapCallback = - new chip::Callback::Callback(OnInt32uAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringClusterRevisionCallback = - new chip::Callback::Callback(OnInt16uAttributeResponse, this); + chip::Callback::Callback * + onReportAccountLoginClusterRevisionCallback = + new chip::Callback::Callback( + ReadAccountLoginClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportAdministratorCommissioningClusterRevisionCallback = + new chip::Callback::Callback( + ReadAdministratorCommissioningClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportApplicationBasicVendorNameCallback = + new chip::Callback::Callback( + ReadApplicationBasicVendorName::OnAttributeResponse, this); + chip::Callback::Callback * + onReportApplicationBasicVendorIdCallback = + new chip::Callback::Callback( + ReadApplicationBasicVendorId::OnAttributeResponse, this); + chip::Callback::Callback * + onReportApplicationBasicApplicationNameCallback = + new chip::Callback::Callback( + ReadApplicationBasicApplicationName::OnAttributeResponse, this); + chip::Callback::Callback * + onReportApplicationBasicProductIdCallback = + new chip::Callback::Callback( + ReadApplicationBasicProductId::OnAttributeResponse, this); + chip::Callback::Callback * + onReportApplicationBasicApplicationIdCallback = + new chip::Callback::Callback( + ReadApplicationBasicApplicationId::OnAttributeResponse, this); + chip::Callback::Callback * + onReportApplicationBasicCatalogVendorIdCallback = + new chip::Callback::Callback( + ReadApplicationBasicCatalogVendorId::OnAttributeResponse, this); + chip::Callback::Callback * + onReportApplicationBasicApplicationStatusCallback = + new chip::Callback::Callback( + ReadApplicationBasicApplicationStatus::OnAttributeResponse, this); + chip::Callback::Callback * + onReportApplicationBasicClusterRevisionCallback = + new chip::Callback::Callback( + ReadApplicationBasicClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportApplicationLauncherCatalogVendorIdCallback = + new chip::Callback::Callback( + ReadApplicationLauncherCatalogVendorId::OnAttributeResponse, this); + chip::Callback::Callback * + onReportApplicationLauncherApplicationIdCallback = + new chip::Callback::Callback( + ReadApplicationLauncherApplicationId::OnAttributeResponse, this); + chip::Callback::Callback * + onReportApplicationLauncherClusterRevisionCallback = + new chip::Callback::Callback( + ReadApplicationLauncherClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportAudioOutputCurrentAudioOutputCallback = + new chip::Callback::Callback( + ReadAudioOutputCurrentAudioOutput::OnAttributeResponse, this); + chip::Callback::Callback * + onReportAudioOutputClusterRevisionCallback = + new chip::Callback::Callback( + ReadAudioOutputClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBarrierControlBarrierMovingStateCallback = + new chip::Callback::Callback( + ReadBarrierControlBarrierMovingState::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBarrierControlBarrierSafetyStatusCallback = + new chip::Callback::Callback( + ReadBarrierControlBarrierSafetyStatus::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBarrierControlBarrierCapabilitiesCallback = + new chip::Callback::Callback( + ReadBarrierControlBarrierCapabilities::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBarrierControlBarrierPositionCallback = + new chip::Callback::Callback( + ReadBarrierControlBarrierPosition::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBarrierControlClusterRevisionCallback = + new chip::Callback::Callback( + ReadBarrierControlClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBasicInteractionModelVersionCallback = + new chip::Callback::Callback( + ReadBasicInteractionModelVersion::OnAttributeResponse, this); + chip::Callback::Callback * onReportBasicVendorNameCallback = + new chip::Callback::Callback(ReadBasicVendorName::OnAttributeResponse, + this); + chip::Callback::Callback * onReportBasicVendorIDCallback = + new chip::Callback::Callback(ReadBasicVendorID::OnAttributeResponse, + this); + chip::Callback::Callback * onReportBasicProductNameCallback = + new chip::Callback::Callback( + ReadBasicProductName::OnAttributeResponse, this); + chip::Callback::Callback * onReportBasicProductIDCallback = + new chip::Callback::Callback(ReadBasicProductID::OnAttributeResponse, + this); + chip::Callback::Callback * onReportBasicNodeLabelCallback = + new chip::Callback::Callback(ReadBasicNodeLabel::OnAttributeResponse, + this); + chip::Callback::Callback * onReportBasicLocationCallback = + new chip::Callback::Callback(ReadBasicLocation::OnAttributeResponse, + this); + chip::Callback::Callback * onReportBasicHardwareVersionCallback = + new chip::Callback::Callback( + ReadBasicHardwareVersion::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBasicHardwareVersionStringCallback = + new chip::Callback::Callback( + ReadBasicHardwareVersionString::OnAttributeResponse, this); + chip::Callback::Callback * onReportBasicSoftwareVersionCallback = + new chip::Callback::Callback( + ReadBasicSoftwareVersion::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBasicSoftwareVersionStringCallback = + new chip::Callback::Callback( + ReadBasicSoftwareVersionString::OnAttributeResponse, this); + chip::Callback::Callback * onReportBasicManufacturingDateCallback = + new chip::Callback::Callback( + ReadBasicManufacturingDate::OnAttributeResponse, this); + chip::Callback::Callback * onReportBasicPartNumberCallback = + new chip::Callback::Callback(ReadBasicPartNumber::OnAttributeResponse, + this); + chip::Callback::Callback * onReportBasicProductURLCallback = + new chip::Callback::Callback(ReadBasicProductURL::OnAttributeResponse, + this); + chip::Callback::Callback * onReportBasicProductLabelCallback = + new chip::Callback::Callback( + ReadBasicProductLabel::OnAttributeResponse, this); + chip::Callback::Callback * onReportBasicSerialNumberCallback = + new chip::Callback::Callback( + ReadBasicSerialNumber::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBasicLocalConfigDisabledCallback = + new chip::Callback::Callback( + ReadBasicLocalConfigDisabled::OnAttributeResponse, this); + chip::Callback::Callback * onReportBasicReachableCallback = + new chip::Callback::Callback(ReadBasicReachable::OnAttributeResponse, + this); + chip::Callback::Callback * onReportBasicClusterRevisionCallback = + new chip::Callback::Callback( + ReadBasicClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBinaryInputBasicOutOfServiceCallback = + new chip::Callback::Callback( + ReadBinaryInputBasicOutOfService::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBinaryInputBasicPresentValueCallback = + new chip::Callback::Callback( + ReadBinaryInputBasicPresentValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBinaryInputBasicStatusFlagsCallback = + new chip::Callback::Callback( + ReadBinaryInputBasicStatusFlags::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBinaryInputBasicClusterRevisionCallback = + new chip::Callback::Callback( + ReadBinaryInputBasicClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * onReportBindingClusterRevisionCallback = + new chip::Callback::Callback( + ReadBindingClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * onReportBooleanStateStateValueCallback = + new chip::Callback::Callback( + ReadBooleanStateStateValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBooleanStateClusterRevisionCallback = + new chip::Callback::Callback( + ReadBooleanStateClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * onReportBridgedActionsSetupUrlCallback = + new chip::Callback::Callback( + ReadBridgedActionsSetupUrl::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBridgedActionsClusterRevisionCallback = + new chip::Callback::Callback( + ReadBridgedActionsClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportBridgedDeviceBasicClusterRevisionCallback = + new chip::Callback::Callback( + ReadBridgedDeviceBasicClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlCurrentHueCallback = + new chip::Callback::Callback( + ReadColorControlCurrentHue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlCurrentSaturationCallback = + new chip::Callback::Callback( + ReadColorControlCurrentSaturation::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlRemainingTimeCallback = + new chip::Callback::Callback( + ReadColorControlRemainingTime::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlCurrentXCallback = + new chip::Callback::Callback( + ReadColorControlCurrentX::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlCurrentYCallback = + new chip::Callback::Callback( + ReadColorControlCurrentY::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlDriftCompensationCallback = + new chip::Callback::Callback( + ReadColorControlDriftCompensation::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlCompensationTextCallback = + new chip::Callback::Callback( + ReadColorControlCompensationText::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorTemperatureCallback = + new chip::Callback::Callback( + ReadColorControlColorTemperature::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlColorModeCallback = + new chip::Callback::Callback( + ReadColorControlColorMode::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorControlOptionsCallback = + new chip::Callback::Callback( + ReadColorControlColorControlOptions::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlNumberOfPrimariesCallback = + new chip::Callback::Callback( + ReadColorControlNumberOfPrimaries::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlPrimary1XCallback = + new chip::Callback::Callback( + ReadColorControlPrimary1X::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlPrimary1YCallback = + new chip::Callback::Callback( + ReadColorControlPrimary1Y::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlPrimary1IntensityCallback = + new chip::Callback::Callback( + ReadColorControlPrimary1Intensity::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlPrimary2XCallback = + new chip::Callback::Callback( + ReadColorControlPrimary2X::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlPrimary2YCallback = + new chip::Callback::Callback( + ReadColorControlPrimary2Y::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlPrimary2IntensityCallback = + new chip::Callback::Callback( + ReadColorControlPrimary2Intensity::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlPrimary3XCallback = + new chip::Callback::Callback( + ReadColorControlPrimary3X::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlPrimary3YCallback = + new chip::Callback::Callback( + ReadColorControlPrimary3Y::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlPrimary3IntensityCallback = + new chip::Callback::Callback( + ReadColorControlPrimary3Intensity::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlPrimary4XCallback = + new chip::Callback::Callback( + ReadColorControlPrimary4X::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlPrimary4YCallback = + new chip::Callback::Callback( + ReadColorControlPrimary4Y::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlPrimary4IntensityCallback = + new chip::Callback::Callback( + ReadColorControlPrimary4Intensity::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlPrimary5XCallback = + new chip::Callback::Callback( + ReadColorControlPrimary5X::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlPrimary5YCallback = + new chip::Callback::Callback( + ReadColorControlPrimary5Y::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlPrimary5IntensityCallback = + new chip::Callback::Callback( + ReadColorControlPrimary5Intensity::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlPrimary6XCallback = + new chip::Callback::Callback( + ReadColorControlPrimary6X::OnAttributeResponse, this); + chip::Callback::Callback * onReportColorControlPrimary6YCallback = + new chip::Callback::Callback( + ReadColorControlPrimary6Y::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlPrimary6IntensityCallback = + new chip::Callback::Callback( + ReadColorControlPrimary6Intensity::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlWhitePointXCallback = + new chip::Callback::Callback( + ReadColorControlWhitePointX::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlWhitePointYCallback = + new chip::Callback::Callback( + ReadColorControlWhitePointY::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorPointRXCallback = + new chip::Callback::Callback( + ReadColorControlColorPointRX::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorPointRYCallback = + new chip::Callback::Callback( + ReadColorControlColorPointRY::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorPointRIntensityCallback = + new chip::Callback::Callback( + ReadColorControlColorPointRIntensity::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorPointGXCallback = + new chip::Callback::Callback( + ReadColorControlColorPointGX::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorPointGYCallback = + new chip::Callback::Callback( + ReadColorControlColorPointGY::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorPointGIntensityCallback = + new chip::Callback::Callback( + ReadColorControlColorPointGIntensity::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorPointBXCallback = + new chip::Callback::Callback( + ReadColorControlColorPointBX::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorPointBYCallback = + new chip::Callback::Callback( + ReadColorControlColorPointBY::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorPointBIntensityCallback = + new chip::Callback::Callback( + ReadColorControlColorPointBIntensity::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlEnhancedCurrentHueCallback = + new chip::Callback::Callback( + ReadColorControlEnhancedCurrentHue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlEnhancedColorModeCallback = + new chip::Callback::Callback( + ReadColorControlEnhancedColorMode::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorLoopActiveCallback = + new chip::Callback::Callback( + ReadColorControlColorLoopActive::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorLoopDirectionCallback = + new chip::Callback::Callback( + ReadColorControlColorLoopDirection::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorLoopTimeCallback = + new chip::Callback::Callback( + ReadColorControlColorLoopTime::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorLoopStartEnhancedHueCallback = + new chip::Callback::Callback( + ReadColorControlColorLoopStartEnhancedHue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorLoopStoredEnhancedHueCallback = + new chip::Callback::Callback( + ReadColorControlColorLoopStoredEnhancedHue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorCapabilitiesCallback = + new chip::Callback::Callback( + ReadColorControlColorCapabilities::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorTempPhysicalMinCallback = + new chip::Callback::Callback( + ReadColorControlColorTempPhysicalMin::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlColorTempPhysicalMaxCallback = + new chip::Callback::Callback( + ReadColorControlColorTempPhysicalMax::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlCoupleColorTempToLevelMinMiredsCallback = + new chip::Callback::Callback( + ReadColorControlCoupleColorTempToLevelMinMireds::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlStartUpColorTemperatureMiredsCallback = + new chip::Callback::Callback( + ReadColorControlStartUpColorTemperatureMireds::OnAttributeResponse, this); + chip::Callback::Callback * + onReportColorControlClusterRevisionCallback = + new chip::Callback::Callback( + ReadColorControlClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportContentLauncherClusterRevisionCallback = + new chip::Callback::Callback( + ReadContentLauncherClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportDescriptorClusterRevisionCallback = + new chip::Callback::Callback( + ReadDescriptorClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportDoorLockActuatorEnabledCallback = + new chip::Callback::Callback( + ReadDoorLockActuatorEnabled::OnAttributeResponse, this); + chip::Callback::Callback * + onReportDoorLockClusterRevisionCallback = + new chip::Callback::Callback( + ReadDoorLockClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportElectricalMeasurementMeasurementTypeCallback = + new chip::Callback::Callback( + ReadElectricalMeasurementMeasurementType::OnAttributeResponse, this); + chip::Callback::Callback * + onReportElectricalMeasurementTotalActivePowerCallback = + new chip::Callback::Callback( + ReadElectricalMeasurementTotalActivePower::OnAttributeResponse, this); + chip::Callback::Callback * + onReportElectricalMeasurementRmsVoltageCallback = + new chip::Callback::Callback( + ReadElectricalMeasurementRmsVoltage::OnAttributeResponse, this); + chip::Callback::Callback * + onReportElectricalMeasurementRmsVoltageMinCallback = + new chip::Callback::Callback( + ReadElectricalMeasurementRmsVoltageMin::OnAttributeResponse, this); + chip::Callback::Callback * + onReportElectricalMeasurementRmsVoltageMaxCallback = + new chip::Callback::Callback( + ReadElectricalMeasurementRmsVoltageMax::OnAttributeResponse, this); + chip::Callback::Callback * + onReportElectricalMeasurementRmsCurrentCallback = + new chip::Callback::Callback( + ReadElectricalMeasurementRmsCurrent::OnAttributeResponse, this); + chip::Callback::Callback * + onReportElectricalMeasurementRmsCurrentMinCallback = + new chip::Callback::Callback( + ReadElectricalMeasurementRmsCurrentMin::OnAttributeResponse, this); + chip::Callback::Callback * + onReportElectricalMeasurementRmsCurrentMaxCallback = + new chip::Callback::Callback( + ReadElectricalMeasurementRmsCurrentMax::OnAttributeResponse, this); + chip::Callback::Callback * + onReportElectricalMeasurementActivePowerCallback = + new chip::Callback::Callback( + ReadElectricalMeasurementActivePower::OnAttributeResponse, this); + chip::Callback::Callback * + onReportElectricalMeasurementActivePowerMinCallback = + new chip::Callback::Callback( + ReadElectricalMeasurementActivePowerMin::OnAttributeResponse, this); + chip::Callback::Callback * + onReportElectricalMeasurementActivePowerMaxCallback = + new chip::Callback::Callback( + ReadElectricalMeasurementActivePowerMax::OnAttributeResponse, this); + chip::Callback::Callback * + onReportElectricalMeasurementClusterRevisionCallback = + new chip::Callback::Callback( + ReadElectricalMeasurementClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportEthernetNetworkDiagnosticsPHYRateCallback = + new chip::Callback::Callback( + ReadEthernetNetworkDiagnosticsPHYRate::OnAttributeResponse, this); + chip::Callback::Callback * + onReportEthernetNetworkDiagnosticsFullDuplexCallback = + new chip::Callback::Callback( + ReadEthernetNetworkDiagnosticsFullDuplex::OnAttributeResponse, this); + chip::Callback::Callback * + onReportEthernetNetworkDiagnosticsPacketRxCountCallback = + new chip::Callback::Callback( + ReadEthernetNetworkDiagnosticsPacketRxCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportEthernetNetworkDiagnosticsPacketTxCountCallback = + new chip::Callback::Callback( + ReadEthernetNetworkDiagnosticsPacketTxCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportEthernetNetworkDiagnosticsTxErrCountCallback = + new chip::Callback::Callback( + ReadEthernetNetworkDiagnosticsTxErrCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportEthernetNetworkDiagnosticsCollisionCountCallback = + new chip::Callback::Callback( + ReadEthernetNetworkDiagnosticsCollisionCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportEthernetNetworkDiagnosticsOverrunCountCallback = + new chip::Callback::Callback( + ReadEthernetNetworkDiagnosticsOverrunCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportEthernetNetworkDiagnosticsCarrierDetectCallback = + new chip::Callback::Callback( + ReadEthernetNetworkDiagnosticsCarrierDetect::OnAttributeResponse, this); + chip::Callback::Callback * + onReportEthernetNetworkDiagnosticsTimeSinceResetCallback = + new chip::Callback::Callback( + ReadEthernetNetworkDiagnosticsTimeSinceReset::OnAttributeResponse, this); + chip::Callback::Callback * + onReportEthernetNetworkDiagnosticsClusterRevisionCallback = + new chip::Callback::Callback( + ReadEthernetNetworkDiagnosticsClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportFixedLabelClusterRevisionCallback = + new chip::Callback::Callback( + ReadFixedLabelClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportFlowMeasurementMeasuredValueCallback = + new chip::Callback::Callback( + ReadFlowMeasurementMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportFlowMeasurementMinMeasuredValueCallback = + new chip::Callback::Callback( + ReadFlowMeasurementMinMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportFlowMeasurementMaxMeasuredValueCallback = + new chip::Callback::Callback( + ReadFlowMeasurementMaxMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportFlowMeasurementToleranceCallback = + new chip::Callback::Callback( + ReadFlowMeasurementTolerance::OnAttributeResponse, this); + chip::Callback::Callback * + onReportFlowMeasurementClusterRevisionCallback = + new chip::Callback::Callback( + ReadFlowMeasurementClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportGeneralCommissioningBreadcrumbCallback = + new chip::Callback::Callback( + ReadGeneralCommissioningBreadcrumb::OnAttributeResponse, this); + chip::Callback::Callback * + onReportGeneralCommissioningClusterRevisionCallback = + new chip::Callback::Callback( + ReadGeneralCommissioningClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportGeneralDiagnosticsRebootCountCallback = + new chip::Callback::Callback( + ReadGeneralDiagnosticsRebootCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportGeneralDiagnosticsUpTimeCallback = + new chip::Callback::Callback( + ReadGeneralDiagnosticsUpTime::OnAttributeResponse, this); + chip::Callback::Callback * + onReportGeneralDiagnosticsTotalOperationalHoursCallback = + new chip::Callback::Callback( + ReadGeneralDiagnosticsTotalOperationalHours::OnAttributeResponse, this); + chip::Callback::Callback * + onReportGeneralDiagnosticsBootReasonsCallback = + new chip::Callback::Callback( + ReadGeneralDiagnosticsBootReasons::OnAttributeResponse, this); + chip::Callback::Callback * + onReportGeneralDiagnosticsClusterRevisionCallback = + new chip::Callback::Callback( + ReadGeneralDiagnosticsClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportGroupKeyManagementClusterRevisionCallback = + new chip::Callback::Callback( + ReadGroupKeyManagementClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * onReportGroupsNameSupportCallback = + new chip::Callback::Callback( + ReadGroupsNameSupport::OnAttributeResponse, this); + chip::Callback::Callback * onReportGroupsClusterRevisionCallback = + new chip::Callback::Callback( + ReadGroupsClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * onReportIdentifyIdentifyTimeCallback = + new chip::Callback::Callback( + ReadIdentifyIdentifyTime::OnAttributeResponse, this); + chip::Callback::Callback * onReportIdentifyIdentifyTypeCallback = + new chip::Callback::Callback( + ReadIdentifyIdentifyType::OnAttributeResponse, this); + chip::Callback::Callback * + onReportIdentifyClusterRevisionCallback = + new chip::Callback::Callback( + ReadIdentifyClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportIlluminanceMeasurementMeasuredValueCallback = + new chip::Callback::Callback( + ReadIlluminanceMeasurementMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportIlluminanceMeasurementMinMeasuredValueCallback = + new chip::Callback::Callback( + ReadIlluminanceMeasurementMinMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportIlluminanceMeasurementMaxMeasuredValueCallback = + new chip::Callback::Callback( + ReadIlluminanceMeasurementMaxMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportIlluminanceMeasurementToleranceCallback = + new chip::Callback::Callback( + ReadIlluminanceMeasurementTolerance::OnAttributeResponse, this); + chip::Callback::Callback * + onReportIlluminanceMeasurementLightSensorTypeCallback = + new chip::Callback::Callback( + ReadIlluminanceMeasurementLightSensorType::OnAttributeResponse, this); + chip::Callback::Callback * + onReportIlluminanceMeasurementClusterRevisionCallback = + new chip::Callback::Callback( + ReadIlluminanceMeasurementClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportKeypadInputClusterRevisionCallback = + new chip::Callback::Callback( + ReadKeypadInputClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportLevelControlCurrentLevelCallback = + new chip::Callback::Callback( + ReadLevelControlCurrentLevel::OnAttributeResponse, this); + chip::Callback::Callback * + onReportLevelControlRemainingTimeCallback = + new chip::Callback::Callback( + ReadLevelControlRemainingTime::OnAttributeResponse, this); + chip::Callback::Callback * onReportLevelControlMinLevelCallback = + new chip::Callback::Callback( + ReadLevelControlMinLevel::OnAttributeResponse, this); + chip::Callback::Callback * onReportLevelControlMaxLevelCallback = + new chip::Callback::Callback( + ReadLevelControlMaxLevel::OnAttributeResponse, this); + chip::Callback::Callback * + onReportLevelControlCurrentFrequencyCallback = + new chip::Callback::Callback( + ReadLevelControlCurrentFrequency::OnAttributeResponse, this); + chip::Callback::Callback * + onReportLevelControlMinFrequencyCallback = + new chip::Callback::Callback( + ReadLevelControlMinFrequency::OnAttributeResponse, this); + chip::Callback::Callback * + onReportLevelControlMaxFrequencyCallback = + new chip::Callback::Callback( + ReadLevelControlMaxFrequency::OnAttributeResponse, this); + chip::Callback::Callback * onReportLevelControlOptionsCallback = + new chip::Callback::Callback( + ReadLevelControlOptions::OnAttributeResponse, this); + chip::Callback::Callback * + onReportLevelControlOnOffTransitionTimeCallback = + new chip::Callback::Callback( + ReadLevelControlOnOffTransitionTime::OnAttributeResponse, this); + chip::Callback::Callback * onReportLevelControlOnLevelCallback = + new chip::Callback::Callback( + ReadLevelControlOnLevel::OnAttributeResponse, this); + chip::Callback::Callback * + onReportLevelControlOnTransitionTimeCallback = + new chip::Callback::Callback( + ReadLevelControlOnTransitionTime::OnAttributeResponse, this); + chip::Callback::Callback * + onReportLevelControlOffTransitionTimeCallback = + new chip::Callback::Callback( + ReadLevelControlOffTransitionTime::OnAttributeResponse, this); + chip::Callback::Callback * + onReportLevelControlDefaultMoveRateCallback = + new chip::Callback::Callback( + ReadLevelControlDefaultMoveRate::OnAttributeResponse, this); + chip::Callback::Callback * + onReportLevelControlStartUpCurrentLevelCallback = + new chip::Callback::Callback( + ReadLevelControlStartUpCurrentLevel::OnAttributeResponse, this); + chip::Callback::Callback * + onReportLevelControlClusterRevisionCallback = + new chip::Callback::Callback( + ReadLevelControlClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportLowPowerClusterRevisionCallback = + new chip::Callback::Callback( + ReadLowPowerClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportMediaInputCurrentMediaInputCallback = + new chip::Callback::Callback( + ReadMediaInputCurrentMediaInput::OnAttributeResponse, this); + chip::Callback::Callback * + onReportMediaInputClusterRevisionCallback = + new chip::Callback::Callback( + ReadMediaInputClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportMediaPlaybackPlaybackStateCallback = + new chip::Callback::Callback( + ReadMediaPlaybackPlaybackState::OnAttributeResponse, this); + chip::Callback::Callback * onReportMediaPlaybackStartTimeCallback = + new chip::Callback::Callback( + ReadMediaPlaybackStartTime::OnAttributeResponse, this); + chip::Callback::Callback * onReportMediaPlaybackDurationCallback = + new chip::Callback::Callback( + ReadMediaPlaybackDuration::OnAttributeResponse, this); + chip::Callback::Callback * + onReportMediaPlaybackPositionUpdatedAtCallback = + new chip::Callback::Callback( + ReadMediaPlaybackPositionUpdatedAt::OnAttributeResponse, this); + chip::Callback::Callback * onReportMediaPlaybackPositionCallback = + new chip::Callback::Callback( + ReadMediaPlaybackPosition::OnAttributeResponse, this); + chip::Callback::Callback * + onReportMediaPlaybackPlaybackSpeedCallback = + new chip::Callback::Callback( + ReadMediaPlaybackPlaybackSpeed::OnAttributeResponse, this); + chip::Callback::Callback * + onReportMediaPlaybackSeekRangeEndCallback = + new chip::Callback::Callback( + ReadMediaPlaybackSeekRangeEnd::OnAttributeResponse, this); + chip::Callback::Callback * + onReportMediaPlaybackSeekRangeStartCallback = + new chip::Callback::Callback( + ReadMediaPlaybackSeekRangeStart::OnAttributeResponse, this); + chip::Callback::Callback * + onReportMediaPlaybackClusterRevisionCallback = + new chip::Callback::Callback( + ReadMediaPlaybackClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * onReportModeSelectCurrentModeCallback = + new chip::Callback::Callback( + ReadModeSelectCurrentMode::OnAttributeResponse, this); + chip::Callback::Callback * onReportModeSelectOnModeCallback = + new chip::Callback::Callback( + ReadModeSelectOnMode::OnAttributeResponse, this); + chip::Callback::Callback * onReportModeSelectStartUpModeCallback = + new chip::Callback::Callback( + ReadModeSelectStartUpMode::OnAttributeResponse, this); + chip::Callback::Callback * onReportModeSelectDescriptionCallback = + new chip::Callback::Callback( + ReadModeSelectDescription::OnAttributeResponse, this); + chip::Callback::Callback * + onReportModeSelectClusterRevisionCallback = + new chip::Callback::Callback( + ReadModeSelectClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportNetworkCommissioningFeatureMapCallback = + new chip::Callback::Callback( + ReadNetworkCommissioningFeatureMap::OnAttributeResponse, this); + chip::Callback::Callback * + onReportNetworkCommissioningClusterRevisionCallback = + new chip::Callback::Callback( + ReadNetworkCommissioningClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOtaSoftwareUpdateProviderClusterRevisionCallback = + new chip::Callback::Callback( + ReadOtaSoftwareUpdateProviderClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOtaSoftwareUpdateRequestorDefaultOtaProviderCallback = + new chip::Callback::Callback( + ReadOtaSoftwareUpdateRequestorDefaultOtaProvider::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOtaSoftwareUpdateRequestorUpdatePossibleCallback = + new chip::Callback::Callback( + ReadOtaSoftwareUpdateRequestorUpdatePossible::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOtaSoftwareUpdateRequestorClusterRevisionCallback = + new chip::Callback::Callback( + ReadOtaSoftwareUpdateRequestorClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOccupancySensingOccupancyCallback = + new chip::Callback::Callback( + ReadOccupancySensingOccupancy::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOccupancySensingOccupancySensorTypeCallback = + new chip::Callback::Callback( + ReadOccupancySensingOccupancySensorType::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOccupancySensingOccupancySensorTypeBitmapCallback = + new chip::Callback::Callback( + ReadOccupancySensingOccupancySensorTypeBitmap::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOccupancySensingClusterRevisionCallback = + new chip::Callback::Callback( + ReadOccupancySensingClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * onReportOnOffOnOffCallback = + new chip::Callback::Callback(ReadOnOffOnOff::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOnOffGlobalSceneControlCallback = + new chip::Callback::Callback( + ReadOnOffGlobalSceneControl::OnAttributeResponse, this); + chip::Callback::Callback * onReportOnOffOnTimeCallback = + new chip::Callback::Callback(ReadOnOffOnTime::OnAttributeResponse, this); + chip::Callback::Callback * onReportOnOffOffWaitTimeCallback = + new chip::Callback::Callback( + ReadOnOffOffWaitTime::OnAttributeResponse, this); + chip::Callback::Callback * onReportOnOffStartUpOnOffCallback = + new chip::Callback::Callback( + ReadOnOffStartUpOnOff::OnAttributeResponse, this); + chip::Callback::Callback * onReportOnOffFeatureMapCallback = + new chip::Callback::Callback(ReadOnOffFeatureMap::OnAttributeResponse, + this); + chip::Callback::Callback * onReportOnOffClusterRevisionCallback = + new chip::Callback::Callback( + ReadOnOffClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOnOffSwitchConfigurationSwitchTypeCallback = + new chip::Callback::Callback( + ReadOnOffSwitchConfigurationSwitchType::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOnOffSwitchConfigurationSwitchActionsCallback = + new chip::Callback::Callback( + ReadOnOffSwitchConfigurationSwitchActions::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOnOffSwitchConfigurationClusterRevisionCallback = + new chip::Callback::Callback( + ReadOnOffSwitchConfigurationClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOperationalCredentialsSupportedFabricsCallback = + new chip::Callback::Callback( + ReadOperationalCredentialsSupportedFabrics::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOperationalCredentialsCommissionedFabricsCallback = + new chip::Callback::Callback( + ReadOperationalCredentialsCommissionedFabrics::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOperationalCredentialsCurrentFabricIndexCallback = + new chip::Callback::Callback( + ReadOperationalCredentialsCurrentFabricIndex::OnAttributeResponse, this); + chip::Callback::Callback * + onReportOperationalCredentialsClusterRevisionCallback = + new chip::Callback::Callback( + ReadOperationalCredentialsClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * onReportPowerSourceStatusCallback = + new chip::Callback::Callback( + ReadPowerSourceStatus::OnAttributeResponse, this); + chip::Callback::Callback * onReportPowerSourceOrderCallback = + new chip::Callback::Callback( + ReadPowerSourceOrder::OnAttributeResponse, this); + chip::Callback::Callback * onReportPowerSourceDescriptionCallback = + new chip::Callback::Callback( + ReadPowerSourceDescription::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPowerSourceBatteryVoltageCallback = + new chip::Callback::Callback( + ReadPowerSourceBatteryVoltage::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPowerSourceBatteryPercentRemainingCallback = + new chip::Callback::Callback( + ReadPowerSourceBatteryPercentRemaining::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPowerSourceBatteryTimeRemainingCallback = + new chip::Callback::Callback( + ReadPowerSourceBatteryTimeRemaining::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPowerSourceBatteryChargeLevelCallback = + new chip::Callback::Callback( + ReadPowerSourceBatteryChargeLevel::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPowerSourceBatteryChargeStateCallback = + new chip::Callback::Callback( + ReadPowerSourceBatteryChargeState::OnAttributeResponse, this); + chip::Callback::Callback * onReportPowerSourceFeatureMapCallback = + new chip::Callback::Callback( + ReadPowerSourceFeatureMap::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPowerSourceClusterRevisionCallback = + new chip::Callback::Callback( + ReadPowerSourceClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPressureMeasurementMeasuredValueCallback = + new chip::Callback::Callback( + ReadPressureMeasurementMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPressureMeasurementMinMeasuredValueCallback = + new chip::Callback::Callback( + ReadPressureMeasurementMinMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPressureMeasurementMaxMeasuredValueCallback = + new chip::Callback::Callback( + ReadPressureMeasurementMaxMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPressureMeasurementClusterRevisionCallback = + new chip::Callback::Callback( + ReadPressureMeasurementClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMaxPressureCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMaxPressure::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMaxSpeedCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMaxSpeed::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMaxFlowCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMaxFlow::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMinConstPressureCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMinConstPressure::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMaxConstPressureCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMaxConstPressure::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMinCompPressureCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMinCompPressure::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMaxCompPressureCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMaxCompPressure::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMinConstSpeedCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMinConstSpeed::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMaxConstSpeedCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMaxConstSpeed::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMinConstFlowCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMinConstFlow::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMaxConstFlowCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMaxConstFlow::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMinConstTempCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMinConstTemp::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlMaxConstTempCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlMaxConstTemp::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlPumpStatusCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlPumpStatus::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlEffectiveOperationModeCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlEffectiveOperationMode::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlEffectiveControlModeCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlEffectiveControlMode::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlCapacityCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlCapacity::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlSpeedCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlSpeed::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlLifetimeRunningHoursCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlLifetimeRunningHours::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlPowerCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlPower::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlLifetimeEnergyConsumedCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlLifetimeEnergyConsumed::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlOperationModeCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlOperationMode::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlControlModeCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlControlMode::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlAlarmMaskCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlAlarmMask::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlFeatureMapCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlFeatureMap::OnAttributeResponse, this); + chip::Callback::Callback * + onReportPumpConfigurationAndControlClusterRevisionCallback = + new chip::Callback::Callback( + ReadPumpConfigurationAndControlClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportRelativeHumidityMeasurementMeasuredValueCallback = + new chip::Callback::Callback( + ReadRelativeHumidityMeasurementMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportRelativeHumidityMeasurementMinMeasuredValueCallback = + new chip::Callback::Callback( + ReadRelativeHumidityMeasurementMinMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportRelativeHumidityMeasurementMaxMeasuredValueCallback = + new chip::Callback::Callback( + ReadRelativeHumidityMeasurementMaxMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportRelativeHumidityMeasurementToleranceCallback = + new chip::Callback::Callback( + ReadRelativeHumidityMeasurementTolerance::OnAttributeResponse, this); + chip::Callback::Callback * + onReportRelativeHumidityMeasurementClusterRevisionCallback = + new chip::Callback::Callback( + ReadRelativeHumidityMeasurementClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * onReportScenesSceneCountCallback = + new chip::Callback::Callback( + ReadScenesSceneCount::OnAttributeResponse, this); + chip::Callback::Callback * onReportScenesCurrentSceneCallback = + new chip::Callback::Callback( + ReadScenesCurrentScene::OnAttributeResponse, this); + chip::Callback::Callback * onReportScenesCurrentGroupCallback = + new chip::Callback::Callback( + ReadScenesCurrentGroup::OnAttributeResponse, this); + chip::Callback::Callback * onReportScenesSceneValidCallback = + new chip::Callback::Callback( + ReadScenesSceneValid::OnAttributeResponse, this); + chip::Callback::Callback * onReportScenesNameSupportCallback = + new chip::Callback::Callback( + ReadScenesNameSupport::OnAttributeResponse, this); + chip::Callback::Callback * onReportScenesClusterRevisionCallback = + new chip::Callback::Callback( + ReadScenesClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportSoftwareDiagnosticsCurrentHeapFreeCallback = + new chip::Callback::Callback( + ReadSoftwareDiagnosticsCurrentHeapFree::OnAttributeResponse, this); + chip::Callback::Callback * + onReportSoftwareDiagnosticsCurrentHeapUsedCallback = + new chip::Callback::Callback( + ReadSoftwareDiagnosticsCurrentHeapUsed::OnAttributeResponse, this); + chip::Callback::Callback * + onReportSoftwareDiagnosticsCurrentHeapHighWatermarkCallback = + new chip::Callback::Callback( + ReadSoftwareDiagnosticsCurrentHeapHighWatermark::OnAttributeResponse, this); + chip::Callback::Callback * + onReportSoftwareDiagnosticsClusterRevisionCallback = + new chip::Callback::Callback( + ReadSoftwareDiagnosticsClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportSwitchNumberOfPositionsCallback = + new chip::Callback::Callback( + ReadSwitchNumberOfPositions::OnAttributeResponse, this); + chip::Callback::Callback * onReportSwitchCurrentPositionCallback = + new chip::Callback::Callback( + ReadSwitchCurrentPosition::OnAttributeResponse, this); + chip::Callback::Callback * onReportSwitchMultiPressMaxCallback = + new chip::Callback::Callback( + ReadSwitchMultiPressMax::OnAttributeResponse, this); + chip::Callback::Callback * onReportSwitchFeatureMapCallback = + new chip::Callback::Callback( + ReadSwitchFeatureMap::OnAttributeResponse, this); + chip::Callback::Callback * onReportSwitchClusterRevisionCallback = + new chip::Callback::Callback( + ReadSwitchClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTvChannelTvChannelLineupCallback = + new chip::Callback::Callback( + ReadTvChannelTvChannelLineup::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTvChannelCurrentTvChannelCallback = + new chip::Callback::Callback( + ReadTvChannelCurrentTvChannel::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTvChannelClusterRevisionCallback = + new chip::Callback::Callback( + ReadTvChannelClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTargetNavigatorClusterRevisionCallback = + new chip::Callback::Callback( + ReadTargetNavigatorClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTemperatureMeasurementMeasuredValueCallback = + new chip::Callback::Callback( + ReadTemperatureMeasurementMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTemperatureMeasurementMinMeasuredValueCallback = + new chip::Callback::Callback( + ReadTemperatureMeasurementMinMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTemperatureMeasurementMaxMeasuredValueCallback = + new chip::Callback::Callback( + ReadTemperatureMeasurementMaxMeasuredValue::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTemperatureMeasurementToleranceCallback = + new chip::Callback::Callback( + ReadTemperatureMeasurementTolerance::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTemperatureMeasurementClusterRevisionCallback = + new chip::Callback::Callback( + ReadTemperatureMeasurementClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterBooleanCallback = + new chip::Callback::Callback( + ReadTestClusterBoolean::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterBitmap8Callback = + new chip::Callback::Callback( + ReadTestClusterBitmap8::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterBitmap16Callback = + new chip::Callback::Callback( + ReadTestClusterBitmap16::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterBitmap32Callback = + new chip::Callback::Callback( + ReadTestClusterBitmap32::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterBitmap64Callback = + new chip::Callback::Callback( + ReadTestClusterBitmap64::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt8uCallback = + new chip::Callback::Callback( + ReadTestClusterInt8u::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt16uCallback = + new chip::Callback::Callback( + ReadTestClusterInt16u::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt24uCallback = + new chip::Callback::Callback( + ReadTestClusterInt24u::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt32uCallback = + new chip::Callback::Callback( + ReadTestClusterInt32u::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt40uCallback = + new chip::Callback::Callback( + ReadTestClusterInt40u::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt48uCallback = + new chip::Callback::Callback( + ReadTestClusterInt48u::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt56uCallback = + new chip::Callback::Callback( + ReadTestClusterInt56u::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt64uCallback = + new chip::Callback::Callback( + ReadTestClusterInt64u::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt8sCallback = + new chip::Callback::Callback( + ReadTestClusterInt8s::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt16sCallback = + new chip::Callback::Callback( + ReadTestClusterInt16s::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt24sCallback = + new chip::Callback::Callback( + ReadTestClusterInt24s::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt32sCallback = + new chip::Callback::Callback( + ReadTestClusterInt32s::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt40sCallback = + new chip::Callback::Callback( + ReadTestClusterInt40s::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt48sCallback = + new chip::Callback::Callback( + ReadTestClusterInt48s::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt56sCallback = + new chip::Callback::Callback( + ReadTestClusterInt56s::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterInt64sCallback = + new chip::Callback::Callback( + ReadTestClusterInt64s::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterEnum8Callback = + new chip::Callback::Callback( + ReadTestClusterEnum8::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterEnum16Callback = + new chip::Callback::Callback( + ReadTestClusterEnum16::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterFloatSingleCallback = + new chip::Callback::Callback( + ReadTestClusterFloatSingle::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterFloatDoubleCallback = + new chip::Callback::Callback( + ReadTestClusterFloatDouble::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterOctetStringCallback = + new chip::Callback::Callback( + ReadTestClusterOctetString::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterLongOctetStringCallback = + new chip::Callback::Callback( + ReadTestClusterLongOctetString::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterCharStringCallback = + new chip::Callback::Callback( + ReadTestClusterCharString::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterLongCharStringCallback = + new chip::Callback::Callback( + ReadTestClusterLongCharString::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterEpochUsCallback = + new chip::Callback::Callback( + ReadTestClusterEpochUs::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterEpochSCallback = + new chip::Callback::Callback( + ReadTestClusterEpochS::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterVendorIdCallback = + new chip::Callback::Callback( + ReadTestClusterVendorId::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterRangeRestrictedInt8uCallback = + new chip::Callback::Callback( + ReadTestClusterRangeRestrictedInt8u::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterRangeRestrictedInt8sCallback = + new chip::Callback::Callback( + ReadTestClusterRangeRestrictedInt8s::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterRangeRestrictedInt16uCallback = + new chip::Callback::Callback( + ReadTestClusterRangeRestrictedInt16u::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterRangeRestrictedInt16sCallback = + new chip::Callback::Callback( + ReadTestClusterRangeRestrictedInt16s::OnAttributeResponse, this); + chip::Callback::Callback * onReportTestClusterUnsupportedCallback = + new chip::Callback::Callback( + ReadTestClusterUnsupported::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableBooleanCallback = + new chip::Callback::Callback( + ReadTestClusterNullableBoolean::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableBitmap8Callback = + new chip::Callback::Callback( + ReadTestClusterNullableBitmap8::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableBitmap16Callback = + new chip::Callback::Callback( + ReadTestClusterNullableBitmap16::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableBitmap32Callback = + new chip::Callback::Callback( + ReadTestClusterNullableBitmap32::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableBitmap64Callback = + new chip::Callback::Callback( + ReadTestClusterNullableBitmap64::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt8uCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt8u::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt16uCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt16u::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt24uCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt24u::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt32uCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt32u::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt40uCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt40u::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt48uCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt48u::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt56uCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt56u::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt64uCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt64u::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt8sCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt8s::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt16sCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt16s::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt24sCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt24s::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt32sCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt32s::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt40sCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt40s::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt48sCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt48s::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt56sCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt56s::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableInt64sCallback = + new chip::Callback::Callback( + ReadTestClusterNullableInt64s::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableEnum8Callback = + new chip::Callback::Callback( + ReadTestClusterNullableEnum8::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableEnum16Callback = + new chip::Callback::Callback( + ReadTestClusterNullableEnum16::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableFloatSingleCallback = + new chip::Callback::Callback( + ReadTestClusterNullableFloatSingle::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableFloatDoubleCallback = + new chip::Callback::Callback( + ReadTestClusterNullableFloatDouble::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableOctetStringCallback = + new chip::Callback::Callback( + ReadTestClusterNullableOctetString::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableCharStringCallback = + new chip::Callback::Callback( + ReadTestClusterNullableCharString::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableRangeRestrictedInt8uCallback = + new chip::Callback::Callback( + ReadTestClusterNullableRangeRestrictedInt8u::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableRangeRestrictedInt8sCallback = + new chip::Callback::Callback( + ReadTestClusterNullableRangeRestrictedInt8s::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableRangeRestrictedInt16uCallback = + new chip::Callback::Callback( + ReadTestClusterNullableRangeRestrictedInt16u::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterNullableRangeRestrictedInt16sCallback = + new chip::Callback::Callback( + ReadTestClusterNullableRangeRestrictedInt16s::OnAttributeResponse, this); + chip::Callback::Callback * + onReportTestClusterClusterRevisionCallback = + new chip::Callback::Callback( + ReadTestClusterClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatLocalTemperatureCallback = + new chip::Callback::Callback( + ReadThermostatLocalTemperature::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatAbsMinHeatSetpointLimitCallback = + new chip::Callback::Callback( + ReadThermostatAbsMinHeatSetpointLimit::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatAbsMaxHeatSetpointLimitCallback = + new chip::Callback::Callback( + ReadThermostatAbsMaxHeatSetpointLimit::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatAbsMinCoolSetpointLimitCallback = + new chip::Callback::Callback( + ReadThermostatAbsMinCoolSetpointLimit::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatAbsMaxCoolSetpointLimitCallback = + new chip::Callback::Callback( + ReadThermostatAbsMaxCoolSetpointLimit::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatOccupiedCoolingSetpointCallback = + new chip::Callback::Callback( + ReadThermostatOccupiedCoolingSetpoint::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatOccupiedHeatingSetpointCallback = + new chip::Callback::Callback( + ReadThermostatOccupiedHeatingSetpoint::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatMinHeatSetpointLimitCallback = + new chip::Callback::Callback( + ReadThermostatMinHeatSetpointLimit::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatMaxHeatSetpointLimitCallback = + new chip::Callback::Callback( + ReadThermostatMaxHeatSetpointLimit::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatMinCoolSetpointLimitCallback = + new chip::Callback::Callback( + ReadThermostatMinCoolSetpointLimit::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatMaxCoolSetpointLimitCallback = + new chip::Callback::Callback( + ReadThermostatMaxCoolSetpointLimit::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatMinSetpointDeadBandCallback = + new chip::Callback::Callback( + ReadThermostatMinSetpointDeadBand::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatControlSequenceOfOperationCallback = + new chip::Callback::Callback( + ReadThermostatControlSequenceOfOperation::OnAttributeResponse, this); + chip::Callback::Callback * onReportThermostatSystemModeCallback = + new chip::Callback::Callback( + ReadThermostatSystemMode::OnAttributeResponse, this); + chip::Callback::Callback * onReportThermostatStartOfWeekCallback = + new chip::Callback::Callback( + ReadThermostatStartOfWeek::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatNumberOfWeeklyTransitionsCallback = + new chip::Callback::Callback( + ReadThermostatNumberOfWeeklyTransitions::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatNumberOfDailyTransitionsCallback = + new chip::Callback::Callback( + ReadThermostatNumberOfDailyTransitions::OnAttributeResponse, this); + chip::Callback::Callback * onReportThermostatFeatureMapCallback = + new chip::Callback::Callback( + ReadThermostatFeatureMap::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatClusterRevisionCallback = + new chip::Callback::Callback( + ReadThermostatClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatUserInterfaceConfigurationTemperatureDisplayModeCallback = new chip::Callback::Callback( + ReadThermostatUserInterfaceConfigurationTemperatureDisplayMode::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatUserInterfaceConfigurationKeypadLockoutCallback = + new chip::Callback::Callback( + ReadThermostatUserInterfaceConfigurationKeypadLockout::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCallback = new chip::Callback::Callback( + ReadThermostatUserInterfaceConfigurationScheduleProgrammingVisibility::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThermostatUserInterfaceConfigurationClusterRevisionCallback = + new chip::Callback::Callback( + ReadThermostatUserInterfaceConfigurationClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsChannelCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsChannel::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRoutingRoleCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRoutingRole::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsNetworkNameCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsNetworkName::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsPanIdCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsPanId::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsExtendedPanIdCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsExtendedPanId::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsMeshLocalPrefixCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsMeshLocalPrefix::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsOverrunCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsOverrunCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsPartitionIdCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsPartitionId::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsWeightingCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsWeighting::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsDataVersionCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsDataVersion::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsStableDataVersionCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsStableDataVersion::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsLeaderRouterIdCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsLeaderRouterId::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsDetachedRoleCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsDetachedRoleCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsChildRoleCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsChildRoleCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRouterRoleCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRouterRoleCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsLeaderRoleCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsLeaderRoleCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsAttachAttemptCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsAttachAttemptCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsPartitionIdChangeCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsPartitionIdChangeCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsBetterPartitionAttachAttemptCountCallback = new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsParentChangeCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsParentChangeCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxTotalCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxTotalCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxUnicastCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxUnicastCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxBroadcastCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxBroadcastCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxAckRequestedCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxAckRequestedCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxAckedCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxAckedCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxNoAckRequestedCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxNoAckRequestedCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxDataCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxDataCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxDataPollCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxDataPollCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxBeaconCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxBeaconCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxBeaconRequestCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxBeaconRequestCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxOtherCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxOtherCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxRetryCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxRetryCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxErrCcaCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxErrCcaCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxErrAbortCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxErrAbortCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsTxErrBusyChannelCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsTxErrBusyChannelCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxTotalCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxTotalCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxUnicastCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxUnicastCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxBroadcastCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxBroadcastCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxDataCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxDataCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxDataPollCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxDataPollCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxBeaconCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxBeaconCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxBeaconRequestCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxBeaconRequestCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxOtherCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxOtherCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxAddressFilteredCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxAddressFilteredCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxDestAddrFilteredCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxDestAddrFilteredCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxDuplicatedCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxDuplicatedCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxErrNoFrameCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxErrNoFrameCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxErrUnknownNeighborCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxErrUnknownNeighborCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxErrInvalidSrcAddrCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxErrSecCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxErrSecCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxErrFcsCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxErrFcsCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsRxErrOtherCountCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsRxErrOtherCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsActiveTimestampCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsActiveTimestamp::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsPendingTimestampCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsPendingTimestamp::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsDelayCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsDelay::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsChannelMaskCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsChannelMask::OnAttributeResponse, this); + chip::Callback::Callback * + onReportThreadNetworkDiagnosticsClusterRevisionCallback = + new chip::Callback::Callback( + ReadThreadNetworkDiagnosticsClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWakeOnLanWakeOnLanMacAddressCallback = + new chip::Callback::Callback( + ReadWakeOnLanWakeOnLanMacAddress::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWakeOnLanClusterRevisionCallback = + new chip::Callback::Callback( + ReadWakeOnLanClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsBssidCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsBssid::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsSecurityTypeCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsSecurityType::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsWiFiVersionCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsWiFiVersion::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsChannelNumberCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsChannelNumber::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsRssiCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsRssi::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsBeaconLostCountCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsBeaconLostCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsBeaconRxCountCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsBeaconRxCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsPacketMulticastRxCountCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsPacketMulticastRxCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsPacketMulticastTxCountCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsPacketMulticastTxCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsPacketUnicastRxCountCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsPacketUnicastRxCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsPacketUnicastTxCountCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsPacketUnicastTxCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsCurrentMaxRateCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsCurrentMaxRate::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsOverrunCountCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsOverrunCount::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWiFiNetworkDiagnosticsClusterRevisionCallback = + new chip::Callback::Callback( + ReadWiFiNetworkDiagnosticsClusterRevision::OnAttributeResponse, this); + chip::Callback::Callback * onReportWindowCoveringTypeCallback = + new chip::Callback::Callback( + ReadWindowCoveringType::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringCurrentPositionLiftCallback = + new chip::Callback::Callback( + ReadWindowCoveringCurrentPositionLift::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringCurrentPositionTiltCallback = + new chip::Callback::Callback( + ReadWindowCoveringCurrentPositionTilt::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringConfigStatusCallback = + new chip::Callback::Callback( + ReadWindowCoveringConfigStatus::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringCurrentPositionLiftPercentageCallback = + new chip::Callback::Callback( + ReadWindowCoveringCurrentPositionLiftPercentage::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringCurrentPositionTiltPercentageCallback = + new chip::Callback::Callback( + ReadWindowCoveringCurrentPositionTiltPercentage::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringOperationalStatusCallback = + new chip::Callback::Callback( + ReadWindowCoveringOperationalStatus::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringTargetPositionLiftPercent100thsCallback = + new chip::Callback::Callback( + ReadWindowCoveringTargetPositionLiftPercent100ths::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringTargetPositionTiltPercent100thsCallback = + new chip::Callback::Callback( + ReadWindowCoveringTargetPositionTiltPercent100ths::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringEndProductTypeCallback = + new chip::Callback::Callback( + ReadWindowCoveringEndProductType::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringCurrentPositionLiftPercent100thsCallback = + new chip::Callback::Callback( + ReadWindowCoveringCurrentPositionLiftPercent100ths::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringCurrentPositionTiltPercent100thsCallback = + new chip::Callback::Callback( + ReadWindowCoveringCurrentPositionTiltPercent100ths::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringInstalledOpenLimitLiftCallback = + new chip::Callback::Callback( + ReadWindowCoveringInstalledOpenLimitLift::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringInstalledClosedLimitLiftCallback = + new chip::Callback::Callback( + ReadWindowCoveringInstalledClosedLimitLift::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringInstalledOpenLimitTiltCallback = + new chip::Callback::Callback( + ReadWindowCoveringInstalledOpenLimitTilt::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringInstalledClosedLimitTiltCallback = + new chip::Callback::Callback( + ReadWindowCoveringInstalledClosedLimitTilt::OnAttributeResponse, this); + chip::Callback::Callback * onReportWindowCoveringModeCallback = + new chip::Callback::Callback( + ReadWindowCoveringMode::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringSafetyStatusCallback = + new chip::Callback::Callback( + ReadWindowCoveringSafetyStatus::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringFeatureMapCallback = + new chip::Callback::Callback( + ReadWindowCoveringFeatureMap::OnAttributeResponse, this); + chip::Callback::Callback * + onReportWindowCoveringClusterRevisionCallback = + new chip::Callback::Callback( + ReadWindowCoveringClusterRevision::OnAttributeResponse, this); }; void registerCommandsReporting(Commands & commands) diff --git a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp index 03d775981728f4..c0c7fecec95233 100644 --- a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp @@ -36,38 +36,6 @@ namespace Controller { // AccessControl Cluster Commands // AccessControl Cluster Attributes -CHIP_ERROR AccessControlCluster::ReadAttributeAcl(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - AccessControlClusterAclListAttributeFilter); -} - -CHIP_ERROR AccessControlCluster::ReadAttributeExtension(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - AccessControlClusterExtensionListAttributeFilter); -} - -CHIP_ERROR AccessControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} // AccountLogin Cluster Commands CHIP_ERROR AccountLoginCluster::GetSetupPIN(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, @@ -155,17 +123,6 @@ CHIP_ERROR AccountLoginCluster::Login(Callback::Cancelable * onSuccessCallback, } // AccountLogin Cluster Attributes -CHIP_ERROR AccountLoginCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR AccountLoginCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -323,17 +280,6 @@ CHIP_ERROR AdministratorCommissioningCluster::RevokeCommissioning(Callback::Canc } // AdministratorCommissioning Cluster Attributes -CHIP_ERROR AdministratorCommissioningCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR AdministratorCommissioningCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -394,17 +340,6 @@ CHIP_ERROR ApplicationBasicCluster::ChangeStatus(Callback::Cancelable * onSucces } // ApplicationBasic Cluster Attributes -CHIP_ERROR ApplicationBasicCluster::ReadAttributeVendorName(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ApplicationBasicCluster::SubscribeAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -422,17 +357,6 @@ CHIP_ERROR ApplicationBasicCluster::ReportAttributeVendorName(Callback::Cancelab BasicAttributeFilter); } -CHIP_ERROR ApplicationBasicCluster::ReadAttributeVendorId(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ApplicationBasicCluster::SubscribeAttributeVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -450,17 +374,6 @@ CHIP_ERROR ApplicationBasicCluster::ReportAttributeVendorId(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR ApplicationBasicCluster::ReadAttributeApplicationName(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ApplicationBasicCluster::SubscribeAttributeApplicationName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -478,17 +391,6 @@ CHIP_ERROR ApplicationBasicCluster::ReportAttributeApplicationName(Callback::Can BasicAttributeFilter); } -CHIP_ERROR ApplicationBasicCluster::ReadAttributeProductId(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ApplicationBasicCluster::SubscribeAttributeProductId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -506,17 +408,6 @@ CHIP_ERROR ApplicationBasicCluster::ReportAttributeProductId(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR ApplicationBasicCluster::ReadAttributeApplicationId(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ApplicationBasicCluster::SubscribeAttributeApplicationId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -534,17 +425,6 @@ CHIP_ERROR ApplicationBasicCluster::ReportAttributeApplicationId(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ApplicationBasicCluster::ReadAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ApplicationBasicCluster::SubscribeAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -562,17 +442,6 @@ CHIP_ERROR ApplicationBasicCluster::ReportAttributeCatalogVendorId(Callback::Can BasicAttributeFilter); } -CHIP_ERROR ApplicationBasicCluster::ReadAttributeApplicationStatus(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000007; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ApplicationBasicCluster::SubscribeAttributeApplicationStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -590,17 +459,6 @@ CHIP_ERROR ApplicationBasicCluster::ReportAttributeApplicationStatus(Callback::C BasicAttributeFilter); } -CHIP_ERROR ApplicationBasicCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ApplicationBasicCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -665,28 +523,6 @@ CHIP_ERROR ApplicationLauncherCluster::LaunchApp(Callback::Cancelable * onSucces } // ApplicationLauncher Cluster Attributes -CHIP_ERROR ApplicationLauncherCluster::ReadAttributeApplicationLauncherList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - ApplicationLauncherClusterApplicationLauncherListListAttributeFilter); -} - -CHIP_ERROR ApplicationLauncherCluster::ReadAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ApplicationLauncherCluster::SubscribeAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -704,17 +540,6 @@ CHIP_ERROR ApplicationLauncherCluster::ReportAttributeCatalogVendorId(Callback:: BasicAttributeFilter); } -CHIP_ERROR ApplicationLauncherCluster::ReadAttributeApplicationId(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ApplicationLauncherCluster::SubscribeAttributeApplicationId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -732,17 +557,6 @@ CHIP_ERROR ApplicationLauncherCluster::ReportAttributeApplicationId(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR ApplicationLauncherCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ApplicationLauncherCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -846,28 +660,6 @@ CHIP_ERROR AudioOutputCluster::SelectOutput(Callback::Cancelable * onSuccessCall } // AudioOutput Cluster Attributes -CHIP_ERROR AudioOutputCluster::ReadAttributeAudioOutputList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - AudioOutputClusterAudioOutputListListAttributeFilter); -} - -CHIP_ERROR AudioOutputCluster::ReadAttributeCurrentAudioOutput(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR AudioOutputCluster::SubscribeAttributeCurrentAudioOutput(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -885,17 +677,6 @@ CHIP_ERROR AudioOutputCluster::ReportAttributeCurrentAudioOutput(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR AudioOutputCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR AudioOutputCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -996,17 +777,6 @@ CHIP_ERROR BarrierControlCluster::BarrierControlStop(Callback::Cancelable * onSu } // BarrierControl Cluster Attributes -CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierMovingState(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BarrierControlCluster::SubscribeAttributeBarrierMovingState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1024,17 +794,6 @@ CHIP_ERROR BarrierControlCluster::ReportAttributeBarrierMovingState(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierSafetyStatus(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BarrierControlCluster::SubscribeAttributeBarrierSafetyStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1052,17 +811,6 @@ CHIP_ERROR BarrierControlCluster::ReportAttributeBarrierSafetyStatus(Callback::C BasicAttributeFilter); } -CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierCapabilities(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BarrierControlCluster::SubscribeAttributeBarrierCapabilities(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1080,17 +828,6 @@ CHIP_ERROR BarrierControlCluster::ReportAttributeBarrierCapabilities(Callback::C BasicAttributeFilter); } -CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierPosition(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BarrierControlCluster::SubscribeAttributeBarrierPosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1108,17 +845,6 @@ CHIP_ERROR BarrierControlCluster::ReportAttributeBarrierPosition(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR BarrierControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BarrierControlCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1176,17 +902,6 @@ CHIP_ERROR BasicCluster::MfgSpecificPing(Callback::Cancelable * onSuccessCallbac } // Basic Cluster Attributes -CHIP_ERROR BasicCluster::ReadAttributeInteractionModelVersion(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeInteractionModelVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1204,16 +919,6 @@ CHIP_ERROR BasicCluster::ReportAttributeInteractionModelVersion(Callback::Cancel BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1231,16 +936,6 @@ CHIP_ERROR BasicCluster::ReportAttributeVendorName(Callback::Cancelable * onRepo BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeVendorID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeVendorID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1258,17 +953,6 @@ CHIP_ERROR BasicCluster::ReportAttributeVendorID(Callback::Cancelable * onReport BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeProductName(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeProductName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1286,16 +970,6 @@ CHIP_ERROR BasicCluster::ReportAttributeProductName(Callback::Cancelable * onRep BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeProductID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeProductID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1313,16 +987,6 @@ CHIP_ERROR BasicCluster::ReportAttributeProductID(Callback::Cancelable * onRepor BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeNodeLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeNodeLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1340,16 +1004,6 @@ CHIP_ERROR BasicCluster::ReportAttributeNodeLabel(Callback::Cancelable * onRepor BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeLocation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeLocation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1367,17 +1021,6 @@ CHIP_ERROR BasicCluster::ReportAttributeLocation(Callback::Cancelable * onReport BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeHardwareVersion(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000007; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeHardwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1395,17 +1038,6 @@ CHIP_ERROR BasicCluster::ReportAttributeHardwareVersion(Callback::Cancelable * o BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeHardwareVersionString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000008; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeHardwareVersionString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1423,17 +1055,6 @@ CHIP_ERROR BasicCluster::ReportAttributeHardwareVersionString(Callback::Cancelab BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeSoftwareVersion(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000009; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeSoftwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1451,17 +1072,6 @@ CHIP_ERROR BasicCluster::ReportAttributeSoftwareVersion(Callback::Cancelable * o BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeSoftwareVersionString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeSoftwareVersionString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1479,17 +1089,6 @@ CHIP_ERROR BasicCluster::ReportAttributeSoftwareVersionString(Callback::Cancelab BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeManufacturingDate(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeManufacturingDate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1507,16 +1106,6 @@ CHIP_ERROR BasicCluster::ReportAttributeManufacturingDate(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributePartNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributePartNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1534,16 +1123,6 @@ CHIP_ERROR BasicCluster::ReportAttributePartNumber(Callback::Cancelable * onRepo BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeProductURL(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000D; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeProductURL(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1561,17 +1140,6 @@ CHIP_ERROR BasicCluster::ReportAttributeProductURL(Callback::Cancelable * onRepo BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeProductLabel(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000E; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeProductLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1589,17 +1157,6 @@ CHIP_ERROR BasicCluster::ReportAttributeProductLabel(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeSerialNumber(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000F; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeSerialNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1617,17 +1174,6 @@ CHIP_ERROR BasicCluster::ReportAttributeSerialNumber(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeLocalConfigDisabled(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000010; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeLocalConfigDisabled(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1645,16 +1191,6 @@ CHIP_ERROR BasicCluster::ReportAttributeLocalConfigDisabled(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeReachable(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000011; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeReachable(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1672,27 +1208,6 @@ CHIP_ERROR BasicCluster::ReportAttributeReachable(Callback::Cancelable * onRepor BasicAttributeFilter); } -CHIP_ERROR BasicCluster::ReadAttributeUniqueID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000012; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR BasicCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BasicCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1712,17 +1227,6 @@ CHIP_ERROR BasicCluster::ReportAttributeClusterRevision(Callback::Cancelable * o // BinaryInputBasic Cluster Commands // BinaryInputBasic Cluster Attributes -CHIP_ERROR BinaryInputBasicCluster::ReadAttributeOutOfService(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000051; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BinaryInputBasicCluster::SubscribeAttributeOutOfService(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1740,17 +1244,6 @@ CHIP_ERROR BinaryInputBasicCluster::ReportAttributeOutOfService(Callback::Cancel BasicAttributeFilter); } -CHIP_ERROR BinaryInputBasicCluster::ReadAttributePresentValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000055; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BinaryInputBasicCluster::SubscribeAttributePresentValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1768,17 +1261,6 @@ CHIP_ERROR BinaryInputBasicCluster::ReportAttributePresentValue(Callback::Cancel BasicAttributeFilter); } -CHIP_ERROR BinaryInputBasicCluster::ReadAttributeStatusFlags(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000006F; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BinaryInputBasicCluster::SubscribeAttributeStatusFlags(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1796,17 +1278,6 @@ CHIP_ERROR BinaryInputBasicCluster::ReportAttributeStatusFlags(Callback::Cancela BasicAttributeFilter); } -CHIP_ERROR BinaryInputBasicCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BinaryInputBasicCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1921,17 +1392,6 @@ CHIP_ERROR BindingCluster::Unbind(Callback::Cancelable * onSuccessCallback, Call } // Binding Cluster Attributes -CHIP_ERROR BindingCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BindingCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1951,17 +1411,6 @@ CHIP_ERROR BindingCluster::ReportAttributeClusterRevision(Callback::Cancelable * // BooleanState Cluster Commands // BooleanState Cluster Attributes -CHIP_ERROR BooleanStateCluster::ReadAttributeStateValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BooleanStateCluster::SubscribeAttributeStateValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1979,17 +1428,6 @@ CHIP_ERROR BooleanStateCluster::ReportAttributeStateValue(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR BooleanStateCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BooleanStateCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -2545,39 +1983,6 @@ CHIP_ERROR BridgedActionsCluster::StopAction(Callback::Cancelable * onSuccessCal } // BridgedActions Cluster Attributes -CHIP_ERROR BridgedActionsCluster::ReadAttributeActionList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BridgedActionsClusterActionListListAttributeFilter); -} - -CHIP_ERROR BridgedActionsCluster::ReadAttributeEndpointList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BridgedActionsClusterEndpointListListAttributeFilter); -} - -CHIP_ERROR BridgedActionsCluster::ReadAttributeSetupUrl(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BridgedActionsCluster::SubscribeAttributeSetupUrl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -2595,17 +2000,6 @@ CHIP_ERROR BridgedActionsCluster::ReportAttributeSetupUrl(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR BridgedActionsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BridgedActionsCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -2625,17 +2019,6 @@ CHIP_ERROR BridgedActionsCluster::ReportAttributeClusterRevision(Callback::Cance // BridgedDeviceBasic Cluster Commands // BridgedDeviceBasic Cluster Attributes -CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR BridgedDeviceBasicCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3598,17 +2981,6 @@ CHIP_ERROR ColorControlCluster::StopMoveStep(Callback::Cancelable * onSuccessCal } // ColorControl Cluster Attributes -CHIP_ERROR ColorControlCluster::ReadAttributeCurrentHue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeCurrentHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3626,17 +2998,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeCurrentHue(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeCurrentSaturation(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeCurrentSaturation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3654,17 +3015,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeCurrentSaturation(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeRemainingTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeRemainingTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3682,17 +3032,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeRemainingTime(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeCurrentX(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeCurrentX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3710,17 +3049,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeCurrentX(Callback::Cancelable * o BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeCurrentY(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeCurrentY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3738,17 +3066,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeCurrentY(Callback::Cancelable * o BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeDriftCompensation(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeDriftCompensation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3766,17 +3083,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeDriftCompensation(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeCompensationText(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeCompensationText(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3794,17 +3100,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeCompensationText(Callback::Cancel BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorTemperature(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000007; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorTemperature(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3822,17 +3117,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorTemperature(Callback::Cancel BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000008; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3850,17 +3134,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorMode(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorControlOptions(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000F; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorControlOptions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3878,17 +3151,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorControlOptions(Callback::Can BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeNumberOfPrimaries(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000010; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeNumberOfPrimaries(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3906,17 +3168,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeNumberOfPrimaries(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary1X(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000011; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary1X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3934,17 +3185,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary1X(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary1Y(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000012; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary1Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3962,17 +3202,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary1Y(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary1Intensity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000013; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary1Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -3990,17 +3219,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary1Intensity(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary2X(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000015; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary2X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4018,17 +3236,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary2X(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary2Y(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000016; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary2Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4046,17 +3253,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary2Y(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary2Intensity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000017; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary2Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4074,17 +3270,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary2Intensity(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary3X(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000019; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary3X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4102,17 +3287,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary3X(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary3Y(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary3Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4130,17 +3304,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary3Y(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary3Intensity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary3Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4158,17 +3321,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary3Intensity(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary4X(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000020; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary4X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4186,17 +3338,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary4X(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary4Y(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000021; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary4Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4214,17 +3355,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary4Y(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary4Intensity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000022; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary4Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4242,17 +3372,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary4Intensity(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary5X(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000024; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary5X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4270,17 +3389,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary5X(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary5Y(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000025; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary5Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4298,17 +3406,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary5Y(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary5Intensity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000026; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary5Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4326,17 +3423,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary5Intensity(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary6X(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000028; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary6X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4354,17 +3440,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary6X(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary6Y(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000029; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary6Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4382,17 +3457,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary6Y(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributePrimary6Intensity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000002A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributePrimary6Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4410,17 +3474,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributePrimary6Intensity(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeWhitePointX(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000030; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeWhitePointX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4438,17 +3491,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeWhitePointX(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeWhitePointY(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000031; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeWhitePointY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4466,17 +3508,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeWhitePointY(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorPointRX(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000032; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorPointRX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4494,17 +3525,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorPointRX(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorPointRY(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000033; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorPointRY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4522,17 +3542,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorPointRY(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorPointRIntensity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000034; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorPointRIntensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4550,17 +3559,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorPointRIntensity(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorPointGX(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000036; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorPointGX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4578,17 +3576,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorPointGX(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorPointGY(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000037; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorPointGY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4606,17 +3593,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorPointGY(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorPointGIntensity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000038; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorPointGIntensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4634,17 +3610,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorPointGIntensity(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorPointBX(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000003A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorPointBX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4662,17 +3627,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorPointBX(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorPointBY(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000003B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorPointBY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4690,17 +3644,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorPointBY(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorPointBIntensity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000003C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorPointBIntensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4718,17 +3661,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorPointBIntensity(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeEnhancedCurrentHue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeEnhancedCurrentHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4746,17 +3678,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeEnhancedCurrentHue(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeEnhancedColorMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeEnhancedColorMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4774,17 +3695,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeEnhancedColorMode(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopActive(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorLoopActive(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4802,17 +3712,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorLoopActive(Callback::Cancela BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopDirection(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorLoopDirection(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4830,17 +3729,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorLoopDirection(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorLoopTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4858,17 +3746,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorLoopTime(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopStartEnhancedHue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorLoopStartEnhancedHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4886,17 +3763,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorLoopStartEnhancedHue(Callbac BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopStoredEnhancedHue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorLoopStoredEnhancedHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4914,17 +3780,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorLoopStoredEnhancedHue(Callba BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorCapabilities(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000400A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorCapabilities(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4942,17 +3797,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorCapabilities(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorTempPhysicalMin(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000400B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorTempPhysicalMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4970,17 +3814,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorTempPhysicalMin(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeColorTempPhysicalMax(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000400C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeColorTempPhysicalMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -4998,17 +3831,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorTempPhysicalMax(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeCoupleColorTempToLevelMinMireds(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000400D; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeCoupleColorTempToLevelMinMireds(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -5026,17 +3848,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeCoupleColorTempToLevelMinMireds(C BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeStartUpColorTemperatureMireds(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004010; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeStartUpColorTemperatureMireds(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -5054,17 +3865,6 @@ CHIP_ERROR ColorControlCluster::ReportAttributeStartUpColorTemperatureMireds(Cal BasicAttributeFilter); } -CHIP_ERROR ColorControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ColorControlCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -5170,39 +3970,6 @@ CHIP_ERROR ContentLauncherCluster::LaunchURL(Callback::Cancelable * onSuccessCal } // ContentLauncher Cluster Attributes -CHIP_ERROR ContentLauncherCluster::ReadAttributeAcceptsHeaderList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - ContentLauncherClusterAcceptsHeaderListListAttributeFilter); -} - -CHIP_ERROR ContentLauncherCluster::ReadAttributeSupportedStreamingTypes(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - ContentLauncherClusterSupportedStreamingTypesListAttributeFilter); -} - -CHIP_ERROR ContentLauncherCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ContentLauncherCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -5222,61 +3989,6 @@ CHIP_ERROR ContentLauncherCluster::ReportAttributeClusterRevision(Callback::Canc // Descriptor Cluster Commands // Descriptor Cluster Attributes -CHIP_ERROR DescriptorCluster::ReadAttributeDeviceList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - DescriptorClusterDeviceListListAttributeFilter); -} - -CHIP_ERROR DescriptorCluster::ReadAttributeServerList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - DescriptorClusterServerListListAttributeFilter); -} - -CHIP_ERROR DescriptorCluster::ReadAttributeClientList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - DescriptorClusterClientListListAttributeFilter); -} - -CHIP_ERROR DescriptorCluster::ReadAttributePartsList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - DescriptorClusterPartsListListAttributeFilter); -} - -CHIP_ERROR DescriptorCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR DescriptorCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6333,17 +5045,6 @@ CHIP_ERROR DoorLockCluster::UnlockWithTimeout(Callback::Cancelable * onSuccessCa } // DoorLock Cluster Attributes -CHIP_ERROR DoorLockCluster::ReadAttributeActuatorEnabled(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR DoorLockCluster::SubscribeAttributeActuatorEnabled(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6361,17 +5062,6 @@ CHIP_ERROR DoorLockCluster::ReportAttributeActuatorEnabled(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR DoorLockCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR DoorLockCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6391,17 +5081,6 @@ CHIP_ERROR DoorLockCluster::ReportAttributeClusterRevision(Callback::Cancelable // ElectricalMeasurement Cluster Commands // ElectricalMeasurement Cluster Attributes -CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeMeasurementType(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ElectricalMeasurementCluster::SubscribeAttributeMeasurementType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6419,17 +5098,6 @@ CHIP_ERROR ElectricalMeasurementCluster::ReportAttributeMeasurementType(Callback BasicAttributeFilter); } -CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeTotalActivePower(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000304; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ElectricalMeasurementCluster::SubscribeAttributeTotalActivePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6447,17 +5115,6 @@ CHIP_ERROR ElectricalMeasurementCluster::ReportAttributeTotalActivePower(Callbac BasicAttributeFilter); } -CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsVoltage(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000505; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ElectricalMeasurementCluster::SubscribeAttributeRmsVoltage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6475,17 +5132,6 @@ CHIP_ERROR ElectricalMeasurementCluster::ReportAttributeRmsVoltage(Callback::Can BasicAttributeFilter); } -CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsVoltageMin(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000506; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ElectricalMeasurementCluster::SubscribeAttributeRmsVoltageMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6503,17 +5149,6 @@ CHIP_ERROR ElectricalMeasurementCluster::ReportAttributeRmsVoltageMin(Callback:: BasicAttributeFilter); } -CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsVoltageMax(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000507; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ElectricalMeasurementCluster::SubscribeAttributeRmsVoltageMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6531,17 +5166,6 @@ CHIP_ERROR ElectricalMeasurementCluster::ReportAttributeRmsVoltageMax(Callback:: BasicAttributeFilter); } -CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsCurrent(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000508; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ElectricalMeasurementCluster::SubscribeAttributeRmsCurrent(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6559,17 +5183,6 @@ CHIP_ERROR ElectricalMeasurementCluster::ReportAttributeRmsCurrent(Callback::Can BasicAttributeFilter); } -CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsCurrentMin(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000509; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ElectricalMeasurementCluster::SubscribeAttributeRmsCurrentMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6587,17 +5200,6 @@ CHIP_ERROR ElectricalMeasurementCluster::ReportAttributeRmsCurrentMin(Callback:: BasicAttributeFilter); } -CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsCurrentMax(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000050A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ElectricalMeasurementCluster::SubscribeAttributeRmsCurrentMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6615,17 +5217,6 @@ CHIP_ERROR ElectricalMeasurementCluster::ReportAttributeRmsCurrentMax(Callback:: BasicAttributeFilter); } -CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeActivePower(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000050B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ElectricalMeasurementCluster::SubscribeAttributeActivePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6643,17 +5234,6 @@ CHIP_ERROR ElectricalMeasurementCluster::ReportAttributeActivePower(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeActivePowerMin(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000050C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ElectricalMeasurementCluster::SubscribeAttributeActivePowerMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6671,17 +5251,6 @@ CHIP_ERROR ElectricalMeasurementCluster::ReportAttributeActivePowerMin(Callback: BasicAttributeFilter); } -CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeActivePowerMax(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000050D; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ElectricalMeasurementCluster::SubscribeAttributeActivePowerMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6699,17 +5268,6 @@ CHIP_ERROR ElectricalMeasurementCluster::ReportAttributeActivePowerMax(Callback: BasicAttributeFilter); } -CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ElectricalMeasurementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6769,17 +5327,6 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ResetCounts(Callback::Cancelable * } // EthernetNetworkDiagnostics Cluster Attributes -CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributePHYRate(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR EthernetNetworkDiagnosticsCluster::SubscribeAttributePHYRate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6797,17 +5344,6 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReportAttributePHYRate(Callback::C BasicAttributeFilter); } -CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeFullDuplex(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR EthernetNetworkDiagnosticsCluster::SubscribeAttributeFullDuplex(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6825,17 +5361,6 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReportAttributeFullDuplex(Callback BasicAttributeFilter); } -CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributePacketRxCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR EthernetNetworkDiagnosticsCluster::SubscribeAttributePacketRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6853,17 +5378,6 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReportAttributePacketRxCount(Callb BasicAttributeFilter); } -CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributePacketTxCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR EthernetNetworkDiagnosticsCluster::SubscribeAttributePacketTxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6881,17 +5395,6 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReportAttributePacketTxCount(Callb BasicAttributeFilter); } -CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeTxErrCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR EthernetNetworkDiagnosticsCluster::SubscribeAttributeTxErrCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6909,17 +5412,6 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReportAttributeTxErrCount(Callback BasicAttributeFilter); } -CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeCollisionCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR EthernetNetworkDiagnosticsCluster::SubscribeAttributeCollisionCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6937,17 +5429,6 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReportAttributeCollisionCount(Call BasicAttributeFilter); } -CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR EthernetNetworkDiagnosticsCluster::SubscribeAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6965,17 +5446,6 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReportAttributeOverrunCount(Callba BasicAttributeFilter); } -CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeCarrierDetect(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000007; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR EthernetNetworkDiagnosticsCluster::SubscribeAttributeCarrierDetect(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -6993,17 +5463,6 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReportAttributeCarrierDetect(Callb BasicAttributeFilter); } -CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeTimeSinceReset(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000008; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR EthernetNetworkDiagnosticsCluster::SubscribeAttributeTimeSinceReset(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7021,28 +5480,6 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReportAttributeTimeSinceReset(Call BasicAttributeFilter); } -CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR EthernetNetworkDiagnosticsCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7062,28 +5499,6 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReportAttributeClusterRevision(Cal // FixedLabel Cluster Commands // FixedLabel Cluster Attributes -CHIP_ERROR FixedLabelCluster::ReadAttributeLabelList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - FixedLabelClusterLabelListListAttributeFilter); -} - -CHIP_ERROR FixedLabelCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FixedLabelCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7103,17 +5518,6 @@ CHIP_ERROR FixedLabelCluster::ReportAttributeClusterRevision(Callback::Cancelabl // FlowMeasurement Cluster Commands // FlowMeasurement Cluster Attributes -CHIP_ERROR FlowMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7131,17 +5535,6 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeMeasuredValue(Callback::Cancel BasicAttributeFilter); } -CHIP_ERROR FlowMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7159,17 +5552,6 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeMinMeasuredValue(Callback::Can BasicAttributeFilter); } -CHIP_ERROR FlowMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7187,17 +5569,6 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeMaxMeasuredValue(Callback::Can BasicAttributeFilter); } -CHIP_ERROR FlowMeasurementCluster::ReadAttributeTolerance(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7215,17 +5586,6 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeTolerance(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR FlowMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7380,17 +5740,6 @@ CHIP_ERROR GeneralCommissioningCluster::SetRegulatoryConfig(Callback::Cancelable } // GeneralCommissioning Cluster Attributes -CHIP_ERROR GeneralCommissioningCluster::ReadAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR GeneralCommissioningCluster::SubscribeAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7408,50 +5757,6 @@ CHIP_ERROR GeneralCommissioningCluster::ReportAttributeBreadcrumb(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR GeneralCommissioningCluster::ReadAttributeBasicCommissioningInfoList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - GeneralCommissioningClusterBasicCommissioningInfoListListAttributeFilter); -} - -CHIP_ERROR GeneralCommissioningCluster::ReadAttributeRegulatoryConfig(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR GeneralCommissioningCluster::ReadAttributeLocationCapability(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR GeneralCommissioningCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR GeneralCommissioningCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7471,28 +5776,6 @@ CHIP_ERROR GeneralCommissioningCluster::ReportAttributeClusterRevision(Callback: // GeneralDiagnostics Cluster Commands // GeneralDiagnostics Cluster Attributes -CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeNetworkInterfaces(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - GeneralDiagnosticsClusterNetworkInterfacesListAttributeFilter); -} - -CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeRebootCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR GeneralDiagnosticsCluster::SubscribeAttributeRebootCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7510,17 +5793,6 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReportAttributeRebootCount(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeUpTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR GeneralDiagnosticsCluster::SubscribeAttributeUpTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7538,17 +5810,6 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReportAttributeUpTime(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeTotalOperationalHours(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR GeneralDiagnosticsCluster::SubscribeAttributeTotalOperationalHours(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7566,17 +5827,6 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReportAttributeTotalOperationalHours(Callb BasicAttributeFilter); } -CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeBootReasons(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR GeneralDiagnosticsCluster::SubscribeAttributeBootReasons(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7594,50 +5844,6 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReportAttributeBootReasons(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeActiveHardwareFaults(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - GeneralDiagnosticsClusterActiveHardwareFaultsListAttributeFilter); -} - -CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeActiveRadioFaults(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - GeneralDiagnosticsClusterActiveRadioFaultsListAttributeFilter); -} - -CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeActiveNetworkFaults(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000007; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - GeneralDiagnosticsClusterActiveNetworkFaultsListAttributeFilter); -} - -CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR GeneralDiagnosticsCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7657,39 +5863,6 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReportAttributeClusterRevision(Callback::C // GroupKeyManagement Cluster Commands // GroupKeyManagement Cluster Attributes -CHIP_ERROR GroupKeyManagementCluster::ReadAttributeGroups(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - GroupKeyManagementClusterGroupsListAttributeFilter); -} - -CHIP_ERROR GroupKeyManagementCluster::ReadAttributeGroupKeys(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - GroupKeyManagementClusterGroupKeysListAttributeFilter); -} - -CHIP_ERROR GroupKeyManagementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR GroupKeyManagementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7956,17 +6129,6 @@ CHIP_ERROR GroupsCluster::ViewGroup(Callback::Cancelable * onSuccessCallback, Ca } // Groups Cluster Attributes -CHIP_ERROR GroupsCluster::ReadAttributeNameSupport(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR GroupsCluster::SubscribeAttributeNameSupport(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -7984,17 +6146,6 @@ CHIP_ERROR GroupsCluster::ReportAttributeNameSupport(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR GroupsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR GroupsCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8136,17 +6287,6 @@ CHIP_ERROR IdentifyCluster::TriggerEffect(Callback::Cancelable * onSuccessCallba } // Identify Cluster Attributes -CHIP_ERROR IdentifyCluster::ReadAttributeIdentifyTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR IdentifyCluster::SubscribeAttributeIdentifyTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8164,17 +6304,6 @@ CHIP_ERROR IdentifyCluster::ReportAttributeIdentifyTime(Callback::Cancelable * o BasicAttributeFilter); } -CHIP_ERROR IdentifyCluster::ReadAttributeIdentifyType(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR IdentifyCluster::SubscribeAttributeIdentifyType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8192,17 +6321,6 @@ CHIP_ERROR IdentifyCluster::ReportAttributeIdentifyType(Callback::Cancelable * o BasicAttributeFilter); } -CHIP_ERROR IdentifyCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR IdentifyCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8222,17 +6340,6 @@ CHIP_ERROR IdentifyCluster::ReportAttributeClusterRevision(Callback::Cancelable // IlluminanceMeasurement Cluster Commands // IlluminanceMeasurement Cluster Attributes -CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR IlluminanceMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8250,17 +6357,6 @@ CHIP_ERROR IlluminanceMeasurementCluster::ReportAttributeMeasuredValue(Callback: BasicAttributeFilter); } -CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR IlluminanceMeasurementCluster::SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8278,17 +6374,6 @@ CHIP_ERROR IlluminanceMeasurementCluster::ReportAttributeMinMeasuredValue(Callba BasicAttributeFilter); } -CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR IlluminanceMeasurementCluster::SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8306,17 +6391,6 @@ CHIP_ERROR IlluminanceMeasurementCluster::ReportAttributeMaxMeasuredValue(Callba BasicAttributeFilter); } -CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeTolerance(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR IlluminanceMeasurementCluster::SubscribeAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8334,17 +6408,6 @@ CHIP_ERROR IlluminanceMeasurementCluster::ReportAttributeTolerance(Callback::Can BasicAttributeFilter); } -CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeLightSensorType(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR IlluminanceMeasurementCluster::SubscribeAttributeLightSensorType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8362,17 +6425,6 @@ CHIP_ERROR IlluminanceMeasurementCluster::ReportAttributeLightSensorType(Callbac BasicAttributeFilter); } -CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR IlluminanceMeasurementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8433,17 +6485,6 @@ CHIP_ERROR KeypadInputCluster::SendKey(Callback::Cancelable * onSuccessCallback, } // KeypadInput Cluster Attributes -CHIP_ERROR KeypadInputCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR KeypadInputCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8820,17 +6861,6 @@ CHIP_ERROR LevelControlCluster::StopWithOnOff(Callback::Cancelable * onSuccessCa } // LevelControl Cluster Attributes -CHIP_ERROR LevelControlCluster::ReadAttributeCurrentLevel(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8848,17 +6878,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeCurrentLevel(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeRemainingTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeRemainingTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8876,17 +6895,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeRemainingTime(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeMinLevel(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeMinLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8904,17 +6912,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeMinLevel(Callback::Cancelable * o BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeMaxLevel(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeMaxLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8932,17 +6929,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeMaxLevel(Callback::Cancelable * o BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeCurrentFrequency(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeCurrentFrequency(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8960,17 +6946,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeCurrentFrequency(Callback::Cancel BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeMinFrequency(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeMinFrequency(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -8988,17 +6963,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeMinFrequency(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeMaxFrequency(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeMaxFrequency(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -9016,17 +6980,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeMaxFrequency(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeOptions(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000F; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeOptions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -9044,17 +6997,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeOptions(Callback::Cancelable * on BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeOnOffTransitionTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000010; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeOnOffTransitionTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -9072,17 +7014,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeOnOffTransitionTime(Callback::Can BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeOnLevel(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000011; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeOnLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -9100,17 +7031,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeOnLevel(Callback::Cancelable * on BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeOnTransitionTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000012; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeOnTransitionTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -9128,22 +7048,11 @@ CHIP_ERROR LevelControlCluster::ReportAttributeOnTransitionTime(Callback::Cancel BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeOffTransitionTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) +CHIP_ERROR LevelControlCluster::SubscribeAttributeOffTransitionTime(Callback::Cancelable * onSuccessCallback, + Callback::Cancelable * onFailureCallback, uint16_t minInterval, + uint16_t maxInterval) { - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000013; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR LevelControlCluster::SubscribeAttributeOffTransitionTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, uint16_t minInterval, - uint16_t maxInterval) -{ - chip::app::AttributePathParams attributePath; + chip::app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mAttributeId = LevelControl::Attributes::OffTransitionTime::Id; @@ -9156,17 +7065,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeOffTransitionTime(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeDefaultMoveRate(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000014; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeDefaultMoveRate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -9184,17 +7082,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeDefaultMoveRate(Callback::Cancela BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeStartUpCurrentLevel(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeStartUpCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -9212,17 +7099,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeStartUpCurrentLevel(Callback::Can BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -9280,17 +7156,6 @@ CHIP_ERROR LowPowerCluster::Sleep(Callback::Cancelable * onSuccessCallback, Call } // LowPower Cluster Attributes -CHIP_ERROR LowPowerCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LowPowerCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -9470,28 +7335,6 @@ CHIP_ERROR MediaInputCluster::ShowInputStatus(Callback::Cancelable * onSuccessCa } // MediaInput Cluster Attributes -CHIP_ERROR MediaInputCluster::ReadAttributeMediaInputList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - MediaInputClusterMediaInputListListAttributeFilter); -} - -CHIP_ERROR MediaInputCluster::ReadAttributeCurrentMediaInput(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR MediaInputCluster::SubscribeAttributeCurrentMediaInput(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -9509,17 +7352,6 @@ CHIP_ERROR MediaInputCluster::ReportAttributeCurrentMediaInput(Callback::Cancela BasicAttributeFilter); } -CHIP_ERROR MediaInputCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR MediaInputCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -9967,17 +7799,6 @@ CHIP_ERROR MediaPlaybackCluster::MediaStop(Callback::Cancelable * onSuccessCallb } // MediaPlayback Cluster Attributes -CHIP_ERROR MediaPlaybackCluster::ReadAttributePlaybackState(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR MediaPlaybackCluster::SubscribeAttributePlaybackState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -9995,17 +7816,6 @@ CHIP_ERROR MediaPlaybackCluster::ReportAttributePlaybackState(Callback::Cancelab BasicAttributeFilter); } -CHIP_ERROR MediaPlaybackCluster::ReadAttributeStartTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR MediaPlaybackCluster::SubscribeAttributeStartTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10023,17 +7833,6 @@ CHIP_ERROR MediaPlaybackCluster::ReportAttributeStartTime(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR MediaPlaybackCluster::ReadAttributeDuration(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR MediaPlaybackCluster::SubscribeAttributeDuration(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10051,17 +7850,6 @@ CHIP_ERROR MediaPlaybackCluster::ReportAttributeDuration(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR MediaPlaybackCluster::ReadAttributePositionUpdatedAt(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR MediaPlaybackCluster::SubscribeAttributePositionUpdatedAt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10079,17 +7867,6 @@ CHIP_ERROR MediaPlaybackCluster::ReportAttributePositionUpdatedAt(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR MediaPlaybackCluster::ReadAttributePosition(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR MediaPlaybackCluster::SubscribeAttributePosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10107,17 +7884,6 @@ CHIP_ERROR MediaPlaybackCluster::ReportAttributePosition(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR MediaPlaybackCluster::ReadAttributePlaybackSpeed(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR MediaPlaybackCluster::SubscribeAttributePlaybackSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10135,17 +7901,6 @@ CHIP_ERROR MediaPlaybackCluster::ReportAttributePlaybackSpeed(Callback::Cancelab BasicAttributeFilter); } -CHIP_ERROR MediaPlaybackCluster::ReadAttributeSeekRangeEnd(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR MediaPlaybackCluster::SubscribeAttributeSeekRangeEnd(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10163,17 +7918,6 @@ CHIP_ERROR MediaPlaybackCluster::ReportAttributeSeekRangeEnd(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR MediaPlaybackCluster::ReadAttributeSeekRangeStart(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000007; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR MediaPlaybackCluster::SubscribeAttributeSeekRangeStart(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10191,17 +7935,6 @@ CHIP_ERROR MediaPlaybackCluster::ReportAttributeSeekRangeStart(Callback::Cancela BasicAttributeFilter); } -CHIP_ERROR MediaPlaybackCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR MediaPlaybackCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10262,17 +7995,6 @@ CHIP_ERROR ModeSelectCluster::ChangeToMode(Callback::Cancelable * onSuccessCallb } // ModeSelect Cluster Attributes -CHIP_ERROR ModeSelectCluster::ReadAttributeCurrentMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ModeSelectCluster::SubscribeAttributeCurrentMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10290,28 +8012,6 @@ CHIP_ERROR ModeSelectCluster::ReportAttributeCurrentMode(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ModeSelectCluster::ReadAttributeSupportedModes(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - ModeSelectClusterSupportedModesListAttributeFilter); -} - -CHIP_ERROR ModeSelectCluster::ReadAttributeOnMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ModeSelectCluster::SubscribeAttributeOnMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10329,17 +8029,6 @@ CHIP_ERROR ModeSelectCluster::ReportAttributeOnMode(Callback::Cancelable * onRep BasicAttributeFilter); } -CHIP_ERROR ModeSelectCluster::ReadAttributeStartUpMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ModeSelectCluster::SubscribeAttributeStartUpMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10357,17 +8046,6 @@ CHIP_ERROR ModeSelectCluster::ReportAttributeStartUpMode(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ModeSelectCluster::ReadAttributeDescription(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ModeSelectCluster::SubscribeAttributeDescription(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10385,17 +8063,6 @@ CHIP_ERROR ModeSelectCluster::ReportAttributeDescription(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ModeSelectCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ModeSelectCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10793,17 +8460,6 @@ CHIP_ERROR NetworkCommissioningCluster::UpdateWiFiNetwork(Callback::Cancelable * } // NetworkCommissioning Cluster Attributes -CHIP_ERROR NetworkCommissioningCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR NetworkCommissioningCluster::SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -10821,17 +8477,6 @@ CHIP_ERROR NetworkCommissioningCluster::ReportAttributeFeatureMap(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR NetworkCommissioningCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR NetworkCommissioningCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11000,17 +8645,6 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::QueryImage(Callback::Cancelable * o } // OtaSoftwareUpdateProvider Cluster Attributes -CHIP_ERROR OtaSoftwareUpdateProviderCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OtaSoftwareUpdateProviderCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11080,17 +8714,6 @@ CHIP_ERROR OtaSoftwareUpdateRequestorCluster::AnnounceOtaProvider(Callback::Canc } // OtaSoftwareUpdateRequestor Cluster Attributes -CHIP_ERROR OtaSoftwareUpdateRequestorCluster::ReadAttributeDefaultOtaProvider(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OtaSoftwareUpdateRequestorCluster::SubscribeAttributeDefaultOtaProvider(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11108,17 +8731,6 @@ CHIP_ERROR OtaSoftwareUpdateRequestorCluster::ReportAttributeDefaultOtaProvider( BasicAttributeFilter); } -CHIP_ERROR OtaSoftwareUpdateRequestorCluster::ReadAttributeUpdatePossible(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OtaSoftwareUpdateRequestorCluster::SubscribeAttributeUpdatePossible(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11136,17 +8748,6 @@ CHIP_ERROR OtaSoftwareUpdateRequestorCluster::ReportAttributeUpdatePossible(Call BasicAttributeFilter); } -CHIP_ERROR OtaSoftwareUpdateRequestorCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OtaSoftwareUpdateRequestorCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11166,17 +8767,6 @@ CHIP_ERROR OtaSoftwareUpdateRequestorCluster::ReportAttributeClusterRevision(Cal // OccupancySensing Cluster Commands // OccupancySensing Cluster Attributes -CHIP_ERROR OccupancySensingCluster::ReadAttributeOccupancy(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OccupancySensingCluster::SubscribeAttributeOccupancy(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11194,17 +8784,6 @@ CHIP_ERROR OccupancySensingCluster::ReportAttributeOccupancy(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR OccupancySensingCluster::ReadAttributeOccupancySensorType(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OccupancySensingCluster::SubscribeAttributeOccupancySensorType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11222,17 +8801,6 @@ CHIP_ERROR OccupancySensingCluster::ReportAttributeOccupancySensorType(Callback: BasicAttributeFilter); } -CHIP_ERROR OccupancySensingCluster::ReadAttributeOccupancySensorTypeBitmap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OccupancySensingCluster::SubscribeAttributeOccupancySensorTypeBitmap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11250,17 +8818,6 @@ CHIP_ERROR OccupancySensingCluster::ReportAttributeOccupancySensorTypeBitmap(Cal BasicAttributeFilter); } -CHIP_ERROR OccupancySensingCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OccupancySensingCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11520,16 +9077,6 @@ CHIP_ERROR OnOffCluster::Toggle(Callback::Cancelable * onSuccessCallback, Callba } // OnOff Cluster Attributes -CHIP_ERROR OnOffCluster::ReadAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) { @@ -11546,17 +9093,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeOnOff(Callback::Cancelable * onReportCal BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeGlobalSceneControl(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeGlobalSceneControl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11574,16 +9110,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeGlobalSceneControl(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11601,17 +9127,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeOnTime(Callback::Cancelable * onReportCa BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11629,17 +9144,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeOffWaitTime(Callback::Cancelable * onRep BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11657,16 +9161,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeStartUpOnOff(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11684,17 +9178,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeFeatureMap(Callback::Cancelable * onRepo BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11714,17 +9197,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeClusterRevision(Callback::Cancelable * o // OnOffSwitchConfiguration Cluster Commands // OnOffSwitchConfiguration Cluster Attributes -CHIP_ERROR OnOffSwitchConfigurationCluster::ReadAttributeSwitchType(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffSwitchConfigurationCluster::SubscribeAttributeSwitchType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11742,17 +9214,6 @@ CHIP_ERROR OnOffSwitchConfigurationCluster::ReportAttributeSwitchType(Callback:: BasicAttributeFilter); } -CHIP_ERROR OnOffSwitchConfigurationCluster::ReadAttributeSwitchActions(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000010; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffSwitchConfigurationCluster::SubscribeAttributeSwitchActions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -11770,17 +9231,6 @@ CHIP_ERROR OnOffSwitchConfigurationCluster::ReportAttributeSwitchActions(Callbac BasicAttributeFilter); } -CHIP_ERROR OnOffSwitchConfigurationCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffSwitchConfigurationCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12191,28 +9641,6 @@ CHIP_ERROR OperationalCredentialsCluster::UpdateNOC(Callback::Cancelable * onSuc } // OperationalCredentials Cluster Attributes -CHIP_ERROR OperationalCredentialsCluster::ReadAttributeFabricsList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - OperationalCredentialsClusterFabricsListListAttributeFilter); -} - -CHIP_ERROR OperationalCredentialsCluster::ReadAttributeSupportedFabrics(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OperationalCredentialsCluster::SubscribeAttributeSupportedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12230,17 +9658,6 @@ CHIP_ERROR OperationalCredentialsCluster::ReportAttributeSupportedFabrics(Callba BasicAttributeFilter); } -CHIP_ERROR OperationalCredentialsCluster::ReadAttributeCommissionedFabrics(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OperationalCredentialsCluster::SubscribeAttributeCommissionedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12258,28 +9675,6 @@ CHIP_ERROR OperationalCredentialsCluster::ReportAttributeCommissionedFabrics(Cal BasicAttributeFilter); } -CHIP_ERROR OperationalCredentialsCluster::ReadAttributeTrustedRootCertificates(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - OperationalCredentialsClusterTrustedRootCertificatesListAttributeFilter); -} - -CHIP_ERROR OperationalCredentialsCluster::ReadAttributeCurrentFabricIndex(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OperationalCredentialsCluster::SubscribeAttributeCurrentFabricIndex(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12297,17 +9692,6 @@ CHIP_ERROR OperationalCredentialsCluster::ReportAttributeCurrentFabricIndex(Call BasicAttributeFilter); } -CHIP_ERROR OperationalCredentialsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OperationalCredentialsCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12327,17 +9711,6 @@ CHIP_ERROR OperationalCredentialsCluster::ReportAttributeClusterRevision(Callbac // PowerSource Cluster Commands // PowerSource Cluster Attributes -CHIP_ERROR PowerSourceCluster::ReadAttributeStatus(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PowerSourceCluster::SubscribeAttributeStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12355,17 +9728,6 @@ CHIP_ERROR PowerSourceCluster::ReportAttributeStatus(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR PowerSourceCluster::ReadAttributeOrder(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PowerSourceCluster::SubscribeAttributeOrder(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12383,17 +9745,6 @@ CHIP_ERROR PowerSourceCluster::ReportAttributeOrder(Callback::Cancelable * onRep BasicAttributeFilter); } -CHIP_ERROR PowerSourceCluster::ReadAttributeDescription(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PowerSourceCluster::SubscribeAttributeDescription(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12411,17 +9762,6 @@ CHIP_ERROR PowerSourceCluster::ReportAttributeDescription(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR PowerSourceCluster::ReadAttributeBatteryVoltage(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PowerSourceCluster::SubscribeAttributeBatteryVoltage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12439,17 +9779,6 @@ CHIP_ERROR PowerSourceCluster::ReportAttributeBatteryVoltage(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR PowerSourceCluster::ReadAttributeBatteryPercentRemaining(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PowerSourceCluster::SubscribeAttributeBatteryPercentRemaining(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12467,17 +9796,6 @@ CHIP_ERROR PowerSourceCluster::ReportAttributeBatteryPercentRemaining(Callback:: BasicAttributeFilter); } -CHIP_ERROR PowerSourceCluster::ReadAttributeBatteryTimeRemaining(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000D; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PowerSourceCluster::SubscribeAttributeBatteryTimeRemaining(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12495,17 +9813,6 @@ CHIP_ERROR PowerSourceCluster::ReportAttributeBatteryTimeRemaining(Callback::Can BasicAttributeFilter); } -CHIP_ERROR PowerSourceCluster::ReadAttributeBatteryChargeLevel(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000E; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PowerSourceCluster::SubscribeAttributeBatteryChargeLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12523,28 +9830,6 @@ CHIP_ERROR PowerSourceCluster::ReportAttributeBatteryChargeLevel(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR PowerSourceCluster::ReadAttributeActiveBatteryFaults(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000012; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - PowerSourceClusterActiveBatteryFaultsListAttributeFilter); -} - -CHIP_ERROR PowerSourceCluster::ReadAttributeBatteryChargeState(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PowerSourceCluster::SubscribeAttributeBatteryChargeState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12562,17 +9847,6 @@ CHIP_ERROR PowerSourceCluster::ReportAttributeBatteryChargeState(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR PowerSourceCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PowerSourceCluster::SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12590,17 +9864,6 @@ CHIP_ERROR PowerSourceCluster::ReportAttributeFeatureMap(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR PowerSourceCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PowerSourceCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12620,41 +9883,9 @@ CHIP_ERROR PowerSourceCluster::ReportAttributeClusterRevision(Callback::Cancelab // PowerSourceConfiguration Cluster Commands // PowerSourceConfiguration Cluster Attributes -CHIP_ERROR PowerSourceConfigurationCluster::ReadAttributeSources(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - PowerSourceConfigurationClusterSourcesListAttributeFilter); -} - -CHIP_ERROR PowerSourceConfigurationCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} // PressureMeasurement Cluster Commands // PressureMeasurement Cluster Attributes -CHIP_ERROR PressureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12672,17 +9903,6 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeMeasuredValue(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR PressureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12700,17 +9920,6 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeMinMeasuredValue(Callback: BasicAttributeFilter); } -CHIP_ERROR PressureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12728,17 +9937,6 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeMaxMeasuredValue(Callback: BasicAttributeFilter); } -CHIP_ERROR PressureMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12758,17 +9956,6 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeClusterRevision(Callback:: // PumpConfigurationAndControl Cluster Commands // PumpConfigurationAndControl Cluster Attributes -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxPressure(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMaxPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12786,17 +9973,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMaxPressure(Callba BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxSpeed(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMaxSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12814,17 +9990,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMaxSpeed(Callback: BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxFlow(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMaxFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12842,17 +10007,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMaxFlow(Callback:: BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMinConstPressure(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMinConstPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12870,17 +10024,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMinConstPressure(C BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxConstPressure(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMaxConstPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12898,17 +10041,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMaxConstPressure(C BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMinCompPressure(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMinCompPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12926,17 +10058,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMinCompPressure(Ca BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxCompPressure(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMaxCompPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12954,17 +10075,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMaxCompPressure(Ca BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMinConstSpeed(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000007; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMinConstSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -12982,17 +10092,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMinConstSpeed(Call BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxConstSpeed(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000008; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMaxConstSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13010,17 +10109,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMaxConstSpeed(Call BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMinConstFlow(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000009; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMinConstFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13038,17 +10126,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMinConstFlow(Callb BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxConstFlow(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMaxConstFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13066,17 +10143,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMaxConstFlow(Callb BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMinConstTemp(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMinConstTemp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13094,17 +10160,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMinConstTemp(Callb BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxConstTemp(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMaxConstTemp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13122,17 +10177,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMaxConstTemp(Callb BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributePumpStatus(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000010; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributePumpStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13150,17 +10194,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributePumpStatus(Callbac BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveOperationMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000011; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeEffectiveOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13178,17 +10211,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeEffectiveOperation BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveControlMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000012; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeEffectiveControlMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13206,17 +10228,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeEffectiveControlMo BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeCapacity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000013; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeCapacity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13234,17 +10245,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeCapacity(Callback: BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeSpeed(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000014; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13262,17 +10262,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeSpeed(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeLifetimeRunningHours(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000015; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeLifetimeRunningHours(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13290,17 +10279,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeLifetimeRunningHou BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributePower(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000016; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13318,17 +10296,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributePower(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeLifetimeEnergyConsumed(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000017; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeLifetimeEnergyConsumed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13346,17 +10313,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeLifetimeEnergyCons BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeOperationMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000020; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13374,17 +10330,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeOperationMode(Call BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeControlMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000021; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeControlMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13402,17 +10347,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeControlMode(Callba BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeAlarmMask(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000022; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeAlarmMask(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13430,17 +10364,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeAlarmMask(Callback BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13458,17 +10381,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeFeatureMap(Callbac BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13488,17 +10400,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeClusterRevision(Ca // RelativeHumidityMeasurement Cluster Commands // RelativeHumidityMeasurement Cluster Attributes -CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR RelativeHumidityMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13516,17 +10417,6 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::ReportAttributeMeasuredValue(Call BasicAttributeFilter); } -CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR RelativeHumidityMeasurementCluster::SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13544,17 +10434,6 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::ReportAttributeMinMeasuredValue(C BasicAttributeFilter); } -CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR RelativeHumidityMeasurementCluster::SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13572,17 +10451,6 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::ReportAttributeMaxMeasuredValue(C BasicAttributeFilter); } -CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeTolerance(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR RelativeHumidityMeasurementCluster::SubscribeAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13600,17 +10468,6 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::ReportAttributeTolerance(Callback BasicAttributeFilter); } -CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR RelativeHumidityMeasurementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13940,17 +10797,6 @@ CHIP_ERROR ScenesCluster::ViewScene(Callback::Cancelable * onSuccessCallback, Ca } // Scenes Cluster Attributes -CHIP_ERROR ScenesCluster::ReadAttributeSceneCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ScenesCluster::SubscribeAttributeSceneCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13968,17 +10814,6 @@ CHIP_ERROR ScenesCluster::ReportAttributeSceneCount(Callback::Cancelable * onRep BasicAttributeFilter); } -CHIP_ERROR ScenesCluster::ReadAttributeCurrentScene(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ScenesCluster::SubscribeAttributeCurrentScene(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -13996,17 +10831,6 @@ CHIP_ERROR ScenesCluster::ReportAttributeCurrentScene(Callback::Cancelable * onR BasicAttributeFilter); } -CHIP_ERROR ScenesCluster::ReadAttributeCurrentGroup(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ScenesCluster::SubscribeAttributeCurrentGroup(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14024,17 +10848,6 @@ CHIP_ERROR ScenesCluster::ReportAttributeCurrentGroup(Callback::Cancelable * onR BasicAttributeFilter); } -CHIP_ERROR ScenesCluster::ReadAttributeSceneValid(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ScenesCluster::SubscribeAttributeSceneValid(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14052,17 +10865,6 @@ CHIP_ERROR ScenesCluster::ReportAttributeSceneValid(Callback::Cancelable * onRep BasicAttributeFilter); } -CHIP_ERROR ScenesCluster::ReadAttributeNameSupport(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ScenesCluster::SubscribeAttributeNameSupport(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14080,17 +10882,6 @@ CHIP_ERROR ScenesCluster::ReportAttributeNameSupport(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR ScenesCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ScenesCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14150,28 +10941,6 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ResetWatermarks(Callback::Cancelable * on } // SoftwareDiagnostics Cluster Attributes -CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeThreadMetrics(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - SoftwareDiagnosticsClusterThreadMetricsListAttributeFilter); -} - -CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeCurrentHeapFree(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR SoftwareDiagnosticsCluster::SubscribeAttributeCurrentHeapFree(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14189,17 +10958,6 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ReportAttributeCurrentHeapFree(Callback:: BasicAttributeFilter); } -CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeCurrentHeapUsed(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR SoftwareDiagnosticsCluster::SubscribeAttributeCurrentHeapUsed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14217,17 +10975,6 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ReportAttributeCurrentHeapUsed(Callback:: BasicAttributeFilter); } -CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeCurrentHeapHighWatermark(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR SoftwareDiagnosticsCluster::SubscribeAttributeCurrentHeapHighWatermark(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14245,28 +10992,6 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ReportAttributeCurrentHeapHighWatermark(C BasicAttributeFilter); } -CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR SoftwareDiagnosticsCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14286,17 +11011,6 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ReportAttributeClusterRevision(Callback:: // Switch Cluster Commands // Switch Cluster Attributes -CHIP_ERROR SwitchCluster::ReadAttributeNumberOfPositions(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR SwitchCluster::SubscribeAttributeNumberOfPositions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14314,17 +11028,6 @@ CHIP_ERROR SwitchCluster::ReportAttributeNumberOfPositions(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR SwitchCluster::ReadAttributeCurrentPosition(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR SwitchCluster::SubscribeAttributeCurrentPosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14342,17 +11045,6 @@ CHIP_ERROR SwitchCluster::ReportAttributeCurrentPosition(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR SwitchCluster::ReadAttributeMultiPressMax(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR SwitchCluster::SubscribeAttributeMultiPressMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14370,17 +11062,6 @@ CHIP_ERROR SwitchCluster::ReportAttributeMultiPressMax(Callback::Cancelable * on BasicAttributeFilter); } -CHIP_ERROR SwitchCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR SwitchCluster::SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14398,17 +11079,6 @@ CHIP_ERROR SwitchCluster::ReportAttributeFeatureMap(Callback::Cancelable * onRep BasicAttributeFilter); } -CHIP_ERROR SwitchCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR SwitchCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14554,28 +11224,6 @@ CHIP_ERROR TvChannelCluster::SkipChannel(Callback::Cancelable * onSuccessCallbac } // TvChannel Cluster Attributes -CHIP_ERROR TvChannelCluster::ReadAttributeTvChannelList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - TvChannelClusterTvChannelListListAttributeFilter); -} - -CHIP_ERROR TvChannelCluster::ReadAttributeTvChannelLineup(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TvChannelCluster::SubscribeAttributeTvChannelLineup(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14593,17 +11241,6 @@ CHIP_ERROR TvChannelCluster::ReportAttributeTvChannelLineup(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR TvChannelCluster::ReadAttributeCurrentTvChannel(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TvChannelCluster::SubscribeAttributeCurrentTvChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14621,17 +11258,6 @@ CHIP_ERROR TvChannelCluster::ReportAttributeCurrentTvChannel(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TvChannelCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TvChannelCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14694,28 +11320,6 @@ CHIP_ERROR TargetNavigatorCluster::NavigateTarget(Callback::Cancelable * onSucce } // TargetNavigator Cluster Attributes -CHIP_ERROR TargetNavigatorCluster::ReadAttributeTargetNavigatorList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - TargetNavigatorClusterTargetNavigatorListListAttributeFilter); -} - -CHIP_ERROR TargetNavigatorCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TargetNavigatorCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14735,17 +11339,6 @@ CHIP_ERROR TargetNavigatorCluster::ReportAttributeClusterRevision(Callback::Canc // TemperatureMeasurement Cluster Commands // TemperatureMeasurement Cluster Attributes -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14763,17 +11356,6 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeMeasuredValue(Callback: BasicAttributeFilter); } -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14791,17 +11373,6 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeMinMeasuredValue(Callba BasicAttributeFilter); } -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14819,17 +11390,6 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeMaxMeasuredValue(Callba BasicAttributeFilter); } -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeTolerance(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -14847,17 +11407,6 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeTolerance(Callback::Can BasicAttributeFilter); } -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15640,17 +12189,6 @@ CHIP_ERROR TestClusterCluster::TimedInvokeRequest(Callback::Cancelable * onSucce } // TestCluster Cluster Attributes -CHIP_ERROR TestClusterCluster::ReadAttributeBoolean(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeBoolean(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15668,17 +12206,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeBoolean(Callback::Cancelable * onR BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeBitmap8(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeBitmap8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15696,17 +12223,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeBitmap8(Callback::Cancelable * onR BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeBitmap16(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeBitmap16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15724,17 +12240,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeBitmap16(Callback::Cancelable * on BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeBitmap32(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeBitmap32(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15752,17 +12257,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeBitmap32(Callback::Cancelable * on BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeBitmap64(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeBitmap64(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15780,17 +12274,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeBitmap64(Callback::Cancelable * on BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt8u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15808,17 +12291,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt8u(Callback::Cancelable * onRep BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt16u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt16u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15836,17 +12308,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt16u(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt24u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000007; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt24u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15864,17 +12325,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt24u(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt32u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000008; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt32u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15892,17 +12342,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt32u(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt40u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000009; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt40u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15920,17 +12359,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt40u(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt48u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt48u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15948,17 +12376,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt48u(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt56u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt56u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -15976,17 +12393,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt56u(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt64u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt64u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16004,17 +12410,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt64u(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt8s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000D; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt8s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16032,17 +12427,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt8s(Callback::Cancelable * onRep BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt16s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000E; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt16s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16060,17 +12444,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt16s(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt24s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000F; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt24s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16088,17 +12461,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt24s(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt32s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000010; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt32s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16116,17 +12478,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt32s(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt40s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000011; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt40s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16144,17 +12495,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt40s(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt48s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000012; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt48s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16172,17 +12512,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt48s(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt56s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000013; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt56s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16200,17 +12529,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt56s(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeInt64s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000014; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeInt64s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16228,17 +12546,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeInt64s(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeEnum8(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000015; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeEnum8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16256,17 +12563,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeEnum8(Callback::Cancelable * onRep BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeEnum16(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000016; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeEnum16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16284,17 +12580,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeEnum16(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeFloatSingle(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000017; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeFloatSingle(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16312,17 +12597,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeFloatSingle(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeFloatDouble(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000018; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeFloatDouble(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16340,17 +12614,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeFloatDouble(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeOctetString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000019; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16368,50 +12631,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeOctetString(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeListInt8u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - TestClusterClusterListInt8uListAttributeFilter); -} - -CHIP_ERROR TestClusterCluster::ReadAttributeListOctetString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - TestClusterClusterListOctetStringListAttributeFilter); -} - -CHIP_ERROR TestClusterCluster::ReadAttributeListStructOctetString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - TestClusterClusterListStructOctetStringListAttributeFilter); -} - -CHIP_ERROR TestClusterCluster::ReadAttributeLongOctetString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001D; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeLongOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16429,17 +12648,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeLongOctetString(Callback::Cancelab BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeCharString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001E; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16457,17 +12665,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeCharString(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeLongCharString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001F; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeLongCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16485,17 +12682,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeLongCharString(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeEpochUs(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000020; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeEpochUs(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16513,17 +12699,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeEpochUs(Callback::Cancelable * onR BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeEpochS(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000021; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeEpochS(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16541,17 +12716,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeEpochS(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeVendorId(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000022; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16569,28 +12733,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeVendorId(Callback::Cancelable * on BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeListNullablesAndOptionalsStruct(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000023; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - TestClusterClusterListNullablesAndOptionalsStructListAttributeFilter); -} - -CHIP_ERROR TestClusterCluster::ReadAttributeRangeRestrictedInt8u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000026; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeRangeRestrictedInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16608,17 +12750,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeRangeRestrictedInt8u(Callback::Can BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeRangeRestrictedInt8s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000027; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeRangeRestrictedInt8s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16636,17 +12767,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeRangeRestrictedInt8s(Callback::Can BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeRangeRestrictedInt16u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000028; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeRangeRestrictedInt16u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16664,17 +12784,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeRangeRestrictedInt16u(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeRangeRestrictedInt16s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000029; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeRangeRestrictedInt16s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16692,39 +12801,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeRangeRestrictedInt16s(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeListLongOctetString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000002A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - TestClusterClusterListLongOctetStringListAttributeFilter); -} - -CHIP_ERROR TestClusterCluster::ReadAttributeTimedWriteBoolean(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000030; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR TestClusterCluster::ReadAttributeUnsupported(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x000000FF; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeUnsupported(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16742,17 +12818,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeUnsupported(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableBoolean(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableBoolean(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16770,17 +12835,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableBoolean(Callback::Cancelab BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableBitmap8(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableBitmap8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16798,17 +12852,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableBitmap8(Callback::Cancelab BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableBitmap16(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableBitmap16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16826,17 +12869,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableBitmap16(Callback::Cancela BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableBitmap32(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableBitmap32(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16854,17 +12886,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableBitmap32(Callback::Cancela BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableBitmap64(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableBitmap64(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16882,17 +12903,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableBitmap64(Callback::Cancela BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt8u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16910,17 +12920,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt8u(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt16u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt16u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16938,17 +12937,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt16u(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt24u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008007; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt24u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16966,17 +12954,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt24u(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt32u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008008; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt32u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -16994,17 +12971,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt32u(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt40u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008009; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt40u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17022,17 +12988,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt40u(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt48u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000800A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt48u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17050,17 +13005,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt48u(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt56u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000800B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt56u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17078,17 +13022,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt56u(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt64u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000800C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt64u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17106,17 +13039,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt64u(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt8s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000800D; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt8s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17134,17 +13056,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt8s(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt16s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000800E; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt16s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17162,17 +13073,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt16s(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt24s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000800F; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt24s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17190,17 +13090,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt24s(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt32s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008010; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt32s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17218,17 +13107,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt32s(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt40s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008011; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt40s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17246,17 +13124,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt40s(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt48s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008012; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt48s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17274,17 +13141,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt48s(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt56s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008013; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt56s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17302,17 +13158,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt56s(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableInt64s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008014; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableInt64s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17330,17 +13175,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableInt64s(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableEnum8(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008015; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableEnum8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17358,17 +13192,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableEnum8(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableEnum16(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008016; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableEnum16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17386,17 +13209,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableEnum16(Callback::Cancelabl BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableFloatSingle(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008017; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableFloatSingle(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17414,17 +13226,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableFloatSingle(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableFloatDouble(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008018; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableFloatDouble(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17442,17 +13243,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableFloatDouble(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableOctetString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008019; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17470,17 +13260,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableOctetString(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableCharString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000801E; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17498,17 +13277,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableCharString(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableRangeRestrictedInt8u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008026; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableRangeRestrictedInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17526,17 +13294,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableRangeRestrictedInt8u(Callb BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableRangeRestrictedInt8s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008027; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableRangeRestrictedInt8s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17554,17 +13311,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableRangeRestrictedInt8s(Callb BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableRangeRestrictedInt16u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008028; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableRangeRestrictedInt16u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17582,17 +13328,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableRangeRestrictedInt16u(Call BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeNullableRangeRestrictedInt16s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00008029; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeNullableRangeRestrictedInt16s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17610,17 +13345,6 @@ CHIP_ERROR TestClusterCluster::ReportAttributeNullableRangeRestrictedInt16s(Call BasicAttributeFilter); } -CHIP_ERROR TestClusterCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TestClusterCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17851,17 +13575,6 @@ CHIP_ERROR ThermostatCluster::SetpointRaiseLower(Callback::Cancelable * onSucces } // Thermostat Cluster Attributes -CHIP_ERROR ThermostatCluster::ReadAttributeLocalTemperature(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeLocalTemperature(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17879,17 +13592,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeLocalTemperature(Callback::Cancelab BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeAbsMinHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeAbsMinHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17907,17 +13609,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeAbsMinHeatSetpointLimit(Callback::C BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeAbsMaxHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeAbsMaxHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17935,17 +13626,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeAbsMaxHeatSetpointLimit(Callback::C BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeAbsMinCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeAbsMinCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17963,17 +13643,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeAbsMinCoolSetpointLimit(Callback::C BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeAbsMaxCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeAbsMaxCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -17991,17 +13660,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeAbsMaxCoolSetpointLimit(Callback::C BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeOccupiedCoolingSetpoint(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000011; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeOccupiedCoolingSetpoint(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18019,17 +13677,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeOccupiedCoolingSetpoint(Callback::C BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeOccupiedHeatingSetpoint(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000012; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeOccupiedHeatingSetpoint(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18047,17 +13694,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeOccupiedHeatingSetpoint(Callback::C BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeMinHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000015; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeMinHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18075,17 +13711,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeMinHeatSetpointLimit(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeMaxHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000016; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeMaxHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18103,17 +13728,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeMaxHeatSetpointLimit(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeMinCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000017; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeMinCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18131,17 +13745,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeMinCoolSetpointLimit(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeMaxCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000018; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeMaxCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18159,17 +13762,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeMaxCoolSetpointLimit(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeMinSetpointDeadBand(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000019; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeMinSetpointDeadBand(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18187,17 +13779,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeMinSetpointDeadBand(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeControlSequenceOfOperation(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeControlSequenceOfOperation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18215,17 +13796,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeControlSequenceOfOperation(Callback BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeSystemMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeSystemMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18243,17 +13813,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeSystemMode(Callback::Cancelable * o BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeStartOfWeek(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000020; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeStartOfWeek(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18271,17 +13830,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeStartOfWeek(Callback::Cancelable * BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeNumberOfWeeklyTransitions(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000021; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeNumberOfWeeklyTransitions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18299,17 +13847,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeNumberOfWeeklyTransitions(Callback: BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeNumberOfDailyTransitions(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000022; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeNumberOfDailyTransitions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18327,17 +13864,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeNumberOfDailyTransitions(Callback:: BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18355,17 +13881,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeFeatureMap(Callback::Cancelable * o BasicAttributeFilter); } -CHIP_ERROR ThermostatCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18385,18 +13900,6 @@ CHIP_ERROR ThermostatCluster::ReportAttributeClusterRevision(Callback::Cancelabl // ThermostatUserInterfaceConfiguration Cluster Commands // ThermostatUserInterfaceConfiguration Cluster Attributes -CHIP_ERROR -ThermostatUserInterfaceConfigurationCluster::ReadAttributeTemperatureDisplayMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::SubscribeAttributeTemperatureDisplayMode( Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) { @@ -18414,17 +13917,6 @@ ThermostatUserInterfaceConfigurationCluster::ReportAttributeTemperatureDisplayMo BasicAttributeFilter); } -CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::ReadAttributeKeypadLockout(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::SubscribeAttributeKeypadLockout(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18442,18 +13934,6 @@ CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::ReportAttributeKeypadLoc BasicAttributeFilter); } -CHIP_ERROR -ThermostatUserInterfaceConfigurationCluster::ReadAttributeScheduleProgrammingVisibility(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::SubscribeAttributeScheduleProgrammingVisibility( Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) { @@ -18471,17 +13951,6 @@ ThermostatUserInterfaceConfigurationCluster::ReportAttributeScheduleProgrammingV onReportCallback, BasicAttributeFilter); } -CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, @@ -18542,17 +14011,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ResetCounts(Callback::Cancelable * o } // ThreadNetworkDiagnostics Cluster Attributes -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeChannel(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18570,17 +14028,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeChannel(Callback::Can BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRoutingRole(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRoutingRole(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18598,17 +14045,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRoutingRole(Callback: BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeNetworkName(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeNetworkName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18626,17 +14062,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeNetworkName(Callback: BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePanId(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributePanId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18654,17 +14079,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributePanId(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeExtendedPanId(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeExtendedPanId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18682,17 +14096,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeExtendedPanId(Callbac BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeMeshLocalPrefix(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeMeshLocalPrefix(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18710,17 +14113,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeMeshLocalPrefix(Callb BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18738,39 +14130,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeOverrunCount(Callback BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeNeighborTableList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000007; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - ThreadNetworkDiagnosticsClusterNeighborTableListListAttributeFilter); -} - -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRouteTableList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000008; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - ThreadNetworkDiagnosticsClusterRouteTableListListAttributeFilter); -} - -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePartitionId(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000009; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributePartitionId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18788,17 +14147,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributePartitionId(Callback: BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeWeighting(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeWeighting(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18816,17 +14164,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeWeighting(Callback::C BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeDataVersion(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeDataVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18844,17 +14181,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeDataVersion(Callback: BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeStableDataVersion(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeStableDataVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18872,17 +14198,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeStableDataVersion(Cal BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeLeaderRouterId(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000D; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeLeaderRouterId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18900,17 +14215,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeLeaderRouterId(Callba BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeDetachedRoleCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000E; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeDetachedRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18928,17 +14232,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeDetachedRoleCount(Cal BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeChildRoleCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000F; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeChildRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18956,17 +14249,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeChildRoleCount(Callba BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRouterRoleCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000010; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRouterRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -18984,17 +14266,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRouterRoleCount(Callb BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeLeaderRoleCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000011; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeLeaderRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19012,17 +14283,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeLeaderRoleCount(Callb BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeAttachAttemptCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000012; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeAttachAttemptCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19040,17 +14300,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeAttachAttemptCount(Ca BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePartitionIdChangeCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000013; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributePartitionIdChangeCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19068,17 +14317,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributePartitionIdChangeCoun BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeBetterPartitionAttachAttemptCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000014; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeBetterPartitionAttachAttemptCount( Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) { @@ -19096,17 +14334,6 @@ ThreadNetworkDiagnosticsCluster::ReportAttributeBetterPartitionAttachAttemptCoun BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeParentChangeCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000015; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeParentChangeCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19124,17 +14351,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeParentChangeCount(Cal BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxTotalCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000016; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxTotalCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19152,17 +14368,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxTotalCount(Callback BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxUnicastCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000017; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxUnicastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19180,17 +14385,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxUnicastCount(Callba BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxBroadcastCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000018; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxBroadcastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19208,17 +14402,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxBroadcastCount(Call BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxAckRequestedCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000019; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxAckRequestedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19236,17 +14419,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxAckRequestedCount(C BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxAckedCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxAckedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19264,17 +14436,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxAckedCount(Callback BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxNoAckRequestedCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxNoAckRequestedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19292,17 +14453,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxNoAckRequestedCount BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxDataCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxDataCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19320,17 +14470,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxDataCount(Callback: BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxDataPollCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001D; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxDataPollCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19348,17 +14487,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxDataPollCount(Callb BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxBeaconCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001E; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxBeaconCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19376,17 +14504,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxBeaconCount(Callbac BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxBeaconRequestCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001F; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxBeaconRequestCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19404,17 +14521,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxBeaconRequestCount( BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxOtherCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000020; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19432,17 +14538,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxOtherCount(Callback BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxRetryCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000021; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxRetryCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19460,17 +14555,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxRetryCount(Callback BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxDirectMaxRetryExpiryCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000022; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxDirectMaxRetryExpiryCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, @@ -19489,17 +14573,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxDirectMaxRetryExpir BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxIndirectMaxRetryExpiryCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000023; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxIndirectMaxRetryExpiryCount( Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) { @@ -19516,17 +14589,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxIndirectMaxRetryExp BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxErrCcaCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000024; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxErrCcaCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19544,17 +14606,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxErrCcaCount(Callbac BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxErrAbortCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000025; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxErrAbortCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19572,17 +14623,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxErrAbortCount(Callb BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxErrBusyChannelCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000026; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeTxErrBusyChannelCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19600,17 +14640,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeTxErrBusyChannelCount BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxTotalCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000027; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxTotalCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19628,17 +14657,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxTotalCount(Callback BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxUnicastCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000028; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxUnicastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19656,17 +14674,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxUnicastCount(Callba BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxBroadcastCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000029; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxBroadcastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19684,17 +14691,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxBroadcastCount(Call BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDataCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000002A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxDataCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19712,17 +14708,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxDataCount(Callback: BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDataPollCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000002B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxDataPollCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19740,17 +14725,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxDataPollCount(Callb BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxBeaconCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000002C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxBeaconCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19768,17 +14742,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxBeaconCount(Callbac BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxBeaconRequestCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000002D; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxBeaconRequestCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19796,17 +14759,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxBeaconRequestCount( BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxOtherCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000002E; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19824,17 +14776,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxOtherCount(Callback BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxAddressFilteredCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000002F; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxAddressFilteredCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19852,17 +14793,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxAddressFilteredCoun BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDestAddrFilteredCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000030; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxDestAddrFilteredCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19880,17 +14810,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxDestAddrFilteredCou BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDuplicatedCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000031; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxDuplicatedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19908,17 +14827,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxDuplicatedCount(Cal BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrNoFrameCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000032; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxErrNoFrameCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19933,18 +14841,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxErrNoFrameCount( CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxErrNoFrameCount(Callback::Cancelable * onReportCallback) { return RequestAttributeReporting(ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::Id, onReportCallback, - BasicAttributeFilter); -} - -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrUnknownNeighborCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000033; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); + BasicAttributeFilter); } CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxErrUnknownNeighborCount(Callback::Cancelable * onSuccessCallback, @@ -19964,17 +14861,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxErrUnknownNeighborC BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrInvalidSrcAddrCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000034; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxErrInvalidSrcAddrCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -19992,17 +14878,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxErrInvalidSrcAddrCo BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrSecCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000035; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxErrSecCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20020,17 +14895,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxErrSecCount(Callbac BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrFcsCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000036; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxErrFcsCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20048,17 +14912,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxErrFcsCount(Callbac BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrOtherCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000037; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeRxErrOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20076,17 +14929,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeRxErrOtherCount(Callb BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeActiveTimestamp(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000038; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeActiveTimestamp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20104,17 +14946,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeActiveTimestamp(Callb BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePendingTimestamp(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000039; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributePendingTimestamp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20132,17 +14963,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributePendingTimestamp(Call BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeDelay(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000003A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeDelay(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20160,28 +14980,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeDelay(Callback::Cance BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeSecurityPolicy(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000003B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - ThreadNetworkDiagnosticsClusterSecurityPolicyListAttributeFilter); -} - -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeChannelMask(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000003C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeChannelMask(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20199,50 +14997,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeChannelMask(Callback: BasicAttributeFilter); } -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeOperationalDatasetComponents(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000003D; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - ThreadNetworkDiagnosticsClusterOperationalDatasetComponentsListAttributeFilter); -} - -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeActiveNetworkFaultsList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000003E; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - ThreadNetworkDiagnosticsClusterActiveNetworkFaultsListListAttributeFilter); -} - -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR ThreadNetworkDiagnosticsCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20262,17 +15016,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReportAttributeClusterRevision(Callb // WakeOnLan Cluster Commands // WakeOnLan Cluster Attributes -CHIP_ERROR WakeOnLanCluster::ReadAttributeWakeOnLanMacAddress(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WakeOnLanCluster::SubscribeAttributeWakeOnLanMacAddress(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20290,17 +15033,6 @@ CHIP_ERROR WakeOnLanCluster::ReportAttributeWakeOnLanMacAddress(Callback::Cancel BasicAttributeFilter); } -CHIP_ERROR WakeOnLanCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WakeOnLanCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20359,17 +15091,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ResetCounts(Callback::Cancelable * onS } // WiFiNetworkDiagnostics Cluster Attributes -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeBssid(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributeBssid(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20387,17 +15108,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributeBssid(Callback::Cancela BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeSecurityType(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributeSecurityType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20415,17 +15125,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributeSecurityType(Callback:: BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeWiFiVersion(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributeWiFiVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20443,17 +15142,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributeWiFiVersion(Callback::C BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeChannelNumber(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributeChannelNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20471,17 +15159,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributeChannelNumber(Callback: BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeRssi(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributeRssi(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20499,17 +15176,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributeRssi(Callback::Cancelab BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeBeaconLostCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributeBeaconLostCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20527,17 +15193,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributeBeaconLostCount(Callbac BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeBeaconRxCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000006; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributeBeaconRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20555,17 +15210,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributeBeaconRxCount(Callback: BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributePacketMulticastRxCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000007; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributePacketMulticastRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20583,17 +15227,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributePacketMulticastRxCount( BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributePacketMulticastTxCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000008; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributePacketMulticastTxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20611,17 +15244,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributePacketMulticastTxCount( BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributePacketUnicastRxCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000009; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributePacketUnicastRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20639,17 +15261,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributePacketUnicastRxCount(Ca BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributePacketUnicastTxCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributePacketUnicastTxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20667,17 +15278,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributePacketUnicastTxCount(Ca BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeCurrentMaxRate(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributeCurrentMaxRate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20695,17 +15295,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributeCurrentMaxRate(Callback BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -20723,28 +15312,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReportAttributeOverrunCount(Callback:: BasicAttributeFilter); } -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WiFiNetworkDiagnosticsCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21048,17 +15615,6 @@ CHIP_ERROR WindowCoveringCluster::UpOrOpen(Callback::Cancelable * onSuccessCallb } // WindowCovering Cluster Attributes -CHIP_ERROR WindowCoveringCluster::ReadAttributeType(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21076,17 +15632,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeType(Callback::Cancelable * onR BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionLift(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeCurrentPositionLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21104,17 +15649,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeCurrentPositionLift(Callback::C BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionTilt(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeCurrentPositionTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21132,17 +15666,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeCurrentPositionTilt(Callback::C BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeConfigStatus(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000007; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeConfigStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21160,17 +15683,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeConfigStatus(Callback::Cancelab BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionLiftPercentage(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000008; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeCurrentPositionLiftPercentage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21188,17 +15700,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeCurrentPositionLiftPercentage(C BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionTiltPercentage(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000009; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeCurrentPositionTiltPercentage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21216,17 +15717,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeCurrentPositionTiltPercentage(C BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeOperationalStatus(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeOperationalStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21244,17 +15734,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeOperationalStatus(Callback::Can BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeTargetPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000B; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeTargetPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21272,17 +15751,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeTargetPositionLiftPercent100ths BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeTargetPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000C; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeTargetPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21300,17 +15768,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeTargetPositionTiltPercent100ths BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeEndProductType(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000D; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeEndProductType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21328,17 +15785,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeEndProductType(Callback::Cancel BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000E; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeCurrentPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21356,17 +15802,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeCurrentPositionLiftPercent100th BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000000F; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeCurrentPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21384,17 +15819,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeCurrentPositionTiltPercent100th BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledOpenLimitLift(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000010; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeInstalledOpenLimitLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21412,17 +15836,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeInstalledOpenLimitLift(Callback BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledClosedLimitLift(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000011; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeInstalledClosedLimitLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21440,17 +15853,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeInstalledClosedLimitLift(Callba BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledOpenLimitTilt(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000012; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeInstalledOpenLimitTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21468,17 +15870,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeInstalledOpenLimitTilt(Callback BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledClosedLimitTilt(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000013; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeInstalledClosedLimitTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21496,17 +15887,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeInstalledClosedLimitTilt(Callba BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000017; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21524,17 +15904,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeMode(Callback::Cancelable * onR BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeSafetyStatus(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000001A; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeSafetyStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21552,17 +15921,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeSafetyStatus(Callback::Cancelab BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -21580,17 +15938,6 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeFeatureMap(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR WindowCoveringCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR WindowCoveringCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) diff --git a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.h b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.h index f6f504269286c6..4c116c47e7b0bf 100644 --- a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.h +++ b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.h @@ -37,9 +37,6 @@ class DLL_EXPORT AccessControlCluster : public ClusterBase ~AccessControlCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeAcl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeExtension(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); }; class DLL_EXPORT AccountLoginCluster : public ClusterBase @@ -55,7 +52,6 @@ class DLL_EXPORT AccountLoginCluster : public ClusterBase chip::CharSpan tempAccountIdentifier, chip::CharSpan setupPIN); // Cluster Attributes - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -78,7 +74,6 @@ class DLL_EXPORT AdministratorCommissioningCluster : public ClusterBase CHIP_ERROR RevokeCommissioning(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -96,36 +91,28 @@ class DLL_EXPORT ApplicationBasicCluster : public ClusterBase CHIP_ERROR ChangeStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t status); // Cluster Attributes - CHIP_ERROR ReadAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeVendorName(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeVendorId(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeApplicationName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeApplicationName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeApplicationName(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeProductId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeProductId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeProductId(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeApplicationId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeApplicationId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeApplicationId(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCatalogVendorId(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeApplicationStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeApplicationStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeApplicationStatus(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -144,17 +131,12 @@ class DLL_EXPORT ApplicationLauncherCluster : public ClusterBase uint16_t catalogVendorId, chip::CharSpan applicationId); // Cluster Attributes - CHIP_ERROR ReadAttributeApplicationLauncherList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCatalogVendorId(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeApplicationId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeApplicationId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeApplicationId(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -174,13 +156,10 @@ class DLL_EXPORT AudioOutputCluster : public ClusterBase CHIP_ERROR SelectOutput(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t index); // Cluster Attributes - CHIP_ERROR ReadAttributeAudioOutputList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeCurrentAudioOutput(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentAudioOutput(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentAudioOutput(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -200,26 +179,21 @@ class DLL_EXPORT BarrierControlCluster : public ClusterBase CHIP_ERROR BarrierControlStop(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeBarrierMovingState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBarrierMovingState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBarrierMovingState(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBarrierSafetyStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBarrierSafetyStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBarrierSafetyStatus(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBarrierCapabilities(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBarrierCapabilities(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBarrierCapabilities(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBarrierPosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBarrierPosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBarrierPosition(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -237,88 +211,65 @@ class DLL_EXPORT BasicCluster : public ClusterBase CHIP_ERROR MfgSpecificPing(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeInteractionModelVersion(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInteractionModelVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInteractionModelVersion(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeVendorName(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeVendorID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeVendorID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeVendorID(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeProductName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeProductName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeProductName(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeProductID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeProductID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeProductID(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNodeLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNodeLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNodeLabel(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeLocation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeLocation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeLocation(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeHardwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeHardwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeHardwareVersion(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeHardwareVersionString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeHardwareVersionString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeHardwareVersionString(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSoftwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSoftwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSoftwareVersion(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSoftwareVersionString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSoftwareVersionString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSoftwareVersionString(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeManufacturingDate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeManufacturingDate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeManufacturingDate(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePartNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePartNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePartNumber(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeProductURL(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeProductURL(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeProductURL(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeProductLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeProductLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeProductLabel(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSerialNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSerialNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSerialNumber(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeLocalConfigDisabled(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeLocalConfigDisabled(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeLocalConfigDisabled(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeReachable(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeReachable(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeReachable(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeUniqueID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -333,19 +284,15 @@ class DLL_EXPORT BinaryInputBasicCluster : public ClusterBase ~BinaryInputBasicCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeOutOfService(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOutOfService(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOutOfService(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePresentValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePresentValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePresentValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeStatusFlags(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeStatusFlags(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeStatusFlags(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -364,7 +311,6 @@ class DLL_EXPORT BindingCluster : public ClusterBase chip::GroupId groupId, chip::EndpointId endpointId, chip::ClusterId clusterId); // Cluster Attributes - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -379,11 +325,9 @@ class DLL_EXPORT BooleanStateCluster : public ClusterBase ~BooleanStateCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeStateValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeStateValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeStateValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -422,13 +366,9 @@ class DLL_EXPORT BridgedActionsCluster : public ClusterBase uint32_t invokeID); // Cluster Attributes - CHIP_ERROR ReadAttributeActionList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeEndpointList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeSetupUrl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSetupUrl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSetupUrl(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -443,7 +383,6 @@ class DLL_EXPORT BridgedDeviceBasicCluster : public ClusterBase ~BridgedDeviceBasicCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -503,249 +442,187 @@ class DLL_EXPORT ColorControlCluster : public ClusterBase uint8_t optionsOverride); // Cluster Attributes - CHIP_ERROR ReadAttributeCurrentHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentHue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentSaturation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentSaturation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentSaturation(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRemainingTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRemainingTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRemainingTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentX(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentY(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeDriftCompensation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeDriftCompensation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeDriftCompensation(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCompensationText(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCompensationText(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCompensationText(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorTemperature(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorTemperature(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorTemperature(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorControlOptions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorControlOptions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorControlOptions(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNumberOfPrimaries(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNumberOfPrimaries(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNumberOfPrimaries(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary1X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary1X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary1X(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary1Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary1Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary1Y(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary1Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary1Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary1Intensity(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary2X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary2X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary2X(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary2Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary2Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary2Y(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary2Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary2Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary2Intensity(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary3X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary3X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary3X(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary3Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary3Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary3Y(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary3Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary3Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary3Intensity(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary4X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary4X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary4X(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary4Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary4Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary4Y(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary4Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary4Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary4Intensity(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary5X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary5X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary5X(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary5Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary5Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary5Y(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary5Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary5Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary5Intensity(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary6X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary6X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary6X(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary6Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary6Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary6Y(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePrimary6Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePrimary6Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePrimary6Intensity(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeWhitePointX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeWhitePointX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeWhitePointX(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeWhitePointY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeWhitePointY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeWhitePointY(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorPointRX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorPointRX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorPointRX(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorPointRY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorPointRY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorPointRY(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorPointRIntensity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorPointRIntensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorPointRIntensity(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorPointGX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorPointGX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorPointGX(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorPointGY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorPointGY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorPointGY(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorPointGIntensity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorPointGIntensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorPointGIntensity(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorPointBX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorPointBX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorPointBX(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorPointBY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorPointBY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorPointBY(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorPointBIntensity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorPointBIntensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorPointBIntensity(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeEnhancedCurrentHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeEnhancedCurrentHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeEnhancedCurrentHue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeEnhancedColorMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeEnhancedColorMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeEnhancedColorMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorLoopActive(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorLoopActive(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorLoopActive(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorLoopDirection(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorLoopDirection(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorLoopDirection(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorLoopTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorLoopTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorLoopTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorLoopStartEnhancedHue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorLoopStartEnhancedHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorLoopStartEnhancedHue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorLoopStoredEnhancedHue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorLoopStoredEnhancedHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorLoopStoredEnhancedHue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorCapabilities(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorCapabilities(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorCapabilities(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorTempPhysicalMin(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorTempPhysicalMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorTempPhysicalMin(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeColorTempPhysicalMax(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeColorTempPhysicalMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeColorTempPhysicalMax(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCoupleColorTempToLevelMinMireds(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCoupleColorTempToLevelMinMireds(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCoupleColorTempToLevelMinMireds(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeStartUpColorTemperatureMireds(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeStartUpColorTemperatureMireds(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeStartUpColorTemperatureMireds(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -766,10 +643,6 @@ class DLL_EXPORT ContentLauncherCluster : public ClusterBase chip::CharSpan contentURL, chip::CharSpan displayString); // Cluster Attributes - CHIP_ERROR ReadAttributeAcceptsHeaderList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeSupportedStreamingTypes(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -784,11 +657,6 @@ class DLL_EXPORT DescriptorCluster : public ClusterBase ~DescriptorCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeDeviceList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeServerList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClientList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributePartsList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -858,11 +726,9 @@ class DLL_EXPORT DoorLockCluster : public ClusterBase uint16_t timeout, chip::ByteSpan pinCode); // Cluster Attributes - CHIP_ERROR ReadAttributeActuatorEnabled(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeActuatorEnabled(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeActuatorEnabled(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -877,52 +743,40 @@ class DLL_EXPORT ElectricalMeasurementCluster : public ClusterBase ~ElectricalMeasurementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMeasurementType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeasurementType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeasurementType(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTotalActivePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTotalActivePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTotalActivePower(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRmsVoltage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRmsVoltage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRmsVoltage(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRmsVoltageMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRmsVoltageMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRmsVoltageMin(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRmsVoltageMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRmsVoltageMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRmsVoltageMax(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRmsCurrent(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRmsCurrent(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRmsCurrent(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRmsCurrentMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRmsCurrentMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRmsCurrentMin(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRmsCurrentMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRmsCurrentMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRmsCurrentMax(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeActivePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeActivePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeActivePower(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeActivePowerMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeActivePowerMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeActivePowerMin(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeActivePowerMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeActivePowerMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeActivePowerMax(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -938,44 +792,33 @@ class DLL_EXPORT EthernetNetworkDiagnosticsCluster : public ClusterBase CHIP_ERROR ResetCounts(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributePHYRate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePHYRate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePHYRate(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFullDuplex(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeFullDuplex(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeFullDuplex(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePacketRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePacketRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePacketRxCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePacketTxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePacketTxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePacketTxCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxErrCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxErrCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxErrCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCollisionCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCollisionCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCollisionCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOverrunCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCarrierDetect(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCarrierDetect(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCarrierDetect(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTimeSinceReset(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTimeSinceReset(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTimeSinceReset(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -990,8 +833,6 @@ class DLL_EXPORT FixedLabelCluster : public ClusterBase ~FixedLabelCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeLabelList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1004,25 +845,20 @@ class DLL_EXPORT FlowMeasurementCluster : public ClusterBase ~FlowMeasurementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTolerance(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1042,15 +878,9 @@ class DLL_EXPORT GeneralCommissioningCluster : public ClusterBase uint8_t location, chip::CharSpan countryCode, uint64_t breadcrumb, uint32_t timeoutMs); // Cluster Attributes - CHIP_ERROR ReadAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBreadcrumb(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBasicCommissioningInfoList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeRegulatoryConfig(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeLocationCapability(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1065,30 +895,19 @@ class DLL_EXPORT GeneralDiagnosticsCluster : public ClusterBase ~GeneralDiagnosticsCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeNetworkInterfaces(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeRebootCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRebootCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRebootCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeUpTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeUpTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeUpTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTotalOperationalHours(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTotalOperationalHours(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTotalOperationalHours(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBootReasons(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBootReasons(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBootReasons(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeActiveHardwareFaults(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeActiveRadioFaults(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeActiveNetworkFaults(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1101,9 +920,6 @@ class DLL_EXPORT GroupKeyManagementCluster : public ClusterBase ~GroupKeyManagementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeGroups(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeGroupKeys(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1127,11 +943,9 @@ class DLL_EXPORT GroupsCluster : public ClusterBase CHIP_ERROR ViewGroup(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t groupId); // Cluster Attributes - CHIP_ERROR ReadAttributeNameSupport(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNameSupport(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNameSupport(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1152,15 +966,12 @@ class DLL_EXPORT IdentifyCluster : public ClusterBase uint8_t effectIdentifier, uint8_t effectVariant); // Cluster Attributes - CHIP_ERROR ReadAttributeIdentifyTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeIdentifyTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeIdentifyTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeIdentifyType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeIdentifyType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeIdentifyType(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1175,29 +986,23 @@ class DLL_EXPORT IlluminanceMeasurementCluster : public ClusterBase ~IlluminanceMeasurementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTolerance(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeLightSensorType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeLightSensorType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeLightSensorType(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1213,7 +1018,6 @@ class DLL_EXPORT KeypadInputCluster : public ClusterBase CHIP_ERROR SendKey(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t keyCode); // Cluster Attributes - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1245,68 +1049,53 @@ class DLL_EXPORT LevelControlCluster : public ClusterBase CHIP_ERROR StopWithOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentLevel(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRemainingTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRemainingTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRemainingTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinLevel(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxLevel(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentFrequency(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentFrequency(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentFrequency(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinFrequency(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinFrequency(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinFrequency(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxFrequency(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxFrequency(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxFrequency(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOptions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOptions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOptions(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOnOffTransitionTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOnOffTransitionTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOnOffTransitionTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOnLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOnLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOnLevel(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOnTransitionTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOnTransitionTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOnTransitionTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOffTransitionTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOffTransitionTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOffTransitionTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeDefaultMoveRate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeDefaultMoveRate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeDefaultMoveRate(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeStartUpCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeStartUpCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeStartUpCurrentLevel(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1324,7 +1113,6 @@ class DLL_EXPORT LowPowerCluster : public ClusterBase CHIP_ERROR Sleep(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1346,13 +1134,10 @@ class DLL_EXPORT MediaInputCluster : public ClusterBase CHIP_ERROR ShowInputStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeMediaInputList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeCurrentMediaInput(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentMediaInput(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentMediaInput(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1382,40 +1167,31 @@ class DLL_EXPORT MediaPlaybackCluster : public ClusterBase CHIP_ERROR MediaStop(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributePlaybackState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePlaybackState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePlaybackState(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeStartTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeStartTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeStartTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeDuration(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeDuration(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeDuration(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePositionUpdatedAt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePositionUpdatedAt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePositionUpdatedAt(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePosition(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePlaybackSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePlaybackSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePlaybackSpeed(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSeekRangeEnd(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSeekRangeEnd(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSeekRangeEnd(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSeekRangeStart(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSeekRangeStart(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSeekRangeStart(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1433,24 +1209,18 @@ class DLL_EXPORT ModeSelectCluster : public ClusterBase CHIP_ERROR ChangeToMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t newMode); // Cluster Attributes - CHIP_ERROR ReadAttributeCurrentMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSupportedModes(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeOnMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOnMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOnMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeStartUpMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeStartUpMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeStartUpMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeDescription(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeDescription(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeDescription(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1483,11 +1253,9 @@ class DLL_EXPORT NetworkCommissioningCluster : public ClusterBase chip::ByteSpan ssid, chip::ByteSpan credentials, uint64_t breadcrumb, uint32_t timeoutMs); // Cluster Attributes - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeFeatureMap(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1512,7 +1280,6 @@ class DLL_EXPORT OtaSoftwareUpdateProviderCluster : public ClusterBase chip::ByteSpan metadataForProvider); // Cluster Attributes - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1532,16 +1299,13 @@ class DLL_EXPORT OtaSoftwareUpdateRequestorCluster : public ClusterBase chip::ByteSpan metadataForNode); // Cluster Attributes - CHIP_ERROR ReadAttributeDefaultOtaProvider(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeDefaultOtaProvider(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeDefaultOtaProvider(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeUpdatePossible(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeUpdatePossible(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeUpdatePossible(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1556,22 +1320,17 @@ class DLL_EXPORT OccupancySensingCluster : public ClusterBase ~OccupancySensingCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeOccupancy(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOccupancy(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOccupancy(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOccupancySensorType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOccupancySensorType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOccupancySensorType(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOccupancySensorTypeBitmap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOccupancySensorTypeBitmap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOccupancySensorTypeBitmap(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1594,32 +1353,25 @@ class DLL_EXPORT OnOffCluster : public ClusterBase CHIP_ERROR Toggle(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOnOff(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeGlobalSceneControl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeGlobalSceneControl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeGlobalSceneControl(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOnTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOffWaitTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeStartUpOnOff(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeFeatureMap(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1634,15 +1386,12 @@ class DLL_EXPORT OnOffSwitchConfigurationCluster : public ClusterBase ~OnOffSwitchConfigurationCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeSwitchType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSwitchType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSwitchType(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSwitchActions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSwitchActions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSwitchActions(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1675,25 +1424,18 @@ class DLL_EXPORT OperationalCredentialsCluster : public ClusterBase chip::ByteSpan NOCValue, chip::ByteSpan ICACValue); // Cluster Attributes - CHIP_ERROR ReadAttributeFabricsList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeSupportedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSupportedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSupportedFabrics(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCommissionedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCommissionedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCommissionedFabrics(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTrustedRootCertificates(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeCurrentFabricIndex(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentFabricIndex(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentFabricIndex(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1708,50 +1450,37 @@ class DLL_EXPORT PowerSourceCluster : public ClusterBase ~PowerSourceCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeStatus(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOrder(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOrder(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOrder(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeDescription(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeDescription(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeDescription(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBatteryVoltage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBatteryVoltage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBatteryVoltage(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBatteryPercentRemaining(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBatteryPercentRemaining(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBatteryPercentRemaining(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBatteryTimeRemaining(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBatteryTimeRemaining(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBatteryTimeRemaining(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBatteryChargeLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBatteryChargeLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBatteryChargeLevel(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeActiveBatteryFaults(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeBatteryChargeState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBatteryChargeState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBatteryChargeState(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeFeatureMap(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1764,8 +1493,6 @@ class DLL_EXPORT PowerSourceConfigurationCluster : public ClusterBase ~PowerSourceConfigurationCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeSources(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); }; class DLL_EXPORT PressureMeasurementCluster : public ClusterBase @@ -1775,21 +1502,17 @@ class DLL_EXPORT PressureMeasurementCluster : public ClusterBase ~PressureMeasurementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1802,117 +1525,87 @@ class DLL_EXPORT PumpConfigurationAndControlCluster : public ClusterBase ~PumpConfigurationAndControlCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMaxPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxPressure(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxSpeed(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxFlow(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinConstPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinConstPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinConstPressure(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxConstPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxConstPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxConstPressure(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinCompPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinCompPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinCompPressure(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxCompPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxCompPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxCompPressure(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinConstSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinConstSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinConstSpeed(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxConstSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxConstSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxConstSpeed(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinConstFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinConstFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinConstFlow(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxConstFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxConstFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxConstFlow(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinConstTemp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinConstTemp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinConstTemp(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxConstTemp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxConstTemp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxConstTemp(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePumpStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePumpStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePumpStatus(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeEffectiveOperationMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeEffectiveOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeEffectiveOperationMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeEffectiveControlMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeEffectiveControlMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeEffectiveControlMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCapacity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCapacity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCapacity(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSpeed(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeLifetimeRunningHours(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeLifetimeRunningHours(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeLifetimeRunningHours(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePower(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeLifetimeEnergyConsumed(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeLifetimeEnergyConsumed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeLifetimeEnergyConsumed(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOperationMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeControlMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeControlMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeControlMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeAlarmMask(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeAlarmMask(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeAlarmMask(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeFeatureMap(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1925,25 +1618,20 @@ class DLL_EXPORT RelativeHumidityMeasurementCluster : public ClusterBase ~RelativeHumidityMeasurementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTolerance(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -1973,27 +1661,21 @@ class DLL_EXPORT ScenesCluster : public ClusterBase uint8_t sceneId); // Cluster Attributes - CHIP_ERROR ReadAttributeSceneCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSceneCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSceneCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentScene(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentScene(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentScene(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentGroup(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentGroup(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentGroup(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSceneValid(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSceneValid(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSceneValid(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNameSupport(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNameSupport(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNameSupport(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -2011,23 +1693,16 @@ class DLL_EXPORT SoftwareDiagnosticsCluster : public ClusterBase CHIP_ERROR ResetWatermarks(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeThreadMetrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeCurrentHeapFree(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentHeapFree(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentHeapFree(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentHeapUsed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentHeapUsed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentHeapUsed(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentHeapHighWatermark(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentHeapHighWatermark(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentHeapHighWatermark(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -2042,24 +1717,19 @@ class DLL_EXPORT SwitchCluster : public ClusterBase ~SwitchCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeNumberOfPositions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNumberOfPositions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNumberOfPositions(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentPosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentPosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentPosition(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMultiPressMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMultiPressMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMultiPressMax(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeFeatureMap(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -2079,17 +1749,13 @@ class DLL_EXPORT TvChannelCluster : public ClusterBase CHIP_ERROR SkipChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t count); // Cluster Attributes - CHIP_ERROR ReadAttributeTvChannelList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeTvChannelLineup(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTvChannelLineup(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTvChannelLineup(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentTvChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentTvChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentTvChannel(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -2108,8 +1774,6 @@ class DLL_EXPORT TargetNavigatorCluster : public ClusterBase chip::CharSpan data); // Cluster Attributes - CHIP_ERROR ReadAttributeTargetNavigatorList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -2124,25 +1788,20 @@ class DLL_EXPORT TemperatureMeasurementCluster : public ClusterBase ~TemperatureMeasurementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTolerance(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTolerance(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -2191,310 +1850,225 @@ class DLL_EXPORT TestClusterCluster : public ClusterBase CHIP_ERROR TimedInvokeRequest(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeBoolean(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBoolean(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBoolean(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBitmap8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBitmap8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBitmap8(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBitmap16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBitmap16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBitmap16(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBitmap32(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBitmap32(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBitmap32(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBitmap64(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBitmap64(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBitmap64(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt8u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt16u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt16u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt16u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt24u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt24u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt24u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt32u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt32u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt32u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt40u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt40u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt40u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt48u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt48u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt48u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt56u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt56u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt56u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt64u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt64u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt64u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt8s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt8s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt8s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt16s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt16s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt16s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt24s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt24s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt24s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt32s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt32s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt32s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt40s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt40s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt40s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt48s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt48s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt48s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt56s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt56s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt56s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInt64s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInt64s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInt64s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeEnum8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeEnum8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeEnum8(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeEnum16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeEnum16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeEnum16(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFloatSingle(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeFloatSingle(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeFloatSingle(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFloatDouble(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeFloatDouble(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeFloatDouble(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOctetString(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeListInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeListOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeListStructOctetString(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeLongOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeLongOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeLongOctetString(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCharString(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeLongCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeLongCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeLongCharString(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeEpochUs(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeEpochUs(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeEpochUs(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeEpochS(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeEpochS(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeEpochS(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeVendorId(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeListNullablesAndOptionalsStruct(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeRangeRestrictedInt8u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRangeRestrictedInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRangeRestrictedInt8u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRangeRestrictedInt8s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRangeRestrictedInt8s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRangeRestrictedInt8s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRangeRestrictedInt16u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRangeRestrictedInt16u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRangeRestrictedInt16u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRangeRestrictedInt16s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRangeRestrictedInt16s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRangeRestrictedInt16s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeListLongOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeTimedWriteBoolean(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeUnsupported(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeUnsupported(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeUnsupported(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableBoolean(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableBoolean(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableBoolean(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableBitmap8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableBitmap8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableBitmap8(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableBitmap16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableBitmap16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableBitmap16(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableBitmap32(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableBitmap32(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableBitmap32(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableBitmap64(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableBitmap64(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableBitmap64(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt8u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt16u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt16u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt16u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt24u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt24u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt24u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt32u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt32u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt32u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt40u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt40u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt40u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt48u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt48u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt48u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt56u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt56u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt56u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt64u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt64u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt64u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt8s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt8s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt8s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt16s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt16s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt16s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt24s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt24s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt24s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt32s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt32s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt32s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt40s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt40s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt40s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt48s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt48s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt48s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt56s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt56s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt56s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableInt64s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableInt64s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableInt64s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableEnum8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableEnum8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableEnum8(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableEnum16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableEnum16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableEnum16(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableFloatSingle(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableFloatSingle(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableFloatSingle(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableFloatDouble(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableFloatDouble(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableFloatDouble(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableOctetString(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableCharString(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableRangeRestrictedInt8u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableRangeRestrictedInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableRangeRestrictedInt8u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableRangeRestrictedInt8s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableRangeRestrictedInt8s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableRangeRestrictedInt8s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableRangeRestrictedInt16u(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableRangeRestrictedInt16u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableRangeRestrictedInt16u(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNullableRangeRestrictedInt16s(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNullableRangeRestrictedInt16s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNullableRangeRestrictedInt16s(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -2520,107 +2094,75 @@ class DLL_EXPORT ThermostatCluster : public ClusterBase int8_t amount); // Cluster Attributes - CHIP_ERROR ReadAttributeLocalTemperature(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeLocalTemperature(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeLocalTemperature(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeAbsMinHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeAbsMinHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeAbsMinHeatSetpointLimit(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeAbsMaxHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeAbsMaxHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeAbsMaxHeatSetpointLimit(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeAbsMinCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeAbsMinCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeAbsMinCoolSetpointLimit(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeAbsMaxCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeAbsMaxCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeAbsMaxCoolSetpointLimit(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOccupiedCoolingSetpoint(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOccupiedCoolingSetpoint(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOccupiedCoolingSetpoint(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOccupiedHeatingSetpoint(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOccupiedHeatingSetpoint(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOccupiedHeatingSetpoint(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinHeatSetpointLimit(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxHeatSetpointLimit(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinCoolSetpointLimit(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxCoolSetpointLimit(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinSetpointDeadBand(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinSetpointDeadBand(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinSetpointDeadBand(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeControlSequenceOfOperation(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeControlSequenceOfOperation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeControlSequenceOfOperation(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSystemMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSystemMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSystemMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeStartOfWeek(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeStartOfWeek(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeStartOfWeek(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNumberOfWeeklyTransitions(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNumberOfWeeklyTransitions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNumberOfWeeklyTransitions(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNumberOfDailyTransitions(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNumberOfDailyTransitions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNumberOfDailyTransitions(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeFeatureMap(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -2635,23 +2177,17 @@ class DLL_EXPORT ThermostatUserInterfaceConfigurationCluster : public ClusterBas ~ThermostatUserInterfaceConfigurationCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeTemperatureDisplayMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTemperatureDisplayMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTemperatureDisplayMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeKeypadLockout(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeKeypadLockout(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeKeypadLockout(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeScheduleProgrammingVisibility(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeScheduleProgrammingVisibility(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeScheduleProgrammingVisibility(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -2667,281 +2203,202 @@ class DLL_EXPORT ThreadNetworkDiagnosticsCluster : public ClusterBase CHIP_ERROR ResetCounts(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeChannel(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRoutingRole(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRoutingRole(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRoutingRole(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNetworkName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeNetworkName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeNetworkName(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePanId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePanId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePanId(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeExtendedPanId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeExtendedPanId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeExtendedPanId(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMeshLocalPrefix(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeshLocalPrefix(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeshLocalPrefix(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOverrunCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeNeighborTableList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeRouteTableList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributePartitionId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePartitionId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePartitionId(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeWeighting(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeWeighting(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeWeighting(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeDataVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeDataVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeDataVersion(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeStableDataVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeStableDataVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeStableDataVersion(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeLeaderRouterId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeLeaderRouterId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeLeaderRouterId(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeDetachedRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeDetachedRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeDetachedRoleCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeChildRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeChildRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeChildRoleCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRouterRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRouterRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRouterRoleCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeLeaderRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeLeaderRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeLeaderRoleCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeAttachAttemptCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeAttachAttemptCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeAttachAttemptCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePartitionIdChangeCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePartitionIdChangeCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePartitionIdChangeCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBetterPartitionAttachAttemptCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBetterPartitionAttachAttemptCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBetterPartitionAttachAttemptCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeParentChangeCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeParentChangeCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeParentChangeCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxTotalCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxTotalCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxTotalCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxUnicastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxUnicastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxUnicastCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxBroadcastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxBroadcastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxBroadcastCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxAckRequestedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxAckRequestedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxAckRequestedCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxAckedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxAckedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxAckedCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxNoAckRequestedCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxNoAckRequestedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxNoAckRequestedCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxDataCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxDataCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxDataCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxDataPollCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxDataPollCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxDataPollCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxBeaconCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxBeaconCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxBeaconCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxBeaconRequestCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxBeaconRequestCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxBeaconRequestCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxOtherCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxRetryCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxRetryCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxRetryCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxDirectMaxRetryExpiryCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxDirectMaxRetryExpiryCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxDirectMaxRetryExpiryCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxIndirectMaxRetryExpiryCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxIndirectMaxRetryExpiryCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxIndirectMaxRetryExpiryCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxErrCcaCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxErrCcaCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxErrCcaCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxErrAbortCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxErrAbortCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxErrAbortCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTxErrBusyChannelCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTxErrBusyChannelCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTxErrBusyChannelCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxTotalCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxTotalCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxTotalCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxUnicastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxUnicastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxUnicastCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxBroadcastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxBroadcastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxBroadcastCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxDataCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxDataCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxDataCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxDataPollCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxDataPollCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxDataPollCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxBeaconCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxBeaconCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxBeaconCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxBeaconRequestCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxBeaconRequestCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxBeaconRequestCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxOtherCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxAddressFilteredCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxAddressFilteredCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxAddressFilteredCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxDestAddrFilteredCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxDestAddrFilteredCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxDestAddrFilteredCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxDuplicatedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxDuplicatedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxDuplicatedCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxErrNoFrameCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxErrNoFrameCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxErrNoFrameCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxErrUnknownNeighborCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxErrUnknownNeighborCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxErrUnknownNeighborCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxErrInvalidSrcAddrCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxErrInvalidSrcAddrCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxErrInvalidSrcAddrCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxErrSecCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxErrSecCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxErrSecCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxErrFcsCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxErrFcsCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxErrFcsCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRxErrOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRxErrOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRxErrOtherCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeActiveTimestamp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeActiveTimestamp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeActiveTimestamp(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePendingTimestamp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePendingTimestamp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePendingTimestamp(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeDelay(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeDelay(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeDelay(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSecurityPolicy(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeChannelMask(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeChannelMask(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeChannelMask(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOperationalDatasetComponents(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeActiveNetworkFaultsList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -2956,12 +2413,10 @@ class DLL_EXPORT WakeOnLanCluster : public ClusterBase ~WakeOnLanCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeWakeOnLanMacAddress(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeWakeOnLanMacAddress(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeWakeOnLanMacAddress(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -2977,68 +2432,49 @@ class DLL_EXPORT WiFiNetworkDiagnosticsCluster : public ClusterBase CHIP_ERROR ResetCounts(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeBssid(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBssid(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBssid(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSecurityType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSecurityType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSecurityType(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeWiFiVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeWiFiVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeWiFiVersion(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeChannelNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeChannelNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeChannelNumber(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeRssi(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeRssi(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeRssi(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBeaconLostCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBeaconLostCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBeaconLostCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBeaconRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBeaconRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBeaconRxCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePacketMulticastRxCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePacketMulticastRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePacketMulticastRxCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePacketMulticastTxCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePacketMulticastTxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePacketMulticastTxCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePacketUnicastRxCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePacketUnicastRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePacketUnicastRxCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributePacketUnicastTxCount(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributePacketUnicastTxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributePacketUnicastTxCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentMaxRate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentMaxRate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentMaxRate(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOverrunCount(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -3066,106 +2502,76 @@ class DLL_EXPORT WindowCoveringCluster : public ClusterBase CHIP_ERROR UpOrOpen(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeType(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentPositionLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentPositionLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentPositionLift(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentPositionTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentPositionTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentPositionTilt(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeConfigStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeConfigStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeConfigStatus(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentPositionLiftPercentage(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentPositionLiftPercentage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentPositionLiftPercentage(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentPositionTiltPercentage(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentPositionTiltPercentage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentPositionTiltPercentage(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOperationalStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOperationalStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOperationalStatus(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTargetPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTargetPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTargetPositionLiftPercent100ths(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTargetPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeTargetPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeTargetPositionTiltPercent100ths(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeEndProductType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeEndProductType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeEndProductType(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentPositionLiftPercent100ths(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCurrentPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentPositionTiltPercent100ths(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInstalledOpenLimitLift(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInstalledOpenLimitLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInstalledOpenLimitLift(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInstalledClosedLimitLift(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInstalledClosedLimitLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInstalledClosedLimitLift(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInstalledOpenLimitTilt(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInstalledOpenLimitTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInstalledOpenLimitTilt(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeInstalledClosedLimitTilt(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeInstalledClosedLimitTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeInstalledClosedLimitTilt(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeSafetyStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSafetyStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSafetyStatus(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeFeatureMap(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); diff --git a/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp b/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp index b98b4e0e165101..ba1cdf93cacdfe 100644 --- a/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp @@ -188,16 +188,6 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::QueryImage(Callback::Cancelable * o // OnOff Cluster Commands // OnOff Cluster Attributes -CHIP_ERROR OnOffCluster::ReadAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) { @@ -214,17 +204,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeOnOff(Callback::Cancelable * onReportCal BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeGlobalSceneControl(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeGlobalSceneControl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -242,16 +221,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeGlobalSceneControl(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -269,17 +238,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeOnTime(Callback::Cancelable * onReportCa BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -297,17 +255,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeOffWaitTime(Callback::Cancelable * onRep BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00004003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -325,16 +272,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeStartUpOnOff(Callback::Cancelable * onRe BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -352,17 +289,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeFeatureMap(Callback::Cancelable * onRepo BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) diff --git a/zzz_generated/lighting-app/zap-generated/CHIPClusters.h b/zzz_generated/lighting-app/zap-generated/CHIPClusters.h index d3a1c2c0053df9..08c9d3509a9f43 100644 --- a/zzz_generated/lighting-app/zap-generated/CHIPClusters.h +++ b/zzz_generated/lighting-app/zap-generated/CHIPClusters.h @@ -58,32 +58,25 @@ class DLL_EXPORT OnOffCluster : public ClusterBase ~OnOffCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOnOff(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeGlobalSceneControl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeGlobalSceneControl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeGlobalSceneControl(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOnTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOffWaitTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeStartUpOnOff(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeFeatureMap(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); diff --git a/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp b/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp index 3abd6a7b9c3916..9cc87d3624e9df 100644 --- a/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp @@ -185,17 +185,6 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::QueryImage(Callback::Cancelable * o } // OtaSoftwareUpdateProvider Cluster Attributes -CHIP_ERROR OtaSoftwareUpdateProviderCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OtaSoftwareUpdateProviderCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) diff --git a/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.h b/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.h index 7b04b96f436f42..213ff93d0e6c54 100644 --- a/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.h +++ b/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.h @@ -47,7 +47,6 @@ class DLL_EXPORT OtaSoftwareUpdateProviderCluster : public ClusterBase chip::ByteSpan metadataForProvider); // Cluster Attributes - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); diff --git a/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp b/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp index 0e721bc5b3faa7..a389adc1243490 100644 --- a/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp @@ -36,17 +36,6 @@ namespace Controller { // FlowMeasurement Cluster Commands // FlowMeasurement Cluster Attributes -CHIP_ERROR FlowMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -64,17 +53,6 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeMeasuredValue(Callback::Cancel BasicAttributeFilter); } -CHIP_ERROR FlowMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -92,17 +70,6 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeMinMeasuredValue(Callback::Can BasicAttributeFilter); } -CHIP_ERROR FlowMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -120,17 +87,6 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeMaxMeasuredValue(Callback::Can BasicAttributeFilter); } -CHIP_ERROR FlowMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -150,17 +106,6 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeClusterRevision(Callback::Canc // PressureMeasurement Cluster Commands // PressureMeasurement Cluster Attributes -CHIP_ERROR PressureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -178,17 +123,6 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeMeasuredValue(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR PressureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -206,17 +140,6 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeMinMeasuredValue(Callback: BasicAttributeFilter); } -CHIP_ERROR PressureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -234,17 +157,6 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeMaxMeasuredValue(Callback: BasicAttributeFilter); } -CHIP_ERROR PressureMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -264,17 +176,6 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeClusterRevision(Callback:: // TemperatureMeasurement Cluster Commands // TemperatureMeasurement Cluster Attributes -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -292,17 +193,6 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeMeasuredValue(Callback: BasicAttributeFilter); } -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -320,17 +210,6 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeMinMeasuredValue(Callba BasicAttributeFilter); } -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -348,17 +227,6 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeMaxMeasuredValue(Callba BasicAttributeFilter); } -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) diff --git a/zzz_generated/pump-app/zap-generated/CHIPClusters.h b/zzz_generated/pump-app/zap-generated/CHIPClusters.h index 4849861979beaa..6cef2576cb11e0 100644 --- a/zzz_generated/pump-app/zap-generated/CHIPClusters.h +++ b/zzz_generated/pump-app/zap-generated/CHIPClusters.h @@ -37,21 +37,17 @@ class DLL_EXPORT FlowMeasurementCluster : public ClusterBase ~FlowMeasurementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -64,21 +60,17 @@ class DLL_EXPORT PressureMeasurementCluster : public ClusterBase ~PressureMeasurementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -91,21 +83,17 @@ class DLL_EXPORT TemperatureMeasurementCluster : public ClusterBase ~TemperatureMeasurementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); diff --git a/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp b/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp index 78a68116c57217..8d145aae4d82bf 100644 --- a/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp @@ -36,17 +36,6 @@ namespace Controller { // FlowMeasurement Cluster Commands // FlowMeasurement Cluster Attributes -CHIP_ERROR FlowMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -64,17 +53,6 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeMeasuredValue(Callback::Cancel BasicAttributeFilter); } -CHIP_ERROR FlowMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -92,17 +70,6 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeMinMeasuredValue(Callback::Can BasicAttributeFilter); } -CHIP_ERROR FlowMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -120,17 +87,6 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeMaxMeasuredValue(Callback::Can BasicAttributeFilter); } -CHIP_ERROR FlowMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -507,17 +463,6 @@ CHIP_ERROR LevelControlCluster::StopWithOnOff(Callback::Cancelable * onSuccessCa } // LevelControl Cluster Attributes -CHIP_ERROR LevelControlCluster::ReadAttributeCurrentLevel(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -535,17 +480,6 @@ CHIP_ERROR LevelControlCluster::ReportAttributeCurrentLevel(Callback::Cancelable BasicAttributeFilter); } -CHIP_ERROR LevelControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR LevelControlCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -679,16 +613,6 @@ CHIP_ERROR OnOffCluster::Toggle(Callback::Cancelable * onSuccessCallback, Callba } // OnOff Cluster Attributes -CHIP_ERROR OnOffCluster::ReadAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) { @@ -705,17 +629,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeOnOff(Callback::Cancelable * onReportCal BasicAttributeFilter); } -CHIP_ERROR OnOffCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OnOffCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -735,17 +648,6 @@ CHIP_ERROR OnOffCluster::ReportAttributeClusterRevision(Callback::Cancelable * o // PressureMeasurement Cluster Commands // PressureMeasurement Cluster Attributes -CHIP_ERROR PressureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -763,17 +665,6 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeMeasuredValue(Callback::Ca BasicAttributeFilter); } -CHIP_ERROR PressureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -791,17 +682,6 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeMinMeasuredValue(Callback: BasicAttributeFilter); } -CHIP_ERROR PressureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -819,17 +699,6 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeMaxMeasuredValue(Callback: BasicAttributeFilter); } -CHIP_ERROR PressureMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -849,17 +718,6 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeClusterRevision(Callback:: // PumpConfigurationAndControl Cluster Commands // PumpConfigurationAndControl Cluster Attributes -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxPressure(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMaxPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -877,17 +735,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMaxPressure(Callba BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxSpeed(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMaxSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -905,17 +752,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMaxSpeed(Callback: BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxFlow(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeMaxFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -933,17 +769,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeMaxFlow(Callback:: BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveOperationMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000011; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeEffectiveOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -961,17 +786,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeEffectiveOperation BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveControlMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000012; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeEffectiveControlMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -989,17 +803,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeEffectiveControlMo BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeCapacity(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000013; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeCapacity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1017,17 +820,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeCapacity(Callback: BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeOperationMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000020; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1045,17 +837,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeOperationMode(Call BasicAttributeFilter); } -CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1075,17 +856,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeClusterRevision(Ca // TemperatureMeasurement Cluster Commands // TemperatureMeasurement Cluster Attributes -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1103,17 +873,6 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeMeasuredValue(Callback: BasicAttributeFilter); } -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1131,17 +890,6 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeMinMeasuredValue(Callba BasicAttributeFilter); } -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -1159,17 +907,6 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeMaxMeasuredValue(Callba BasicAttributeFilter); } -CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) diff --git a/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.h b/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.h index f172f547747173..1cc5a7e2028c2f 100644 --- a/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.h +++ b/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.h @@ -37,21 +37,17 @@ class DLL_EXPORT FlowMeasurementCluster : public ClusterBase ~FlowMeasurementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -81,11 +77,9 @@ class DLL_EXPORT LevelControlCluster : public ClusterBase CHIP_ERROR StopWithOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentLevel(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -105,11 +99,9 @@ class DLL_EXPORT OnOffCluster : public ClusterBase CHIP_ERROR Toggle(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOnOff(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -124,21 +116,17 @@ class DLL_EXPORT PressureMeasurementCluster : public ClusterBase ~PressureMeasurementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -151,39 +139,29 @@ class DLL_EXPORT PumpConfigurationAndControlCluster : public ClusterBase ~PumpConfigurationAndControlCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMaxPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxPressure(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxSpeed(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxFlow(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeEffectiveOperationMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeEffectiveOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeEffectiveOperationMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeEffectiveControlMode(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeEffectiveControlMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeEffectiveControlMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCapacity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCapacity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCapacity(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeOperationMode(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -196,21 +174,17 @@ class DLL_EXPORT TemperatureMeasurementCluster : public ClusterBase ~TemperatureMeasurementCluster() {} // Cluster Attributes - CHIP_ERROR ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMinMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeMaxMeasuredValue(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); diff --git a/zzz_generated/thermostat/zap-generated/CHIPClusters.cpp b/zzz_generated/thermostat/zap-generated/CHIPClusters.cpp index b477f2420ceac4..a77c77a4105bff 100644 --- a/zzz_generated/thermostat/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/thermostat/zap-generated/CHIPClusters.cpp @@ -115,17 +115,6 @@ CHIP_ERROR IdentifyCluster::IdentifyQuery(Callback::Cancelable * onSuccessCallba } // Identify Cluster Attributes -CHIP_ERROR IdentifyCluster::ReadAttributeIdentifyTime(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR IdentifyCluster::SubscribeAttributeIdentifyTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -143,17 +132,6 @@ CHIP_ERROR IdentifyCluster::ReportAttributeIdentifyTime(Callback::Cancelable * o BasicAttributeFilter); } -CHIP_ERROR IdentifyCluster::ReadAttributeIdentifyType(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR IdentifyCluster::SubscribeAttributeIdentifyType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -171,17 +149,6 @@ CHIP_ERROR IdentifyCluster::ReportAttributeIdentifyType(Callback::Cancelable * o BasicAttributeFilter); } -CHIP_ERROR IdentifyCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR IdentifyCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) diff --git a/zzz_generated/thermostat/zap-generated/CHIPClusters.h b/zzz_generated/thermostat/zap-generated/CHIPClusters.h index 1ce05465ab745d..0cb414ecfb0550 100644 --- a/zzz_generated/thermostat/zap-generated/CHIPClusters.h +++ b/zzz_generated/thermostat/zap-generated/CHIPClusters.h @@ -41,15 +41,12 @@ class DLL_EXPORT IdentifyCluster : public ClusterBase CHIP_ERROR IdentifyQuery(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); // Cluster Attributes - CHIP_ERROR ReadAttributeIdentifyTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeIdentifyTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeIdentifyTime(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeIdentifyType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeIdentifyType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeIdentifyType(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); diff --git a/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp b/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp index e67bc55ab352b8..55b3504dd252cb 100644 --- a/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp @@ -171,17 +171,6 @@ CHIP_ERROR GeneralCommissioningCluster::SetRegulatoryConfig(Callback::Cancelable } // GeneralCommissioning Cluster Attributes -CHIP_ERROR GeneralCommissioningCluster::ReadAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000000; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR GeneralCommissioningCluster::SubscribeAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -199,61 +188,6 @@ CHIP_ERROR GeneralCommissioningCluster::ReportAttributeBreadcrumb(Callback::Canc BasicAttributeFilter); } -CHIP_ERROR GeneralCommissioningCluster::ReadAttributeBasicCommissioningInfoList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - GeneralCommissioningClusterBasicCommissioningInfoListListAttributeFilter); -} - -CHIP_ERROR GeneralCommissioningCluster::ReadAttributeRegulatoryConfig(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR GeneralCommissioningCluster::ReadAttributeLocationCapability(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR GeneralCommissioningCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR GeneralCommissioningCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR GeneralCommissioningCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -458,28 +392,6 @@ CHIP_ERROR NetworkCommissioningCluster::ScanNetworks(Callback::Cancelable * onSu } // NetworkCommissioning Cluster Attributes -CHIP_ERROR NetworkCommissioningCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFC; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - -CHIP_ERROR NetworkCommissioningCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR NetworkCommissioningCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -803,28 +715,6 @@ CHIP_ERROR OperationalCredentialsCluster::UpdateFabricLabel(Callback::Cancelable } // OperationalCredentials Cluster Attributes -CHIP_ERROR OperationalCredentialsCluster::ReadAttributeFabricsList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000001; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - OperationalCredentialsClusterFabricsListListAttributeFilter); -} - -CHIP_ERROR OperationalCredentialsCluster::ReadAttributeSupportedFabrics(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000002; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OperationalCredentialsCluster::SubscribeAttributeSupportedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -842,17 +732,6 @@ CHIP_ERROR OperationalCredentialsCluster::ReportAttributeSupportedFabrics(Callba BasicAttributeFilter); } -CHIP_ERROR OperationalCredentialsCluster::ReadAttributeCommissionedFabrics(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000003; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OperationalCredentialsCluster::SubscribeAttributeCommissionedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -870,28 +749,6 @@ CHIP_ERROR OperationalCredentialsCluster::ReportAttributeCommissionedFabrics(Cal BasicAttributeFilter); } -CHIP_ERROR OperationalCredentialsCluster::ReadAttributeTrustedRootCertificates(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000004; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - OperationalCredentialsClusterTrustedRootCertificatesListAttributeFilter); -} - -CHIP_ERROR OperationalCredentialsCluster::ReadAttributeCurrentFabricIndex(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x00000005; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OperationalCredentialsCluster::SubscribeAttributeCurrentFabricIndex(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) @@ -909,17 +766,6 @@ CHIP_ERROR OperationalCredentialsCluster::ReportAttributeCurrentFabricIndex(Call BasicAttributeFilter); } -CHIP_ERROR OperationalCredentialsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) -{ - app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = 0x0000FFFD; - return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, - BasicAttributeFilter); -} - CHIP_ERROR OperationalCredentialsCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval) diff --git a/zzz_generated/tv-app/zap-generated/CHIPClusters.h b/zzz_generated/tv-app/zap-generated/CHIPClusters.h index 20f894a9a7b825..02ce1016e1f31a 100644 --- a/zzz_generated/tv-app/zap-generated/CHIPClusters.h +++ b/zzz_generated/tv-app/zap-generated/CHIPClusters.h @@ -44,16 +44,9 @@ class DLL_EXPORT GeneralCommissioningCluster : public ClusterBase uint8_t location, chip::CharSpan countryCode, uint64_t breadcrumb, uint32_t timeoutMs); // Cluster Attributes - CHIP_ERROR ReadAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeBreadcrumb(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeBasicCommissioningInfoList(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeRegulatoryConfig(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeLocationCapability(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -78,8 +71,6 @@ class DLL_EXPORT NetworkCommissioningCluster : public ClusterBase uint64_t breadcrumb, uint32_t timeoutMs); // Cluster Attributes - CHIP_ERROR ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); @@ -110,25 +101,18 @@ class DLL_EXPORT OperationalCredentialsCluster : public ClusterBase chip::CharSpan label); // Cluster Attributes - CHIP_ERROR ReadAttributeFabricsList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeSupportedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeSupportedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeSupportedFabrics(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeCommissionedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCommissionedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCommissionedFabrics(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeTrustedRootCertificates(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback); - CHIP_ERROR ReadAttributeCurrentFabricIndex(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeCurrentFabricIndex(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeCurrentFabricIndex(Callback::Cancelable * onReportCallback); - CHIP_ERROR ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t minInterval, uint16_t maxInterval); CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback);