From 2365811a648458fa089c53e2363bae821d3ac2bb Mon Sep 17 00:00:00 2001 From: Song GUO Date: Tue, 9 Nov 2021 02:35:02 +0800 Subject: [PATCH] [IM] Update AttributePathParams for encoding a path with wildcard paths (#11459) * Update AttributePathParams * Codegen --- src/app/AttributePathParams.cpp | 52 + src/app/AttributePathParams.h | 54 +- src/app/BUILD.gn | 1 + src/app/ClusterInfo.h | 2 + src/app/ReadClient.cpp | 20 +- src/app/WriteClient.cpp | 43 +- src/app/WriteHandler.cpp | 17 +- src/app/tests/TestReadInteraction.cpp | 42 +- src/app/tests/TestWriteInteraction.cpp | 8 - .../tests/integration/chip_im_initiator.cpp | 6 - .../tests/integration/chip_im_responder.cpp | 3 - .../util/ember-compatibility-functions.cpp | 2 - .../templates/app/CHIPClusters-src.zapt | 4 +- src/controller/CHIPDevice.cpp | 2 - .../zap-generated/CHIPClusters.cpp | 994 +++++++++--------- .../zap-generated/CHIPClusters.cpp | 16 +- .../zap-generated/CHIPClusters.cpp | 2 +- .../pump-app/zap-generated/CHIPClusters.cpp | 30 +- .../zap-generated/CHIPClusters.cpp | 58 +- .../thermostat/zap-generated/CHIPClusters.cpp | 6 +- .../tv-app/zap-generated/CHIPClusters.cpp | 20 +- 21 files changed, 671 insertions(+), 711 deletions(-) create mode 100644 src/app/AttributePathParams.cpp diff --git a/src/app/AttributePathParams.cpp b/src/app/AttributePathParams.cpp new file mode 100644 index 00000000000000..c4c232312e962f --- /dev/null +++ b/src/app/AttributePathParams.cpp @@ -0,0 +1,52 @@ +/* + * + * Copyright (c) 2021 Project CHIP Authors + * All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +namespace chip { +namespace app { + +CHIP_ERROR AttributePathParams::BuildAttributePath(AttributePathIB::Builder & aBuilder) const +{ + if (!HasWildcardEndpointId()) + { + aBuilder.Endpoint(mEndpointId); + } + + if (!HasWildcardClusterId()) + { + aBuilder.Cluster(mClusterId); + } + + if (!HasWildcardAttributeId()) + { + aBuilder.Attribute(mFieldId); + } + + if (!HasWildcardListIndex()) + { + aBuilder.ListIndex(mListIndex); + } + + aBuilder.EndOfAttributePathIB(); + + return aBuilder.GetError(); +} +} // namespace app +} // namespace chip diff --git a/src/app/AttributePathParams.h b/src/app/AttributePathParams.h index 59c1313fb42961..06a9a4c517d014 100644 --- a/src/app/AttributePathParams.h +++ b/src/app/AttributePathParams.h @@ -19,48 +19,54 @@ #pragma once #include -#include + +#include +#include namespace chip { namespace app { struct AttributePathParams { - enum class Flags : uint8_t - { - kFieldIdValid = 0x01, - kListIndexValid = 0x02, - }; - // // TODO: (Issue #10596) Need to ensure that we do not encode the NodeId over the wire // if it is either not 'set', or is set to a value that matches accessing fabric // on which the interaction is undertaken. // - AttributePathParams(EndpointId aEndpointId, ClusterId aClusterId) : AttributePathParams(0, aEndpointId, aClusterId, 0, 0, {}) {} + // TODO: (#11420) This class is overlapped with ClusterInfo class, need to do a clean up. + AttributePathParams(EndpointId aEndpointId, ClusterId aClusterId) : + AttributePathParams(aEndpointId, aClusterId, ClusterInfo::kInvalidAttributeId, ClusterInfo::kInvalidListIndex) + {} AttributePathParams(EndpointId aEndpointId, ClusterId aClusterId, AttributeId aFieldId) : - AttributePathParams(0, aEndpointId, aClusterId, aFieldId, 0, chip::app::AttributePathParams::Flags::kFieldIdValid) + AttributePathParams(aEndpointId, aClusterId, aFieldId, ClusterInfo::kInvalidListIndex) {} AttributePathParams(EndpointId aEndpointId, ClusterId aClusterId, AttributeId aFieldId, ListIndex aListIndex) : - AttributePathParams(0, aEndpointId, aClusterId, aFieldId, aListIndex, - BitFlags(chip::app::AttributePathParams::Flags::kFieldIdValid, - chip::app::AttributePathParams::Flags::kListIndexValid)) - {} - - AttributePathParams(NodeId aNodeId, EndpointId aEndpointId, ClusterId aClusterId, AttributeId aFieldId, ListIndex aListIndex, - const BitFlags aFlags) : - mNodeId(aNodeId), - mEndpointId(aEndpointId), mClusterId(aClusterId), mFieldId(aFieldId), mListIndex(aListIndex), mFlags(aFlags) + mEndpointId(aEndpointId), mClusterId(aClusterId), mFieldId(aFieldId), mListIndex(aListIndex) {} AttributePathParams() {} - NodeId mNodeId = 0; - EndpointId mEndpointId = 0; - ClusterId mClusterId = 0; - AttributeId mFieldId = 0; - ListIndex mListIndex = 0; - BitFlags mFlags; + + CHIP_ERROR BuildAttributePath(AttributePathIB::Builder & aBuilder) const; + + bool HasWildcard() const { return HasWildcardEndpointId() || HasWildcardClusterId() || HasWildcardAttributeId(); } + + /** + * Check that the path meets some basic constraints of an attribute path: If list index is not wildcard, then field id must not + * be wildcard. This does not verify that the attribute being targeted is actually of list type when the list index is not + * wildcard. + */ + bool IsValidAttributePath() const { return HasWildcardListIndex() || !HasWildcardAttributeId(); } + + inline bool HasWildcardEndpointId() const { return mEndpointId == ClusterInfo::kInvalidEndpointId; } + inline bool HasWildcardClusterId() const { return mClusterId == ClusterInfo::kInvalidClusterId; } + inline bool HasWildcardAttributeId() const { return mFieldId == ClusterInfo::kInvalidAttributeId; } + inline bool HasWildcardListIndex() const { return mListIndex == ClusterInfo::kInvalidListIndex; } + + EndpointId mEndpointId = ClusterInfo::kInvalidEndpointId; + ClusterId mClusterId = ClusterInfo::kInvalidClusterId; + AttributeId mFieldId = ClusterInfo::kInvalidAttributeId; + ListIndex mListIndex = ClusterInfo::kInvalidListIndex; }; } // namespace app } // namespace chip diff --git a/src/app/BUILD.gn b/src/app/BUILD.gn index dd95ba85291e21..2ff14fb0783297 100644 --- a/src/app/BUILD.gn +++ b/src/app/BUILD.gn @@ -35,6 +35,7 @@ static_library("app") { output_name = "libCHIPDataModel" sources = [ + "AttributePathParams.cpp", "Command.cpp", "Command.h", "CommandHandler.cpp", diff --git a/src/app/ClusterInfo.h b/src/app/ClusterInfo.h index f8ff6823e5792a..dca369cfb66210 100644 --- a/src/app/ClusterInfo.h +++ b/src/app/ClusterInfo.h @@ -35,6 +35,8 @@ namespace app { struct ClusterInfo { private: + // Allow AttributePathParams access these constants. + friend struct AttributePathParams; // Endpoint Id is a uint16 number, and should between 0 and 0xFFFE static constexpr EndpointId kInvalidEndpointId = 0xFFFF; // The ClusterId, AttributeId and EventId are MEIs, diff --git a/src/app/ReadClient.cpp b/src/app/ReadClient.cpp index d8faf46c27e868..0da0aa8d85dccf 100644 --- a/src/app/ReadClient.cpp +++ b/src/app/ReadClient.cpp @@ -259,24 +259,8 @@ CHIP_ERROR ReadClient::GenerateAttributePathList(AttributePaths::Builder & aAttr { for (size_t index = 0; index < aAttributePathParamsListSize; index++) { - AttributePathIB::Builder attributePathBuilder = aAttributePathListBuilder.CreateAttributePath(); - attributePathBuilder.Node(apAttributePathParamsList[index].mNodeId) - .Endpoint(apAttributePathParamsList[index].mEndpointId) - .Cluster(apAttributePathParamsList[index].mClusterId); - if (apAttributePathParamsList[index].mFlags.Has(AttributePathParams::Flags::kFieldIdValid)) - { - attributePathBuilder.Attribute(apAttributePathParamsList[index].mFieldId); - } - - if (apAttributePathParamsList[index].mFlags.Has(AttributePathParams::Flags::kListIndexValid)) - { - VerifyOrReturnError(apAttributePathParamsList[index].mFlags.Has(AttributePathParams::Flags::kFieldIdValid), - CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_PATH); - attributePathBuilder.ListIndex(apAttributePathParamsList[index].mListIndex); - } - - attributePathBuilder.EndOfAttributePathIB(); - ReturnErrorOnFailure(attributePathBuilder.GetError()); + VerifyOrReturnError(apAttributePathParamsList[index].IsValidAttributePath(), CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_PATH); + ReturnErrorOnFailure(apAttributePathParamsList[index].BuildAttributePath(aAttributePathListBuilder.CreateAttributePath())); } aAttributePathListBuilder.EndOfAttributePaths(); return aAttributePathListBuilder.GetError(); diff --git a/src/app/WriteClient.cpp b/src/app/WriteClient.cpp index 8681ad7ce0cd9f..b29be41cc12b70 100644 --- a/src/app/WriteClient.cpp +++ b/src/app/WriteClient.cpp @@ -171,23 +171,10 @@ TLV::TLVWriter * WriteClient::GetAttributeDataElementTLVWriter() CHIP_ERROR WriteClient::ConstructAttributePath(const AttributePathParams & aAttributePathParams, AttributeDataElement::Builder aAttributeDataElement) { - AttributePathIB::Builder attributePath = aAttributeDataElement.CreateAttributePath(); - if (aAttributePathParams.mFlags.Has(AttributePathParams::Flags::kFieldIdValid)) - { - attributePath.Attribute(aAttributePathParams.mFieldId); - } - - if (aAttributePathParams.mFlags.Has(AttributePathParams::Flags::kListIndexValid)) - { - attributePath.ListIndex(aAttributePathParams.mListIndex); - } - - attributePath.Node(aAttributePathParams.mNodeId) - .Cluster(aAttributePathParams.mClusterId) - .Endpoint(aAttributePathParams.mEndpointId) - .EndOfAttributePathIB(); - - return attributePath.GetError(); + // We do not support wildcard write now, reject them on client side. + VerifyOrReturnError(!aAttributePathParams.HasWildcard() && aAttributePathParams.IsValidAttributePath(), + CHIP_ERROR_INVALID_PATH_LIST); + return aAttributePathParams.BuildAttributePath(aAttributeDataElement.CreateAttributePath()); } CHIP_ERROR WriteClient::FinalizeMessage(System::PacketBufferHandle & aPacket) @@ -328,31 +315,21 @@ CHIP_ERROR WriteClient::ProcessAttributeStatusIB(AttributeStatusIB::Parser & aAt mAttributeStatusIndex++; err = aAttributeStatusIB.GetPath(&attributePath); SuccessOrExit(err); - err = attributePath.GetNode(&(attributePathParams.mNodeId)); - SuccessOrExit(err); err = attributePath.GetCluster(&(attributePathParams.mClusterId)); SuccessOrExit(err); err = attributePath.GetEndpoint(&(attributePathParams.mEndpointId)); SuccessOrExit(err); - err = attributePath.GetAttribute(&(attributePathParams.mFieldId)); - if (CHIP_NO_ERROR == err) - { - attributePathParams.mFlags.Set(AttributePathParams::Flags::kFieldIdValid); - } - else if (CHIP_END_OF_TLV == err) - { - err = CHIP_NO_ERROR; - } SuccessOrExit(err); - err = attributePath.GetListIndex(&(attributePathParams.mListIndex)); - if (CHIP_NO_ERROR == err) + if (err == CHIP_END_OF_TLV) { - VerifyOrExit(attributePathParams.mFlags.Has(AttributePathParams::Flags::kFieldIdValid), - err = CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_PATH); - attributePathParams.mFlags.Set(AttributePathParams::Flags::kListIndexValid); + err = CHIP_NO_ERROR; } + // TODO: (#11423) Attribute paths has a pattern of invalid paths, should add a function for checking invalid paths here. + // NOTE: We don't support wildcard write for now, reject all wildcard paths. + VerifyOrExit(!attributePathParams.HasWildcard() && attributePathParams.IsValidAttributePath(), + err = CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_PATH); err = aAttributeStatusIB.GetErrorStatus(&(StatusIBParser)); if (CHIP_NO_ERROR == err) diff --git a/src/app/WriteHandler.cpp b/src/app/WriteHandler.cpp index 1fbc711f4d6e45..66f5db87ceb668 100644 --- a/src/app/WriteHandler.cpp +++ b/src/app/WriteHandler.cpp @@ -215,22 +215,7 @@ CHIP_ERROR WriteHandler::ConstructAttributePath(const AttributePathParams & aAtt AttributeStatusIB::Builder aAttributeStatusIB) { AttributePathIB::Builder attributePath = aAttributeStatusIB.CreatePath(); - if (aAttributePathParams.mFlags.Has(AttributePathParams::Flags::kFieldIdValid)) - { - attributePath.Attribute(aAttributePathParams.mFieldId); - } - - if (aAttributePathParams.mFlags.Has(AttributePathParams::Flags::kListIndexValid)) - { - attributePath.ListIndex(aAttributePathParams.mListIndex); - } - - attributePath.Node(aAttributePathParams.mNodeId) - .Cluster(aAttributePathParams.mClusterId) - .Endpoint(aAttributePathParams.mEndpointId) - .EndOfAttributePathIB(); - - return attributePath.GetError(); + return aAttributePathParams.BuildAttributePath(attributePath); } CHIP_ERROR WriteHandler::AddStatus(const AttributePathParams & aAttributePathParams, diff --git a/src/app/tests/TestReadInteraction.cpp b/src/app/tests/TestReadInteraction.cpp index bb052d96e55291..68dc8b284c3fda 100644 --- a/src/app/tests/TestReadInteraction.cpp +++ b/src/app/tests/TestReadInteraction.cpp @@ -444,9 +444,9 @@ void TestReadInteraction::TestReadClientGenerateAttributePathList(nlTestSuite * NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR); AttributePathParams attributePathParams[2]; - attributePathParams[0].mFlags.Set(AttributePathParams::Flags::kFieldIdValid); - attributePathParams[1].mFlags.Set(AttributePathParams::Flags::kFieldIdValid); - attributePathParams[1].mFlags.Set(AttributePathParams::Flags::kListIndexValid); + attributePathParams[0].mFieldId = 0; + attributePathParams[1].mFieldId = 0; + attributePathParams[1].mListIndex = 0; AttributePaths::Builder & attributePathListBuilder = request.CreateAttributePathListBuilder(); err = readClient.GenerateAttributePathList(attributePathListBuilder, attributePathParams, 2 /*aAttributePathParamsListSize*/); NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR); @@ -471,8 +471,8 @@ void TestReadInteraction::TestReadClientGenerateInvalidAttributePathList(nlTestS NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR); AttributePathParams attributePathParams[2]; - attributePathParams[0].mFlags.Set(AttributePathParams::Flags::kFieldIdValid); - attributePathParams[1].mFlags.Set(AttributePathParams::Flags::kListIndexValid); + attributePathParams[0].mFieldId = 0; + attributePathParams[1].mListIndex = 0; AttributePaths::Builder & attributePathListBuilder = request.CreateAttributePathListBuilder(); err = readClient.GenerateAttributePathList(attributePathListBuilder, attributePathParams, 2 /*aAttributePathParamsListSize*/); NL_TEST_ASSERT(apSuite, err == CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_PATH); @@ -682,20 +682,14 @@ void TestReadInteraction::TestReadRoundtrip(nlTestSuite * apSuite, void * apCont eventPathParams[1].mEventId = kTestEventIdCritical; chip::app::AttributePathParams attributePathParams[2]; - attributePathParams[0].mNodeId = chip::kTestDeviceNodeId; attributePathParams[0].mEndpointId = kTestEndpointId; attributePathParams[0].mClusterId = kTestClusterId; attributePathParams[0].mFieldId = 1; - attributePathParams[0].mListIndex = 0; - attributePathParams[0].mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); - attributePathParams[1].mNodeId = chip::kTestDeviceNodeId; attributePathParams[1].mEndpointId = kTestEndpointId; attributePathParams[1].mClusterId = kTestClusterId; attributePathParams[1].mFieldId = 2; attributePathParams[1].mListIndex = 1; - attributePathParams[1].mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); - attributePathParams[1].mFlags.Set(chip::app::AttributePathParams::Flags::kListIndexValid); ReadPrepareParams readPrepareParams(ctx.GetSessionBobToAlice()); readPrepareParams.mpEventPathParamsList = eventPathParams; @@ -735,12 +729,9 @@ void TestReadInteraction::TestReadInvalidAttributePathRoundtrip(nlTestSuite * ap NL_TEST_ASSERT(apSuite, !delegate.mGotEventResponse); chip::app::AttributePathParams attributePathParams[2]; - attributePathParams[0].mNodeId = chip::kTestDeviceNodeId; attributePathParams[0].mEndpointId = kTestEndpointId; attributePathParams[0].mClusterId = kInvalidTestClusterId; attributePathParams[0].mFieldId = 1; - attributePathParams[0].mListIndex = 0; - attributePathParams[0].mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); ReadPrepareParams readPrepareParams(ctx.GetSessionBobToAlice()); readPrepareParams.mpAttributePathParamsList = attributePathParams; @@ -856,12 +847,10 @@ void TestReadInteraction::TestSubscribeRoundtrip(nlTestSuite * apSuite, void * a ReadPrepareParams readPrepareParams(ctx.GetSessionBobToAlice()); chip::app::EventPathParams eventPathParams[2]; readPrepareParams.mpEventPathParamsList = eventPathParams; - readPrepareParams.mpEventPathParamsList[0].mNodeId = kTestNodeId; readPrepareParams.mpEventPathParamsList[0].mEndpointId = kTestEndpointId; readPrepareParams.mpEventPathParamsList[0].mClusterId = kTestClusterId; readPrepareParams.mpEventPathParamsList[0].mEventId = kTestEventIdDebug; - readPrepareParams.mpEventPathParamsList[1].mNodeId = kTestNodeId; readPrepareParams.mpEventPathParamsList[1].mEndpointId = kTestEndpointId; readPrepareParams.mpEventPathParamsList[1].mClusterId = kTestClusterId; readPrepareParams.mpEventPathParamsList[1].mEventId = kTestEventIdCritical; @@ -870,19 +859,13 @@ void TestReadInteraction::TestSubscribeRoundtrip(nlTestSuite * apSuite, void * a chip::app::AttributePathParams attributePathParams[2]; readPrepareParams.mpAttributePathParamsList = attributePathParams; - readPrepareParams.mpAttributePathParamsList[0].mNodeId = chip::kTestDeviceNodeId; readPrepareParams.mpAttributePathParamsList[0].mEndpointId = kTestEndpointId; readPrepareParams.mpAttributePathParamsList[0].mClusterId = kTestClusterId; readPrepareParams.mpAttributePathParamsList[0].mFieldId = 1; - readPrepareParams.mpAttributePathParamsList[0].mListIndex = 0; - readPrepareParams.mpAttributePathParamsList[0].mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); - readPrepareParams.mpAttributePathParamsList[1].mNodeId = chip::kTestDeviceNodeId; readPrepareParams.mpAttributePathParamsList[1].mEndpointId = kTestEndpointId; readPrepareParams.mpAttributePathParamsList[1].mClusterId = kTestClusterId; readPrepareParams.mpAttributePathParamsList[1].mFieldId = 2; - readPrepareParams.mpAttributePathParamsList[1].mListIndex = 0; - readPrepareParams.mpAttributePathParamsList[1].mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); readPrepareParams.mAttributePathParamsListSize = 2; @@ -996,15 +979,12 @@ void TestReadInteraction::TestSubscribeRoundtrip(nlTestSuite * apSuite, void * a ReadPrepareParams readPrepareParams1(ctx.GetSessionBobToAlice()); chip::app::AttributePathParams attributePathParams1[1]; readPrepareParams1.mpAttributePathParamsList = attributePathParams1; - readPrepareParams1.mpAttributePathParamsList[0].mNodeId = chip::kTestDeviceNodeId; readPrepareParams1.mpAttributePathParamsList[0].mEndpointId = kTestEndpointId; readPrepareParams1.mpAttributePathParamsList[0].mClusterId = kTestClusterId; readPrepareParams1.mpAttributePathParamsList[0].mFieldId = 1; - readPrepareParams1.mpAttributePathParamsList[0].mListIndex = 0; - readPrepareParams1.mpAttributePathParamsList[0].mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); - readPrepareParams1.mAttributePathParamsListSize = 1; - readPrepareParams1.mMinIntervalFloorSeconds = 2; - readPrepareParams1.mMaxIntervalCeilingSeconds = 5; + readPrepareParams1.mAttributePathParamsListSize = 1; + readPrepareParams1.mMinIntervalFloorSeconds = 2; + readPrepareParams1.mMaxIntervalCeilingSeconds = 5; printf("\nSend another subscribe request message to Node: %" PRIu64 "\n", chip::kTestDeviceNodeId); err = engine->SendSubscribeRequest(readPrepareParams1, &delegate); @@ -1049,12 +1029,9 @@ void TestReadInteraction::TestSubscribeEarlyShutdown(nlTestSuite * apSuite, void // Subscribe to the attribute AttributePathParams attributePathParams; - attributePathParams.mNodeId = chip::kTestDeviceNodeId; attributePathParams.mEndpointId = kTestEndpointId; attributePathParams.mClusterId = kTestClusterId; attributePathParams.mFieldId = 1; - attributePathParams.mListIndex = 0; - attributePathParams.mFlags.Set(AttributePathParams::Flags::kFieldIdValid); ReadPrepareParams readPrepareParams(ctx.GetSessionBobToAlice()); readPrepareParams.mpAttributePathParamsList = &attributePathParams; @@ -1104,12 +1081,9 @@ void TestReadInteraction::TestSubscribeInvalidAttributePathRoundtrip(nlTestSuite ReadPrepareParams readPrepareParams(ctx.GetSessionBobToAlice()); chip::app::AttributePathParams attributePathParams[1]; readPrepareParams.mpAttributePathParamsList = attributePathParams; - readPrepareParams.mpAttributePathParamsList[0].mNodeId = chip::kTestDeviceNodeId; readPrepareParams.mpAttributePathParamsList[0].mEndpointId = kTestEndpointId; readPrepareParams.mpAttributePathParamsList[0].mClusterId = kInvalidTestClusterId; readPrepareParams.mpAttributePathParamsList[0].mFieldId = 1; - readPrepareParams.mpAttributePathParamsList[0].mListIndex = 0; - readPrepareParams.mpAttributePathParamsList[0].mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); readPrepareParams.mAttributePathParamsListSize = 1; diff --git a/src/app/tests/TestWriteInteraction.cpp b/src/app/tests/TestWriteInteraction.cpp index b117b752920181..3d4388bdb792e1 100644 --- a/src/app/tests/TestWriteInteraction.cpp +++ b/src/app/tests/TestWriteInteraction.cpp @@ -86,12 +86,9 @@ void TestWriteInteraction::AddAttributeDataElement(nlTestSuite * apSuite, void * { CHIP_ERROR err = CHIP_NO_ERROR; AttributePathParams attributePathParams; - attributePathParams.mNodeId = 1; attributePathParams.mEndpointId = 2; attributePathParams.mClusterId = 3; attributePathParams.mFieldId = 4; - attributePathParams.mListIndex = 5; - attributePathParams.mFlags.Set(AttributePathParams::Flags::kFieldIdValid); err = aWriteClient->PrepareAttribute(attributePathParams); NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR); @@ -109,12 +106,9 @@ void TestWriteInteraction::AddAttributeStatus(nlTestSuite * apSuite, void * apCo { CHIP_ERROR err = CHIP_NO_ERROR; AttributePathParams attributePathParams; - attributePathParams.mNodeId = 1; attributePathParams.mEndpointId = 2; attributePathParams.mClusterId = 3; attributePathParams.mFieldId = 4; - attributePathParams.mListIndex = 5; - attributePathParams.mFlags.Set(AttributePathParams::Flags::kFieldIdValid); err = aWriteHandler.AddStatus(attributePathParams, Protocols::InteractionModel::Status::Success); NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR); @@ -295,11 +289,9 @@ void TestWriteInteraction::TestWriteRoundtripWithClusterObjects(nlTestSuite * ap System::PacketBufferHandle buf = System::PacketBufferHandle::New(System::PacketBuffer::kMaxSize); AttributePathParams attributePathParams; - attributePathParams.mNodeId = 1; attributePathParams.mEndpointId = 2; attributePathParams.mClusterId = 3; attributePathParams.mFieldId = 4; - attributePathParams.mFlags.Set(AttributePathParams::Flags::kFieldIdValid); const uint8_t byteSpanData[] = { 0xde, 0xad, 0xbe, 0xef }; const char charSpanData[] = "a simple test string"; diff --git a/src/app/tests/integration/chip_im_initiator.cpp b/src/app/tests/integration/chip_im_initiator.cpp index ee25bf366de91f..686768b2e2aa49 100644 --- a/src/app/tests/integration/chip_im_initiator.cpp +++ b/src/app/tests/integration/chip_im_initiator.cpp @@ -342,12 +342,9 @@ CHIP_ERROR SendWriteRequest(chip::app::WriteClientHandle & apWriteClient) printf("\nSend write request message to Node: %" PRIu64 "\n", chip::kTestDeviceNodeId); - attributePathParams.mNodeId = 1; attributePathParams.mEndpointId = 2; attributePathParams.mClusterId = 3; attributePathParams.mFieldId = 4; - attributePathParams.mListIndex = 5; - attributePathParams.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); SuccessOrExit(err = apWriteClient->PrepareAttribute(attributePathParams)); @@ -390,12 +387,9 @@ CHIP_ERROR SendSubscribeRequest() readPrepareParams.mEventPathParamsListSize = 2; readPrepareParams.mpAttributePathParamsList = attributePathParams; - readPrepareParams.mpAttributePathParamsList[0].mNodeId = chip::kTestDeviceNodeId; readPrepareParams.mpAttributePathParamsList[0].mEndpointId = kTestEndpointId; readPrepareParams.mpAttributePathParamsList[0].mClusterId = kTestClusterId; readPrepareParams.mpAttributePathParamsList[0].mFieldId = 1; - readPrepareParams.mpAttributePathParamsList[0].mListIndex = 0; - readPrepareParams.mpAttributePathParamsList[0].mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); readPrepareParams.mAttributePathParamsListSize = 1; diff --git a/src/app/tests/integration/chip_im_responder.cpp b/src/app/tests/integration/chip_im_responder.cpp index 05fb9b68613234..753646503d0ee1 100644 --- a/src/app/tests/integration/chip_im_responder.cpp +++ b/src/app/tests/integration/chip_im_responder.cpp @@ -130,12 +130,9 @@ CHIP_ERROR WriteSingleClusterData(ClusterInfo & aClusterInfo, TLV::TLVReader & a { CHIP_ERROR err = CHIP_NO_ERROR; AttributePathParams attributePathParams; - attributePathParams.mNodeId = 1; attributePathParams.mEndpointId = 2; attributePathParams.mClusterId = 3; attributePathParams.mFieldId = 4; - attributePathParams.mListIndex = 5; - attributePathParams.mFlags.Set(AttributePathParams::Flags::kFieldIdValid); err = apWriteHandler->AddStatus(attributePathParams, Protocols::InteractionModel::Status::Success); return err; diff --git a/src/app/util/ember-compatibility-functions.cpp b/src/app/util/ember-compatibility-functions.cpp index 5e3dad6581d035..58aa77a11c96fb 100644 --- a/src/app/util/ember-compatibility-functions.cpp +++ b/src/app/util/ember-compatibility-functions.cpp @@ -473,11 +473,9 @@ static Protocols::InteractionModel::Status WriteSingleClusterDataInternal(Cluste CHIP_ERROR WriteSingleClusterData(ClusterInfo & aClusterInfo, TLV::TLVReader & aReader, WriteHandler * apWriteHandler) { AttributePathParams attributePathParams; - attributePathParams.mNodeId = aClusterInfo.mNodeId; attributePathParams.mEndpointId = aClusterInfo.mEndpointId; attributePathParams.mClusterId = aClusterInfo.mClusterId; attributePathParams.mFieldId = aClusterInfo.mFieldId; - attributePathParams.mFlags.Set(AttributePathParams::Flags::kFieldIdValid); auto imCode = WriteSingleClusterDataInternal(aClusterInfo, aReader, apWriteHandler); return apWriteHandler->AddStatus(attributePathParams, imCode); diff --git a/src/app/zap-templates/templates/app/CHIPClusters-src.zapt b/src/app/zap-templates/templates/app/CHIPClusters-src.zapt index 1af790e17a55c9..b2d4044edd969b 100644 --- a/src/app/zap-templates/templates/app/CHIPClusters-src.zapt +++ b/src/app/zap-templates/templates/app/CHIPClusters-src.zapt @@ -79,7 +79,7 @@ CHIP_ERROR {{asUpperCamelCase parent.name}}Cluster::ReadAttribute{{asUpperCamelC attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = {{asHex code 8}}; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback,{{#if isList}}{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}ListAttributeFilter{{else}}BasicAttributeFilter<{{chipCallback.name}}AttributeCallback>{{/if}}); } @@ -100,7 +100,7 @@ CHIP_ERROR {{asUpperCamelCase parent.name}}Cluster::SubscribeAttribute{{asUpperC attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = {{#if isGlobalAttribute}}Globals{{else}}{{asUpperCamelCase parent.name}}{{/if}}::Attributes::{{asUpperCamelCase name}}::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } diff --git a/src/controller/CHIPDevice.cpp b/src/controller/CHIPDevice.cpp index 04e5e6e9d6fefe..ad1c0d5fed0c79 100644 --- a/src/controller/CHIPDevice.cpp +++ b/src/controller/CHIPDevice.cpp @@ -748,7 +748,6 @@ CHIP_ERROR Device::SendReadAttributeRequest(app::AttributePathParams aPath, Call Callback::Cancelable * onFailureCallback, app::TLVDataFilter aTlvDataFilter) { bool loadedSecureSession = false; - aPath.mNodeId = GetDeviceId(); ReturnErrorOnFailure(LoadSecureSessionParametersIfNeeded(loadedSecureSession)); VerifyOrReturnError(mState == ConnectionState::SecureConnected, CHIP_ERROR_INCORRECT_STATE); @@ -781,7 +780,6 @@ CHIP_ERROR Device::SendSubscribeAttributeRequest(app::AttributePathParams aPath, Callback::Cancelable * onFailureCallback) { bool loadedSecureSession = false; - aPath.mNodeId = GetDeviceId(); ReturnErrorOnFailure(LoadSecureSessionParametersIfNeeded(loadedSecureSession)); diff --git a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp index 7b8a311e2c6f8d..69a22b842a7c94 100644 --- a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp @@ -127,7 +127,7 @@ CHIP_ERROR AccountLoginCluster::ReadAttributeClusterRevision(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -279,7 +279,7 @@ CHIP_ERROR AdministratorCommissioningCluster::ReadAttributeClusterRevision(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -334,7 +334,7 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeVendorName(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -346,7 +346,7 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeVendorId(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -358,7 +358,7 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeApplicationName(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -370,7 +370,7 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeProductId(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -382,7 +382,7 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeApplicationId(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -394,7 +394,7 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeCatalogVendorId(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -406,7 +406,7 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeApplicationStatus(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -418,7 +418,7 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeClusterRevision(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -477,7 +477,7 @@ CHIP_ERROR ApplicationLauncherCluster::ReadAttributeApplicationLauncherList(Call attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ApplicationLauncherClusterApplicationLauncherListListAttributeFilter); } @@ -489,7 +489,7 @@ CHIP_ERROR ApplicationLauncherCluster::ReadAttributeCatalogVendorId(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -501,7 +501,7 @@ CHIP_ERROR ApplicationLauncherCluster::ReadAttributeApplicationId(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -513,7 +513,7 @@ CHIP_ERROR ApplicationLauncherCluster::ReadAttributeClusterRevision(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -611,7 +611,7 @@ CHIP_ERROR AudioOutputCluster::ReadAttributeAudioOutputList(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, AudioOutputClusterAudioOutputListListAttributeFilter); } @@ -623,7 +623,7 @@ CHIP_ERROR AudioOutputCluster::ReadAttributeCurrentAudioOutput(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -635,7 +635,7 @@ CHIP_ERROR AudioOutputCluster::ReadAttributeClusterRevision(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -730,7 +730,7 @@ CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierMovingState(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -742,7 +742,7 @@ CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierSafetyStatus(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -754,7 +754,7 @@ CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierCapabilities(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -766,7 +766,7 @@ CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierPosition(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -778,7 +778,7 @@ CHIP_ERROR BarrierControlCluster::ReadAttributeClusterRevision(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -830,7 +830,7 @@ CHIP_ERROR BasicCluster::ReadAttributeInteractionModelVersion(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -841,7 +841,7 @@ CHIP_ERROR BasicCluster::ReadAttributeVendorName(Callback::Cancelable * onSucces attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -852,7 +852,7 @@ CHIP_ERROR BasicCluster::ReadAttributeVendorID(Callback::Cancelable * onSuccessC attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -864,7 +864,7 @@ CHIP_ERROR BasicCluster::ReadAttributeProductName(Callback::Cancelable * onSucce attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -875,7 +875,7 @@ CHIP_ERROR BasicCluster::ReadAttributeProductID(Callback::Cancelable * onSuccess attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -886,7 +886,7 @@ CHIP_ERROR BasicCluster::ReadAttributeUserLabel(Callback::Cancelable * onSuccess attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -908,7 +908,7 @@ CHIP_ERROR BasicCluster::ReadAttributeLocation(Callback::Cancelable * onSuccessC attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -931,7 +931,7 @@ CHIP_ERROR BasicCluster::ReadAttributeHardwareVersion(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -943,7 +943,7 @@ CHIP_ERROR BasicCluster::ReadAttributeHardwareVersionString(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -955,7 +955,7 @@ CHIP_ERROR BasicCluster::ReadAttributeSoftwareVersion(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000009; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -967,7 +967,7 @@ CHIP_ERROR BasicCluster::ReadAttributeSoftwareVersionString(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -979,7 +979,7 @@ CHIP_ERROR BasicCluster::ReadAttributeManufacturingDate(Callback::Cancelable * o attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -990,7 +990,7 @@ CHIP_ERROR BasicCluster::ReadAttributePartNumber(Callback::Cancelable * onSucces attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1001,7 +1001,7 @@ CHIP_ERROR BasicCluster::ReadAttributeProductURL(Callback::Cancelable * onSucces attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000D; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1013,7 +1013,7 @@ CHIP_ERROR BasicCluster::ReadAttributeProductLabel(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000E; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1025,7 +1025,7 @@ CHIP_ERROR BasicCluster::ReadAttributeSerialNumber(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000F; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1037,7 +1037,7 @@ CHIP_ERROR BasicCluster::ReadAttributeLocalConfigDisabled(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1059,7 +1059,7 @@ CHIP_ERROR BasicCluster::ReadAttributeReachable(Callback::Cancelable * onSuccess attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1071,7 +1071,7 @@ CHIP_ERROR BasicCluster::ReadAttributeClusterRevision(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1085,7 +1085,7 @@ CHIP_ERROR BinaryInputBasicCluster::ReadAttributeOutOfService(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000051; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1108,7 +1108,7 @@ CHIP_ERROR BinaryInputBasicCluster::ReadAttributePresentValue(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000055; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1132,7 +1132,7 @@ CHIP_ERROR BinaryInputBasicCluster::SubscribeAttributePresentValue(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = BinaryInputBasic::Attributes::PresentValue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -1149,7 +1149,7 @@ CHIP_ERROR BinaryInputBasicCluster::ReadAttributeStatusFlags(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000006F; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1162,7 +1162,7 @@ CHIP_ERROR BinaryInputBasicCluster::SubscribeAttributeStatusFlags(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = BinaryInputBasic::Attributes::StatusFlags::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -1179,7 +1179,7 @@ CHIP_ERROR BinaryInputBasicCluster::ReadAttributeClusterRevision(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1288,7 +1288,7 @@ CHIP_ERROR BindingCluster::ReadAttributeClusterRevision(Callback::Cancelable * o attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1302,7 +1302,7 @@ CHIP_ERROR BooleanStateCluster::ReadAttributeStateValue(Callback::Cancelable * o attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1315,7 +1315,7 @@ CHIP_ERROR BooleanStateCluster::SubscribeAttributeStateValue(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = BooleanState::Attributes::StateValue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -1332,7 +1332,7 @@ CHIP_ERROR BooleanStateCluster::ReadAttributeClusterRevision(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1882,7 +1882,7 @@ CHIP_ERROR BridgedActionsCluster::ReadAttributeActionList(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BridgedActionsClusterActionListListAttributeFilter); } @@ -1894,7 +1894,7 @@ CHIP_ERROR BridgedActionsCluster::ReadAttributeEndpointList(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BridgedActionsClusterEndpointListListAttributeFilter); } @@ -1906,7 +1906,7 @@ CHIP_ERROR BridgedActionsCluster::ReadAttributeSetupUrl(Callback::Cancelable * o attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1918,7 +1918,7 @@ CHIP_ERROR BridgedActionsCluster::ReadAttributeClusterRevision(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1932,7 +1932,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeVendorName(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1944,7 +1944,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeVendorID(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1956,7 +1956,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeProductName(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1968,7 +1968,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeUserLabel(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1991,7 +1991,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeHardwareVersion(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2003,7 +2003,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeHardwareVersionString(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2015,7 +2015,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeSoftwareVersion(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000009; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2027,7 +2027,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeSoftwareVersionString(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2039,7 +2039,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeManufacturingDate(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2051,7 +2051,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributePartNumber(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2063,7 +2063,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeProductURL(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000D; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2075,7 +2075,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeProductLabel(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000E; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2087,7 +2087,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeSerialNumber(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000F; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2099,7 +2099,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeReachable(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2111,7 +2111,7 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeClusterRevision(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3068,7 +3068,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeCurrentHue(Callback::Cancelable * o attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3081,7 +3081,7 @@ CHIP_ERROR ColorControlCluster::SubscribeAttributeCurrentHue(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = ColorControl::Attributes::CurrentHue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -3098,7 +3098,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeCurrentSaturation(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3111,7 +3111,7 @@ CHIP_ERROR ColorControlCluster::SubscribeAttributeCurrentSaturation(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = ColorControl::Attributes::CurrentSaturation::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -3128,7 +3128,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeRemainingTime(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3140,7 +3140,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeCurrentX(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3153,7 +3153,7 @@ CHIP_ERROR ColorControlCluster::SubscribeAttributeCurrentX(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = ColorControl::Attributes::CurrentX::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -3170,7 +3170,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeCurrentY(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3183,7 +3183,7 @@ CHIP_ERROR ColorControlCluster::SubscribeAttributeCurrentY(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = ColorControl::Attributes::CurrentY::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -3200,7 +3200,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeDriftCompensation(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3212,7 +3212,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeCompensationText(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3224,7 +3224,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorTemperature(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3237,7 +3237,7 @@ CHIP_ERROR ColorControlCluster::SubscribeAttributeColorTemperature(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = ColorControl::Attributes::ColorTemperature::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -3254,7 +3254,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorMode(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3266,7 +3266,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorControlOptions(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000F; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3289,7 +3289,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeNumberOfPrimaries(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3301,7 +3301,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary1X(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3313,7 +3313,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary1Y(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3325,7 +3325,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary1Intensity(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000013; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3337,7 +3337,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary2X(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000015; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3349,7 +3349,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary2Y(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000016; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3361,7 +3361,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary2Intensity(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000017; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3373,7 +3373,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary3X(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000019; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3385,7 +3385,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary3Y(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3397,7 +3397,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary3Intensity(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3409,7 +3409,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary4X(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000020; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3421,7 +3421,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary4Y(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000021; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3433,7 +3433,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary4Intensity(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000022; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3445,7 +3445,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary5X(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000024; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3457,7 +3457,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary5Y(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000025; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3469,7 +3469,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary5Intensity(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000026; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3481,7 +3481,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary6X(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000028; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3493,7 +3493,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary6Y(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000029; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3505,7 +3505,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary6Intensity(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3517,7 +3517,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeWhitePointX(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000030; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3540,7 +3540,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeWhitePointY(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000031; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3563,7 +3563,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointRX(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000032; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3586,7 +3586,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointRY(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000033; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3609,7 +3609,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointRIntensity(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000034; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3632,7 +3632,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointGX(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000036; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3655,7 +3655,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointGY(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000037; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3678,7 +3678,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointGIntensity(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000038; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3701,7 +3701,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointBX(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3724,7 +3724,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointBY(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3747,7 +3747,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointBIntensity(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3770,7 +3770,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeEnhancedCurrentHue(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3782,7 +3782,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeEnhancedColorMode(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3794,7 +3794,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopActive(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3806,7 +3806,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopDirection(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3818,7 +3818,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopTime(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3830,7 +3830,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopStartEnhancedHue(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3842,7 +3842,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopStoredEnhancedHue(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004006; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3854,7 +3854,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorCapabilities(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000400A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3866,7 +3866,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorTempPhysicalMin(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000400B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3878,7 +3878,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorTempPhysicalMax(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000400C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3890,7 +3890,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeCoupleColorTempToLevelMinMireds(Cal attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000400D; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3902,7 +3902,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeStartUpColorTemperatureMireds(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004010; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3926,7 +3926,7 @@ CHIP_ERROR ColorControlCluster::ReadAttributeClusterRevision(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4026,7 +4026,7 @@ CHIP_ERROR ContentLauncherCluster::ReadAttributeAcceptsHeaderList(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ContentLauncherClusterAcceptsHeaderListListAttributeFilter); } @@ -4038,7 +4038,7 @@ CHIP_ERROR ContentLauncherCluster::ReadAttributeSupportedStreamingTypes(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ContentLauncherClusterSupportedStreamingTypesListAttributeFilter); } @@ -4050,7 +4050,7 @@ CHIP_ERROR ContentLauncherCluster::ReadAttributeClusterRevision(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4064,7 +4064,7 @@ CHIP_ERROR DescriptorCluster::ReadAttributeDeviceList(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, DescriptorClusterDeviceListListAttributeFilter); } @@ -4076,7 +4076,7 @@ CHIP_ERROR DescriptorCluster::ReadAttributeServerList(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, DescriptorClusterServerListListAttributeFilter); } @@ -4088,7 +4088,7 @@ CHIP_ERROR DescriptorCluster::ReadAttributeClientList(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, DescriptorClusterClientListListAttributeFilter); } @@ -4100,7 +4100,7 @@ CHIP_ERROR DescriptorCluster::ReadAttributePartsList(Callback::Cancelable * onSu attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, DescriptorClusterPartsListListAttributeFilter); } @@ -4112,7 +4112,7 @@ CHIP_ERROR DescriptorCluster::ReadAttributeClusterRevision(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5162,7 +5162,7 @@ CHIP_ERROR DoorLockCluster::ReadAttributeLockState(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5175,7 +5175,7 @@ CHIP_ERROR DoorLockCluster::SubscribeAttributeLockState(Callback::Cancelable * o attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = DoorLock::Attributes::LockState::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -5192,7 +5192,7 @@ CHIP_ERROR DoorLockCluster::ReadAttributeLockType(Callback::Cancelable * onSucce attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5204,7 +5204,7 @@ CHIP_ERROR DoorLockCluster::ReadAttributeActuatorEnabled(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5216,7 +5216,7 @@ CHIP_ERROR DoorLockCluster::ReadAttributeClusterRevision(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5230,7 +5230,7 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeMeasurementType(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5242,7 +5242,7 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeTotalActivePower(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000304; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5254,7 +5254,7 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsVoltage(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000505; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5266,7 +5266,7 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsVoltageMin(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000506; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5278,7 +5278,7 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsVoltageMax(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000507; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5290,7 +5290,7 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsCurrent(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000508; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5302,7 +5302,7 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsCurrentMin(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000509; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5314,7 +5314,7 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsCurrentMax(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000050A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5326,7 +5326,7 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeActivePower(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000050B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5338,7 +5338,7 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeActivePowerMin(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000050C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5350,7 +5350,7 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeActivePowerMax(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000050D; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5362,7 +5362,7 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeClusterRevision(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5416,7 +5416,7 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributePHYRate(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5428,7 +5428,7 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeFullDuplex(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5440,7 +5440,7 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributePacketRxCount(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5452,7 +5452,7 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributePacketTxCount(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5464,7 +5464,7 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeTxErrCount(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5476,7 +5476,7 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeCollisionCount(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5488,7 +5488,7 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeOverrunCount(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5500,7 +5500,7 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeCarrierDetect(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5512,7 +5512,7 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeTimeSinceReset(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5524,7 +5524,7 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeClusterRevision(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5538,7 +5538,7 @@ CHIP_ERROR FixedLabelCluster::ReadAttributeLabelList(Callback::Cancelable * onSu attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, FixedLabelClusterLabelListListAttributeFilter); } @@ -5550,7 +5550,7 @@ CHIP_ERROR FixedLabelCluster::ReadAttributeClusterRevision(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5564,7 +5564,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5576,7 +5576,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5588,7 +5588,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5600,7 +5600,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeTolerance(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5612,7 +5612,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5761,7 +5761,7 @@ CHIP_ERROR GeneralCommissioningCluster::ReadAttributeBreadcrumb(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5784,7 +5784,7 @@ CHIP_ERROR GeneralCommissioningCluster::ReadAttributeBasicCommissioningInfoList( attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, GeneralCommissioningClusterBasicCommissioningInfoListListAttributeFilter); } @@ -5796,7 +5796,7 @@ CHIP_ERROR GeneralCommissioningCluster::ReadAttributeClusterRevision(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5810,7 +5810,7 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeNetworkInterfaces(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, GeneralDiagnosticsClusterNetworkInterfacesListAttributeFilter); } @@ -5822,7 +5822,7 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeRebootCount(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5834,7 +5834,7 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeUpTime(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5846,7 +5846,7 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeTotalOperationalHours(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5858,7 +5858,7 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeBootReasons(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5870,7 +5870,7 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5884,7 +5884,7 @@ CHIP_ERROR GroupKeyManagementCluster::ReadAttributeGroups(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, GroupKeyManagementClusterGroupsListAttributeFilter); } @@ -5896,7 +5896,7 @@ CHIP_ERROR GroupKeyManagementCluster::ReadAttributeGroupKeys(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, GroupKeyManagementClusterGroupKeysListAttributeFilter); } @@ -5908,7 +5908,7 @@ CHIP_ERROR GroupKeyManagementCluster::ReadAttributeClusterRevision(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6171,7 +6171,7 @@ CHIP_ERROR GroupsCluster::ReadAttributeNameSupport(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6183,7 +6183,7 @@ CHIP_ERROR GroupsCluster::ReadAttributeClusterRevision(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6319,7 +6319,7 @@ CHIP_ERROR IdentifyCluster::ReadAttributeIdentifyTime(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6342,7 +6342,7 @@ CHIP_ERROR IdentifyCluster::ReadAttributeIdentifyType(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6354,7 +6354,7 @@ CHIP_ERROR IdentifyCluster::ReadAttributeClusterRevision(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6368,7 +6368,7 @@ CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeMeasuredValue(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6381,7 +6381,7 @@ CHIP_ERROR IlluminanceMeasurementCluster::SubscribeAttributeMeasuredValue(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = IlluminanceMeasurement::Attributes::MeasuredValue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -6398,7 +6398,7 @@ CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeMinMeasuredValue(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6410,7 +6410,7 @@ CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6422,7 +6422,7 @@ CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeTolerance(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6434,7 +6434,7 @@ CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeLightSensorType(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6446,7 +6446,7 @@ CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeClusterRevision(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6501,7 +6501,7 @@ CHIP_ERROR KeypadInputCluster::ReadAttributeClusterRevision(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6872,7 +6872,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeCurrentLevel(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6885,7 +6885,7 @@ CHIP_ERROR LevelControlCluster::SubscribeAttributeCurrentLevel(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = LevelControl::Attributes::CurrentLevel::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -6902,7 +6902,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeRemainingTime(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6914,7 +6914,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeMinLevel(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6926,7 +6926,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeMaxLevel(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6938,7 +6938,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeCurrentFrequency(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6950,7 +6950,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeMinFrequency(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6962,7 +6962,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeMaxFrequency(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6974,7 +6974,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeOptions(Callback::Cancelable * onSu attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000F; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6997,7 +6997,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeOnOffTransitionTime(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7020,7 +7020,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeOnLevel(Callback::Cancelable * onSu attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7043,7 +7043,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeOnTransitionTime(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7066,7 +7066,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeOffTransitionTime(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000013; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7089,7 +7089,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeDefaultMoveRate(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000014; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7112,7 +7112,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeStartUpCurrentLevel(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7135,7 +7135,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeClusterRevision(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7187,7 +7187,7 @@ CHIP_ERROR LowPowerCluster::ReadAttributeClusterRevision(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7361,7 +7361,7 @@ CHIP_ERROR MediaInputCluster::ReadAttributeMediaInputList(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, MediaInputClusterMediaInputListListAttributeFilter); } @@ -7373,7 +7373,7 @@ CHIP_ERROR MediaInputCluster::ReadAttributeCurrentMediaInput(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7385,7 +7385,7 @@ CHIP_ERROR MediaInputCluster::ReadAttributeClusterRevision(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7827,7 +7827,7 @@ CHIP_ERROR MediaPlaybackCluster::ReadAttributePlaybackState(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7839,7 +7839,7 @@ CHIP_ERROR MediaPlaybackCluster::ReadAttributeStartTime(Callback::Cancelable * o attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7851,7 +7851,7 @@ CHIP_ERROR MediaPlaybackCluster::ReadAttributeDuration(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7863,7 +7863,7 @@ CHIP_ERROR MediaPlaybackCluster::ReadAttributePositionUpdatedAt(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7875,7 +7875,7 @@ CHIP_ERROR MediaPlaybackCluster::ReadAttributePosition(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7887,7 +7887,7 @@ CHIP_ERROR MediaPlaybackCluster::ReadAttributePlaybackSpeed(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7899,7 +7899,7 @@ CHIP_ERROR MediaPlaybackCluster::ReadAttributeSeekRangeEnd(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7911,7 +7911,7 @@ CHIP_ERROR MediaPlaybackCluster::ReadAttributeSeekRangeStart(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7923,7 +7923,7 @@ CHIP_ERROR MediaPlaybackCluster::ReadAttributeClusterRevision(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7978,7 +7978,7 @@ CHIP_ERROR ModeSelectCluster::ReadAttributeCurrentMode(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7991,7 +7991,7 @@ CHIP_ERROR ModeSelectCluster::SubscribeAttributeCurrentMode(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = ModeSelect::Attributes::CurrentMode::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -8008,7 +8008,7 @@ CHIP_ERROR ModeSelectCluster::ReadAttributeSupportedModes(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ModeSelectClusterSupportedModesListAttributeFilter); } @@ -8020,7 +8020,7 @@ CHIP_ERROR ModeSelectCluster::ReadAttributeOnMode(Callback::Cancelable * onSucce attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8043,7 +8043,7 @@ CHIP_ERROR ModeSelectCluster::ReadAttributeStartUpMode(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8055,7 +8055,7 @@ CHIP_ERROR ModeSelectCluster::ReadAttributeDescription(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8067,7 +8067,7 @@ CHIP_ERROR ModeSelectCluster::ReadAttributeClusterRevision(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8459,7 +8459,7 @@ CHIP_ERROR NetworkCommissioningCluster::ReadAttributeFeatureMap(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFC; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8471,7 +8471,7 @@ CHIP_ERROR NetworkCommissioningCluster::ReadAttributeClusterRevision(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8634,7 +8634,7 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::ReadAttributeClusterRevision(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8698,7 +8698,7 @@ CHIP_ERROR OtaSoftwareUpdateRequestorCluster::ReadAttributeDefaultOtaProvider(Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8723,7 +8723,7 @@ CHIP_ERROR OtaSoftwareUpdateRequestorCluster::ReadAttributeUpdatePossible(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8735,7 +8735,7 @@ CHIP_ERROR OtaSoftwareUpdateRequestorCluster::ReadAttributeClusterRevision(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8749,7 +8749,7 @@ CHIP_ERROR OccupancySensingCluster::ReadAttributeOccupancy(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8762,7 +8762,7 @@ CHIP_ERROR OccupancySensingCluster::SubscribeAttributeOccupancy(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = OccupancySensing::Attributes::Occupancy::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -8779,7 +8779,7 @@ CHIP_ERROR OccupancySensingCluster::ReadAttributeOccupancySensorType(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8791,7 +8791,7 @@ CHIP_ERROR OccupancySensingCluster::ReadAttributeOccupancySensorTypeBitmap(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8803,7 +8803,7 @@ CHIP_ERROR OccupancySensingCluster::ReadAttributeClusterRevision(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9056,7 +9056,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeOnOff(Callback::Cancelable * onSuccessCall attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9068,7 +9068,7 @@ CHIP_ERROR OnOffCluster::SubscribeAttributeOnOff(Callback::Cancelable * onSucces attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = OnOff::Attributes::OnOff::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -9085,7 +9085,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeGlobalSceneControl(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9096,7 +9096,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeOnTime(Callback::Cancelable * onSuccessCal attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9119,7 +9119,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeOffWaitTime(Callback::Cancelable * onSucce attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9142,7 +9142,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeStartUpOnOff(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9164,7 +9164,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSucces attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFC; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9176,7 +9176,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeClusterRevision(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9190,7 +9190,7 @@ CHIP_ERROR OnOffSwitchConfigurationCluster::ReadAttributeSwitchType(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9202,7 +9202,7 @@ CHIP_ERROR OnOffSwitchConfigurationCluster::ReadAttributeSwitchActions(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9225,7 +9225,7 @@ CHIP_ERROR OnOffSwitchConfigurationCluster::ReadAttributeClusterRevision(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9630,7 +9630,7 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeFabricsList(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, OperationalCredentialsClusterFabricsListListAttributeFilter); } @@ -9642,7 +9642,7 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeSupportedFabrics(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9654,7 +9654,7 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeCommissionedFabrics(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9666,7 +9666,7 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeTrustedRootCertificates(C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, OperationalCredentialsClusterTrustedRootCertificatesListAttributeFilter); } @@ -9678,7 +9678,7 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeCurrentFabricIndex(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9690,7 +9690,7 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeClusterRevision(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9704,7 +9704,7 @@ CHIP_ERROR PowerSourceCluster::ReadAttributeStatus(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9716,7 +9716,7 @@ CHIP_ERROR PowerSourceCluster::ReadAttributeOrder(Callback::Cancelable * onSucce attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9728,7 +9728,7 @@ CHIP_ERROR PowerSourceCluster::ReadAttributeDescription(Callback::Cancelable * o attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9740,7 +9740,7 @@ CHIP_ERROR PowerSourceCluster::ReadAttributeBatteryVoltage(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9752,7 +9752,7 @@ CHIP_ERROR PowerSourceCluster::ReadAttributeBatteryPercentRemaining(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9764,7 +9764,7 @@ CHIP_ERROR PowerSourceCluster::ReadAttributeBatteryTimeRemaining(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000D; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9776,7 +9776,7 @@ CHIP_ERROR PowerSourceCluster::ReadAttributeBatteryChargeLevel(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000E; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9788,7 +9788,7 @@ CHIP_ERROR PowerSourceCluster::ReadAttributeActiveBatteryFaults(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, PowerSourceClusterActiveBatteryFaultsListAttributeFilter); } @@ -9800,7 +9800,7 @@ CHIP_ERROR PowerSourceCluster::ReadAttributeBatteryChargeState(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9812,7 +9812,7 @@ CHIP_ERROR PowerSourceCluster::ReadAttributeFeatureMap(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFC; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9824,7 +9824,7 @@ CHIP_ERROR PowerSourceCluster::ReadAttributeClusterRevision(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9838,7 +9838,7 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9851,7 +9851,7 @@ CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeMeasuredValue(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = PressureMeasurement::Attributes::MeasuredValue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -9868,7 +9868,7 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9880,7 +9880,7 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9892,7 +9892,7 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeClusterRevision(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9906,7 +9906,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxPressure(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9918,7 +9918,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxSpeed(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9930,7 +9930,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxFlow(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9942,7 +9942,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMinConstPressure(Cal attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9954,7 +9954,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxConstPressure(Cal attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9966,7 +9966,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMinCompPressure(Call attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9978,7 +9978,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxCompPressure(Call attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9990,7 +9990,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMinConstSpeed(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10002,7 +10002,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxConstSpeed(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10014,7 +10014,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMinConstFlow(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000009; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10026,7 +10026,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxConstFlow(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10038,7 +10038,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMinConstTemp(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10050,7 +10050,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxConstTemp(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10062,7 +10062,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributePumpStatus(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10075,7 +10075,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributePumpStatus(Call attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = PumpConfigurationAndControl::Attributes::PumpStatus::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -10092,7 +10092,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveOperationMo attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10104,7 +10104,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveControlMode attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10116,7 +10116,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeCapacity(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000013; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10129,7 +10129,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeCapacity(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = PumpConfigurationAndControl::Attributes::Capacity::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -10146,7 +10146,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeSpeed(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000014; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10158,7 +10158,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeLifetimeEnergyConsum attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000017; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10170,7 +10170,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeOperationMode(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000020; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10193,7 +10193,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeControlMode(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000021; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10216,7 +10216,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeAlarmMask(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000022; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10228,7 +10228,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeFeatureMap(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFC; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10240,7 +10240,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeClusterRevision(Call attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10254,7 +10254,7 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeMeasuredValue(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10267,7 +10267,7 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::SubscribeAttributeMeasuredValue(C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = RelativeHumidityMeasurement::Attributes::MeasuredValue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -10284,7 +10284,7 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeMinMeasuredValue(Cal attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10296,7 +10296,7 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeMaxMeasuredValue(Cal attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10308,7 +10308,7 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeTolerance(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10321,7 +10321,7 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::SubscribeAttributeTolerance(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = RelativeHumidityMeasurement::Attributes::Tolerance::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -10338,7 +10338,7 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeClusterRevision(Call attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10662,7 +10662,7 @@ CHIP_ERROR ScenesCluster::ReadAttributeSceneCount(Callback::Cancelable * onSucce attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10674,7 +10674,7 @@ CHIP_ERROR ScenesCluster::ReadAttributeCurrentScene(Callback::Cancelable * onSuc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10686,7 +10686,7 @@ CHIP_ERROR ScenesCluster::ReadAttributeCurrentGroup(Callback::Cancelable * onSuc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10698,7 +10698,7 @@ CHIP_ERROR ScenesCluster::ReadAttributeSceneValid(Callback::Cancelable * onSucce attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10710,7 +10710,7 @@ CHIP_ERROR ScenesCluster::ReadAttributeNameSupport(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10722,7 +10722,7 @@ CHIP_ERROR ScenesCluster::ReadAttributeClusterRevision(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10776,7 +10776,7 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeCurrentHeapFree(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10788,7 +10788,7 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeCurrentHeapUsed(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10800,7 +10800,7 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeCurrentHeapHighWatermark(Cal attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10812,7 +10812,7 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10826,7 +10826,7 @@ CHIP_ERROR SwitchCluster::ReadAttributeNumberOfPositions(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10838,7 +10838,7 @@ CHIP_ERROR SwitchCluster::ReadAttributeCurrentPosition(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10851,7 +10851,7 @@ CHIP_ERROR SwitchCluster::SubscribeAttributeCurrentPosition(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = Switch::Attributes::CurrentPosition::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -10868,7 +10868,7 @@ CHIP_ERROR SwitchCluster::ReadAttributeMultiPressMax(Callback::Cancelable * onSu attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10880,7 +10880,7 @@ CHIP_ERROR SwitchCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSucce attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFC; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10892,7 +10892,7 @@ CHIP_ERROR SwitchCluster::ReadAttributeClusterRevision(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11032,7 +11032,7 @@ CHIP_ERROR TvChannelCluster::ReadAttributeTvChannelList(Callback::Cancelable * o attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, TvChannelClusterTvChannelListListAttributeFilter); } @@ -11044,7 +11044,7 @@ CHIP_ERROR TvChannelCluster::ReadAttributeTvChannelLineup(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11056,7 +11056,7 @@ CHIP_ERROR TvChannelCluster::ReadAttributeCurrentTvChannel(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11068,7 +11068,7 @@ CHIP_ERROR TvChannelCluster::ReadAttributeClusterRevision(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11125,7 +11125,7 @@ CHIP_ERROR TargetNavigatorCluster::ReadAttributeTargetNavigatorList(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, TargetNavigatorClusterTargetNavigatorListListAttributeFilter); } @@ -11137,7 +11137,7 @@ CHIP_ERROR TargetNavigatorCluster::ReadAttributeClusterRevision(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11151,7 +11151,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMeasuredValue(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11164,7 +11164,7 @@ CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeMeasuredValue(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = TemperatureMeasurement::Attributes::MeasuredValue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -11181,7 +11181,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11193,7 +11193,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11205,7 +11205,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeTolerance(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11218,7 +11218,7 @@ CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeTolerance(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = TemperatureMeasurement::Attributes::Tolerance::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -11235,7 +11235,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeClusterRevision(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11720,7 +11720,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeBoolean(Callback::Cancelable * onSuc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11743,7 +11743,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeBitmap8(Callback::Cancelable * onSuc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11766,7 +11766,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeBitmap16(Callback::Cancelable * onSu attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11789,7 +11789,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeBitmap32(Callback::Cancelable * onSu attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11812,7 +11812,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeBitmap64(Callback::Cancelable * onSu attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11835,7 +11835,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt8u(Callback::Cancelable * onSucce attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11858,7 +11858,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt16u(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11881,7 +11881,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt32u(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11904,7 +11904,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt64u(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11927,7 +11927,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt8s(Callback::Cancelable * onSucce attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000D; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11950,7 +11950,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt16s(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000E; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11973,7 +11973,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt32s(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11996,7 +11996,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt64s(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000014; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12019,7 +12019,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeEnum8(Callback::Cancelable * onSucce attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000015; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12042,7 +12042,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeEnum16(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000016; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12065,7 +12065,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeOctetString(Callback::Cancelable * o attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000019; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12088,7 +12088,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeListInt8u(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, TestClusterClusterListInt8uListAttributeFilter); } @@ -12100,7 +12100,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeListOctetString(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, TestClusterClusterListOctetStringListAttributeFilter); } @@ -12112,7 +12112,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeListStructOctetString(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, TestClusterClusterListStructOctetStringListAttributeFilter); } @@ -12124,7 +12124,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeLongOctetString(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001D; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12147,7 +12147,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeCharString(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001E; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12170,7 +12170,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeLongCharString(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001F; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12193,7 +12193,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeEpochUs(Callback::Cancelable * onSuc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000020; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12216,7 +12216,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeEpochS(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000021; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12239,7 +12239,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeVendorId(Callback::Cancelable * onSu attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000022; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12262,7 +12262,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeListNullablesAndOptionalsStruct(Call attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000023; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, TestClusterClusterListNullablesAndOptionalsStructListAttributeFilter); } @@ -12274,7 +12274,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeUnsupported(Callback::Cancelable * o attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x000000FF; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12297,7 +12297,7 @@ CHIP_ERROR TestClusterCluster::ReadAttributeClusterRevision(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12522,7 +12522,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeLocalTemperature(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12535,7 +12535,7 @@ CHIP_ERROR ThermostatCluster::SubscribeAttributeLocalTemperature(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = Thermostat::Attributes::LocalTemperature::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -12552,7 +12552,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeAbsMinHeatSetpointLimit(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12564,7 +12564,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeAbsMaxHeatSetpointLimit(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12576,7 +12576,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeAbsMinCoolSetpointLimit(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12588,7 +12588,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeAbsMaxCoolSetpointLimit(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12600,7 +12600,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeOccupiedCoolingSetpoint(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12623,7 +12623,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeOccupiedHeatingSetpoint(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12646,7 +12646,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeMinHeatSetpointLimit(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000015; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12669,7 +12669,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeMaxHeatSetpointLimit(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000016; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12692,7 +12692,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeMinCoolSetpointLimit(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000017; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12715,7 +12715,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeMaxCoolSetpointLimit(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000018; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12738,7 +12738,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeMinSetpointDeadBand(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000019; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12761,7 +12761,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeControlSequenceOfOperation(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12784,7 +12784,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeSystemMode(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12807,7 +12807,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeStartOfWeek(Callback::Cancelable * on attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000020; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12819,7 +12819,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeNumberOfWeeklyTransitions(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000021; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12831,7 +12831,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeNumberOfDailyTransitions(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000022; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12843,7 +12843,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeFeatureMap(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFC; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12855,7 +12855,7 @@ CHIP_ERROR ThermostatCluster::ReadAttributeClusterRevision(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12870,7 +12870,7 @@ ThermostatUserInterfaceConfigurationCluster::ReadAttributeTemperatureDisplayMode attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12895,7 +12895,7 @@ CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::ReadAttributeKeypadLocko attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12921,7 +12921,7 @@ ThermostatUserInterfaceConfigurationCluster::ReadAttributeScheduleProgrammingVis attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12946,7 +12946,7 @@ CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::ReadAttributeClusterRevi attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13000,7 +13000,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeChannel(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13012,7 +13012,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRoutingRole(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13024,7 +13024,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeNetworkName(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13036,7 +13036,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePanId(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13048,7 +13048,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeExtendedPanId(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13060,7 +13060,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeMeshLocalPrefix(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13072,7 +13072,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeOverrunCount(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13084,7 +13084,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeNeighborTableList(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ThreadNetworkDiagnosticsClusterNeighborTableListListAttributeFilter); } @@ -13096,7 +13096,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRouteTableList(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ThreadNetworkDiagnosticsClusterRouteTableListListAttributeFilter); } @@ -13108,7 +13108,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePartitionId(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000009; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13120,7 +13120,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeWeighting(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13132,7 +13132,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeDataVersion(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13144,7 +13144,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeStableDataVersion(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13156,7 +13156,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeLeaderRouterId(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000D; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13168,7 +13168,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeDetachedRoleCount(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000E; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13180,7 +13180,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeChildRoleCount(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000F; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13192,7 +13192,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRouterRoleCount(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13204,7 +13204,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeLeaderRoleCount(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13216,7 +13216,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeAttachAttemptCount(Call attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13228,7 +13228,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePartitionIdChangeCount( attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000013; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13240,7 +13240,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeBetterPartitionAttachAt attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000014; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13252,7 +13252,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeParentChangeCount(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000015; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13264,7 +13264,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxTotalCount(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000016; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13276,7 +13276,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxUnicastCount(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000017; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13288,7 +13288,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxBroadcastCount(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000018; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13300,7 +13300,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxAckRequestedCount(Cal attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000019; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13312,7 +13312,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxAckedCount(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13324,7 +13324,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxNoAckRequestedCount(C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13336,7 +13336,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxDataCount(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13348,7 +13348,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxDataPollCount(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001D; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13360,7 +13360,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxBeaconCount(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001E; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13372,7 +13372,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxBeaconRequestCount(Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001F; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13384,7 +13384,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxOtherCount(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000020; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13396,7 +13396,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxRetryCount(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000021; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13408,7 +13408,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxDirectMaxRetryExpiryC attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000022; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13420,7 +13420,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxIndirectMaxRetryExpir attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000023; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13432,7 +13432,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxErrCcaCount(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000024; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13444,7 +13444,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxErrAbortCount(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000025; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13456,7 +13456,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxErrBusyChannelCount(C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000026; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13468,7 +13468,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxTotalCount(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000027; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13480,7 +13480,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxUnicastCount(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000028; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13492,7 +13492,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxBroadcastCount(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000029; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13504,7 +13504,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDataCount(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13516,7 +13516,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDataPollCount(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13528,7 +13528,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxBeaconCount(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13540,7 +13540,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxBeaconRequestCount(Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002D; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13552,7 +13552,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxOtherCount(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002E; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13564,7 +13564,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxAddressFilteredCount( attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002F; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13576,7 +13576,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDestAddrFilteredCount attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000030; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13588,7 +13588,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDuplicatedCount(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000031; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13600,7 +13600,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrNoFrameCount(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000032; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13612,7 +13612,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrUnknownNeighborCou attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000033; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13624,7 +13624,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrInvalidSrcAddrCoun attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000034; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13636,7 +13636,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrSecCount(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000035; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13648,7 +13648,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrFcsCount(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000036; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13660,7 +13660,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrOtherCount(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000037; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13672,7 +13672,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeActiveTimestamp(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000038; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13684,7 +13684,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePendingTimestamp(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000039; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13696,7 +13696,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeDelay(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13708,7 +13708,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeSecurityPolicy(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ThreadNetworkDiagnosticsClusterSecurityPolicyListAttributeFilter); } @@ -13720,7 +13720,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeChannelMask(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13732,7 +13732,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeOperationalDatasetCompo attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003D; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ThreadNetworkDiagnosticsClusterOperationalDatasetComponentsListAttributeFilter); } @@ -13744,7 +13744,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeActiveNetworkFaultsList attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003E; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ThreadNetworkDiagnosticsClusterActiveNetworkFaultsListListAttributeFilter); } @@ -13756,7 +13756,7 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeClusterRevision(Callbac attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13770,7 +13770,7 @@ CHIP_ERROR WakeOnLanCluster::ReadAttributeWakeOnLanMacAddress(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13782,7 +13782,7 @@ CHIP_ERROR WakeOnLanCluster::ReadAttributeClusterRevision(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13835,7 +13835,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeBssid(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13847,7 +13847,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeSecurityType(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13859,7 +13859,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeWiFiVersion(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13871,7 +13871,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeChannelNumber(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13883,7 +13883,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeRssi(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13895,7 +13895,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeBeaconLostCount(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13907,7 +13907,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeBeaconRxCount(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13919,7 +13919,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributePacketMulticastRxCount(Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13931,7 +13931,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributePacketMulticastTxCount(Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13943,7 +13943,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributePacketUnicastRxCount(Call attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000009; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13955,7 +13955,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributePacketUnicastTxCount(Call attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13967,7 +13967,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeCurrentMaxRate(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13979,7 +13979,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeOverrunCount(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -13991,7 +13991,7 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeClusterRevision(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14289,7 +14289,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeType(Callback::Cancelable * onSuc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14301,7 +14301,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionLift(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14313,7 +14313,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionTilt(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14325,7 +14325,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeConfigStatus(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14337,7 +14337,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionLiftPercentage(Cal attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14350,7 +14350,7 @@ CHIP_ERROR WindowCoveringCluster::SubscribeAttributeCurrentPositionLiftPercentag attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = WindowCovering::Attributes::CurrentPositionLiftPercentage::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -14367,7 +14367,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionTiltPercentage(Cal attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000009; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14380,7 +14380,7 @@ CHIP_ERROR WindowCoveringCluster::SubscribeAttributeCurrentPositionTiltPercentag attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = WindowCovering::Attributes::CurrentPositionTiltPercentage::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -14397,7 +14397,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeOperationalStatus(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14410,7 +14410,7 @@ CHIP_ERROR WindowCoveringCluster::SubscribeAttributeOperationalStatus(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = WindowCovering::Attributes::OperationalStatus::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -14427,7 +14427,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeTargetPositionLiftPercent100ths(C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000B; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14440,7 +14440,7 @@ CHIP_ERROR WindowCoveringCluster::SubscribeAttributeTargetPositionLiftPercent100 attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = WindowCovering::Attributes::TargetPositionLiftPercent100ths::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -14457,7 +14457,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeTargetPositionTiltPercent100ths(C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14470,7 +14470,7 @@ CHIP_ERROR WindowCoveringCluster::SubscribeAttributeTargetPositionTiltPercent100 attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = WindowCovering::Attributes::TargetPositionTiltPercent100ths::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -14487,7 +14487,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeEndProductType(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000D; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14499,7 +14499,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionLiftPercent100ths( attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000E; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14512,7 +14512,7 @@ CHIP_ERROR WindowCoveringCluster::SubscribeAttributeCurrentPositionLiftPercent10 attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = WindowCovering::Attributes::CurrentPositionLiftPercent100ths::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -14529,7 +14529,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionTiltPercent100ths( attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000F; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14542,7 +14542,7 @@ CHIP_ERROR WindowCoveringCluster::SubscribeAttributeCurrentPositionTiltPercent10 attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = WindowCovering::Attributes::CurrentPositionTiltPercent100ths::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -14559,7 +14559,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledOpenLimitLift(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14571,7 +14571,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledClosedLimitLift(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14583,7 +14583,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledOpenLimitTilt(Callback:: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14595,7 +14595,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledClosedLimitTilt(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000013; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14607,7 +14607,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeMode(Callback::Cancelable * onSuc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000017; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14630,7 +14630,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeSafetyStatus(Callback::Cancelable attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001A; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14643,7 +14643,7 @@ CHIP_ERROR WindowCoveringCluster::SubscribeAttributeSafetyStatus(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = WindowCovering::Attributes::SafetyStatus::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -14660,7 +14660,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeFeatureMap(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFC; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -14672,7 +14672,7 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeClusterRevision(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } diff --git a/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp b/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp index 658c5f6e7f989b..2594d22385b993 100644 --- a/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp @@ -42,7 +42,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeOnOff(Callback::Cancelable * onSuccessCall attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -54,7 +54,7 @@ CHIP_ERROR OnOffCluster::SubscribeAttributeOnOff(Callback::Cancelable * onSucces attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = OnOff::Attributes::OnOff::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -71,7 +71,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeGlobalSceneControl(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -82,7 +82,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeOnTime(Callback::Cancelable * onSuccessCal attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -105,7 +105,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeOffWaitTime(Callback::Cancelable * onSucce attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -128,7 +128,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeStartUpOnOff(Callback::Cancelable * onSucc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -150,7 +150,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSucces attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFC; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -162,7 +162,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeClusterRevision(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } diff --git a/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp b/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp index 893d63c7297967..30280fe15fc065 100644 --- a/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp @@ -192,7 +192,7 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::ReadAttributeClusterRevision(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } diff --git a/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp b/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp index d7aae16c60bd26..18686c264df872 100644 --- a/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp @@ -43,7 +43,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -56,7 +56,7 @@ CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = FlowMeasurement::Attributes::MeasuredValue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -73,7 +73,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -85,7 +85,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -97,7 +97,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -111,7 +111,7 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -124,7 +124,7 @@ CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeMeasuredValue(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = PressureMeasurement::Attributes::MeasuredValue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -141,7 +141,7 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -153,7 +153,7 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -165,7 +165,7 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeClusterRevision(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -179,7 +179,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMeasuredValue(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -192,7 +192,7 @@ CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeMeasuredValue(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = TemperatureMeasurement::Attributes::MeasuredValue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -209,7 +209,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -221,7 +221,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -233,7 +233,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeClusterRevision(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } diff --git a/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp b/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp index e8cc1b1544ac19..8922f66ff2a44c 100644 --- a/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp @@ -43,7 +43,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelab attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -56,7 +56,7 @@ CHIP_ERROR FlowMeasurementCluster::SubscribeAttributeMeasuredValue(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = FlowMeasurement::Attributes::MeasuredValue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -73,7 +73,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -85,7 +85,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cance attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -97,7 +97,7 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -468,7 +468,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeCurrentLevel(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -481,7 +481,7 @@ CHIP_ERROR LevelControlCluster::SubscribeAttributeCurrentLevel(Callback::Cancela attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = LevelControl::Attributes::CurrentLevel::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -498,7 +498,7 @@ CHIP_ERROR LevelControlCluster::ReadAttributeClusterRevision(Callback::Cancelabl attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -625,7 +625,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeOnOff(Callback::Cancelable * onSuccessCall attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -637,7 +637,7 @@ CHIP_ERROR OnOffCluster::ReadAttributeClusterRevision(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -651,7 +651,7 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Canc attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -664,7 +664,7 @@ CHIP_ERROR PressureMeasurementCluster::SubscribeAttributeMeasuredValue(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = PressureMeasurement::Attributes::MeasuredValue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -681,7 +681,7 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -693,7 +693,7 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -705,7 +705,7 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeClusterRevision(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -719,7 +719,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxPressure(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -731,7 +731,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxSpeed(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -743,7 +743,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxFlow(Callback::Ca attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -755,7 +755,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveOperationMo attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -767,7 +767,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveControlMode attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -779,7 +779,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeCapacity(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000013; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -792,7 +792,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::SubscribeAttributeCapacity(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = PumpConfigurationAndControl::Attributes::Capacity::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -809,7 +809,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeOperationMode(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000020; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -832,7 +832,7 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeClusterRevision(Call attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -846,7 +846,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMeasuredValue(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -859,7 +859,7 @@ CHIP_ERROR TemperatureMeasurementCluster::SubscribeAttributeMeasuredValue(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = TemperatureMeasurement::Attributes::MeasuredValue::Id; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); } @@ -876,7 +876,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -888,7 +888,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -900,7 +900,7 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeClusterRevision(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } diff --git a/zzz_generated/thermostat/zap-generated/CHIPClusters.cpp b/zzz_generated/thermostat/zap-generated/CHIPClusters.cpp index 5ff5f30c1df707..5a8acbf0c7e841 100644 --- a/zzz_generated/thermostat/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/thermostat/zap-generated/CHIPClusters.cpp @@ -122,7 +122,7 @@ CHIP_ERROR IdentifyCluster::ReadAttributeIdentifyTime(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -145,7 +145,7 @@ CHIP_ERROR IdentifyCluster::ReadAttributeIdentifyType(Callback::Cancelable * onS attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -157,7 +157,7 @@ CHIP_ERROR IdentifyCluster::ReadAttributeClusterRevision(Callback::Cancelable * attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } diff --git a/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp b/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp index 5d5427b630f3a9..9562cab90014dd 100644 --- a/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp @@ -178,7 +178,7 @@ CHIP_ERROR GeneralCommissioningCluster::ReadAttributeBreadcrumb(Callback::Cancel attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -201,7 +201,7 @@ CHIP_ERROR GeneralCommissioningCluster::ReadAttributeBasicCommissioningInfoList( attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, GeneralCommissioningClusterBasicCommissioningInfoListListAttributeFilter); } @@ -213,7 +213,7 @@ CHIP_ERROR GeneralCommissioningCluster::ReadAttributeClusterRevision(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -412,7 +412,7 @@ CHIP_ERROR NetworkCommissioningCluster::ReadAttributeClusterRevision(Callback::C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -730,7 +730,7 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeFabricsList(Callback::Can attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, OperationalCredentialsClusterFabricsListListAttributeFilter); } @@ -742,7 +742,7 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeSupportedFabrics(Callback attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -754,7 +754,7 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeCommissionedFabrics(Callb attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -766,7 +766,7 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeTrustedRootCertificates(C attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, OperationalCredentialsClusterTrustedRootCertificatesListAttributeFilter); } @@ -778,7 +778,7 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeCurrentFabricIndex(Callba attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -790,7 +790,7 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeClusterRevision(Callback: attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); + return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); }