[Im] Add ClusterObjects API for AttributeWrite in CHIPClusters.cpp (#10488)
* [IM] Use ClusterObjects for WriteInteractions
* Run Codegen
* Changes as per review feedback
* Update ids/Attribute.zapt and cluster-objects.zapt
* Fix mOnError call
* Rerun codegen after merge
* Remove char string workarounds that are not needed
* Comment fix
* Do not replace existing WriteAttribute* api by templates
* Run Codegen
* Do not include template in CHIPClustersTest since they are not used (and makes the build slow)
Co-authored-by: Jerry Johns <johnsj@google.com>
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
diff --git a/src/app/InteractionModelDelegate.h b/src/app/InteractionModelDelegate.h
index b335b41..f3236ff 100644
--- a/src/app/InteractionModelDelegate.h
+++ b/src/app/InteractionModelDelegate.h
@@ -102,44 +102,6 @@
virtual CHIP_ERROR ReadError(ReadClient * apReadClient, CHIP_ERROR aError) { return CHIP_ERROR_NOT_IMPLEMENTED; }
/**
- * Notification that a WriteClient has received a Write Response containing a status code.
- * aAttributeIndex is processing attribute index which can identify attribute if there exists multiple attribute changes with
- * same attribute path
- */
- virtual CHIP_ERROR WriteResponseStatus(const WriteClient * apWriteClient, const StatusIB & aStatusIB,
- AttributePathParams & aAttributePathParams, uint8_t aAttributeIndex)
- {
- return CHIP_ERROR_NOT_IMPLEMENTED;
- }
-
- /**
- * Notification that a Write Response has been processed and application can do further work .
- */
- virtual CHIP_ERROR WriteResponseProcessed(const WriteClient * apWriteClient) { return CHIP_ERROR_NOT_IMPLEMENTED; }
-
- /**
- * Notification that a Write Client has received a Write Response and fails to process a attribute data element in that
- * write response
- */
- virtual CHIP_ERROR WriteResponseProtocolError(const WriteClient * apWriteClient, uint8_t aAttributeIndex)
- {
- return CHIP_ERROR_NOT_IMPLEMENTED;
- }
-
- /**
- * Notification that a write client encountered an asynchronous failure.
- * @param[in] apWriteClient A current write client which can identify the write client to the consumer, particularly
- * during multiple write interactions
- * @param[in] aError A error that could be CHIP_ERROR_TIMEOUT when write client fails to receive, or other error when
- * fail to process write response.
- * @retval # CHIP_ERROR_NOT_IMPLEMENTED if not implemented
- */
- virtual CHIP_ERROR WriteResponseError(const WriteClient * apWriteClient, CHIP_ERROR aError)
- {
- return CHIP_ERROR_NOT_IMPLEMENTED;
- }
-
- /**
* Notification that a Subscribe Response has been processed and application can do further work .
*/
virtual CHIP_ERROR SubscribeResponseProcessed(const ReadClient * apReadClient) { return CHIP_ERROR_NOT_IMPLEMENTED; }
diff --git a/src/app/InteractionModelEngine.cpp b/src/app/InteractionModelEngine.cpp
index c85f550..8bdbc1e 100644
--- a/src/app/InteractionModelEngine.cpp
+++ b/src/app/InteractionModelEngine.cpp
@@ -180,6 +180,36 @@
return numActive;
}
+uint32_t InteractionModelEngine::GetNumActiveWriteClients() const
+{
+ uint32_t numActive = 0;
+
+ for (auto & writeClient : mWriteClients)
+ {
+ if (!writeClient.IsFree())
+ {
+ numActive++;
+ }
+ }
+
+ return numActive;
+}
+
+uint32_t InteractionModelEngine::GetNumActiveWriteHandlers() const
+{
+ uint32_t numActive = 0;
+
+ for (auto & writeHandler : mWriteHandlers)
+ {
+ if (!writeHandler.IsFree())
+ {
+ numActive++;
+ }
+ }
+
+ return numActive;
+}
+
CHIP_ERROR InteractionModelEngine::ShutdownSubscription(uint64_t aSubscriptionId)
{
CHIP_ERROR err = CHIP_ERROR_KEY_NOT_FOUND;
@@ -196,7 +226,7 @@
return err;
}
-CHIP_ERROR InteractionModelEngine::NewWriteClient(WriteClientHandle & apWriteClient, uint64_t aApplicationIdentifier)
+CHIP_ERROR InteractionModelEngine::NewWriteClient(WriteClientHandle & apWriteClient, WriteClient::Callback * apCallback)
{
apWriteClient.SetWriteClient(nullptr);
@@ -207,7 +237,7 @@
continue;
}
- ReturnLogErrorOnFailure(writeClient.Init(mpExchangeMgr, mpDelegate, aApplicationIdentifier));
+ ReturnLogErrorOnFailure(writeClient.Init(mpExchangeMgr, apCallback));
apWriteClient.SetWriteClient(&writeClient);
return CHIP_NO_ERROR;
}
diff --git a/src/app/InteractionModelEngine.h b/src/app/InteractionModelEngine.h
index c1dc9ec..d9e74e4 100644
--- a/src/app/InteractionModelEngine.h
+++ b/src/app/InteractionModelEngine.h
@@ -132,7 +132,7 @@
* @retval #CHIP_ERROR_NO_MEMORY If there is no WriteClient available
* @retval #CHIP_NO_ERROR On success.
*/
- CHIP_ERROR NewWriteClient(WriteClientHandle & apWriteClient, uint64_t aApplicationIdentifier = 0);
+ CHIP_ERROR NewWriteClient(WriteClientHandle & apWriteClient, WriteClient::Callback * callback);
/**
* Allocate a ReadClient that can be used to do a read interaction. If the call succeeds, the consumer
@@ -156,6 +156,9 @@
uint32_t GetNumActiveReadHandlers() const;
uint32_t GetNumActiveReadClients() const;
+ uint32_t GetNumActiveWriteHandlers() const;
+ uint32_t GetNumActiveWriteClients() const;
+
/**
* Get read client index in mReadClients
*
diff --git a/src/app/MessageDef/AttributePath.cpp b/src/app/MessageDef/AttributePath.cpp
index 737477a..0489eb0 100644
--- a/src/app/MessageDef/AttributePath.cpp
+++ b/src/app/MessageDef/AttributePath.cpp
@@ -77,7 +77,7 @@
#if CHIP_DETAIL_LOGGING
{
- uint64_t nodeId;
+ chip::NodeId nodeId;
reader.Get(nodeId);
PRETTY_PRINT("\tNodeId = 0x%" PRIx64 ",", nodeId);
}
@@ -90,7 +90,7 @@
VerifyOrExit(chip::TLV::kTLVType_UnsignedInteger == reader.GetType(), err = CHIP_ERROR_WRONG_TLV_TYPE);
#if CHIP_DETAIL_LOGGING
{
- uint16_t endpointId;
+ chip::EndpointId endpointId;
reader.Get(endpointId);
PRETTY_PRINT("\tEndpointId = 0x%" PRIx16 ",", endpointId);
}
@@ -118,9 +118,9 @@
VerifyOrExit(chip::TLV::kTLVType_UnsignedInteger == reader.GetType(), err = CHIP_ERROR_WRONG_TLV_TYPE);
#if CHIP_DETAIL_LOGGING
{
- uint8_t fieldTag;
+ chip::AttributeId fieldTag;
reader.Get(fieldTag);
- PRETTY_PRINT("\tFieldTag = 0x%" PRIx8 ",", fieldTag);
+ PRETTY_PRINT("\tFieldTag = " ChipLogFormatMEI ",", ChipLogValueMEI(fieldTag));
}
#endif // CHIP_DETAIL_LOGGING
break;
diff --git a/src/app/MessageDef/StatusIB.h b/src/app/MessageDef/StatusIB.h
index ee747b4..80b7bff 100644
--- a/src/app/MessageDef/StatusIB.h
+++ b/src/app/MessageDef/StatusIB.h
@@ -40,6 +40,12 @@
namespace app {
struct StatusIB
{
+ StatusIB() = default;
+ StatusIB(Protocols::InteractionModel::Status imStatus) : mStatus(imStatus) {}
+ StatusIB(Protocols::InteractionModel::Status imStatus, ClusterStatus clusterStatus) :
+ mStatus(imStatus), mClusterStatus(clusterStatus)
+ {}
+
enum class Tag : uint8_t
{
kStatus = 0,
diff --git a/src/app/WriteClient.cpp b/src/app/WriteClient.cpp
index a49580c..f6411c5 100644
--- a/src/app/WriteClient.cpp
+++ b/src/app/WriteClient.cpp
@@ -22,6 +22,7 @@
*
*/
+#include "lib/core/CHIPError.h"
#include <app/AppBuildConfig.h>
#include <app/InteractionModelEngine.h>
#include <app/WriteClient.h>
@@ -29,8 +30,7 @@
namespace chip {
namespace app {
-CHIP_ERROR WriteClient::Init(Messaging::ExchangeManager * apExchangeMgr, InteractionModelDelegate * apDelegate,
- uint64_t aApplicationIdentifier)
+CHIP_ERROR WriteClient::Init(Messaging::ExchangeManager * apExchangeMgr, Callback * apCallback)
{
VerifyOrReturnError(apExchangeMgr != nullptr, CHIP_ERROR_INVALID_ARGUMENT);
VerifyOrReturnError(mpExchangeMgr == nullptr, CHIP_ERROR_INCORRECT_STATE);
@@ -49,9 +49,8 @@
ClearExistingExchangeContext();
mpExchangeMgr = apExchangeMgr;
- mpDelegate = apDelegate;
+ mpCallback = apCallback;
mAttributeStatusIndex = 0;
- mAppIdentifier = aApplicationIdentifier;
MoveToState(State::Initialized);
return CHIP_NO_ERROR;
@@ -70,9 +69,10 @@
mpExchangeMgr = nullptr;
mpExchangeCtx = nullptr;
- mpDelegate = nullptr;
mAttributeStatusIndex = 0;
ClearState();
+
+ mpCallback->OnDone(this);
}
void WriteClient::ClearExistingExchangeContext()
@@ -287,25 +287,19 @@
VerifyOrDie(apExchangeContext == mpExchangeCtx);
- // Verify that the message is an Write Response.
- // If not, close the exchange and free the payload.
- if (!aPayloadHeader.HasMessageType(Protocols::InteractionModel::MsgType::WriteResponse))
- {
- ExitNow();
- }
+ // Verify that the message is an Write Response. If not, this is an unexpected message.
+ // Signal the error through the error callback and shutdown the client.
+ VerifyOrExit(aPayloadHeader.HasMessageType(Protocols::InteractionModel::MsgType::WriteResponse),
+ err = CHIP_ERROR_INVALID_MESSAGE_TYPE);
err = ProcessWriteResponseMessage(std::move(aPayload));
exit:
- if (mpDelegate != nullptr)
+ if (mpCallback != nullptr)
{
if (err != CHIP_NO_ERROR)
{
- mpDelegate->WriteResponseError(this, err);
- }
- else
- {
- mpDelegate->WriteResponseProcessed(this);
+ mpCallback->OnError(this, err);
}
}
ShutdownInternal();
@@ -317,9 +311,9 @@
ChipLogProgress(DataManagement, "Time out! failed to receive write response from Exchange: " ChipLogFormatExchange,
ChipLogValueExchange(apExchangeContext));
- if (mpDelegate != nullptr)
+ if (mpCallback != nullptr)
{
- mpDelegate->WriteResponseError(this, CHIP_ERROR_TIMEOUT);
+ mpCallback->OnError(this, CHIP_ERROR_TIMEOUT);
}
ShutdownInternal();
}
@@ -366,17 +360,15 @@
{
err = StatusIBParser.DecodeStatusIB(statusIB);
SuccessOrExit(err);
- if (mpDelegate != nullptr)
+ if (mpCallback != nullptr)
{
- mpDelegate->WriteResponseStatus(this, statusIB, attributePathParams, mAttributeStatusIndex);
+ ConcreteAttributePath path(attributePathParams.mEndpointId, attributePathParams.mClusterId,
+ attributePathParams.mFieldId);
+ mpCallback->OnResponse(this, path, statusIB);
}
}
exit:
- if (err != CHIP_NO_ERROR && mpDelegate != nullptr)
- {
- mpDelegate->WriteResponseProtocolError(this, mAttributeStatusIndex);
- }
return err;
}
diff --git a/src/app/WriteClient.h b/src/app/WriteClient.h
index fbcbca0..f5227a7 100644
--- a/src/app/WriteClient.h
+++ b/src/app/WriteClient.h
@@ -19,6 +19,7 @@
#pragma once
#include <app/AttributePathParams.h>
+#include <app/ConcreteAttributePath.h>
#include <app/InteractionModelDelegate.h>
#include <app/MessageDef/AttributeDataList.h>
#include <app/MessageDef/AttributeStatusIB.h>
@@ -51,6 +52,55 @@
class WriteClient : public Messaging::ExchangeDelegate
{
public:
+ class Callback
+ {
+ public:
+ virtual ~Callback() = default;
+
+ /**
+ * OnResponse will be called when a write response has been received
+ * and processed for the given path.
+ *
+ * The WriteClient object MUST continue to exist after this call is completed. The application shall wait until it
+ * receives an OnDone call before it shuts down the object.
+ *
+ * @param[in] apWriteClient: The write client object that initiated the write transaction.
+ * @param[in] aPath: The attribute path field in write response.
+ * @param[in] attributeStatus: Attribute-specific status, containing an InteractionModel::Status code as well as
+ * an optional cluster-specific status code.
+ */
+ virtual void OnResponse(const WriteClient * apWriteClient, const ConcreteAttributePath & aPath, StatusIB attributeStatus) {}
+
+ /**
+ * OnError will be called when an error occurs *after* a successful call to SendWriteRequest(). The following
+ * errors will be delivered through this call in the aError field:
+ *
+ * - CHIP_ERROR_TIMEOUT: A response was not received within the expected response timeout.
+ * - CHIP_ERROR_*TLV*: A malformed, non-compliant response was received from the server.
+ * - CHIP_ERROR*: All other cases.
+ *
+ * The WriteClient object MUST continue to exist after this call is completed. The application shall wait until it
+ * receives an OnDone call before it shuts down the object.
+ *
+ * @param[in] apWriteClient: The write client object that initiated the attribute write transaction.
+ * @param[in] aError: A system error code that conveys the overall error code.
+ */
+ virtual void OnError(const WriteClient * apWriteClient, CHIP_ERROR aError) {}
+
+ /**
+ * OnDone will be called when WriteClient has finished all work and is reserved for future WriteClient ownership change.
+ * (#10366) Users may use this function to release their own objects related to this write interaction.
+ *
+ * This function will:
+ * - Always be called exactly *once* for a given WriteClient instance.
+ * - Be called even in error circumstances.
+ * - Only be called after a successful call to SendWriteRequest as been made.
+ *
+ * @param[in] apWriteClient: The write client object of the terminated write transaction.
+ */
+ virtual void OnDone(WriteClient * apWriteClient) = 0;
+ };
+
/**
* Shutdown the WriteClient. This terminates this instance
* of the object and releases all held resources.
@@ -61,8 +111,6 @@
CHIP_ERROR FinishAttribute();
TLV::TLVWriter * GetAttributeDataElementTLVWriter();
- uint64_t GetAppIdentifier() const { return mAppIdentifier; }
- void SetAppIdentifier(uint64_t aAppIdentifier) { mAppIdentifier = aAppIdentifier; }
NodeId GetSourceNodeId() const
{
return mpExchangeCtx != nullptr ? mpExchangeCtx->GetSecureSession().GetPeerNodeId() : kUndefinedNodeId;
@@ -109,8 +157,7 @@
* @retval #CHIP_ERROR_INCORRECT_STATE incorrect state if it is already initialized
* @retval #CHIP_NO_ERROR On success.
*/
- CHIP_ERROR Init(Messaging::ExchangeManager * apExchangeMgr, InteractionModelDelegate * apDelegate,
- uint64_t aApplicationIdentifier);
+ CHIP_ERROR Init(Messaging::ExchangeManager * apExchangeMgr, Callback * apDelegate);
virtual ~WriteClient() = default;
@@ -140,12 +187,11 @@
Messaging::ExchangeManager * mpExchangeMgr = nullptr;
Messaging::ExchangeContext * mpExchangeCtx = nullptr;
- InteractionModelDelegate * mpDelegate = nullptr;
+ Callback * mpCallback = nullptr;
State mState = State::Uninitialized;
System::PacketBufferTLVWriter mMessageWriter;
WriteRequest::Builder mWriteRequestBuilder;
uint8_t mAttributeStatusIndex = 0;
- uint64_t mAppIdentifier = 0;
};
class WriteClientHandle
@@ -173,6 +219,8 @@
*/
WriteClient * operator->() const { return mpWriteClient; }
+ WriteClient * Get() const { return mpWriteClient; }
+
/**
* Finalize the message and send it to the desired node. The underlying write object will always be released, and the user
* should not use this object after calling this function.
diff --git a/src/app/tests/TestWriteInteraction.cpp b/src/app/tests/TestWriteInteraction.cpp
index 51491d9..79db04e 100644
--- a/src/app/tests/TestWriteInteraction.cpp
+++ b/src/app/tests/TestWriteInteraction.cpp
@@ -79,6 +79,22 @@
void OnResponseTimeout(Messaging::ExchangeContext * ec) override {}
};
+class TestWriteClientCallback : public chip::app::WriteClient::Callback
+{
+public:
+ void ResetCounter() { mOnSuccessCalled = mOnErrorCalled = mOnDoneCalled = 0; }
+ void OnResponse(const WriteClient * apWriteClient, const chip::app::ConcreteAttributePath & path, StatusIB status) override
+ {
+ mOnSuccessCalled++;
+ }
+ void OnError(const WriteClient * apWriteClient, CHIP_ERROR chipError) override { mOnErrorCalled++; }
+ void OnDone(WriteClient * apWriteClient) override { mOnDoneCalled++; }
+
+ int mOnSuccessCalled = 0;
+ int mOnErrorCalled = 0;
+ int mOnDoneCalled = 0;
+};
+
void TestWriteInteraction::AddAttributeDataElement(nlTestSuite * apSuite, void * apContext, WriteClientHandle & aWriteClient)
{
CHIP_ERROR err = CHIP_NO_ERROR;
@@ -215,9 +231,9 @@
app::WriteClientHandle writeClientHandle;
writeClientHandle.SetWriteClient(&writeClient);
- chip::app::InteractionModelDelegate delegate;
System::PacketBufferHandle buf = System::PacketBufferHandle::New(System::PacketBuffer::kMaxSize);
- err = writeClient.Init(&ctx.GetExchangeManager(), &delegate, 0);
+ TestWriteClientCallback callback;
+ err = writeClient.Init(&ctx.GetExchangeManager(), &callback);
NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR);
AddAttributeDataElement(apSuite, apContext, writeClientHandle);
@@ -271,19 +287,6 @@
Protocols::InteractionModel::Status::Success);
}
-class RoundtripDelegate : public chip::app::InteractionModelDelegate
-{
-public:
- CHIP_ERROR WriteResponseStatus(const WriteClient * apWriteClient, const app::StatusIB & aStatusIB,
- AttributePathParams & aAttributePathParams, uint8_t aAttributeIndex) override
- {
- mGotResponse = true;
- return CHIP_NO_ERROR;
- }
-
- bool mGotResponse = false;
-};
-
void TestWriteInteraction::TestWriteRoundtripWithClusterObjects(nlTestSuite * apSuite, void * apContext)
{
TestContext & ctx = *static_cast<TestContext *>(apContext);
@@ -294,13 +297,13 @@
// Shouldn't have anything in the retransmit table when starting the test.
NL_TEST_ASSERT(apSuite, rm->TestGetCountRetransTable() == 0);
- RoundtripDelegate delegate;
+ TestWriteClientCallback callback;
auto * engine = chip::app::InteractionModelEngine::GetInstance();
- err = engine->Init(&ctx.GetExchangeManager(), &delegate);
+ err = engine->Init(&ctx.GetExchangeManager(), nullptr);
NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR);
app::WriteClientHandle writeClient;
- err = engine->NewWriteClient(writeClient);
+ err = engine->NewWriteClient(writeClient, &callback);
NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR);
System::PacketBufferHandle buf = System::PacketBufferHandle::New(System::PacketBuffer::kMaxSize);
@@ -325,14 +328,14 @@
writeClient.EncodeAttributeWritePayload(attributePathParams, dataTx);
NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR);
- NL_TEST_ASSERT(apSuite, !delegate.mGotResponse);
+ NL_TEST_ASSERT(apSuite, callback.mOnSuccessCalled == 0);
SessionHandle session = ctx.GetSessionBobToAlice();
err = writeClient.SendWriteRequest(ctx.GetAliceNodeId(), ctx.GetFabricIndex(), Optional<SessionHandle>::Value(session));
NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR);
- NL_TEST_ASSERT(apSuite, delegate.mGotResponse);
+ NL_TEST_ASSERT(apSuite, callback.mOnSuccessCalled == 1);
{
app::Clusters::TestCluster::Structs::SimpleStruct::Type dataRx;
@@ -347,6 +350,8 @@
NL_TEST_ASSERT(apSuite, dataRx.e.data_equal(dataTx.e));
}
+ NL_TEST_ASSERT(apSuite, callback.mOnSuccessCalled == 1 && callback.mOnErrorCalled == 0 && callback.mOnDoneCalled == 1);
+
// By now we should have closed all exchanges and sent all pending acks, so
// there should be no queued-up things in the retransmit table.
NL_TEST_ASSERT(apSuite, rm->TestGetCountRetransTable() == 0);
@@ -364,26 +369,26 @@
// Shouldn't have anything in the retransmit table when starting the test.
NL_TEST_ASSERT(apSuite, rm->TestGetCountRetransTable() == 0);
- RoundtripDelegate delegate;
+ TestWriteClientCallback callback;
auto * engine = chip::app::InteractionModelEngine::GetInstance();
- err = engine->Init(&ctx.GetExchangeManager(), &delegate);
+ err = engine->Init(&ctx.GetExchangeManager(), nullptr);
NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR);
app::WriteClientHandle writeClient;
- err = engine->NewWriteClient(writeClient);
+ err = engine->NewWriteClient(writeClient, &callback);
NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR);
System::PacketBufferHandle buf = System::PacketBufferHandle::New(System::PacketBuffer::kMaxSize);
AddAttributeDataElement(apSuite, apContext, writeClient);
- NL_TEST_ASSERT(apSuite, !delegate.mGotResponse);
+ NL_TEST_ASSERT(apSuite, callback.mOnSuccessCalled == 0 && callback.mOnErrorCalled == 0 && callback.mOnDoneCalled == 0);
SessionHandle session = ctx.GetSessionBobToAlice();
err = writeClient.SendWriteRequest(ctx.GetAliceNodeId(), ctx.GetFabricIndex(), Optional<SessionHandle>::Value(session));
NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR);
- NL_TEST_ASSERT(apSuite, delegate.mGotResponse);
+ NL_TEST_ASSERT(apSuite, callback.mOnSuccessCalled == 1 && callback.mOnErrorCalled == 0 && callback.mOnDoneCalled == 1);
// By now we should have closed all exchanges and sent all pending acks, so
// there should be no queued-up things in the retransmit table.
diff --git a/src/app/tests/integration/chip_im_initiator.cpp b/src/app/tests/integration/chip_im_initiator.cpp
index bc28a66..71cf076 100644
--- a/src/app/tests/integration/chip_im_initiator.cpp
+++ b/src/app/tests/integration/chip_im_initiator.cpp
@@ -113,17 +113,6 @@
static_cast<double>(gReadRespCount) * 100 / static_cast<double>(gReadCount), static_cast<double>(transitTime) / 1000);
}
-void HandleWriteComplete()
-{
- auto respTime = chip::System::SystemClock().GetMonotonicMilliseconds();
- auto transitTime = respTime - gLastMessageTime;
-
- gWriteRespCount++;
-
- printf("Write Response: %" PRIu64 "/%" PRIu64 "(%.2f%%) time=%.3fms\n", gWriteRespCount, gWriteCount,
- static_cast<double>(gWriteRespCount) * 100 / static_cast<double>(gWriteCount), static_cast<double>(transitTime) / 1000);
-}
-
void HandleSubscribeReportComplete()
{
auto respTime = chip::System::SystemClock().GetMonotonicMilliseconds();
@@ -135,14 +124,11 @@
static_cast<double>(gSubRespCount) * 100 / static_cast<double>(gSubCount), static_cast<double>(transitTime) / 1000);
}
-class MockInteractionModelApp : public chip::app::InteractionModelDelegate, public ::chip::app::CommandSender::Callback
+class MockInteractionModelApp : public chip::app::InteractionModelDelegate,
+ public ::chip::app::CommandSender::Callback,
+ public ::chip::app::WriteClient::Callback
{
public:
- CHIP_ERROR WriteResponseProcessed(const chip::app::WriteClient * apWriteClient) override
- {
- HandleWriteComplete();
- return CHIP_NO_ERROR;
- }
CHIP_ERROR EventStreamReceived(const chip::Messaging::ExchangeContext * apExchangeContext,
chip::TLV::TLVReader * apEventListReader) override
{
@@ -192,7 +178,7 @@
static_cast<double>(gCommandRespCount) * 100 / static_cast<double>(gCommandCount),
static_cast<double>(transitTime) / 1000);
}
- void OnError(const chip::app::CommandSender * apCommandSender, chip::Protocols::InteractionModel::Status aStatus,
+ void OnError(const chip::app::CommandSender * apCommandSender, chip::Protocols::InteractionModel::Status aProtocolCode,
CHIP_ERROR aError) override
{
gCommandRespCount += (aError == CHIP_ERROR_IM_STATUS_CODE_RECEIVED);
@@ -200,6 +186,24 @@
printf("CommandResponseError happens with %" CHIP_ERROR_FORMAT, aError.Format());
}
void OnDone(chip::app::CommandSender * apCommandSender) override {}
+
+ void OnResponse(const chip::app::WriteClient * apWriteClient, const chip::app::ConcreteAttributePath & path,
+ chip::app::StatusIB status) override
+ {
+ auto respTime = chip::System::SystemClock().GetMonotonicMilliseconds();
+ auto transitTime = respTime - gLastMessageTime;
+
+ gWriteRespCount++;
+
+ printf("Write Response: %" PRIu64 "/%" PRIu64 "(%.2f%%) time=%.3fms\n", gWriteRespCount, gWriteCount,
+ static_cast<double>(gWriteRespCount) * 100 / static_cast<double>(gWriteCount),
+ static_cast<double>(transitTime) / 1000);
+ }
+ void OnError(const chip::app::WriteClient * apCommandSender, CHIP_ERROR aError) override
+ {
+ printf("WriteClient::OnError happens with %" CHIP_ERROR_FORMAT, aError.Format());
+ }
+ void OnDone(chip::app::WriteClient * apWriteClient) override {}
};
MockInteractionModelApp gMockDelegate;
@@ -548,7 +552,7 @@
if (gWriteRespCount < kMaxWriteMessageCount)
{
chip::app::WriteClientHandle writeClient;
- err = chip::app::InteractionModelEngine::GetInstance()->NewWriteClient(writeClient);
+ err = chip::app::InteractionModelEngine::GetInstance()->NewWriteClient(writeClient, &gMockDelegate);
SuccessOrExit(err);
err = SendWriteRequest(writeClient);
diff --git a/src/app/util/im-client-callbacks.cpp b/src/app/util/im-client-callbacks.cpp
index 80d6489..c60631f 100644
--- a/src/app/util/im-client-callbacks.cpp
+++ b/src/app/util/im-client-callbacks.cpp
@@ -321,16 +321,15 @@
return true;
}
-bool IMWriteResponseCallback(const chip::app::WriteClient * writeClient, EmberAfStatus status)
+bool IMWriteResponseCallback(const chip::app::WriteClient * writeClient, chip::Protocols::InteractionModel::Status status)
{
ChipLogProgress(Zcl, "WriteResponse:");
- LogStatus(status);
+ LogIMStatus(status);
Callback::Cancelable * onSuccessCallback = nullptr;
Callback::Cancelable * onFailureCallback = nullptr;
- NodeId sourceNodeId = writeClient->GetSourceNodeId();
- uint8_t seq = static_cast<uint8_t>(writeClient->GetAppIdentifier());
- CHIP_ERROR err = gCallbacks.GetResponseCallback(sourceNodeId, seq, &onSuccessCallback, &onFailureCallback);
+ CHIP_ERROR err =
+ gCallbacks.GetResponseCallback(reinterpret_cast<NodeId>(writeClient), 0, &onSuccessCallback, &onFailureCallback);
if (CHIP_NO_ERROR != err)
{
@@ -347,7 +346,7 @@
return true;
}
- if (status == EMBER_ZCL_STATUS_SUCCESS)
+ if (status == Protocols::InteractionModel::Status::Success)
{
Callback::Callback<DefaultSuccessCallback> * cb =
Callback::Callback<DefaultSuccessCallback>::FromCancelable(onSuccessCallback);
@@ -357,7 +356,7 @@
{
Callback::Callback<DefaultFailureCallback> * cb =
Callback::Callback<DefaultFailureCallback>::FromCancelable(onFailureCallback);
- cb->mCall(cb->mContext, static_cast<uint8_t>(status));
+ cb->mCall(cb->mContext, static_cast<uint8_t>(to_underlying(status)));
}
return true;
diff --git a/src/app/util/im-client-callbacks.h b/src/app/util/im-client-callbacks.h
index f421bcb..5b241db 100644
--- a/src/app/util/im-client-callbacks.h
+++ b/src/app/util/im-client-callbacks.h
@@ -31,7 +31,7 @@
bool IMDefaultResponseCallback(const chip::app::Command * commandObj, EmberAfStatus status);
bool IMReadReportAttributesResponseCallback(const chip::app::ReadClient * apReadClient, const chip::app::ClusterInfo & aPath,
chip::TLV::TLVReader * apData, chip::Protocols::InteractionModel::Status status);
-bool IMWriteResponseCallback(const chip::app::WriteClient * writeClient, EmberAfStatus status);
+bool IMWriteResponseCallback(const chip::app::WriteClient * writeClient, chip::Protocols::InteractionModel::Status status);
bool IMSubscribeResponseCallback(const chip::app::ReadClient * apSubscribeClient, EmberAfStatus status);
void LogStatus(uint8_t status);
diff --git a/src/app/zap-templates/templates/app/CHIPClusters-src.zapt b/src/app/zap-templates/templates/app/CHIPClusters-src.zapt
index 7b7acde..3632351 100644
--- a/src/app/zap-templates/templates/app/CHIPClusters-src.zapt
+++ b/src/app/zap-templates/templates/app/CHIPClusters-src.zapt
@@ -100,19 +100,15 @@
}
{{#if isWritableAttribute}}
+{{#*inline "attributeTypeInfo"}}chip::app::Clusters::{{asUpperCamelCase parent.name}}::Attributes::{{asUpperCamelCase name}}::TypeInfo{{/inline}}
+template CHIP_ERROR ClusterBase::WriteAttribute<{{>attributeTypeInfo}}>(const {{>attributeTypeInfo}}::Type & requestData, void *context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR {{asUpperCamelCase parent.name}}Cluster::WriteAttribute{{asUpperCamelCase name}}(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, {{chipType}} value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = {{ asHex code 8 }};
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(chip::app::AttributePathParams(mEndpoint, mClusterId, {{asUpperCamelCase parent.name}}::Attributes::{{asUpperCamelCase name}}::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -162,6 +158,32 @@
requestData, onSuccessCb, onFailureCb);
};
+template <typename AttributeInfo>
+CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb)
+{
+ VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE);
+ ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded());
+
+ auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) {
+ if (successCb != nullptr)
+ {
+ successCb(context);
+ }
+ };
+
+ auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath,
+ app::StatusIB status, CHIP_ERROR aError) {
+ if (failureCb != nullptr)
+ {
+ failureCb(context, app::ToEmberAfStatus(status.mStatus));
+ }
+ };
+
+ return chip::Controller::WriteAttribute<AttributeInfo>(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint,
+ requestData, onSuccessCb, onFailureCb);
+}
+
} // namespace Controller
} // namespace chip
{{/if}}
diff --git a/src/app/zap-templates/templates/app/cluster-objects.zapt b/src/app/zap-templates/templates/app/cluster-objects.zapt
index 7f1cf4d..3a3aa52 100644
--- a/src/app/zap-templates/templates/app/cluster-objects.zapt
+++ b/src/app/zap-templates/templates/app/cluster-objects.zapt
@@ -129,11 +129,9 @@
{{/zcl_commands}}
{{#zcl_attributes_server}}
-{{#if (hasSpecificAttributes)}}
{{#first}}
namespace Attributes {
{{/first}}
-{{#if clusterRef}}
namespace {{asUpperCamelCase label}} {
struct TypeInfo {
{{#if entryType}}
@@ -144,15 +142,13 @@
using DecodableType = {{zapTypeToDecodableClusterObjectType type}};
{{/if}}
- static constexpr ClusterId GetClusterId() { return {{asUpperCamelCase parent.name}}::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::{{asUpperCamelCase parent.name}}::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::{{asUpperCamelCase label}}::Id; }
};
} // namespace {{asUpperCamelCase label}}
-{{/if}}
{{#last}}
} // namespace Attributes
{{/last}}
-{{/if}}
{{/zcl_attributes_server}}
{{#zcl_events}}
{{#first}}
diff --git a/src/app/zap-templates/templates/app/ids/Attributes.zapt b/src/app/zap-templates/templates/app/ids/Attributes.zapt
index f5683ff..159499b 100644
--- a/src/app/zap-templates/templates/app/ids/Attributes.zapt
+++ b/src/app/zap-templates/templates/app/ids/Attributes.zapt
@@ -25,27 +25,24 @@
{{#zcl_clusters}}
{{#zcl_attributes_server}}
-{{#if (hasSpecificAttributes)}}
{{#first}}
namespace {{asUpperCamelCase parent.label}} {
namespace Attributes {
{{/first}}
-{{#unless clusterRef}}
-namespace {{asUpperCamelCase label}} = Globals::Attributes::{{asUpperCamelCase label}};
-{{/unless}}
-{{#if clusterRef}}
namespace {{asUpperCamelCase label}} {
+{{#if clusterRef}}
static constexpr AttributeId Id = {{asMEI manufacturerCode code}};
-} // namespace {{asUpperCamelCase label}}
+{{else}}
+static constexpr AttributeId Id = Globals::Attributes::{{asUpperCamelCase label}}::Id;
{{/if}}
+} // namespace {{asUpperCamelCase label}}
{{#last}}
} // namespace Attributes
} // namespace {{asUpperCamelCase parent.label}}
{{/last}}
-{{/if}}
{{/zcl_attributes_server}}
{{/zcl_clusters}}
diff --git a/src/app/zap-templates/templates/app/tests/CHIPClusters-src.zapt b/src/app/zap-templates/templates/app/tests/CHIPClusters-src.zapt
index d213703..8d80a39 100644
--- a/src/app/zap-templates/templates/app/tests/CHIPClusters-src.zapt
+++ b/src/app/zap-templates/templates/app/tests/CHIPClusters-src.zapt
@@ -7,6 +7,7 @@
#include <app/util/basic-types.h>
#include <app-common/zap-generated/ids/Attributes.h>
+#include <app-common/zap-generated/cluster-objects.h>
#include <zap-generated/CHIPClientCallbacks.h>
using namespace chip::app::Clusters;
@@ -22,22 +23,13 @@
{{#unless isWritableAttribute}}
{{#unless isList}}
{{#unless isStruct}}
-CHIP_ERROR {{asUpperCamelCase parent.name}}ClusterTest::WriteAttribute{{asUpperCamelCase name}}(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, {{chipType}} {{asLowerCamelCase name}})
+CHIP_ERROR {{asUpperCamelCase parent.name}}ClusterTest::WriteAttribute{{asUpperCamelCase name}}(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, {{chipType}} value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- 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);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, {{asLowerCamelCase name}}));
-
+ ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(chip::app::AttributePathParams(mEndpoint, mClusterId, {{asUpperCamelCase parent.name}}::Attributes::{{asUpperCamelCase name}}::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
{{/unless}}
{{/unless}}
{{/unless}}
diff --git a/src/controller/CHIPCluster.h b/src/controller/CHIPCluster.h
index 9dd0d47..7fc7ff3 100644
--- a/src/controller/CHIPCluster.h
+++ b/src/controller/CHIPCluster.h
@@ -30,6 +30,7 @@
#include <app/util/error-mapping.h>
#include <controller/CHIPDevice.h>
#include <controller/InvokeInteraction.h>
+#include <controller/WriteInteraction.h>
namespace chip {
namespace Controller {
@@ -37,6 +38,8 @@
template <typename T>
using CommandResponseSuccessCallback = void(void * context, const T & responseObject);
using CommandResponseFailureCallback = void(void * context, EmberAfStatus status);
+using WriteResponseSuccessCallback = void (*)(void * context);
+using WriteResponseFailureCallback = void (*)(void * context, EmberAfStatus status);
class DLL_EXPORT ClusterBase
{
@@ -59,6 +62,10 @@
CHIP_ERROR InvokeCommand(const RequestDataT & requestData, void * context,
CommandResponseSuccessCallback<ResponseDataT> successCb, CommandResponseFailureCallback failureCb);
+ template <typename AttributeInfo>
+ CHIP_ERROR WriteAttribute(const typename AttributeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
protected:
ClusterBase(uint16_t cluster) : mClusterId(cluster) {}
diff --git a/src/controller/CHIPDevice.cpp b/src/controller/CHIPDevice.cpp
index bf65c6c..5fc62df 100644
--- a/src/controller/CHIPDevice.cpp
+++ b/src/controller/CHIPDevice.cpp
@@ -689,7 +689,7 @@
mCallbacksMgr.CancelResponseCallback(mDeviceId, seqNum);
}
-void Device::AddIMResponseHandler(app::CommandSender * commandObj, Callback::Cancelable * onSuccessCallback,
+void Device::AddIMResponseHandler(void * commandObj, Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback)
{
// We are using the pointer to command sender object as the identifier of command transactions. This makes sense as long as
@@ -701,7 +701,7 @@
onFailureCallback);
}
-void Device::CancelIMResponseHandler(app::CommandSender * commandObj)
+void Device::CancelIMResponseHandler(void * commandObj)
{
// We are using the pointer to command sender object as the identifier of command transactions. This makes sense as long as
// there are only one active command transaction on one command sender object. This is a bit tricky, we try to assume that
@@ -789,19 +789,19 @@
Callback::Cancelable * onFailureCallback)
{
bool loadedSecureSession = false;
- uint8_t seqNum = GetNextSequenceNumber();
CHIP_ERROR err = CHIP_NO_ERROR;
- aHandle->SetAppIdentifier(seqNum);
ReturnErrorOnFailure(LoadSecureSessionParametersIfNeeded(loadedSecureSession));
+ app::WriteClient * writeClient = aHandle.Get();
+
if (onSuccessCallback != nullptr || onFailureCallback != nullptr)
{
- AddResponseHandler(seqNum, onSuccessCallback, onFailureCallback);
+ AddIMResponseHandler(writeClient, onSuccessCallback, onFailureCallback);
}
if ((err = aHandle.SendWriteRequest(GetDeviceId(), 0, mSecureSession)) != CHIP_NO_ERROR)
{
- CancelResponseHandler(seqNum);
+ CancelIMResponseHandler(writeClient);
}
return err;
}
diff --git a/src/controller/CHIPDevice.h b/src/controller/CHIPDevice.h
index e1c51e9..da5446f 100644
--- a/src/controller/CHIPDevice.h
+++ b/src/controller/CHIPDevice.h
@@ -389,9 +389,9 @@
// on the app side instead of register callbacks here. The IM delegate can provide more infomation then callback and it is
// type-safe.
// TODO: Implement interaction model delegate in the application.
- void AddIMResponseHandler(app::CommandSender * commandObj, Callback::Cancelable * onSuccessCallback,
+ void AddIMResponseHandler(void * commandObj, Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback);
- void CancelIMResponseHandler(app::CommandSender * commandObj);
+ void CancelIMResponseHandler(void * commandObj);
void OperationalCertProvisioned();
bool IsOperationalCertProvisioned() const { return mDeviceOperationalCertProvisioned; }
diff --git a/src/controller/CHIPDeviceController.cpp b/src/controller/CHIPDeviceController.cpp
index c950fad..86e59b4 100644
--- a/src/controller/CHIPDeviceController.cpp
+++ b/src/controller/CHIPDeviceController.cpp
@@ -1728,29 +1728,17 @@
return CHIP_NO_ERROR;
}
-CHIP_ERROR DeviceControllerInteractionModelDelegate::WriteResponseStatus(const app::WriteClient * apWriteClient,
- const app::StatusIB & aStatusIB,
- app::AttributePathParams & aAttributePathParams,
- uint8_t aAttributeIndex)
+void DeviceControllerInteractionModelDelegate::OnResponse(const app::WriteClient * apWriteClient,
+ const app::ConcreteAttributePath & aPath, app::StatusIB attributeStatus)
{
- IMWriteResponseCallback(apWriteClient, chip::app::ToEmberAfStatus(aStatusIB.mStatus));
- return CHIP_NO_ERROR;
+ IMWriteResponseCallback(apWriteClient, attributeStatus.mStatus);
+}
+void DeviceControllerInteractionModelDelegate::OnError(const app::WriteClient * apWriteClient, CHIP_ERROR aError)
+{
+ IMWriteResponseCallback(apWriteClient, Protocols::InteractionModel::Status::Failure);
}
-CHIP_ERROR DeviceControllerInteractionModelDelegate::WriteResponseProtocolError(const app::WriteClient * apWriteClient,
- uint8_t aAttributeIndex)
-{
- // When WriteResponseProtocolError occurred, it means server returned an invalid packet.
- IMWriteResponseCallback(apWriteClient, EMBER_ZCL_STATUS_FAILURE);
- return CHIP_NO_ERROR;
-}
-
-CHIP_ERROR DeviceControllerInteractionModelDelegate::WriteResponseError(const app::WriteClient * apWriteClient, CHIP_ERROR aError)
-{
- // When WriteResponseError occurred, it means we failed to receive the response from server.
- IMWriteResponseCallback(apWriteClient, EMBER_ZCL_STATUS_FAILURE);
- return CHIP_NO_ERROR;
-}
+void DeviceControllerInteractionModelDelegate::OnDone(app::WriteClient * apWriteClient) {}
CHIP_ERROR DeviceControllerInteractionModelDelegate::SubscribeResponseProcessed(const app::ReadClient * apSubscribeClient)
{
diff --git a/src/controller/DeviceControllerInteractionModelDelegate.h b/src/controller/DeviceControllerInteractionModelDelegate.h
index e3f2552..b208e58 100644
--- a/src/controller/DeviceControllerInteractionModelDelegate.h
+++ b/src/controller/DeviceControllerInteractionModelDelegate.h
@@ -4,6 +4,7 @@
#include <app/CommandSender.h>
#include <app/InteractionModelDelegate.h>
+#include <app/WriteClient.h>
namespace chip {
namespace Controller {
@@ -15,7 +16,8 @@
* TODO:(#8967) Implementation of CommandSender::Callback should be removed after switching to ClusterObjects.
*/
class DeviceControllerInteractionModelDelegate : public chip::app::InteractionModelDelegate,
- public chip::app::CommandSender::Callback
+ public chip::app::CommandSender::Callback,
+ public chip::app::WriteClient::Callback
{
public:
void OnResponse(app::CommandSender * apCommandSender, const app::ConcreteCommandPath & aPath, TLV::TLVReader * aData) override;
@@ -23,17 +25,15 @@
CHIP_ERROR aProtocolError) override;
void OnDone(app::CommandSender * apCommandSender) override;
+ void OnResponse(const app::WriteClient * apWriteClient, const app::ConcreteAttributePath & aPath,
+ app::StatusIB attributeStatus) override;
+ void OnError(const app::WriteClient * apWriteClient, CHIP_ERROR aError) override;
+ void OnDone(app::WriteClient * apWriteClient) override;
+
void OnReportData(const app::ReadClient * apReadClient, const app::ClusterInfo & aPath, TLV::TLVReader * apData,
Protocols::InteractionModel::Status status) override;
CHIP_ERROR ReadError(app::ReadClient * apReadClient, CHIP_ERROR aError) override;
- CHIP_ERROR WriteResponseStatus(const app::WriteClient * apWriteClient, const app::StatusIB & aStatusIB,
- app::AttributePathParams & aAttributePathParams, uint8_t aAttributeIndex) override;
-
- CHIP_ERROR WriteResponseProtocolError(const app::WriteClient * apWriteClient, uint8_t aAttributeIndex) override;
-
- CHIP_ERROR WriteResponseError(const app::WriteClient * apWriteClient, CHIP_ERROR aError) override;
-
CHIP_ERROR SubscribeResponseProcessed(const app::ReadClient * apSubscribeClient) override;
CHIP_ERROR ReadDone(app::ReadClient * apReadClient) override;
diff --git a/src/controller/ReadInteraction.h b/src/controller/ReadInteraction.h
index ead41e6..c9def71 100644
--- a/src/controller/ReadInteraction.h
+++ b/src/controller/ReadInteraction.h
@@ -57,8 +57,7 @@
auto callback = chip::Platform::MakeUnique<TypedReadCallback<AttributeTypeInfo>>(onSuccessCb, onErrorCb, onDone);
VerifyOrReturnError(callback != nullptr, CHIP_ERROR_NO_MEMORY);
- err = engine->NewReadClient(&readClient, app::ReadClient::InteractionType::Read, 0, callback.get());
- ReturnErrorOnFailure(err);
+ ReturnErrorOnFailure(engine->NewReadClient(&readClient, app::ReadClient::InteractionType::Read, 0, callback.get()));
err = readClient->SendReadRequest(readParams);
if (err != CHIP_NO_ERROR)
diff --git a/src/controller/WriteInteraction.h b/src/controller/WriteInteraction.h
new file mode 100644
index 0000000..2072226
--- /dev/null
+++ b/src/controller/WriteInteraction.h
@@ -0,0 +1,105 @@
+/*
+ *
+ * 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.
+ */
+
+#pragma once
+
+#include <app/InteractionModelEngine.h>
+#include <app/WriteClient.h>
+#include <controller/CommandSenderAllocator.h>
+#include <controller/TypedCommandCallback.h>
+
+namespace chip {
+namespace Controller {
+
+/*
+ * An adapter callback that permits applications to provide std::function callbacks for success, error and on done.
+ * This permits a slightly more flexible programming model that allows applications to pass in lambdas and bound member functions
+ * as they see fit instead.
+ *
+ */
+
+class WriteCallback final : public app::WriteClient::Callback
+{
+public:
+ using OnSuccessCallbackType = std::function<void(const app::ConcreteAttributePath &)>;
+
+ //
+ // Callback to deliver any error that occurs during the write. This includes
+ // errors global to the write as a whole (e.g timeout) as well as per-attribute
+ // errors.
+ //
+ // In the latter case, path will be non-null. Otherwise, it shall be null.
+ //
+ using OnErrorCallbackType =
+ std::function<void(const app::ConcreteAttributePath * path, app::StatusIB status, CHIP_ERROR aError)>;
+ using OnDoneCallbackType = std::function<void(app::WriteClient *, WriteCallback *)>;
+
+ WriteCallback(OnSuccessCallbackType aOnSuccess, OnErrorCallbackType aOnError, OnDoneCallbackType aOnDone) :
+ mOnSuccess(aOnSuccess), mOnError(aOnError), mOnDone(aOnDone)
+ {}
+
+ void OnResponse(const app::WriteClient * apWriteClient, const app::ConcreteAttributePath & aPath, app::StatusIB status) override
+ {
+ if (status.mStatus == Protocols::InteractionModel::Status::Success)
+ {
+ mOnSuccess(aPath);
+ }
+ else
+ {
+ mOnError(&aPath, status, CHIP_ERROR_IM_STATUS_CODE_RECEIVED);
+ }
+ }
+
+ void OnError(const app::WriteClient * apWriteClient, CHIP_ERROR aError) override
+ {
+ mOnError(nullptr, app::StatusIB(Protocols::InteractionModel::Status::Failure), aError);
+ }
+
+ void OnDone(app::WriteClient * apWriteClient) override { mOnDone(apWriteClient, this); }
+
+private:
+ OnSuccessCallbackType mOnSuccess;
+ OnErrorCallbackType mOnError;
+ OnDoneCallbackType mOnDone;
+};
+
+template <typename AttributeInfo>
+CHIP_ERROR WriteAttribute(Messaging::ExchangeManager * aExchangeMgr, SessionHandle sessionHandle, chip::EndpointId endpointId,
+ const typename AttributeInfo::Type & requestCommandData, WriteCallback::OnSuccessCallbackType onSuccessCb,
+ WriteCallback::OnErrorCallbackType onErrorCb)
+{
+ app::WriteClientHandle handle;
+
+ auto onDone = [](app::WriteClient * apWriteClient, WriteCallback * callback) { chip::Platform::Delete(callback); };
+
+ auto callback = Platform::MakeUnique<WriteCallback>(onSuccessCb, onErrorCb, onDone);
+ VerifyOrReturnError(callback != nullptr, CHIP_ERROR_NO_MEMORY);
+
+ ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, callback.get()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(endpointId, AttributeInfo::GetClusterId(), AttributeInfo::GetAttributeId()),
+ requestCommandData));
+ ReturnErrorOnFailure(handle.SendWriteRequest(sessionHandle.GetPeerNodeId(), sessionHandle.GetFabricIndex(),
+ chip::Optional<chip::SessionHandle>(sessionHandle)));
+
+ callback.release();
+ return CHIP_NO_ERROR;
+}
+
+} // namespace Controller
+} // namespace chip
diff --git a/src/controller/python/chip/clusters/CHIPClusters.py b/src/controller/python/chip/clusters/CHIPClusters.py
index 18c552c..b8765c5 100644
--- a/src/controller/python/chip/clusters/CHIPClusters.py
+++ b/src/controller/python/chip/clusters/CHIPClusters.py
@@ -4216,7 +4216,9 @@
if not func:
raise UnknownAttribute(cluster, attribute)
funcCaller = self._ChipStack.Call if imEnabled else self._ChipStack.CallAsync
- funcCaller(lambda: func(device, endpoint, groupid, value))
+ res = funcCaller(lambda: func(device, endpoint, groupid, value))
+ if res != 0:
+ raise self._ChipStack.ErrorToException(res)
# Cluster commands
diff --git a/src/controller/python/chip/interaction_model/Delegate.cpp b/src/controller/python/chip/interaction_model/Delegate.cpp
index 99caa45..810c6bb 100644
--- a/src/controller/python/chip/interaction_model/Delegate.cpp
+++ b/src/controller/python/chip/interaction_model/Delegate.cpp
@@ -68,23 +68,6 @@
DeviceControllerInteractionModelDelegate::OnError(apCommandSender, aStatus, aError);
}
-CHIP_ERROR PythonInteractionModelDelegate::WriteResponseStatus(const app::WriteClient * apWriteClient,
- const app::StatusIB & aStatusIB,
- app::AttributePathParams & aAttributePathParams,
- uint8_t aAttributeIndex)
-{
- if (onWriteResponseFunct != nullptr)
- {
- AttributeWriteStatus status{
- apWriteClient->GetSourceNodeId(), apWriteClient->GetAppIdentifier(), aStatusIB.mStatus,
- aAttributePathParams.mEndpointId, aAttributePathParams.mClusterId, aAttributePathParams.mFieldId
- };
- onWriteResponseFunct(&status, sizeof(status));
- }
- DeviceControllerInteractionModelDelegate::WriteResponseStatus(apWriteClient, aStatusIB, aAttributePathParams, aAttributeIndex);
- return CHIP_NO_ERROR;
-}
-
void PythonInteractionModelDelegate::OnReportData(const app::ReadClient * apReadClient, const app::ClusterInfo & aPath,
TLV::TLVReader * apData, Protocols::InteractionModel::Status status)
{
diff --git a/src/controller/python/chip/interaction_model/Delegate.h b/src/controller/python/chip/interaction_model/Delegate.h
index d9763a9..7ff9060 100644
--- a/src/controller/python/chip/interaction_model/Delegate.h
+++ b/src/controller/python/chip/interaction_model/Delegate.h
@@ -97,9 +97,6 @@
void OnError(const app::CommandSender * apCommandSender, Protocols::InteractionModel::Status aStatus,
CHIP_ERROR aError) override;
- CHIP_ERROR WriteResponseStatus(const app::WriteClient * apWriteClient, const app::StatusIB & aStatusIB,
- app::AttributePathParams & aAttributePathParams, uint8_t aAttributeIndex) override;
-
void OnReportData(const app::ReadClient * apReadClient, const app::ClusterInfo & aPath, TLV::TLVReader * apData,
Protocols::InteractionModel::Status status) override;
diff --git a/src/controller/python/templates/python-CHIPClusters-py.zapt b/src/controller/python/templates/python-CHIPClusters-py.zapt
index 0d2f988..08042b9 100644
--- a/src/controller/python/templates/python-CHIPClusters-py.zapt
+++ b/src/controller/python/templates/python-CHIPClusters-py.zapt
@@ -111,7 +111,9 @@
if not func:
raise UnknownAttribute(cluster, attribute)
funcCaller = self._ChipStack.Call if imEnabled else self._ChipStack.CallAsync
- funcCaller(lambda: func(device, endpoint, groupid, value))
+ res = funcCaller(lambda: func(device, endpoint, groupid, value))
+ if res != 0:
+ raise self._ChipStack.ErrorToException(res)
# Cluster commands
diff --git a/src/controller/python/test/test_scripts/base.py b/src/controller/python/test/test_scripts/base.py
index 031d228..bbe6d0d 100644
--- a/src/controller/python/test/test_scripts/base.py
+++ b/src/controller/python/test/test_scripts/base.py
@@ -279,17 +279,21 @@
failed_zcl = []
for req in requests:
try:
- res = self.devCtrl.ZCLWriteAttribute(cluster=req.cluster,
- attribute=req.attribute,
- nodeid=nodeid,
- endpoint=endpoint,
- groupid=group,
- value=req.value)
- TestResult(f"Write attribute {req.cluster}.{req.attribute}", res).assertStatusEqual(
- req.expected_status)
- if req.expected_status != IM.Status.Success:
- # If the write interaction is expected to success, proceed to verify it.
- continue
+ try:
+ self.devCtrl.ZCLWriteAttribute(cluster=req.cluster,
+ attribute=req.attribute,
+ nodeid=nodeid,
+ endpoint=endpoint,
+ groupid=group,
+ value=req.value)
+ if req.expected_status != IM.Status.Success:
+ raise AssertionError(
+ f"Write attribute {req.cluster}.{req.attribute} expects failure but got success response")
+ except Exception as ex:
+ if req.expected_status != IM.Status.Success:
+ continue
+ else:
+ raise ex
res = self.devCtrl.ZCLReadAttribute(
cluster=req.cluster, attribute=req.attribute, nodeid=nodeid, endpoint=endpoint, groupid=group)
TestResult(f"Read attribute {req.cluster}.{req.attribute}", res).assertValueEqual(
diff --git a/src/controller/tests/data_model/BUILD.gn b/src/controller/tests/data_model/BUILD.gn
index fa588d7..1dd31e9 100644
--- a/src/controller/tests/data_model/BUILD.gn
+++ b/src/controller/tests/data_model/BUILD.gn
@@ -25,6 +25,7 @@
if (chip_device_platform != "mbed" && chip_device_platform != "efr32") {
test_sources = [ "TestCommands.cpp" ]
test_sources += [ "TestRead.cpp" ]
+ test_sources += [ "TestWrite.cpp" ]
}
public_deps = [
diff --git a/src/controller/tests/data_model/TestWrite.cpp b/src/controller/tests/data_model/TestWrite.cpp
new file mode 100644
index 0000000..2b38213
--- /dev/null
+++ b/src/controller/tests/data_model/TestWrite.cpp
@@ -0,0 +1,259 @@
+/*
+ *
+ * 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 "app-common/zap-generated/ids/Clusters.h"
+#include <app-common/zap-generated/cluster-objects.h>
+#include <app/InteractionModelEngine.h>
+#include <controller/WriteInteraction.h>
+#include <lib/support/ErrorStr.h>
+#include <lib/support/UnitTestRegistration.h>
+#include <lib/support/logging/CHIPLogging.h>
+#include <messaging/tests/MessagingContext.h>
+#include <nlunit-test.h>
+
+using namespace chip;
+using namespace chip::app::Clusters;
+
+namespace {
+chip::TransportMgrBase gTransportManager;
+chip::Test::LoopbackTransport gLoopback;
+chip::Test::IOContext gIOContext;
+chip::Messaging::ExchangeManager * gExchangeManager;
+secure_channel::MessageCounterManager gMessageCounterManager;
+
+using TestContext = chip::Test::MessagingContext;
+TestContext sContext;
+
+constexpr EndpointId kTestEndpointId = 1;
+
+enum ResponseDirective
+{
+ kSendAttributeSuccess,
+ kSendAttributeError,
+};
+
+ResponseDirective responseDirective;
+
+} // namespace
+
+namespace chip {
+namespace app {
+
+void DispatchSingleClusterCommand(const ConcreteCommandPath & aCommandPath, chip::TLV::TLVReader & aReader,
+ CommandHandler * apCommandObj)
+{}
+
+bool ServerClusterCommandExists(const ConcreteCommandPath & aCommandPath)
+{
+ // Mock cluster catalog, only support one command on one cluster on one endpoint.
+ return (aCommandPath.mEndpointId == kTestEndpointId && aCommandPath.mClusterId == TestCluster::Id);
+}
+
+CHIP_ERROR ReadSingleClusterData(const ConcreteAttributePath & aPath, TLV::TLVWriter * apWriter, bool * apDataExists)
+{
+ return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE;
+}
+
+CHIP_ERROR WriteSingleClusterData(ClusterInfo & aClusterInfo, TLV::TLVReader & aReader, WriteHandler * aWriteHandler)
+{
+ if (aClusterInfo.mClusterId == TestCluster::Id &&
+ aClusterInfo.mFieldId == TestCluster::Attributes::ListStructOctetString::TypeInfo::GetAttributeId())
+ {
+ if (responseDirective == kSendAttributeSuccess)
+ {
+ TestCluster::Attributes::ListStructOctetString::TypeInfo::DecodableType value;
+
+ ReturnErrorOnFailure(DataModel::Decode(aReader, value));
+
+ auto iter = value.begin();
+ uint8_t i = 0;
+ while (iter.Next())
+ {
+ auto & item = iter.GetValue();
+
+ VerifyOrReturnError(item.fabricIndex == i, CHIP_ERROR_INVALID_ARGUMENT);
+ i++;
+ }
+
+ VerifyOrReturnError(i == 4, CHIP_ERROR_INVALID_ARGUMENT);
+
+ AttributePathParams attributePathParams(aClusterInfo.mClusterId, aClusterInfo.mEndpointId, aClusterInfo.mFieldId);
+ aWriteHandler->AddStatus(attributePathParams, Protocols::InteractionModel::Status::Success);
+ }
+ else
+ {
+ AttributePathParams attributePathParams(aClusterInfo.mClusterId, aClusterInfo.mEndpointId, aClusterInfo.mFieldId);
+ aWriteHandler->AddStatus(attributePathParams, Protocols::InteractionModel::Status::Failure);
+ }
+
+ return CHIP_NO_ERROR;
+ }
+
+ return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE;
+}
+
+} // namespace app
+} // namespace chip
+
+namespace {
+
+class TestWriteInteraction
+{
+public:
+ TestWriteInteraction() {}
+
+ static void TestDataResponse(nlTestSuite * apSuite, void * apContext);
+ static void TestAttributeError(nlTestSuite * apSuite, void * apContext);
+ static void TestWriteTimeout(nlTestSuite * apSuite, void * apContext);
+
+private:
+};
+
+void TestWriteInteraction::TestDataResponse(nlTestSuite * apSuite, void * apContext)
+{
+ TestContext & ctx = *static_cast<TestContext *>(apContext);
+ auto sessionHandle = ctx.GetSessionBobToAlice();
+ bool onSuccessCbInvoked = false, onFailureCbInvoked = false;
+ TestCluster::Structs::TestListStructOctet::Type valueBuf[4];
+ TestCluster::Attributes::ListStructOctetString::TypeInfo::Type value;
+
+ value = valueBuf;
+
+ uint8_t i = 0;
+ for (auto & item : valueBuf)
+ {
+ item.fabricIndex = i;
+ i++;
+ }
+
+ responseDirective = kSendAttributeSuccess;
+
+ // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's
+ // not safe to do so.
+ auto onSuccessCb = [&onSuccessCbInvoked](const app::ConcreteAttributePath & attributePath) { onSuccessCbInvoked = true; };
+
+ // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's
+ // not safe to do so.
+ auto onFailureCb = [&onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, app::StatusIB status,
+ CHIP_ERROR aError) { onFailureCbInvoked = true; };
+
+ chip::Controller::WriteAttribute<TestCluster::Attributes::ListStructOctetString::TypeInfo>(
+ gExchangeManager, sessionHandle, kTestEndpointId, value, onSuccessCb, onFailureCb);
+
+ NL_TEST_ASSERT(apSuite, onSuccessCbInvoked && !onFailureCbInvoked);
+ NL_TEST_ASSERT(apSuite, chip::app::InteractionModelEngine::GetInstance()->GetNumActiveWriteHandlers() == 0);
+ NL_TEST_ASSERT(apSuite, gExchangeManager->GetNumActiveExchanges() == 0);
+}
+
+void TestWriteInteraction::TestAttributeError(nlTestSuite * apSuite, void * apContext)
+{
+ TestContext & ctx = *static_cast<TestContext *>(apContext);
+ auto sessionHandle = ctx.GetSessionBobToAlice();
+ bool onSuccessCbInvoked = false, onFailureCbInvoked = false;
+ TestCluster::Attributes::ListStructOctetString::TypeInfo::Type value;
+ TestCluster::Structs::TestListStructOctet::Type valueBuf[4];
+
+ value = valueBuf;
+
+ uint8_t i = 0;
+ for (auto & item : valueBuf)
+ {
+ item.fabricIndex = i;
+ i++;
+ }
+
+ responseDirective = kSendAttributeError;
+
+ // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's
+ // not safe to do so.
+ auto onSuccessCb = [&onSuccessCbInvoked](const app::ConcreteAttributePath & attributePath) { onSuccessCbInvoked = true; };
+
+ // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's
+ // not safe to do so.
+ auto onFailureCb = [apSuite, &onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, app::StatusIB status,
+ CHIP_ERROR aError) {
+ NL_TEST_ASSERT(apSuite, attributePath != nullptr);
+ onFailureCbInvoked = true;
+ };
+
+ chip::Controller::WriteAttribute<TestCluster::Attributes::ListStructOctetString::TypeInfo>(
+ gExchangeManager, sessionHandle, kTestEndpointId, value, onSuccessCb, onFailureCb);
+
+ NL_TEST_ASSERT(apSuite, !onSuccessCbInvoked && onFailureCbInvoked);
+ NL_TEST_ASSERT(apSuite, chip::app::InteractionModelEngine::GetInstance()->GetNumActiveWriteHandlers() == 0);
+ NL_TEST_ASSERT(apSuite, gExchangeManager->GetNumActiveExchanges() == 0);
+}
+
+// clang-format off
+const nlTest sTests[] =
+{
+ NL_TEST_DEF("TestDataResponse", TestWriteInteraction::TestDataResponse),
+ NL_TEST_DEF("TestAttributeError", TestWriteInteraction::TestAttributeError),
+ NL_TEST_SENTINEL()
+};
+// clang-format on
+
+int Initialize(void * aContext);
+int Finalize(void * aContext);
+
+// clang-format off
+nlTestSuite sSuite =
+{
+ "TestWrite",
+ &sTests[0],
+ Initialize,
+ Finalize
+};
+// clang-format on
+
+int Initialize(void * aContext)
+{
+ // Initialize System memory and resources
+ VerifyOrReturnError(chip::Platform::MemoryInit() == CHIP_NO_ERROR, FAILURE);
+ VerifyOrReturnError(gIOContext.Init(&sSuite) == CHIP_NO_ERROR, FAILURE);
+ VerifyOrReturnError(gTransportManager.Init(&gLoopback) == CHIP_NO_ERROR, FAILURE);
+
+ auto * ctx = static_cast<TestContext *>(aContext);
+ VerifyOrReturnError(ctx->Init(&sSuite, &gTransportManager, &gIOContext) == CHIP_NO_ERROR, FAILURE);
+
+ gTransportManager.SetSessionManager(&ctx->GetSecureSessionManager());
+ gExchangeManager = &ctx->GetExchangeManager();
+ VerifyOrReturnError(
+ chip::app::InteractionModelEngine::GetInstance()->Init(&ctx->GetExchangeManager(), nullptr) == CHIP_NO_ERROR, FAILURE);
+ return SUCCESS;
+}
+
+int Finalize(void * aContext)
+{
+ // Shutdown will ensure no leaked exchange context.
+ CHIP_ERROR err = reinterpret_cast<TestContext *>(aContext)->Shutdown();
+ gIOContext.Shutdown();
+ chip::Platform::MemoryShutdown();
+ return (err == CHIP_NO_ERROR) ? SUCCESS : FAILURE;
+}
+
+} // namespace
+
+int TestWriteInteractionTest()
+{
+ nlTestRunner(&sSuite, &sContext);
+
+ return (nlTestRunnerStats(&sSuite));
+}
+
+CHIP_REGISTER_TEST_SUITE(TestWriteInteractionTest)
diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h
index 79339d8..5bb83e8 100644
--- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h
+++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h
@@ -45,7 +45,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MainsVoltage::Id; }
};
} // namespace MainsVoltage
@@ -55,7 +55,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MainsFrequency::Id; }
};
} // namespace MainsFrequency
@@ -65,7 +65,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MainsAlarmMask::Id; }
};
} // namespace MainsAlarmMask
@@ -75,7 +75,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MainsVoltageMinThreshold::Id; }
};
} // namespace MainsVoltageMinThreshold
@@ -85,7 +85,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MainsVoltageMaxThreshold::Id; }
};
} // namespace MainsVoltageMaxThreshold
@@ -95,7 +95,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MainsVoltageDwellTrip::Id; }
};
} // namespace MainsVoltageDwellTrip
@@ -105,7 +105,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryVoltage::Id; }
};
} // namespace BatteryVoltage
@@ -115,7 +115,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryPercentageRemaining::Id; }
};
} // namespace BatteryPercentageRemaining
@@ -125,7 +125,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryManufacturer::Id; }
};
} // namespace BatteryManufacturer
@@ -135,7 +135,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatterySize::Id; }
};
} // namespace BatterySize
@@ -145,7 +145,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryAhrRating::Id; }
};
} // namespace BatteryAhrRating
@@ -155,7 +155,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryQuantity::Id; }
};
} // namespace BatteryQuantity
@@ -165,7 +165,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryRatedVoltage::Id; }
};
} // namespace BatteryRatedVoltage
@@ -175,7 +175,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryAlarmMask::Id; }
};
} // namespace BatteryAlarmMask
@@ -185,7 +185,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryVoltageMinThreshold::Id; }
};
} // namespace BatteryVoltageMinThreshold
@@ -195,7 +195,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryVoltageThreshold1::Id; }
};
} // namespace BatteryVoltageThreshold1
@@ -205,7 +205,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryVoltageThreshold2::Id; }
};
} // namespace BatteryVoltageThreshold2
@@ -215,7 +215,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryVoltageThreshold3::Id; }
};
} // namespace BatteryVoltageThreshold3
@@ -225,7 +225,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryPercentageMinThreshold::Id; }
};
} // namespace BatteryPercentageMinThreshold
@@ -235,7 +235,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryPercentageThreshold1::Id; }
};
} // namespace BatteryPercentageThreshold1
@@ -245,7 +245,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryPercentageThreshold2::Id; }
};
} // namespace BatteryPercentageThreshold2
@@ -255,7 +255,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryPercentageThreshold3::Id; }
};
} // namespace BatteryPercentageThreshold3
@@ -265,7 +265,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryAlarmState::Id; }
};
} // namespace BatteryAlarmState
@@ -275,7 +275,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2Voltage::Id; }
};
} // namespace Battery2Voltage
@@ -285,7 +285,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2PercentageRemaining::Id; }
};
} // namespace Battery2PercentageRemaining
@@ -295,7 +295,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2Manufacturer::Id; }
};
} // namespace Battery2Manufacturer
@@ -305,7 +305,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2Size::Id; }
};
} // namespace Battery2Size
@@ -315,7 +315,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2AhrRating::Id; }
};
} // namespace Battery2AhrRating
@@ -325,7 +325,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2Quantity::Id; }
};
} // namespace Battery2Quantity
@@ -335,7 +335,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2RatedVoltage::Id; }
};
} // namespace Battery2RatedVoltage
@@ -345,7 +345,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2AlarmMask::Id; }
};
} // namespace Battery2AlarmMask
@@ -355,7 +355,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2VoltageMinThreshold::Id; }
};
} // namespace Battery2VoltageMinThreshold
@@ -365,7 +365,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2VoltageThreshold1::Id; }
};
} // namespace Battery2VoltageThreshold1
@@ -375,7 +375,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2VoltageThreshold2::Id; }
};
} // namespace Battery2VoltageThreshold2
@@ -385,7 +385,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2VoltageThreshold3::Id; }
};
} // namespace Battery2VoltageThreshold3
@@ -395,7 +395,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2PercentageMinThreshold::Id; }
};
} // namespace Battery2PercentageMinThreshold
@@ -405,7 +405,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2PercentageThreshold1::Id; }
};
} // namespace Battery2PercentageThreshold1
@@ -415,7 +415,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2PercentageThreshold2::Id; }
};
} // namespace Battery2PercentageThreshold2
@@ -425,7 +425,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2PercentageThreshold3::Id; }
};
} // namespace Battery2PercentageThreshold3
@@ -435,7 +435,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery2AlarmState::Id; }
};
} // namespace Battery2AlarmState
@@ -445,7 +445,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3Voltage::Id; }
};
} // namespace Battery3Voltage
@@ -455,7 +455,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3PercentageRemaining::Id; }
};
} // namespace Battery3PercentageRemaining
@@ -465,7 +465,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3Manufacturer::Id; }
};
} // namespace Battery3Manufacturer
@@ -475,7 +475,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3Size::Id; }
};
} // namespace Battery3Size
@@ -485,7 +485,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3AhrRating::Id; }
};
} // namespace Battery3AhrRating
@@ -495,7 +495,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3Quantity::Id; }
};
} // namespace Battery3Quantity
@@ -505,7 +505,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3RatedVoltage::Id; }
};
} // namespace Battery3RatedVoltage
@@ -515,7 +515,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3AlarmMask::Id; }
};
} // namespace Battery3AlarmMask
@@ -525,7 +525,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3VoltageMinThreshold::Id; }
};
} // namespace Battery3VoltageMinThreshold
@@ -535,7 +535,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3VoltageThreshold1::Id; }
};
} // namespace Battery3VoltageThreshold1
@@ -545,7 +545,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3VoltageThreshold2::Id; }
};
} // namespace Battery3VoltageThreshold2
@@ -555,7 +555,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3VoltageThreshold3::Id; }
};
} // namespace Battery3VoltageThreshold3
@@ -565,7 +565,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3PercentageMinThreshold::Id; }
};
} // namespace Battery3PercentageMinThreshold
@@ -575,7 +575,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3PercentageThreshold1::Id; }
};
} // namespace Battery3PercentageThreshold1
@@ -585,7 +585,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3PercentageThreshold2::Id; }
};
} // namespace Battery3PercentageThreshold2
@@ -595,7 +595,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3PercentageThreshold3::Id; }
};
} // namespace Battery3PercentageThreshold3
@@ -605,10 +605,30 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Battery3AlarmState::Id; }
};
} // namespace Battery3AlarmState
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerConfiguration::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace PowerConfiguration
namespace DeviceTemperatureConfiguration {
@@ -620,7 +640,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return DeviceTemperatureConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DeviceTemperatureConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentTemperature::Id; }
};
} // namespace CurrentTemperature
@@ -630,7 +650,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return DeviceTemperatureConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DeviceTemperatureConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinTempExperienced::Id; }
};
} // namespace MinTempExperienced
@@ -640,7 +660,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return DeviceTemperatureConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DeviceTemperatureConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxTempExperienced::Id; }
};
} // namespace MaxTempExperienced
@@ -650,7 +670,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DeviceTemperatureConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DeviceTemperatureConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OverTempTotalDwell::Id; }
};
} // namespace OverTempTotalDwell
@@ -660,7 +680,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DeviceTemperatureConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DeviceTemperatureConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DeviceTempAlarmMask::Id; }
};
} // namespace DeviceTempAlarmMask
@@ -670,7 +690,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return DeviceTemperatureConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DeviceTemperatureConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LowTempThreshold::Id; }
};
} // namespace LowTempThreshold
@@ -680,7 +700,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return DeviceTemperatureConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DeviceTemperatureConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::HighTempThreshold::Id; }
};
} // namespace HighTempThreshold
@@ -690,7 +710,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return DeviceTemperatureConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DeviceTemperatureConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LowTempDwellTripPoint::Id; }
};
} // namespace LowTempDwellTripPoint
@@ -700,10 +720,30 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return DeviceTemperatureConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DeviceTemperatureConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::HighTempDwellTripPoint::Id; }
};
} // namespace HighTempDwellTripPoint
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::DeviceTemperatureConfiguration::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::DeviceTemperatureConfiguration::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace DeviceTemperatureConfiguration
namespace Identify {
@@ -872,7 +912,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return Identify::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::IdentifyTime::Id; }
};
} // namespace IdentifyTime
@@ -882,10 +922,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Identify::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::IdentifyType::Id; }
};
} // namespace IdentifyType
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Identify
namespace Groups {
@@ -1203,10 +1263,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Groups::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NameSupport::Id; }
};
} // namespace NameSupport
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Groups
namespace Scenes {
@@ -1913,7 +1993,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Scenes::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SceneCount::Id; }
};
} // namespace SceneCount
@@ -1923,7 +2003,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Scenes::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentScene::Id; }
};
} // namespace CurrentScene
@@ -1933,7 +2013,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return Scenes::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentGroup::Id; }
};
} // namespace CurrentGroup
@@ -1943,7 +2023,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return Scenes::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SceneValid::Id; }
};
} // namespace SceneValid
@@ -1953,7 +2033,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Scenes::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NameSupport::Id; }
};
} // namespace NameSupport
@@ -1963,10 +2043,30 @@
using Type = chip::NodeId;
using DecodableType = chip::NodeId;
- static constexpr ClusterId GetClusterId() { return Scenes::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LastConfiguredBy::Id; }
};
} // namespace LastConfiguredBy
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Scenes::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Scenes
namespace OnOff {
@@ -2304,7 +2404,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return OnOff::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OnOff::Id; }
};
} // namespace OnOff
@@ -2314,7 +2414,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return OnOff::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SampleMfgSpecificAttribute0x00000x1002::Id; }
};
} // namespace SampleMfgSpecificAttribute0x00000x1002
@@ -2324,7 +2424,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OnOff::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SampleMfgSpecificAttribute0x00000x1049::Id; }
};
} // namespace SampleMfgSpecificAttribute0x00000x1049
@@ -2334,7 +2434,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OnOff::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SampleMfgSpecificAttribute0x00010x1002::Id; }
};
} // namespace SampleMfgSpecificAttribute0x00010x1002
@@ -2344,7 +2444,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return OnOff::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SampleMfgSpecificAttribute0x00010x1040::Id; }
};
} // namespace SampleMfgSpecificAttribute0x00010x1040
@@ -2354,7 +2454,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return OnOff::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::GlobalSceneControl::Id; }
};
} // namespace GlobalSceneControl
@@ -2364,7 +2464,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return OnOff::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OnTime::Id; }
};
} // namespace OnTime
@@ -2374,7 +2474,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return OnOff::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OffWaitTime::Id; }
};
} // namespace OffWaitTime
@@ -2384,10 +2484,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OnOff::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::StartUpOnOff::Id; }
};
} // namespace StartUpOnOff
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OnOff
namespace OnOffSwitchConfiguration {
@@ -2399,7 +2519,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OnOffSwitchConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOffSwitchConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SwitchType::Id; }
};
} // namespace SwitchType
@@ -2409,10 +2529,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OnOffSwitchConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOffSwitchConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SwitchActions::Id; }
};
} // namespace SwitchActions
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOffSwitchConfiguration::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OnOffSwitchConfiguration::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OnOffSwitchConfiguration
namespace LevelControl {
@@ -2716,7 +2856,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentLevel::Id; }
};
} // namespace CurrentLevel
@@ -2726,7 +2866,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RemainingTime::Id; }
};
} // namespace RemainingTime
@@ -2736,7 +2876,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinLevel::Id; }
};
} // namespace MinLevel
@@ -2746,7 +2886,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxLevel::Id; }
};
} // namespace MaxLevel
@@ -2756,7 +2896,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentFrequency::Id; }
};
} // namespace CurrentFrequency
@@ -2766,7 +2906,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinFrequency::Id; }
};
} // namespace MinFrequency
@@ -2776,7 +2916,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxFrequency::Id; }
};
} // namespace MaxFrequency
@@ -2786,7 +2926,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Options::Id; }
};
} // namespace Options
@@ -2796,7 +2936,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OnOffTransitionTime::Id; }
};
} // namespace OnOffTransitionTime
@@ -2806,7 +2946,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OnLevel::Id; }
};
} // namespace OnLevel
@@ -2816,7 +2956,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OnTransitionTime::Id; }
};
} // namespace OnTransitionTime
@@ -2826,7 +2966,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OffTransitionTime::Id; }
};
} // namespace OffTransitionTime
@@ -2836,7 +2976,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DefaultMoveRate::Id; }
};
} // namespace DefaultMoveRate
@@ -2846,10 +2986,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return LevelControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::StartUpCurrentLevel::Id; }
};
} // namespace StartUpCurrentLevel
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace LevelControl
namespace Alarms {
@@ -3035,10 +3195,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return Alarms::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Alarms::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AlarmCount::Id; }
};
} // namespace AlarmCount
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Alarms::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Alarms::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Alarms
namespace Time {
@@ -3050,7 +3230,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return Time::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Time::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Time::Id; }
};
} // namespace Time
@@ -3060,7 +3240,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Time::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Time::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TimeStatus::Id; }
};
} // namespace TimeStatus
@@ -3070,7 +3250,7 @@
using Type = int32_t;
using DecodableType = int32_t;
- static constexpr ClusterId GetClusterId() { return Time::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Time::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TimeZone::Id; }
};
} // namespace TimeZone
@@ -3080,7 +3260,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return Time::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Time::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DstStart::Id; }
};
} // namespace DstStart
@@ -3090,7 +3270,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return Time::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Time::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DstEnd::Id; }
};
} // namespace DstEnd
@@ -3100,7 +3280,7 @@
using Type = int32_t;
using DecodableType = int32_t;
- static constexpr ClusterId GetClusterId() { return Time::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Time::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DstShift::Id; }
};
} // namespace DstShift
@@ -3110,7 +3290,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return Time::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Time::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::StandardTime::Id; }
};
} // namespace StandardTime
@@ -3120,7 +3300,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return Time::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Time::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LocalTime::Id; }
};
} // namespace LocalTime
@@ -3130,7 +3310,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return Time::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Time::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LastSetTime::Id; }
};
} // namespace LastSetTime
@@ -3140,10 +3320,30 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return Time::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Time::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ValidUntilTime::Id; }
};
} // namespace ValidUntilTime
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Time::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Time::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Time
namespace BinaryInputBasic {
@@ -3155,7 +3355,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BinaryInputBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BinaryInputBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActiveText::Id; }
};
} // namespace ActiveText
@@ -3165,7 +3365,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BinaryInputBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BinaryInputBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Description::Id; }
};
} // namespace Description
@@ -3175,7 +3375,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BinaryInputBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BinaryInputBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::InactiveText::Id; }
};
} // namespace InactiveText
@@ -3185,7 +3385,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return BinaryInputBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BinaryInputBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OutOfService::Id; }
};
} // namespace OutOfService
@@ -3195,7 +3395,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BinaryInputBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BinaryInputBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Polarity::Id; }
};
} // namespace Polarity
@@ -3205,7 +3405,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return BinaryInputBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BinaryInputBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PresentValue::Id; }
};
} // namespace PresentValue
@@ -3215,7 +3415,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BinaryInputBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BinaryInputBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Reliability::Id; }
};
} // namespace Reliability
@@ -3225,7 +3425,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BinaryInputBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BinaryInputBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::StatusFlags::Id; }
};
} // namespace StatusFlags
@@ -3235,10 +3435,30 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return BinaryInputBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BinaryInputBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ApplicationType::Id; }
};
} // namespace ApplicationType
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BinaryInputBasic::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BinaryInputBasic::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BinaryInputBasic
namespace PowerProfile {
@@ -3998,7 +4218,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerProfile::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TotalProfileNum::Id; }
};
} // namespace TotalProfileNum
@@ -4008,7 +4228,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return PowerProfile::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MultipleScheduling::Id; }
};
} // namespace MultipleScheduling
@@ -4018,7 +4238,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerProfile::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EnergyFormatting::Id; }
};
} // namespace EnergyFormatting
@@ -4028,7 +4248,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return PowerProfile::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EnergyRemote::Id; }
};
} // namespace EnergyRemote
@@ -4038,10 +4258,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerProfile::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ScheduleMode::Id; }
};
} // namespace ScheduleMode
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace PowerProfile
namespace ApplianceControl {
@@ -4354,7 +4594,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ApplianceControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::StartTime::Id; }
};
} // namespace StartTime
@@ -4364,7 +4604,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ApplianceControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::FinishTime::Id; }
};
} // namespace FinishTime
@@ -4374,10 +4614,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ApplianceControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RemainingTime::Id; }
};
} // namespace RemainingTime
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ApplianceControl
namespace Descriptor {
@@ -4412,7 +4672,7 @@
using Type = DataModel::List<Structs::DeviceType::Type>;
using DecodableType = DataModel::DecodableList<Structs::DeviceType::DecodableType>;
- static constexpr ClusterId GetClusterId() { return Descriptor::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Descriptor::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DeviceList::Id; }
};
} // namespace DeviceList
@@ -4422,7 +4682,7 @@
using Type = DataModel::List<chip::ClusterId>;
using DecodableType = DataModel::DecodableList<chip::ClusterId>;
- static constexpr ClusterId GetClusterId() { return Descriptor::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Descriptor::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ServerList::Id; }
};
} // namespace ServerList
@@ -4432,7 +4692,7 @@
using Type = DataModel::List<chip::ClusterId>;
using DecodableType = DataModel::DecodableList<chip::ClusterId>;
- static constexpr ClusterId GetClusterId() { return Descriptor::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Descriptor::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ClientList::Id; }
};
} // namespace ClientList
@@ -4442,10 +4702,30 @@
using Type = DataModel::List<chip::EndpointId>;
using DecodableType = DataModel::DecodableList<chip::EndpointId>;
- static constexpr ClusterId GetClusterId() { return Descriptor::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Descriptor::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PartsList::Id; }
};
} // namespace PartsList
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Descriptor::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Descriptor::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Descriptor
namespace PollControl {
@@ -4595,7 +4875,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PollControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CheckInInterval::Id; }
};
} // namespace CheckInInterval
@@ -4605,7 +4885,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PollControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LongPollInterval::Id; }
};
} // namespace LongPollInterval
@@ -4615,7 +4895,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PollControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ShortPollInterval::Id; }
};
} // namespace ShortPollInterval
@@ -4625,7 +4905,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PollControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::FastPollTimeout::Id; }
};
} // namespace FastPollTimeout
@@ -4635,7 +4915,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PollControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CheckInIntervalMin::Id; }
};
} // namespace CheckInIntervalMin
@@ -4645,7 +4925,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PollControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LongPollIntervalMin::Id; }
};
} // namespace LongPollIntervalMin
@@ -4655,10 +4935,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PollControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::FastPollTimeoutMax::Id; }
};
} // namespace FastPollTimeoutMax
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace PollControl
namespace Basic {
@@ -4769,7 +5069,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::InteractionModelVersion::Id; }
};
} // namespace InteractionModelVersion
@@ -4779,7 +5079,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::VendorName::Id; }
};
} // namespace VendorName
@@ -4789,7 +5089,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::VendorID::Id; }
};
} // namespace VendorID
@@ -4799,7 +5099,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ProductName::Id; }
};
} // namespace ProductName
@@ -4809,7 +5109,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ProductID::Id; }
};
} // namespace ProductID
@@ -4819,7 +5119,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::UserLabel::Id; }
};
} // namespace UserLabel
@@ -4829,7 +5129,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Location::Id; }
};
} // namespace Location
@@ -4839,7 +5139,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::HardwareVersion::Id; }
};
} // namespace HardwareVersion
@@ -4849,7 +5149,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::HardwareVersionString::Id; }
};
} // namespace HardwareVersionString
@@ -4859,7 +5159,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SoftwareVersion::Id; }
};
} // namespace SoftwareVersion
@@ -4869,7 +5169,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SoftwareVersionString::Id; }
};
} // namespace SoftwareVersionString
@@ -4879,7 +5179,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ManufacturingDate::Id; }
};
} // namespace ManufacturingDate
@@ -4889,7 +5189,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PartNumber::Id; }
};
} // namespace PartNumber
@@ -4899,7 +5199,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ProductURL::Id; }
};
} // namespace ProductURL
@@ -4909,7 +5209,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ProductLabel::Id; }
};
} // namespace ProductLabel
@@ -4919,7 +5219,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SerialNumber::Id; }
};
} // namespace SerialNumber
@@ -4929,7 +5229,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LocalConfigDisabled::Id; }
};
} // namespace LocalConfigDisabled
@@ -4939,10 +5239,30 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return Basic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Reachable::Id; }
};
} // namespace Reachable
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Basic
namespace OtaSoftwareUpdateProvider {
@@ -5181,6 +5501,28 @@
}; // namespace ApplyUpdateRequestResponse
} // namespace Commands
+namespace Attributes {
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateProvider::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateProvider::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
+} // namespace Attributes
} // namespace OtaSoftwareUpdateProvider
namespace OtaSoftwareUpdateRequestor {
// Need to convert consumers to using the new enum classes, so we
@@ -5244,7 +5586,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return OtaSoftwareUpdateRequestor::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateRequestor::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DefaultOtaProvider::Id; }
};
} // namespace DefaultOtaProvider
@@ -5254,10 +5596,30 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return OtaSoftwareUpdateRequestor::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateRequestor::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::UpdatePossible::Id; }
};
} // namespace UpdatePossible
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateRequestor::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OtaSoftwareUpdateRequestor::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OtaSoftwareUpdateRequestor
namespace PowerSource {
@@ -5269,7 +5631,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Status::Id; }
};
} // namespace Status
@@ -5279,7 +5641,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Order::Id; }
};
} // namespace Order
@@ -5289,7 +5651,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Description::Id; }
};
} // namespace Description
@@ -5299,7 +5661,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::WiredAssessedInputVoltage::Id; }
};
} // namespace WiredAssessedInputVoltage
@@ -5309,7 +5671,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::WiredAssessedInputFrequency::Id; }
};
} // namespace WiredAssessedInputFrequency
@@ -5319,7 +5681,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::WiredCurrentType::Id; }
};
} // namespace WiredCurrentType
@@ -5329,7 +5691,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::WiredAssessedCurrent::Id; }
};
} // namespace WiredAssessedCurrent
@@ -5339,7 +5701,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::WiredNominalVoltage::Id; }
};
} // namespace WiredNominalVoltage
@@ -5349,7 +5711,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::WiredMaximumCurrent::Id; }
};
} // namespace WiredMaximumCurrent
@@ -5359,7 +5721,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::WiredPresent::Id; }
};
} // namespace WiredPresent
@@ -5369,7 +5731,7 @@
using Type = DataModel::List<uint8_t>;
using DecodableType = DataModel::DecodableList<uint8_t>;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActiveWiredFaults::Id; }
};
} // namespace ActiveWiredFaults
@@ -5379,7 +5741,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryVoltage::Id; }
};
} // namespace BatteryVoltage
@@ -5389,7 +5751,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryPercentRemaining::Id; }
};
} // namespace BatteryPercentRemaining
@@ -5399,7 +5761,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryTimeRemaining::Id; }
};
} // namespace BatteryTimeRemaining
@@ -5409,7 +5771,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryChargeLevel::Id; }
};
} // namespace BatteryChargeLevel
@@ -5419,7 +5781,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryReplacementNeeded::Id; }
};
} // namespace BatteryReplacementNeeded
@@ -5429,7 +5791,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryReplaceability::Id; }
};
} // namespace BatteryReplaceability
@@ -5439,7 +5801,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryPresent::Id; }
};
} // namespace BatteryPresent
@@ -5449,7 +5811,7 @@
using Type = DataModel::List<uint8_t>;
using DecodableType = DataModel::DecodableList<uint8_t>;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActiveBatteryFaults::Id; }
};
} // namespace ActiveBatteryFaults
@@ -5459,7 +5821,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryReplacementDescription::Id; }
};
} // namespace BatteryReplacementDescription
@@ -5469,7 +5831,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryCommonDesignation::Id; }
};
} // namespace BatteryCommonDesignation
@@ -5479,7 +5841,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryANSIDesignation::Id; }
};
} // namespace BatteryANSIDesignation
@@ -5489,7 +5851,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryIECDesignation::Id; }
};
} // namespace BatteryIECDesignation
@@ -5499,7 +5861,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryApprovedChemistry::Id; }
};
} // namespace BatteryApprovedChemistry
@@ -5509,7 +5871,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryCapacity::Id; }
};
} // namespace BatteryCapacity
@@ -5519,7 +5881,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryQuantity::Id; }
};
} // namespace BatteryQuantity
@@ -5529,7 +5891,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryChargeState::Id; }
};
} // namespace BatteryChargeState
@@ -5539,7 +5901,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryTimeToFullCharge::Id; }
};
} // namespace BatteryTimeToFullCharge
@@ -5549,7 +5911,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryFunctionalWhileCharging::Id; }
};
} // namespace BatteryFunctionalWhileCharging
@@ -5559,7 +5921,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BatteryChargingCurrent::Id; }
};
} // namespace BatteryChargingCurrent
@@ -5569,10 +5931,30 @@
using Type = DataModel::List<uint8_t>;
using DecodableType = DataModel::DecodableList<uint8_t>;
- static constexpr ClusterId GetClusterId() { return PowerSource::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActiveBatteryChargeFaults::Id; }
};
} // namespace ActiveBatteryChargeFaults
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::PowerSource::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace PowerSource
namespace GeneralCommissioning {
@@ -5822,7 +6204,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return GeneralCommissioning::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Breadcrumb::Id; }
};
} // namespace Breadcrumb
@@ -5832,7 +6214,7 @@
using Type = DataModel::List<Structs::BasicCommissioningInfoType::Type>;
using DecodableType = DataModel::DecodableList<Structs::BasicCommissioningInfoType::DecodableType>;
- static constexpr ClusterId GetClusterId() { return GeneralCommissioning::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BasicCommissioningInfoList::Id; }
};
} // namespace BasicCommissioningInfoList
@@ -5842,7 +6224,7 @@
using Type = DataModel::List<RegulatoryLocationType>;
using DecodableType = DataModel::DecodableList<RegulatoryLocationType>;
- static constexpr ClusterId GetClusterId() { return GeneralCommissioning::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RegulatoryConfigList::Id; }
};
} // namespace RegulatoryConfigList
@@ -5852,10 +6234,30 @@
using Type = DataModel::List<RegulatoryLocationType>;
using DecodableType = DataModel::DecodableList<RegulatoryLocationType>;
- static constexpr ClusterId GetClusterId() { return GeneralCommissioning::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LocationCapabilityList::Id; }
};
} // namespace LocationCapabilityList
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace GeneralCommissioning
namespace NetworkCommissioning {
@@ -6500,6 +6902,28 @@
}; // namespace GetLastNetworkCommissioningResult
} // namespace Commands
+namespace Attributes {
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::NetworkCommissioning::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
+} // namespace Attributes
} // namespace NetworkCommissioning
namespace DiagnosticLogs {
// Need to convert consumers to using the new enum classes, so we
@@ -6617,6 +7041,28 @@
}; // namespace RetrieveLogsResponse
} // namespace Commands
+namespace Attributes {
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::DiagnosticLogs::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::DiagnosticLogs::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
+} // namespace Attributes
} // namespace DiagnosticLogs
namespace GeneralDiagnostics {
// Need to convert consumers to using the new enum classes, so we
@@ -6742,7 +7188,7 @@
using Type = DataModel::List<Structs::NetworkInterfaceType::Type>;
using DecodableType = DataModel::DecodableList<Structs::NetworkInterfaceType::DecodableType>;
- static constexpr ClusterId GetClusterId() { return GeneralDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NetworkInterfaces::Id; }
};
} // namespace NetworkInterfaces
@@ -6752,7 +7198,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return GeneralDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RebootCount::Id; }
};
} // namespace RebootCount
@@ -6762,7 +7208,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return GeneralDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::UpTime::Id; }
};
} // namespace UpTime
@@ -6772,7 +7218,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return GeneralDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TotalOperationalHours::Id; }
};
} // namespace TotalOperationalHours
@@ -6782,7 +7228,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return GeneralDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BootReasons::Id; }
};
} // namespace BootReasons
@@ -6792,7 +7238,7 @@
using Type = DataModel::List<uint8_t>;
using DecodableType = DataModel::DecodableList<uint8_t>;
- static constexpr ClusterId GetClusterId() { return GeneralDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActiveHardwareFaults::Id; }
};
} // namespace ActiveHardwareFaults
@@ -6802,7 +7248,7 @@
using Type = DataModel::List<uint8_t>;
using DecodableType = DataModel::DecodableList<uint8_t>;
- static constexpr ClusterId GetClusterId() { return GeneralDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActiveRadioFaults::Id; }
};
} // namespace ActiveRadioFaults
@@ -6812,10 +7258,30 @@
using Type = DataModel::List<uint8_t>;
using DecodableType = DataModel::DecodableList<uint8_t>;
- static constexpr ClusterId GetClusterId() { return GeneralDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActiveNetworkFaults::Id; }
};
} // namespace ActiveNetworkFaults
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace GeneralDiagnostics
namespace SoftwareDiagnostics {
@@ -6883,7 +7349,7 @@
using Type = DataModel::List<Structs::ThreadMetrics::Type>;
using DecodableType = DataModel::DecodableList<Structs::ThreadMetrics::DecodableType>;
- static constexpr ClusterId GetClusterId() { return SoftwareDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SoftwareDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ThreadMetrics::Id; }
};
} // namespace ThreadMetrics
@@ -6893,7 +7359,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return SoftwareDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SoftwareDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentHeapFree::Id; }
};
} // namespace CurrentHeapFree
@@ -6903,7 +7369,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return SoftwareDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SoftwareDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentHeapUsed::Id; }
};
} // namespace CurrentHeapUsed
@@ -6913,10 +7379,30 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return SoftwareDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SoftwareDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentHeapHighWatermark::Id; }
};
} // namespace CurrentHeapHighWatermark
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::SoftwareDiagnostics::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::SoftwareDiagnostics::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace SoftwareDiagnostics
namespace ThreadNetworkDiagnostics {
@@ -7129,7 +7615,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Channel::Id; }
};
} // namespace Channel
@@ -7139,7 +7625,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RoutingRole::Id; }
};
} // namespace RoutingRole
@@ -7149,7 +7635,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NetworkName::Id; }
};
} // namespace NetworkName
@@ -7159,7 +7645,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PanId::Id; }
};
} // namespace PanId
@@ -7169,7 +7655,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ExtendedPanId::Id; }
};
} // namespace ExtendedPanId
@@ -7179,7 +7665,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeshLocalPrefix::Id; }
};
} // namespace MeshLocalPrefix
@@ -7189,7 +7675,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OverrunCount::Id; }
};
} // namespace OverrunCount
@@ -7199,7 +7685,7 @@
using Type = DataModel::List<Structs::NeighborTable::Type>;
using DecodableType = DataModel::DecodableList<Structs::NeighborTable::DecodableType>;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NeighborTableList::Id; }
};
} // namespace NeighborTableList
@@ -7209,7 +7695,7 @@
using Type = DataModel::List<Structs::RouteTable::Type>;
using DecodableType = DataModel::DecodableList<Structs::RouteTable::DecodableType>;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RouteTableList::Id; }
};
} // namespace RouteTableList
@@ -7219,7 +7705,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PartitionId::Id; }
};
} // namespace PartitionId
@@ -7229,7 +7715,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Weighting::Id; }
};
} // namespace Weighting
@@ -7239,7 +7725,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DataVersion::Id; }
};
} // namespace DataVersion
@@ -7249,7 +7735,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::StableDataVersion::Id; }
};
} // namespace StableDataVersion
@@ -7259,7 +7745,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LeaderRouterId::Id; }
};
} // namespace LeaderRouterId
@@ -7269,7 +7755,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DetachedRoleCount::Id; }
};
} // namespace DetachedRoleCount
@@ -7279,7 +7765,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ChildRoleCount::Id; }
};
} // namespace ChildRoleCount
@@ -7289,7 +7775,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RouterRoleCount::Id; }
};
} // namespace RouterRoleCount
@@ -7299,7 +7785,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LeaderRoleCount::Id; }
};
} // namespace LeaderRoleCount
@@ -7309,7 +7795,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AttachAttemptCount::Id; }
};
} // namespace AttachAttemptCount
@@ -7319,7 +7805,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PartitionIdChangeCount::Id; }
};
} // namespace PartitionIdChangeCount
@@ -7329,7 +7815,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BetterPartitionAttachAttemptCount::Id; }
};
} // namespace BetterPartitionAttachAttemptCount
@@ -7339,7 +7825,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ParentChangeCount::Id; }
};
} // namespace ParentChangeCount
@@ -7349,7 +7835,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxTotalCount::Id; }
};
} // namespace TxTotalCount
@@ -7359,7 +7845,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxUnicastCount::Id; }
};
} // namespace TxUnicastCount
@@ -7369,7 +7855,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxBroadcastCount::Id; }
};
} // namespace TxBroadcastCount
@@ -7379,7 +7865,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxAckRequestedCount::Id; }
};
} // namespace TxAckRequestedCount
@@ -7389,7 +7875,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxAckedCount::Id; }
};
} // namespace TxAckedCount
@@ -7399,7 +7885,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxNoAckRequestedCount::Id; }
};
} // namespace TxNoAckRequestedCount
@@ -7409,7 +7895,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxDataCount::Id; }
};
} // namespace TxDataCount
@@ -7419,7 +7905,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxDataPollCount::Id; }
};
} // namespace TxDataPollCount
@@ -7429,7 +7915,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxBeaconCount::Id; }
};
} // namespace TxBeaconCount
@@ -7439,7 +7925,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxBeaconRequestCount::Id; }
};
} // namespace TxBeaconRequestCount
@@ -7449,7 +7935,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxOtherCount::Id; }
};
} // namespace TxOtherCount
@@ -7459,7 +7945,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxRetryCount::Id; }
};
} // namespace TxRetryCount
@@ -7469,7 +7955,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxDirectMaxRetryExpiryCount::Id; }
};
} // namespace TxDirectMaxRetryExpiryCount
@@ -7479,7 +7965,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxIndirectMaxRetryExpiryCount::Id; }
};
} // namespace TxIndirectMaxRetryExpiryCount
@@ -7489,7 +7975,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxErrCcaCount::Id; }
};
} // namespace TxErrCcaCount
@@ -7499,7 +7985,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxErrAbortCount::Id; }
};
} // namespace TxErrAbortCount
@@ -7509,7 +7995,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxErrBusyChannelCount::Id; }
};
} // namespace TxErrBusyChannelCount
@@ -7519,7 +8005,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxTotalCount::Id; }
};
} // namespace RxTotalCount
@@ -7529,7 +8015,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxUnicastCount::Id; }
};
} // namespace RxUnicastCount
@@ -7539,7 +8025,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxBroadcastCount::Id; }
};
} // namespace RxBroadcastCount
@@ -7549,7 +8035,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxDataCount::Id; }
};
} // namespace RxDataCount
@@ -7559,7 +8045,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxDataPollCount::Id; }
};
} // namespace RxDataPollCount
@@ -7569,7 +8055,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxBeaconCount::Id; }
};
} // namespace RxBeaconCount
@@ -7579,7 +8065,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxBeaconRequestCount::Id; }
};
} // namespace RxBeaconRequestCount
@@ -7589,7 +8075,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxOtherCount::Id; }
};
} // namespace RxOtherCount
@@ -7599,7 +8085,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxAddressFilteredCount::Id; }
};
} // namespace RxAddressFilteredCount
@@ -7609,7 +8095,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxDestAddrFilteredCount::Id; }
};
} // namespace RxDestAddrFilteredCount
@@ -7619,7 +8105,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxDuplicatedCount::Id; }
};
} // namespace RxDuplicatedCount
@@ -7629,7 +8115,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxErrNoFrameCount::Id; }
};
} // namespace RxErrNoFrameCount
@@ -7639,7 +8125,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxErrUnknownNeighborCount::Id; }
};
} // namespace RxErrUnknownNeighborCount
@@ -7649,7 +8135,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxErrInvalidSrcAddrCount::Id; }
};
} // namespace RxErrInvalidSrcAddrCount
@@ -7659,7 +8145,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxErrSecCount::Id; }
};
} // namespace RxErrSecCount
@@ -7669,7 +8155,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxErrFcsCount::Id; }
};
} // namespace RxErrFcsCount
@@ -7679,7 +8165,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RxErrOtherCount::Id; }
};
} // namespace RxErrOtherCount
@@ -7689,7 +8175,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActiveTimestamp::Id; }
};
} // namespace ActiveTimestamp
@@ -7699,7 +8185,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PendingTimestamp::Id; }
};
} // namespace PendingTimestamp
@@ -7709,7 +8195,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Delay::Id; }
};
} // namespace Delay
@@ -7719,7 +8205,7 @@
using Type = DataModel::List<Structs::SecurityPolicy::Type>;
using DecodableType = DataModel::DecodableList<Structs::SecurityPolicy::DecodableType>;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SecurityPolicy::Id; }
};
} // namespace SecurityPolicy
@@ -7729,7 +8215,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ChannelMask::Id; }
};
} // namespace ChannelMask
@@ -7739,7 +8225,7 @@
using Type = DataModel::List<Structs::OperationalDatasetComponents::Type>;
using DecodableType = DataModel::DecodableList<Structs::OperationalDatasetComponents::DecodableType>;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OperationalDatasetComponents::Id; }
};
} // namespace OperationalDatasetComponents
@@ -7749,10 +8235,30 @@
using Type = DataModel::List<NetworkFault>;
using DecodableType = DataModel::DecodableList<NetworkFault>;
- static constexpr ClusterId GetClusterId() { return ThreadNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActiveNetworkFaultsList::Id; }
};
} // namespace ActiveNetworkFaultsList
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ThreadNetworkDiagnostics
namespace WiFiNetworkDiagnostics {
@@ -7823,7 +8329,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Bssid::Id; }
};
} // namespace Bssid
@@ -7833,7 +8339,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SecurityType::Id; }
};
} // namespace SecurityType
@@ -7843,7 +8349,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::WiFiVersion::Id; }
};
} // namespace WiFiVersion
@@ -7853,7 +8359,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ChannelNumber::Id; }
};
} // namespace ChannelNumber
@@ -7863,7 +8369,7 @@
using Type = int8_t;
using DecodableType = int8_t;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Rssi::Id; }
};
} // namespace Rssi
@@ -7873,7 +8379,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BeaconLostCount::Id; }
};
} // namespace BeaconLostCount
@@ -7883,7 +8389,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BeaconRxCount::Id; }
};
} // namespace BeaconRxCount
@@ -7893,7 +8399,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PacketMulticastRxCount::Id; }
};
} // namespace PacketMulticastRxCount
@@ -7903,7 +8409,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PacketMulticastTxCount::Id; }
};
} // namespace PacketMulticastTxCount
@@ -7913,7 +8419,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PacketUnicastRxCount::Id; }
};
} // namespace PacketUnicastRxCount
@@ -7923,7 +8429,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PacketUnicastTxCount::Id; }
};
} // namespace PacketUnicastTxCount
@@ -7933,7 +8439,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentMaxRate::Id; }
};
} // namespace CurrentMaxRate
@@ -7943,10 +8449,30 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return WiFiNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OverrunCount::Id; }
};
} // namespace OverrunCount
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace WiFiNetworkDiagnostics
namespace EthernetNetworkDiagnostics {
@@ -8005,7 +8531,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return EthernetNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthernetNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PHYRate::Id; }
};
} // namespace PHYRate
@@ -8015,7 +8541,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return EthernetNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthernetNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::FullDuplex::Id; }
};
} // namespace FullDuplex
@@ -8025,7 +8551,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return EthernetNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthernetNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PacketRxCount::Id; }
};
} // namespace PacketRxCount
@@ -8035,7 +8561,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return EthernetNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthernetNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PacketTxCount::Id; }
};
} // namespace PacketTxCount
@@ -8045,7 +8571,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return EthernetNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthernetNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TxErrCount::Id; }
};
} // namespace TxErrCount
@@ -8055,7 +8581,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return EthernetNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthernetNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CollisionCount::Id; }
};
} // namespace CollisionCount
@@ -8065,7 +8591,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return EthernetNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthernetNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OverrunCount::Id; }
};
} // namespace OverrunCount
@@ -8075,7 +8601,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return EthernetNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthernetNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CarrierDetect::Id; }
};
} // namespace CarrierDetect
@@ -8085,10 +8611,30 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return EthernetNetworkDiagnostics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthernetNetworkDiagnostics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TimeSinceReset::Id; }
};
} // namespace TimeSinceReset
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::EthernetNetworkDiagnostics::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::EthernetNetworkDiagnostics::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace EthernetNetworkDiagnostics
namespace BridgedDeviceBasic {
@@ -8199,7 +8745,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::VendorName::Id; }
};
} // namespace VendorName
@@ -8209,7 +8755,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::VendorID::Id; }
};
} // namespace VendorID
@@ -8219,7 +8765,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ProductName::Id; }
};
} // namespace ProductName
@@ -8229,7 +8775,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::UserLabel::Id; }
};
} // namespace UserLabel
@@ -8239,7 +8785,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::HardwareVersion::Id; }
};
} // namespace HardwareVersion
@@ -8249,7 +8795,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::HardwareVersionString::Id; }
};
} // namespace HardwareVersionString
@@ -8259,7 +8805,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SoftwareVersion::Id; }
};
} // namespace SoftwareVersion
@@ -8269,7 +8815,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SoftwareVersionString::Id; }
};
} // namespace SoftwareVersionString
@@ -8279,7 +8825,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ManufacturingDate::Id; }
};
} // namespace ManufacturingDate
@@ -8289,7 +8835,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PartNumber::Id; }
};
} // namespace PartNumber
@@ -8299,7 +8845,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ProductURL::Id; }
};
} // namespace ProductURL
@@ -8309,7 +8855,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ProductLabel::Id; }
};
} // namespace ProductLabel
@@ -8319,7 +8865,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SerialNumber::Id; }
};
} // namespace SerialNumber
@@ -8329,10 +8875,30 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return BridgedDeviceBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Reachable::Id; }
};
} // namespace Reachable
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BridgedDeviceBasic
namespace Switch {
@@ -8344,7 +8910,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Switch::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfPositions::Id; }
};
} // namespace NumberOfPositions
@@ -8354,7 +8920,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Switch::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentPosition::Id; }
};
} // namespace CurrentPosition
@@ -8364,10 +8930,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Switch::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MultiPressMax::Id; }
};
} // namespace MultiPressMax
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Switch::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Switch
namespace AdministratorCommissioning {
@@ -8483,6 +9069,28 @@
}; // namespace RevokeCommissioning
} // namespace Commands
+namespace Attributes {
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::AdministratorCommissioning::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::AdministratorCommissioning::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
+} // namespace Attributes
} // namespace AdministratorCommissioning
namespace OperationalCredentials {
// Need to convert consumers to using the new enum classes, so we
@@ -8958,7 +9566,7 @@
using Type = DataModel::List<Structs::FabricDescriptor::Type>;
using DecodableType = DataModel::DecodableList<Structs::FabricDescriptor::DecodableType>;
- static constexpr ClusterId GetClusterId() { return OperationalCredentials::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OperationalCredentials::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::FabricsList::Id; }
};
} // namespace FabricsList
@@ -8968,7 +9576,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OperationalCredentials::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OperationalCredentials::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SupportedFabrics::Id; }
};
} // namespace SupportedFabrics
@@ -8978,7 +9586,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OperationalCredentials::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OperationalCredentials::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CommissionedFabrics::Id; }
};
} // namespace CommissionedFabrics
@@ -8988,10 +9596,30 @@
using Type = DataModel::List<chip::ByteSpan>;
using DecodableType = DataModel::DecodableList<chip::ByteSpan>;
- static constexpr ClusterId GetClusterId() { return OperationalCredentials::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OperationalCredentials::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TrustedRootCertificates::Id; }
};
} // namespace TrustedRootCertificates
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OperationalCredentials::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OperationalCredentials::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OperationalCredentials
namespace FixedLabel {
@@ -9026,10 +9654,30 @@
using Type = DataModel::List<Structs::LabelStruct::Type>;
using DecodableType = DataModel::DecodableList<Structs::LabelStruct::DecodableType>;
- static constexpr ClusterId GetClusterId() { return FixedLabel::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FixedLabel::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LabelList::Id; }
};
} // namespace LabelList
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::FixedLabel::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::FixedLabel::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace FixedLabel
namespace BooleanState {
@@ -9041,10 +9689,30 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return BooleanState::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BooleanState::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::StateValue::Id; }
};
} // namespace StateValue
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BooleanState::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BooleanState::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
namespace Events {
namespace StateChange {
@@ -9091,7 +9759,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ShadeConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ShadeConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PhysicalClosedLimit::Id; }
};
} // namespace PhysicalClosedLimit
@@ -9101,7 +9769,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ShadeConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ShadeConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MotorStepSize::Id; }
};
} // namespace MotorStepSize
@@ -9111,7 +9779,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ShadeConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ShadeConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Status::Id; }
};
} // namespace Status
@@ -9121,7 +9789,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ShadeConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ShadeConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ClosedLimit::Id; }
};
} // namespace ClosedLimit
@@ -9131,10 +9799,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ShadeConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ShadeConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Mode::Id; }
};
} // namespace Mode
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ShadeConfiguration::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ShadeConfiguration::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ShadeConfiguration
namespace DoorLock {
@@ -10949,7 +11637,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LockState::Id; }
};
} // namespace LockState
@@ -10959,7 +11647,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LockType::Id; }
};
} // namespace LockType
@@ -10969,7 +11657,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActuatorEnabled::Id; }
};
} // namespace ActuatorEnabled
@@ -10979,7 +11667,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DoorState::Id; }
};
} // namespace DoorState
@@ -10989,7 +11677,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DoorOpenEvents::Id; }
};
} // namespace DoorOpenEvents
@@ -10999,7 +11687,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DoorClosedEvents::Id; }
};
} // namespace DoorClosedEvents
@@ -11009,7 +11697,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OpenPeriod::Id; }
};
} // namespace OpenPeriod
@@ -11019,7 +11707,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumLockRecordsSupported::Id; }
};
} // namespace NumLockRecordsSupported
@@ -11029,7 +11717,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumTotalUsersSupported::Id; }
};
} // namespace NumTotalUsersSupported
@@ -11039,7 +11727,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumPinUsersSupported::Id; }
};
} // namespace NumPinUsersSupported
@@ -11049,7 +11737,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumRfidUsersSupported::Id; }
};
} // namespace NumRfidUsersSupported
@@ -11059,7 +11747,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumWeekdaySchedulesSupportedPerUser::Id; }
};
} // namespace NumWeekdaySchedulesSupportedPerUser
@@ -11069,7 +11757,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumYeardaySchedulesSupportedPerUser::Id; }
};
} // namespace NumYeardaySchedulesSupportedPerUser
@@ -11079,7 +11767,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumHolidaySchedulesSupportedPerUser::Id; }
};
} // namespace NumHolidaySchedulesSupportedPerUser
@@ -11089,7 +11777,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxPinLength::Id; }
};
} // namespace MaxPinLength
@@ -11099,7 +11787,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinPinLength::Id; }
};
} // namespace MinPinLength
@@ -11109,7 +11797,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxRfidCodeLength::Id; }
};
} // namespace MaxRfidCodeLength
@@ -11119,7 +11807,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinRfidCodeLength::Id; }
};
} // namespace MinRfidCodeLength
@@ -11129,7 +11817,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EnableLogging::Id; }
};
} // namespace EnableLogging
@@ -11139,7 +11827,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Language::Id; }
};
} // namespace Language
@@ -11149,7 +11837,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LedSettings::Id; }
};
} // namespace LedSettings
@@ -11159,7 +11847,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AutoRelockTime::Id; }
};
} // namespace AutoRelockTime
@@ -11169,7 +11857,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SoundVolume::Id; }
};
} // namespace SoundVolume
@@ -11179,7 +11867,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OperatingMode::Id; }
};
} // namespace OperatingMode
@@ -11189,7 +11877,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SupportedOperatingModes::Id; }
};
} // namespace SupportedOperatingModes
@@ -11199,7 +11887,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DefaultConfigurationRegister::Id; }
};
} // namespace DefaultConfigurationRegister
@@ -11209,7 +11897,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EnableLocalProgramming::Id; }
};
} // namespace EnableLocalProgramming
@@ -11219,7 +11907,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EnableOneTouchLocking::Id; }
};
} // namespace EnableOneTouchLocking
@@ -11229,7 +11917,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EnableInsideStatusLed::Id; }
};
} // namespace EnableInsideStatusLed
@@ -11239,7 +11927,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EnablePrivacyModeButton::Id; }
};
} // namespace EnablePrivacyModeButton
@@ -11249,7 +11937,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::WrongCodeEntryLimit::Id; }
};
} // namespace WrongCodeEntryLimit
@@ -11259,7 +11947,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::UserCodeTemporaryDisableTime::Id; }
};
} // namespace UserCodeTemporaryDisableTime
@@ -11269,7 +11957,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SendPinOverTheAir::Id; }
};
} // namespace SendPinOverTheAir
@@ -11279,7 +11967,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RequirePinForRfOperation::Id; }
};
} // namespace RequirePinForRfOperation
@@ -11289,7 +11977,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ZigbeeSecurityLevel::Id; }
};
} // namespace ZigbeeSecurityLevel
@@ -11299,7 +11987,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AlarmMask::Id; }
};
} // namespace AlarmMask
@@ -11309,7 +11997,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::KeypadOperationEventMask::Id; }
};
} // namespace KeypadOperationEventMask
@@ -11319,7 +12007,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RfOperationEventMask::Id; }
};
} // namespace RfOperationEventMask
@@ -11329,7 +12017,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ManualOperationEventMask::Id; }
};
} // namespace ManualOperationEventMask
@@ -11339,7 +12027,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RfidOperationEventMask::Id; }
};
} // namespace RfidOperationEventMask
@@ -11349,7 +12037,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::KeypadProgrammingEventMask::Id; }
};
} // namespace KeypadProgrammingEventMask
@@ -11359,7 +12047,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RfProgrammingEventMask::Id; }
};
} // namespace RfProgrammingEventMask
@@ -11369,10 +12057,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return DoorLock::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RfidProgrammingEventMask::Id; }
};
} // namespace RfidProgrammingEventMask
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace DoorLock
namespace WindowCovering {
@@ -11679,7 +12387,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Type::Id; }
};
} // namespace Type
@@ -11689,7 +12397,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PhysicalClosedLimitLift::Id; }
};
} // namespace PhysicalClosedLimitLift
@@ -11699,7 +12407,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PhysicalClosedLimitTilt::Id; }
};
} // namespace PhysicalClosedLimitTilt
@@ -11709,7 +12417,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentPositionLift::Id; }
};
} // namespace CurrentPositionLift
@@ -11719,7 +12427,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentPositionTilt::Id; }
};
} // namespace CurrentPositionTilt
@@ -11729,7 +12437,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfActuationsLift::Id; }
};
} // namespace NumberOfActuationsLift
@@ -11739,7 +12447,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfActuationsTilt::Id; }
};
} // namespace NumberOfActuationsTilt
@@ -11749,7 +12457,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ConfigStatus::Id; }
};
} // namespace ConfigStatus
@@ -11759,7 +12467,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentPositionLiftPercentage::Id; }
};
} // namespace CurrentPositionLiftPercentage
@@ -11769,7 +12477,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentPositionTiltPercentage::Id; }
};
} // namespace CurrentPositionTiltPercentage
@@ -11779,7 +12487,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OperationalStatus::Id; }
};
} // namespace OperationalStatus
@@ -11789,7 +12497,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TargetPositionLiftPercent100ths::Id; }
};
} // namespace TargetPositionLiftPercent100ths
@@ -11799,7 +12507,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TargetPositionTiltPercent100ths::Id; }
};
} // namespace TargetPositionTiltPercent100ths
@@ -11809,7 +12517,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EndProductType::Id; }
};
} // namespace EndProductType
@@ -11819,7 +12527,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentPositionLiftPercent100ths::Id; }
};
} // namespace CurrentPositionLiftPercent100ths
@@ -11829,7 +12537,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentPositionTiltPercent100ths::Id; }
};
} // namespace CurrentPositionTiltPercent100ths
@@ -11839,7 +12547,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::InstalledOpenLimitLift::Id; }
};
} // namespace InstalledOpenLimitLift
@@ -11849,7 +12557,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::InstalledClosedLimitLift::Id; }
};
} // namespace InstalledClosedLimitLift
@@ -11859,7 +12567,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::InstalledOpenLimitTilt::Id; }
};
} // namespace InstalledOpenLimitTilt
@@ -11869,7 +12577,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::InstalledClosedLimitTilt::Id; }
};
} // namespace InstalledClosedLimitTilt
@@ -11879,7 +12587,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::VelocityLift::Id; }
};
} // namespace VelocityLift
@@ -11889,7 +12597,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AccelerationTimeLift::Id; }
};
} // namespace AccelerationTimeLift
@@ -11899,7 +12607,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DecelerationTimeLift::Id; }
};
} // namespace DecelerationTimeLift
@@ -11909,7 +12617,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Mode::Id; }
};
} // namespace Mode
@@ -11919,7 +12627,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::IntermediateSetpointsLift::Id; }
};
} // namespace IntermediateSetpointsLift
@@ -11929,7 +12637,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::IntermediateSetpointsTilt::Id; }
};
} // namespace IntermediateSetpointsTilt
@@ -11939,10 +12647,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return WindowCovering::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SafetyStatus::Id; }
};
} // namespace SafetyStatus
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace WindowCovering
namespace BarrierControl {
@@ -12009,7 +12737,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BarrierControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BarrierMovingState::Id; }
};
} // namespace BarrierMovingState
@@ -12019,7 +12747,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return BarrierControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BarrierSafetyStatus::Id; }
};
} // namespace BarrierSafetyStatus
@@ -12029,7 +12757,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BarrierControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BarrierCapabilities::Id; }
};
} // namespace BarrierCapabilities
@@ -12039,7 +12767,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return BarrierControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BarrierOpenEvents::Id; }
};
} // namespace BarrierOpenEvents
@@ -12049,7 +12777,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return BarrierControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BarrierCloseEvents::Id; }
};
} // namespace BarrierCloseEvents
@@ -12059,7 +12787,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return BarrierControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BarrierCommandOpenEvents::Id; }
};
} // namespace BarrierCommandOpenEvents
@@ -12069,7 +12797,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return BarrierControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BarrierCommandCloseEvents::Id; }
};
} // namespace BarrierCommandCloseEvents
@@ -12079,7 +12807,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return BarrierControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BarrierOpenPeriod::Id; }
};
} // namespace BarrierOpenPeriod
@@ -12089,7 +12817,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return BarrierControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BarrierClosePeriod::Id; }
};
} // namespace BarrierClosePeriod
@@ -12099,10 +12827,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BarrierControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BarrierPosition::Id; }
};
} // namespace BarrierPosition
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BarrierControl
namespace PumpConfigurationAndControl {
@@ -12158,7 +12906,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxPressure::Id; }
};
} // namespace MaxPressure
@@ -12168,7 +12916,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxSpeed::Id; }
};
} // namespace MaxSpeed
@@ -12178,7 +12926,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxFlow::Id; }
};
} // namespace MaxFlow
@@ -12188,7 +12936,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinConstPressure::Id; }
};
} // namespace MinConstPressure
@@ -12198,7 +12946,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxConstPressure::Id; }
};
} // namespace MaxConstPressure
@@ -12208,7 +12956,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinCompPressure::Id; }
};
} // namespace MinCompPressure
@@ -12218,7 +12966,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxCompPressure::Id; }
};
} // namespace MaxCompPressure
@@ -12228,7 +12976,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinConstSpeed::Id; }
};
} // namespace MinConstSpeed
@@ -12238,7 +12986,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxConstSpeed::Id; }
};
} // namespace MaxConstSpeed
@@ -12248,7 +12996,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinConstFlow::Id; }
};
} // namespace MinConstFlow
@@ -12258,7 +13006,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxConstFlow::Id; }
};
} // namespace MaxConstFlow
@@ -12268,7 +13016,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinConstTemp::Id; }
};
} // namespace MinConstTemp
@@ -12278,7 +13026,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxConstTemp::Id; }
};
} // namespace MaxConstTemp
@@ -12288,7 +13036,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PumpStatus::Id; }
};
} // namespace PumpStatus
@@ -12298,7 +13046,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EffectiveOperationMode::Id; }
};
} // namespace EffectiveOperationMode
@@ -12308,7 +13056,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EffectiveControlMode::Id; }
};
} // namespace EffectiveControlMode
@@ -12318,7 +13066,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Capacity::Id; }
};
} // namespace Capacity
@@ -12328,7 +13076,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Speed::Id; }
};
} // namespace Speed
@@ -12338,7 +13086,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LifetimeRunningHours::Id; }
};
} // namespace LifetimeRunningHours
@@ -12348,7 +13096,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Power::Id; }
};
} // namespace Power
@@ -12358,7 +13106,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LifetimeEnergyConsumed::Id; }
};
} // namespace LifetimeEnergyConsumed
@@ -12368,7 +13116,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OperationMode::Id; }
};
} // namespace OperationMode
@@ -12378,7 +13126,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ControlMode::Id; }
};
} // namespace ControlMode
@@ -12388,10 +13136,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PumpConfigurationAndControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AlarmMask::Id; }
};
} // namespace AlarmMask
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::PumpConfigurationAndControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
namespace Events {
namespace SupplyVoltageLow {
@@ -13144,7 +13912,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LocalTemperature::Id; }
};
} // namespace LocalTemperature
@@ -13154,7 +13922,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OutdoorTemperature::Id; }
};
} // namespace OutdoorTemperature
@@ -13164,7 +13932,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Occupancy::Id; }
};
} // namespace Occupancy
@@ -13174,7 +13942,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AbsMinHeatSetpointLimit::Id; }
};
} // namespace AbsMinHeatSetpointLimit
@@ -13184,7 +13952,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AbsMaxHeatSetpointLimit::Id; }
};
} // namespace AbsMaxHeatSetpointLimit
@@ -13194,7 +13962,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AbsMinCoolSetpointLimit::Id; }
};
} // namespace AbsMinCoolSetpointLimit
@@ -13204,7 +13972,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AbsMaxCoolSetpointLimit::Id; }
};
} // namespace AbsMaxCoolSetpointLimit
@@ -13214,7 +13982,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PiCoolingDemand::Id; }
};
} // namespace PiCoolingDemand
@@ -13224,7 +13992,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PiHeatingDemand::Id; }
};
} // namespace PiHeatingDemand
@@ -13234,7 +14002,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::HvacSystemTypeConfiguration::Id; }
};
} // namespace HvacSystemTypeConfiguration
@@ -13244,7 +14012,7 @@
using Type = int8_t;
using DecodableType = int8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LocalTemperatureCalibration::Id; }
};
} // namespace LocalTemperatureCalibration
@@ -13254,7 +14022,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OccupiedCoolingSetpoint::Id; }
};
} // namespace OccupiedCoolingSetpoint
@@ -13264,7 +14032,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OccupiedHeatingSetpoint::Id; }
};
} // namespace OccupiedHeatingSetpoint
@@ -13274,7 +14042,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::UnoccupiedCoolingSetpoint::Id; }
};
} // namespace UnoccupiedCoolingSetpoint
@@ -13284,7 +14052,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::UnoccupiedHeatingSetpoint::Id; }
};
} // namespace UnoccupiedHeatingSetpoint
@@ -13294,7 +14062,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinHeatSetpointLimit::Id; }
};
} // namespace MinHeatSetpointLimit
@@ -13304,7 +14072,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxHeatSetpointLimit::Id; }
};
} // namespace MaxHeatSetpointLimit
@@ -13314,7 +14082,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinCoolSetpointLimit::Id; }
};
} // namespace MinCoolSetpointLimit
@@ -13324,7 +14092,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxCoolSetpointLimit::Id; }
};
} // namespace MaxCoolSetpointLimit
@@ -13334,7 +14102,7 @@
using Type = int8_t;
using DecodableType = int8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinSetpointDeadBand::Id; }
};
} // namespace MinSetpointDeadBand
@@ -13344,7 +14112,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RemoteSensing::Id; }
};
} // namespace RemoteSensing
@@ -13354,7 +14122,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ControlSequenceOfOperation::Id; }
};
} // namespace ControlSequenceOfOperation
@@ -13364,7 +14132,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SystemMode::Id; }
};
} // namespace SystemMode
@@ -13374,7 +14142,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AlarmMask::Id; }
};
} // namespace AlarmMask
@@ -13384,7 +14152,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ThermostatRunningMode::Id; }
};
} // namespace ThermostatRunningMode
@@ -13394,7 +14162,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::StartOfWeek::Id; }
};
} // namespace StartOfWeek
@@ -13404,7 +14172,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfWeeklyTransitions::Id; }
};
} // namespace NumberOfWeeklyTransitions
@@ -13414,7 +14182,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfDailyTransitions::Id; }
};
} // namespace NumberOfDailyTransitions
@@ -13424,7 +14192,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TemperatureSetpointHold::Id; }
};
} // namespace TemperatureSetpointHold
@@ -13434,7 +14202,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TemperatureSetpointHoldDuration::Id; }
};
} // namespace TemperatureSetpointHoldDuration
@@ -13444,7 +14212,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ThermostatProgrammingOperationMode::Id; }
};
} // namespace ThermostatProgrammingOperationMode
@@ -13454,7 +14222,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::HvacRelayState::Id; }
};
} // namespace HvacRelayState
@@ -13464,7 +14232,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SetpointChangeSource::Id; }
};
} // namespace SetpointChangeSource
@@ -13474,7 +14242,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SetpointChangeAmount::Id; }
};
} // namespace SetpointChangeAmount
@@ -13484,7 +14252,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SetpointChangeSourceTimestamp::Id; }
};
} // namespace SetpointChangeSourceTimestamp
@@ -13494,7 +14262,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcType::Id; }
};
} // namespace AcType
@@ -13504,7 +14272,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcCapacity::Id; }
};
} // namespace AcCapacity
@@ -13514,7 +14282,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcRefrigerantType::Id; }
};
} // namespace AcRefrigerantType
@@ -13524,7 +14292,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcCompressor::Id; }
};
} // namespace AcCompressor
@@ -13534,7 +14302,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcErrorCode::Id; }
};
} // namespace AcErrorCode
@@ -13544,7 +14312,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcLouverPosition::Id; }
};
} // namespace AcLouverPosition
@@ -13554,7 +14322,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcCoilTemperature::Id; }
};
} // namespace AcCoilTemperature
@@ -13564,10 +14332,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return Thermostat::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcCapacityFormat::Id; }
};
} // namespace AcCapacityFormat
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Thermostat
namespace FanControl {
@@ -13579,7 +14367,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return FanControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::FanMode::Id; }
};
} // namespace FanMode
@@ -13589,10 +14377,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return FanControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::FanModeSequence::Id; }
};
} // namespace FanModeSequence
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace FanControl
namespace DehumidificationControl {
@@ -13604,7 +14412,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DehumidificationControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DehumidificationControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RelativeHumidity::Id; }
};
} // namespace RelativeHumidity
@@ -13614,7 +14422,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DehumidificationControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DehumidificationControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DehumidificationCooling::Id; }
};
} // namespace DehumidificationCooling
@@ -13624,7 +14432,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DehumidificationControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DehumidificationControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RhDehumidificationSetpoint::Id; }
};
} // namespace RhDehumidificationSetpoint
@@ -13634,7 +14442,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DehumidificationControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DehumidificationControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RelativeHumidityMode::Id; }
};
} // namespace RelativeHumidityMode
@@ -13644,7 +14452,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DehumidificationControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DehumidificationControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DehumidificationLockout::Id; }
};
} // namespace DehumidificationLockout
@@ -13654,7 +14462,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DehumidificationControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DehumidificationControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DehumidificationHysteresis::Id; }
};
} // namespace DehumidificationHysteresis
@@ -13664,7 +14472,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DehumidificationControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DehumidificationControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DehumidificationMaxCool::Id; }
};
} // namespace DehumidificationMaxCool
@@ -13674,10 +14482,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return DehumidificationControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DehumidificationControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RelativeHumidityDisplay::Id; }
};
} // namespace RelativeHumidityDisplay
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::DehumidificationControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::DehumidificationControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace DehumidificationControl
namespace ThermostatUserInterfaceConfiguration {
@@ -13689,7 +14517,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ThermostatUserInterfaceConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThermostatUserInterfaceConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TemperatureDisplayMode::Id; }
};
} // namespace TemperatureDisplayMode
@@ -13699,7 +14527,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ThermostatUserInterfaceConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThermostatUserInterfaceConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::KeypadLockout::Id; }
};
} // namespace KeypadLockout
@@ -13709,10 +14537,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ThermostatUserInterfaceConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ThermostatUserInterfaceConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ScheduleProgrammingVisibility::Id; }
};
} // namespace ScheduleProgrammingVisibility
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ThermostatUserInterfaceConfiguration::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ThermostatUserInterfaceConfiguration::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ThermostatUserInterfaceConfiguration
namespace ColorControl {
@@ -14596,7 +15444,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentHue::Id; }
};
} // namespace CurrentHue
@@ -14606,7 +15454,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentSaturation::Id; }
};
} // namespace CurrentSaturation
@@ -14616,7 +15464,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RemainingTime::Id; }
};
} // namespace RemainingTime
@@ -14626,7 +15474,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentX::Id; }
};
} // namespace CurrentX
@@ -14636,7 +15484,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentY::Id; }
};
} // namespace CurrentY
@@ -14646,7 +15494,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DriftCompensation::Id; }
};
} // namespace DriftCompensation
@@ -14656,7 +15504,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CompensationText::Id; }
};
} // namespace CompensationText
@@ -14666,7 +15514,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorTemperature::Id; }
};
} // namespace ColorTemperature
@@ -14676,7 +15524,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorMode::Id; }
};
} // namespace ColorMode
@@ -14686,7 +15534,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorControlOptions::Id; }
};
} // namespace ColorControlOptions
@@ -14696,7 +15544,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfPrimaries::Id; }
};
} // namespace NumberOfPrimaries
@@ -14706,7 +15554,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary1X::Id; }
};
} // namespace Primary1X
@@ -14716,7 +15564,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary1Y::Id; }
};
} // namespace Primary1Y
@@ -14726,7 +15574,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary1Intensity::Id; }
};
} // namespace Primary1Intensity
@@ -14736,7 +15584,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary2X::Id; }
};
} // namespace Primary2X
@@ -14746,7 +15594,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary2Y::Id; }
};
} // namespace Primary2Y
@@ -14756,7 +15604,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary2Intensity::Id; }
};
} // namespace Primary2Intensity
@@ -14766,7 +15614,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary3X::Id; }
};
} // namespace Primary3X
@@ -14776,7 +15624,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary3Y::Id; }
};
} // namespace Primary3Y
@@ -14786,7 +15634,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary3Intensity::Id; }
};
} // namespace Primary3Intensity
@@ -14796,7 +15644,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary4X::Id; }
};
} // namespace Primary4X
@@ -14806,7 +15654,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary4Y::Id; }
};
} // namespace Primary4Y
@@ -14816,7 +15664,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary4Intensity::Id; }
};
} // namespace Primary4Intensity
@@ -14826,7 +15674,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary5X::Id; }
};
} // namespace Primary5X
@@ -14836,7 +15684,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary5Y::Id; }
};
} // namespace Primary5Y
@@ -14846,7 +15694,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary5Intensity::Id; }
};
} // namespace Primary5Intensity
@@ -14856,7 +15704,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary6X::Id; }
};
} // namespace Primary6X
@@ -14866,7 +15714,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary6Y::Id; }
};
} // namespace Primary6Y
@@ -14876,7 +15724,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Primary6Intensity::Id; }
};
} // namespace Primary6Intensity
@@ -14886,7 +15734,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::WhitePointX::Id; }
};
} // namespace WhitePointX
@@ -14896,7 +15744,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::WhitePointY::Id; }
};
} // namespace WhitePointY
@@ -14906,7 +15754,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorPointRX::Id; }
};
} // namespace ColorPointRX
@@ -14916,7 +15764,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorPointRY::Id; }
};
} // namespace ColorPointRY
@@ -14926,7 +15774,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorPointRIntensity::Id; }
};
} // namespace ColorPointRIntensity
@@ -14936,7 +15784,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorPointGX::Id; }
};
} // namespace ColorPointGX
@@ -14946,7 +15794,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorPointGY::Id; }
};
} // namespace ColorPointGY
@@ -14956,7 +15804,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorPointGIntensity::Id; }
};
} // namespace ColorPointGIntensity
@@ -14966,7 +15814,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorPointBX::Id; }
};
} // namespace ColorPointBX
@@ -14976,7 +15824,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorPointBY::Id; }
};
} // namespace ColorPointBY
@@ -14986,7 +15834,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorPointBIntensity::Id; }
};
} // namespace ColorPointBIntensity
@@ -14996,7 +15844,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EnhancedCurrentHue::Id; }
};
} // namespace EnhancedCurrentHue
@@ -15006,7 +15854,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EnhancedColorMode::Id; }
};
} // namespace EnhancedColorMode
@@ -15016,7 +15864,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorLoopActive::Id; }
};
} // namespace ColorLoopActive
@@ -15026,7 +15874,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorLoopDirection::Id; }
};
} // namespace ColorLoopDirection
@@ -15036,7 +15884,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorLoopTime::Id; }
};
} // namespace ColorLoopTime
@@ -15046,7 +15894,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorLoopStartEnhancedHue::Id; }
};
} // namespace ColorLoopStartEnhancedHue
@@ -15056,7 +15904,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorLoopStoredEnhancedHue::Id; }
};
} // namespace ColorLoopStoredEnhancedHue
@@ -15066,7 +15914,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorCapabilities::Id; }
};
} // namespace ColorCapabilities
@@ -15076,7 +15924,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorTempPhysicalMin::Id; }
};
} // namespace ColorTempPhysicalMin
@@ -15086,7 +15934,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ColorTempPhysicalMax::Id; }
};
} // namespace ColorTempPhysicalMax
@@ -15096,7 +15944,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CoupleColorTempToLevelMinMireds::Id; }
};
} // namespace CoupleColorTempToLevelMinMireds
@@ -15106,10 +15954,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ColorControl::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::StartUpColorTemperatureMireds::Id; }
};
} // namespace StartUpColorTemperatureMireds
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ColorControl::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ColorControl
namespace BallastConfiguration {
@@ -15121,7 +15989,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PhysicalMinLevel::Id; }
};
} // namespace PhysicalMinLevel
@@ -15131,7 +15999,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PhysicalMaxLevel::Id; }
};
} // namespace PhysicalMaxLevel
@@ -15141,7 +16009,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BallastStatus::Id; }
};
} // namespace BallastStatus
@@ -15151,7 +16019,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinLevel::Id; }
};
} // namespace MinLevel
@@ -15161,7 +16029,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxLevel::Id; }
};
} // namespace MaxLevel
@@ -15171,7 +16039,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PowerOnLevel::Id; }
};
} // namespace PowerOnLevel
@@ -15181,7 +16049,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PowerOnFadeTime::Id; }
};
} // namespace PowerOnFadeTime
@@ -15191,7 +16059,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::IntrinsicBallastFactor::Id; }
};
} // namespace IntrinsicBallastFactor
@@ -15201,7 +16069,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BallastFactorAdjustment::Id; }
};
} // namespace BallastFactorAdjustment
@@ -15211,7 +16079,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LampQuality::Id; }
};
} // namespace LampQuality
@@ -15221,7 +16089,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LampType::Id; }
};
} // namespace LampType
@@ -15231,7 +16099,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LampManufacturer::Id; }
};
} // namespace LampManufacturer
@@ -15241,7 +16109,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LampRatedHours::Id; }
};
} // namespace LampRatedHours
@@ -15251,7 +16119,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LampBurnHours::Id; }
};
} // namespace LampBurnHours
@@ -15261,7 +16129,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LampAlarmMode::Id; }
};
} // namespace LampAlarmMode
@@ -15271,10 +16139,30 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return BallastConfiguration::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LampBurnHoursTripPoint::Id; }
};
} // namespace LampBurnHoursTripPoint
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BallastConfiguration
namespace IlluminanceMeasurement {
@@ -15286,7 +16174,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return IlluminanceMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IlluminanceMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -15296,7 +16184,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return IlluminanceMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IlluminanceMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -15306,7 +16194,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return IlluminanceMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IlluminanceMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -15316,7 +16204,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return IlluminanceMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IlluminanceMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
@@ -15326,10 +16214,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return IlluminanceMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IlluminanceMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LightSensorType::Id; }
};
} // namespace LightSensorType
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::IlluminanceMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::IlluminanceMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace IlluminanceMeasurement
namespace IlluminanceLevelSensing {
@@ -15341,7 +16249,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return IlluminanceLevelSensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IlluminanceLevelSensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LevelStatus::Id; }
};
} // namespace LevelStatus
@@ -15351,7 +16259,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return IlluminanceLevelSensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IlluminanceLevelSensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LightSensorType::Id; }
};
} // namespace LightSensorType
@@ -15361,10 +16269,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return IlluminanceLevelSensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IlluminanceLevelSensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::IlluminanceLevelTarget::Id; }
};
} // namespace IlluminanceLevelTarget
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::IlluminanceLevelSensing::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::IlluminanceLevelSensing::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace IlluminanceLevelSensing
namespace TemperatureMeasurement {
@@ -15376,7 +16304,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return TemperatureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TemperatureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -15386,7 +16314,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return TemperatureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TemperatureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -15396,7 +16324,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return TemperatureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TemperatureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -15406,10 +16334,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return TemperatureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TemperatureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TemperatureMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TemperatureMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TemperatureMeasurement
namespace PressureMeasurement {
@@ -15421,7 +16369,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PressureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PressureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -15431,7 +16379,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PressureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PressureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -15441,7 +16389,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PressureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PressureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -15451,7 +16399,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PressureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PressureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
@@ -15461,7 +16409,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PressureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PressureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ScaledValue::Id; }
};
} // namespace ScaledValue
@@ -15471,7 +16419,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PressureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PressureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinScaledValue::Id; }
};
} // namespace MinScaledValue
@@ -15481,7 +16429,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return PressureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PressureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxScaledValue::Id; }
};
} // namespace MaxScaledValue
@@ -15491,7 +16439,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return PressureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PressureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ScaledTolerance::Id; }
};
} // namespace ScaledTolerance
@@ -15501,10 +16449,30 @@
using Type = int8_t;
using DecodableType = int8_t;
- static constexpr ClusterId GetClusterId() { return PressureMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::PressureMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Scale::Id; }
};
} // namespace Scale
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::PressureMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::PressureMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace PressureMeasurement
namespace FlowMeasurement {
@@ -15516,7 +16484,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return FlowMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FlowMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -15526,7 +16494,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return FlowMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FlowMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -15536,7 +16504,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return FlowMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FlowMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -15546,10 +16514,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return FlowMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FlowMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::FlowMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::FlowMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace FlowMeasurement
namespace RelativeHumidityMeasurement {
@@ -15561,7 +16549,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return RelativeHumidityMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::RelativeHumidityMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -15571,7 +16559,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return RelativeHumidityMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::RelativeHumidityMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -15581,7 +16569,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return RelativeHumidityMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::RelativeHumidityMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -15591,10 +16579,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return RelativeHumidityMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::RelativeHumidityMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::RelativeHumidityMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::RelativeHumidityMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace RelativeHumidityMeasurement
namespace OccupancySensing {
@@ -15606,7 +16614,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OccupancySensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Occupancy::Id; }
};
} // namespace Occupancy
@@ -15616,7 +16624,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OccupancySensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OccupancySensorType::Id; }
};
} // namespace OccupancySensorType
@@ -15626,7 +16634,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OccupancySensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OccupancySensorTypeBitmap::Id; }
};
} // namespace OccupancySensorTypeBitmap
@@ -15636,7 +16644,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return OccupancySensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PirOccupiedToUnoccupiedDelay::Id; }
};
} // namespace PirOccupiedToUnoccupiedDelay
@@ -15646,7 +16654,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return OccupancySensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PirUnoccupiedToOccupiedDelay::Id; }
};
} // namespace PirUnoccupiedToOccupiedDelay
@@ -15656,7 +16664,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OccupancySensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PirUnoccupiedToOccupiedThreshold::Id; }
};
} // namespace PirUnoccupiedToOccupiedThreshold
@@ -15666,7 +16674,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return OccupancySensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::UltrasonicOccupiedToUnoccupiedDelay::Id; }
};
} // namespace UltrasonicOccupiedToUnoccupiedDelay
@@ -15676,7 +16684,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return OccupancySensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::UltrasonicUnoccupiedToOccupiedDelay::Id; }
};
} // namespace UltrasonicUnoccupiedToOccupiedDelay
@@ -15686,7 +16694,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OccupancySensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::UltrasonicUnoccupiedToOccupiedThreshold::Id; }
};
} // namespace UltrasonicUnoccupiedToOccupiedThreshold
@@ -15696,7 +16704,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return OccupancySensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PhysicalContactOccupiedToUnoccupiedDelay::Id; }
};
} // namespace PhysicalContactOccupiedToUnoccupiedDelay
@@ -15706,7 +16714,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return OccupancySensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PhysicalContactUnoccupiedToOccupiedDelay::Id; }
};
} // namespace PhysicalContactUnoccupiedToOccupiedDelay
@@ -15716,10 +16724,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return OccupancySensing::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PhysicalContactUnoccupiedToOccupiedThreshold::Id; }
};
} // namespace PhysicalContactUnoccupiedToOccupiedThreshold
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OccupancySensing::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OccupancySensing
namespace CarbonMonoxideConcentrationMeasurement {
@@ -15731,7 +16759,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return CarbonMonoxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::CarbonMonoxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -15741,7 +16769,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return CarbonMonoxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::CarbonMonoxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -15751,7 +16779,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return CarbonMonoxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::CarbonMonoxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -15761,10 +16789,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return CarbonMonoxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::CarbonMonoxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::CarbonMonoxideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::CarbonMonoxideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace CarbonMonoxideConcentrationMeasurement
namespace CarbonDioxideConcentrationMeasurement {
@@ -15776,7 +16824,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return CarbonDioxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::CarbonDioxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -15786,7 +16834,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return CarbonDioxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::CarbonDioxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -15796,7 +16844,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return CarbonDioxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::CarbonDioxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -15806,10 +16854,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return CarbonDioxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::CarbonDioxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::CarbonDioxideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::CarbonDioxideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace CarbonDioxideConcentrationMeasurement
namespace EthyleneConcentrationMeasurement {
@@ -15821,7 +16889,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return EthyleneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthyleneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -15831,7 +16899,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return EthyleneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthyleneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -15841,7 +16909,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return EthyleneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthyleneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -15851,10 +16919,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return EthyleneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthyleneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::EthyleneConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::EthyleneConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace EthyleneConcentrationMeasurement
namespace EthyleneOxideConcentrationMeasurement {
@@ -15866,7 +16954,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return EthyleneOxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthyleneOxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -15876,7 +16964,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return EthyleneOxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthyleneOxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -15886,7 +16974,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return EthyleneOxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthyleneOxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -15896,10 +16984,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return EthyleneOxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::EthyleneOxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::EthyleneOxideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::EthyleneOxideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace EthyleneOxideConcentrationMeasurement
namespace HydrogenConcentrationMeasurement {
@@ -15911,7 +17019,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return HydrogenConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::HydrogenConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -15921,7 +17029,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return HydrogenConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::HydrogenConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -15931,7 +17039,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return HydrogenConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::HydrogenConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -15941,10 +17049,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return HydrogenConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::HydrogenConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::HydrogenConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::HydrogenConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace HydrogenConcentrationMeasurement
namespace HydrogenSulphideConcentrationMeasurement {
@@ -15956,7 +17084,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return HydrogenSulphideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::HydrogenSulphideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -15966,7 +17094,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return HydrogenSulphideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::HydrogenSulphideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -15976,7 +17104,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return HydrogenSulphideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::HydrogenSulphideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -15986,10 +17114,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return HydrogenSulphideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::HydrogenSulphideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::HydrogenSulphideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::HydrogenSulphideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace HydrogenSulphideConcentrationMeasurement
namespace NitricOxideConcentrationMeasurement {
@@ -16001,7 +17149,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return NitricOxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::NitricOxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16011,7 +17159,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return NitricOxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::NitricOxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16021,7 +17169,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return NitricOxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::NitricOxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16031,10 +17179,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return NitricOxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::NitricOxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::NitricOxideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::NitricOxideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace NitricOxideConcentrationMeasurement
namespace NitrogenDioxideConcentrationMeasurement {
@@ -16046,7 +17214,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return NitrogenDioxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::NitrogenDioxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16056,7 +17224,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return NitrogenDioxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::NitrogenDioxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16066,7 +17234,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return NitrogenDioxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::NitrogenDioxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16076,10 +17244,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return NitrogenDioxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::NitrogenDioxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::NitrogenDioxideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::NitrogenDioxideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace NitrogenDioxideConcentrationMeasurement
namespace OxygenConcentrationMeasurement {
@@ -16091,7 +17279,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return OxygenConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OxygenConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16101,7 +17289,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return OxygenConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OxygenConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16111,7 +17299,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return OxygenConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OxygenConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16121,10 +17309,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return OxygenConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OxygenConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OxygenConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OxygenConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OxygenConcentrationMeasurement
namespace OzoneConcentrationMeasurement {
@@ -16136,7 +17344,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return OzoneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OzoneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16146,7 +17354,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return OzoneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OzoneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16156,7 +17364,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return OzoneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OzoneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16166,10 +17374,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return OzoneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::OzoneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OzoneConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::OzoneConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OzoneConcentrationMeasurement
namespace SulfurDioxideConcentrationMeasurement {
@@ -16181,7 +17409,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return SulfurDioxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SulfurDioxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16191,7 +17419,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return SulfurDioxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SulfurDioxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16201,7 +17429,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return SulfurDioxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SulfurDioxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16211,10 +17439,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return SulfurDioxideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SulfurDioxideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::SulfurDioxideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::SulfurDioxideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace SulfurDioxideConcentrationMeasurement
namespace DissolvedOxygenConcentrationMeasurement {
@@ -16226,7 +17474,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return DissolvedOxygenConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DissolvedOxygenConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16236,7 +17484,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return DissolvedOxygenConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DissolvedOxygenConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16246,7 +17494,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return DissolvedOxygenConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DissolvedOxygenConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16256,10 +17504,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return DissolvedOxygenConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::DissolvedOxygenConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::DissolvedOxygenConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::DissolvedOxygenConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace DissolvedOxygenConcentrationMeasurement
namespace BromateConcentrationMeasurement {
@@ -16271,7 +17539,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return BromateConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BromateConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16281,7 +17549,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return BromateConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BromateConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16291,7 +17559,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return BromateConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BromateConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16301,10 +17569,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return BromateConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BromateConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BromateConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BromateConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BromateConcentrationMeasurement
namespace ChloraminesConcentrationMeasurement {
@@ -16316,7 +17604,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChloraminesConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChloraminesConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16326,7 +17614,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChloraminesConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChloraminesConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16336,7 +17624,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChloraminesConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChloraminesConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16346,10 +17634,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChloraminesConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChloraminesConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ChloraminesConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ChloraminesConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ChloraminesConcentrationMeasurement
namespace ChlorineConcentrationMeasurement {
@@ -16361,7 +17669,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChlorineConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChlorineConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16371,7 +17679,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChlorineConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChlorineConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16381,7 +17689,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChlorineConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChlorineConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16391,10 +17699,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChlorineConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChlorineConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ChlorineConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ChlorineConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ChlorineConcentrationMeasurement
namespace FecalColiformAndEColiConcentrationMeasurement {
@@ -16406,7 +17734,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return FecalColiformAndEColiConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FecalColiformAndEColiConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16416,7 +17744,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return FecalColiformAndEColiConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FecalColiformAndEColiConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16426,7 +17754,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return FecalColiformAndEColiConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FecalColiformAndEColiConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16436,10 +17764,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return FecalColiformAndEColiConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FecalColiformAndEColiConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::FecalColiformAndEColiConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::FecalColiformAndEColiConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace FecalColiformAndEColiConcentrationMeasurement
namespace FluorideConcentrationMeasurement {
@@ -16451,7 +17799,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return FluorideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FluorideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16461,7 +17809,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return FluorideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FluorideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16471,7 +17819,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return FluorideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FluorideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16481,10 +17829,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return FluorideConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::FluorideConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::FluorideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::FluorideConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace FluorideConcentrationMeasurement
namespace HaloaceticAcidsConcentrationMeasurement {
@@ -16496,7 +17864,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return HaloaceticAcidsConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::HaloaceticAcidsConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16506,7 +17874,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return HaloaceticAcidsConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::HaloaceticAcidsConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16516,7 +17884,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return HaloaceticAcidsConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::HaloaceticAcidsConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16526,10 +17894,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return HaloaceticAcidsConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::HaloaceticAcidsConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::HaloaceticAcidsConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::HaloaceticAcidsConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace HaloaceticAcidsConcentrationMeasurement
namespace TotalTrihalomethanesConcentrationMeasurement {
@@ -16541,7 +17929,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return TotalTrihalomethanesConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TotalTrihalomethanesConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16551,7 +17939,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return TotalTrihalomethanesConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TotalTrihalomethanesConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16561,7 +17949,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return TotalTrihalomethanesConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TotalTrihalomethanesConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16571,10 +17959,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return TotalTrihalomethanesConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TotalTrihalomethanesConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TotalTrihalomethanesConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TotalTrihalomethanesConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TotalTrihalomethanesConcentrationMeasurement
namespace TotalColiformBacteriaConcentrationMeasurement {
@@ -16586,7 +17994,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return TotalColiformBacteriaConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TotalColiformBacteriaConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16596,7 +18004,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return TotalColiformBacteriaConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TotalColiformBacteriaConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16606,7 +18014,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return TotalColiformBacteriaConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TotalColiformBacteriaConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16616,10 +18024,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return TotalColiformBacteriaConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TotalColiformBacteriaConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TotalColiformBacteriaConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TotalColiformBacteriaConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TotalColiformBacteriaConcentrationMeasurement
namespace TurbidityConcentrationMeasurement {
@@ -16631,7 +18059,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return TurbidityConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TurbidityConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16641,7 +18069,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return TurbidityConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TurbidityConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16651,7 +18079,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return TurbidityConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TurbidityConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16661,10 +18089,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return TurbidityConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TurbidityConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TurbidityConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TurbidityConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TurbidityConcentrationMeasurement
namespace CopperConcentrationMeasurement {
@@ -16676,7 +18124,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return CopperConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::CopperConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16686,7 +18134,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return CopperConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::CopperConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16696,7 +18144,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return CopperConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::CopperConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16706,10 +18154,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return CopperConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::CopperConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::CopperConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::CopperConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace CopperConcentrationMeasurement
namespace LeadConcentrationMeasurement {
@@ -16721,7 +18189,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return LeadConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LeadConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16731,7 +18199,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return LeadConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LeadConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16741,7 +18209,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return LeadConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LeadConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16751,10 +18219,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return LeadConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::LeadConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::LeadConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::LeadConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace LeadConcentrationMeasurement
namespace ManganeseConcentrationMeasurement {
@@ -16766,7 +18254,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ManganeseConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ManganeseConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16776,7 +18264,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ManganeseConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ManganeseConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16786,7 +18274,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ManganeseConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ManganeseConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16796,10 +18284,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ManganeseConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ManganeseConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ManganeseConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ManganeseConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ManganeseConcentrationMeasurement
namespace SulfateConcentrationMeasurement {
@@ -16811,7 +18319,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return SulfateConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SulfateConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16821,7 +18329,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return SulfateConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SulfateConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16831,7 +18339,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return SulfateConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SulfateConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16841,10 +18349,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return SulfateConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SulfateConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::SulfateConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::SulfateConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace SulfateConcentrationMeasurement
namespace BromodichloromethaneConcentrationMeasurement {
@@ -16856,7 +18384,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return BromodichloromethaneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BromodichloromethaneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16866,7 +18394,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return BromodichloromethaneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BromodichloromethaneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16876,7 +18404,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return BromodichloromethaneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BromodichloromethaneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16886,10 +18414,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return BromodichloromethaneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BromodichloromethaneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BromodichloromethaneConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BromodichloromethaneConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BromodichloromethaneConcentrationMeasurement
namespace BromoformConcentrationMeasurement {
@@ -16901,7 +18449,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return BromoformConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BromoformConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16911,7 +18459,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return BromoformConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BromoformConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16921,7 +18469,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return BromoformConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BromoformConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16931,10 +18479,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return BromoformConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::BromoformConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BromoformConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::BromoformConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BromoformConcentrationMeasurement
namespace ChlorodibromomethaneConcentrationMeasurement {
@@ -16946,7 +18514,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChlorodibromomethaneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChlorodibromomethaneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -16956,7 +18524,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChlorodibromomethaneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChlorodibromomethaneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -16966,7 +18534,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChlorodibromomethaneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChlorodibromomethaneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -16976,10 +18544,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChlorodibromomethaneConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChlorodibromomethaneConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ChlorodibromomethaneConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ChlorodibromomethaneConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ChlorodibromomethaneConcentrationMeasurement
namespace ChloroformConcentrationMeasurement {
@@ -16991,7 +18579,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChloroformConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChloroformConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -17001,7 +18589,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChloroformConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChloroformConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -17011,7 +18599,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChloroformConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChloroformConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -17021,10 +18609,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return ChloroformConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ChloroformConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ChloroformConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ChloroformConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ChloroformConcentrationMeasurement
namespace SodiumConcentrationMeasurement {
@@ -17036,7 +18644,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return SodiumConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SodiumConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
};
} // namespace MeasuredValue
@@ -17046,7 +18654,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return SodiumConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SodiumConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
};
} // namespace MinMeasuredValue
@@ -17056,7 +18664,7 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return SodiumConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SodiumConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
};
} // namespace MaxMeasuredValue
@@ -17066,10 +18674,30 @@
using Type = float;
using DecodableType = float;
- static constexpr ClusterId GetClusterId() { return SodiumConcentrationMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SodiumConcentrationMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Tolerance::Id; }
};
} // namespace Tolerance
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::SodiumConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::SodiumConcentrationMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace SodiumConcentrationMeasurement
namespace IasZone {
@@ -17341,7 +18969,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return IasZone::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ZoneState::Id; }
};
} // namespace ZoneState
@@ -17351,7 +18979,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return IasZone::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ZoneType::Id; }
};
} // namespace ZoneType
@@ -17361,7 +18989,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return IasZone::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ZoneStatus::Id; }
};
} // namespace ZoneStatus
@@ -17371,7 +18999,7 @@
using Type = chip::NodeId;
using DecodableType = chip::NodeId;
- static constexpr ClusterId GetClusterId() { return IasZone::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::IasCieAddress::Id; }
};
} // namespace IasCieAddress
@@ -17381,7 +19009,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return IasZone::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ZoneId::Id; }
};
} // namespace ZoneId
@@ -17391,7 +19019,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return IasZone::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfZoneSensitivityLevelsSupported::Id; }
};
} // namespace NumberOfZoneSensitivityLevelsSupported
@@ -17401,10 +19029,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return IasZone::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentZoneSensitivityLevel::Id; }
};
} // namespace CurrentZoneSensitivityLevel
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace IasZone
namespace IasAce {
@@ -18195,6 +19843,28 @@
}; // namespace GetZoneStatus
} // namespace Commands
+namespace Attributes {
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
+} // namespace Attributes
} // namespace IasAce
namespace IasWd {
@@ -18289,10 +19959,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return IasWd::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::IasWd::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MaxDuration::Id; }
};
} // namespace MaxDuration
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::IasWd::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::IasWd::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace IasWd
namespace WakeOnLan {
@@ -18304,10 +19994,30 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return WakeOnLan::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::WakeOnLan::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::WakeOnLanMacAddress::Id; }
};
} // namespace WakeOnLanMacAddress
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::WakeOnLan::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::WakeOnLan::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace WakeOnLan
namespace TvChannel {
@@ -18516,7 +20226,7 @@
using Type = DataModel::List<Structs::TvChannelInfo::Type>;
using DecodableType = DataModel::DecodableList<Structs::TvChannelInfo::DecodableType>;
- static constexpr ClusterId GetClusterId() { return TvChannel::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TvChannel::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TvChannelList::Id; }
};
} // namespace TvChannelList
@@ -18526,7 +20236,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return TvChannel::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TvChannel::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TvChannelLineup::Id; }
};
} // namespace TvChannelLineup
@@ -18536,10 +20246,30 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return TvChannel::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TvChannel::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentTvChannel::Id; }
};
} // namespace CurrentTvChannel
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TvChannel::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TvChannel::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TvChannel
namespace TargetNavigator {
@@ -18652,7 +20382,7 @@
using Type = DataModel::List<Structs::NavigateTargetTargetInfo::Type>;
using DecodableType = DataModel::DecodableList<Structs::NavigateTargetTargetInfo::DecodableType>;
- static constexpr ClusterId GetClusterId() { return TargetNavigator::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TargetNavigator::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TargetNavigatorList::Id; }
};
} // namespace TargetNavigatorList
@@ -18662,10 +20392,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return TargetNavigator::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TargetNavigator::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentNavigatorTarget::Id; }
};
} // namespace CurrentNavigatorTarget
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TargetNavigator::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TargetNavigator::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TargetNavigator
namespace MediaPlayback {
@@ -19317,7 +21067,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return MediaPlayback::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PlaybackState::Id; }
};
} // namespace PlaybackState
@@ -19327,7 +21077,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return MediaPlayback::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::StartTime::Id; }
};
} // namespace StartTime
@@ -19337,7 +21087,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return MediaPlayback::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Duration::Id; }
};
} // namespace Duration
@@ -19347,7 +21097,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return MediaPlayback::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PositionUpdatedAt::Id; }
};
} // namespace PositionUpdatedAt
@@ -19357,7 +21107,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return MediaPlayback::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Position::Id; }
};
} // namespace Position
@@ -19367,7 +21117,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return MediaPlayback::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PlaybackSpeed::Id; }
};
} // namespace PlaybackSpeed
@@ -19377,7 +21127,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return MediaPlayback::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SeekRangeEnd::Id; }
};
} // namespace SeekRangeEnd
@@ -19387,10 +21137,30 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return MediaPlayback::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SeekRangeStart::Id; }
};
} // namespace SeekRangeStart
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace MediaPlayback
namespace MediaInput {
@@ -19561,7 +21331,7 @@
using Type = DataModel::List<Structs::MediaInputInfo::Type>;
using DecodableType = DataModel::DecodableList<Structs::MediaInputInfo::DecodableType>;
- static constexpr ClusterId GetClusterId() { return MediaInput::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaInput::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MediaInputList::Id; }
};
} // namespace MediaInputList
@@ -19571,10 +21341,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return MediaInput::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaInput::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentMediaInput::Id; }
};
} // namespace CurrentMediaInput
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaInput::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::MediaInput::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace MediaInput
namespace LowPower {
@@ -19606,6 +21396,28 @@
}; // namespace Sleep
} // namespace Commands
+namespace Attributes {
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::LowPower::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::LowPower::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
+} // namespace Attributes
} // namespace LowPower
namespace KeypadInput {
// Need to convert consumers to using the new enum classes, so we
@@ -19777,6 +21589,28 @@
}; // namespace SendKeyResponse
} // namespace Commands
+namespace Attributes {
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::KeypadInput::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::KeypadInput::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
+} // namespace Attributes
} // namespace KeypadInput
namespace ContentLauncher {
// Need to convert consumers to using the new enum classes, so we
@@ -20095,7 +21929,7 @@
using Type = DataModel::List<chip::ByteSpan>;
using DecodableType = DataModel::DecodableList<chip::ByteSpan>;
- static constexpr ClusterId GetClusterId() { return ContentLauncher::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ContentLauncher::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcceptsHeaderList::Id; }
};
} // namespace AcceptsHeaderList
@@ -20105,10 +21939,30 @@
using Type = DataModel::List<ContentLaunchStreamingType>;
using DecodableType = DataModel::DecodableList<ContentLaunchStreamingType>;
- static constexpr ClusterId GetClusterId() { return ContentLauncher::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ContentLauncher::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SupportedStreamingTypes::Id; }
};
} // namespace SupportedStreamingTypes
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ContentLauncher::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ContentLauncher::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ContentLauncher
namespace AudioOutput {
@@ -20223,7 +22077,7 @@
using Type = DataModel::List<Structs::AudioOutputInfo::Type>;
using DecodableType = DataModel::DecodableList<Structs::AudioOutputInfo::DecodableType>;
- static constexpr ClusterId GetClusterId() { return AudioOutput::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::AudioOutput::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AudioOutputList::Id; }
};
} // namespace AudioOutputList
@@ -20233,10 +22087,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return AudioOutput::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::AudioOutput::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentAudioOutput::Id; }
};
} // namespace CurrentAudioOutput
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::AudioOutput::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::AudioOutput::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace AudioOutput
namespace ApplicationLauncher {
@@ -20352,7 +22226,7 @@
using Type = DataModel::List<uint16_t>;
using DecodableType = DataModel::DecodableList<uint16_t>;
- static constexpr ClusterId GetClusterId() { return ApplicationLauncher::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationLauncher::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ApplicationLauncherList::Id; }
};
} // namespace ApplicationLauncherList
@@ -20362,7 +22236,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ApplicationLauncher::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationLauncher::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CatalogVendorId::Id; }
};
} // namespace CatalogVendorId
@@ -20372,10 +22246,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ApplicationLauncher::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationLauncher::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ApplicationId::Id; }
};
} // namespace ApplicationId
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationLauncher::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationLauncher::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ApplicationLauncher
namespace ApplicationBasic {
@@ -20432,7 +22326,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return ApplicationBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::VendorName::Id; }
};
} // namespace VendorName
@@ -20442,7 +22336,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ApplicationBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::VendorId::Id; }
};
} // namespace VendorId
@@ -20452,7 +22346,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return ApplicationBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ApplicationName::Id; }
};
} // namespace ApplicationName
@@ -20462,7 +22356,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ApplicationBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ProductId::Id; }
};
} // namespace ProductId
@@ -20472,7 +22366,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return ApplicationBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ApplicationId::Id; }
};
} // namespace ApplicationId
@@ -20482,7 +22376,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ApplicationBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CatalogVendorId::Id; }
};
} // namespace CatalogVendorId
@@ -20492,10 +22386,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ApplicationBasic::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ApplicationStatus::Id; }
};
} // namespace ApplicationStatus
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ApplicationBasic
namespace AccountLogin {
@@ -20590,6 +22504,28 @@
}; // namespace Login
} // namespace Commands
+namespace Attributes {
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::AccountLogin::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::AccountLogin::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
+} // namespace Attributes
} // namespace AccountLogin
namespace TestCluster {
// Need to convert consumers to using the new enum classes, so we
@@ -21309,7 +23245,7 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Boolean::Id; }
};
} // namespace Boolean
@@ -21319,7 +23255,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Bitmap8::Id; }
};
} // namespace Bitmap8
@@ -21329,7 +23265,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Bitmap16::Id; }
};
} // namespace Bitmap16
@@ -21339,7 +23275,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Bitmap32::Id; }
};
} // namespace Bitmap32
@@ -21349,7 +23285,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Bitmap64::Id; }
};
} // namespace Bitmap64
@@ -21359,7 +23295,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Int8u::Id; }
};
} // namespace Int8u
@@ -21369,7 +23305,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Int16u::Id; }
};
} // namespace Int16u
@@ -21379,7 +23315,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Int32u::Id; }
};
} // namespace Int32u
@@ -21389,7 +23325,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Int64u::Id; }
};
} // namespace Int64u
@@ -21399,7 +23335,7 @@
using Type = int8_t;
using DecodableType = int8_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Int8s::Id; }
};
} // namespace Int8s
@@ -21409,7 +23345,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Int16s::Id; }
};
} // namespace Int16s
@@ -21419,7 +23355,7 @@
using Type = int32_t;
using DecodableType = int32_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Int32s::Id; }
};
} // namespace Int32s
@@ -21429,7 +23365,7 @@
using Type = int64_t;
using DecodableType = int64_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Int64s::Id; }
};
} // namespace Int64s
@@ -21439,7 +23375,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Enum8::Id; }
};
} // namespace Enum8
@@ -21449,7 +23385,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Enum16::Id; }
};
} // namespace Enum16
@@ -21459,7 +23395,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OctetString::Id; }
};
} // namespace OctetString
@@ -21469,7 +23405,7 @@
using Type = DataModel::List<uint8_t>;
using DecodableType = DataModel::DecodableList<uint8_t>;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ListInt8u::Id; }
};
} // namespace ListInt8u
@@ -21479,7 +23415,7 @@
using Type = DataModel::List<chip::ByteSpan>;
using DecodableType = DataModel::DecodableList<chip::ByteSpan>;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ListOctetString::Id; }
};
} // namespace ListOctetString
@@ -21489,7 +23425,7 @@
using Type = DataModel::List<Structs::TestListStructOctet::Type>;
using DecodableType = DataModel::DecodableList<Structs::TestListStructOctet::DecodableType>;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ListStructOctetString::Id; }
};
} // namespace ListStructOctetString
@@ -21499,7 +23435,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LongOctetString::Id; }
};
} // namespace LongOctetString
@@ -21509,7 +23445,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CharString::Id; }
};
} // namespace CharString
@@ -21519,7 +23455,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LongCharString::Id; }
};
} // namespace LongCharString
@@ -21529,7 +23465,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EpochUs::Id; }
};
} // namespace EpochUs
@@ -21539,7 +23475,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EpochS::Id; }
};
} // namespace EpochS
@@ -21549,10 +23485,30 @@
using Type = bool;
using DecodableType = bool;
- static constexpr ClusterId GetClusterId() { return TestCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Unsupported::Id; }
};
} // namespace Unsupported
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
namespace Events {
namespace TestEvent {
@@ -22009,6 +23965,28 @@
}; // namespace CancelAllMessages
} // namespace Commands
+namespace Attributes {
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
+} // namespace Attributes
} // namespace Messaging
namespace ApplianceIdentification {
@@ -22019,7 +23997,7 @@
using Type = uint64_t;
using DecodableType = uint64_t;
- static constexpr ClusterId GetClusterId() { return ApplianceIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BasicIdentification::Id; }
};
} // namespace BasicIdentification
@@ -22029,7 +24007,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return ApplianceIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CompanyName::Id; }
};
} // namespace CompanyName
@@ -22039,7 +24017,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ApplianceIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CompanyId::Id; }
};
} // namespace CompanyId
@@ -22049,7 +24027,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return ApplianceIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BrandName::Id; }
};
} // namespace BrandName
@@ -22059,7 +24037,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ApplianceIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::BrandId::Id; }
};
} // namespace BrandId
@@ -22069,7 +24047,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return ApplianceIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Model::Id; }
};
} // namespace Model
@@ -22079,7 +24057,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return ApplianceIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PartNumber::Id; }
};
} // namespace PartNumber
@@ -22089,7 +24067,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return ApplianceIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ProductRevision::Id; }
};
} // namespace ProductRevision
@@ -22099,7 +24077,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return ApplianceIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SoftwareRevision::Id; }
};
} // namespace SoftwareRevision
@@ -22109,7 +24087,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return ApplianceIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ProductTypeName::Id; }
};
} // namespace ProductTypeName
@@ -22119,7 +24097,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ApplianceIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ProductTypeId::Id; }
};
} // namespace ProductTypeId
@@ -22129,10 +24107,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ApplianceIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CecedSpecificationVersion::Id; }
};
} // namespace CecedSpecificationVersion
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceIdentification::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ApplianceIdentification
namespace MeterIdentification {
@@ -22144,7 +24142,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return MeterIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CompanyName::Id; }
};
} // namespace CompanyName
@@ -22154,7 +24152,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return MeterIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeterTypeId::Id; }
};
} // namespace MeterTypeId
@@ -22164,7 +24162,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return MeterIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DataQualityId::Id; }
};
} // namespace DataQualityId
@@ -22174,7 +24172,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return MeterIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CustomerName::Id; }
};
} // namespace CustomerName
@@ -22184,7 +24182,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return MeterIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Model::Id; }
};
} // namespace Model
@@ -22194,7 +24192,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return MeterIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PartNumber::Id; }
};
} // namespace PartNumber
@@ -22204,7 +24202,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return MeterIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ProductRevision::Id; }
};
} // namespace ProductRevision
@@ -22214,7 +24212,7 @@
using Type = chip::ByteSpan;
using DecodableType = chip::ByteSpan;
- static constexpr ClusterId GetClusterId() { return MeterIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::SoftwareRevision::Id; }
};
} // namespace SoftwareRevision
@@ -22224,7 +24222,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return MeterIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::UtilityName::Id; }
};
} // namespace UtilityName
@@ -22234,7 +24232,7 @@
using Type = chip::CharSpan;
using DecodableType = chip::CharSpan;
- static constexpr ClusterId GetClusterId() { return MeterIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Pod::Id; }
};
} // namespace Pod
@@ -22244,7 +24242,7 @@
using Type = int32_t;
using DecodableType = int32_t;
- static constexpr ClusterId GetClusterId() { return MeterIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AvailablePower::Id; }
};
} // namespace AvailablePower
@@ -22254,10 +24252,30 @@
using Type = int32_t;
using DecodableType = int32_t;
- static constexpr ClusterId GetClusterId() { return MeterIdentification::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PowerThreshold::Id; }
};
} // namespace PowerThreshold
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::MeterIdentification::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace MeterIdentification
namespace ApplianceEventsAndAlert {
@@ -22412,6 +24430,28 @@
}; // namespace EventsNotification
} // namespace Commands
+namespace Attributes {
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
+} // namespace Attributes
} // namespace ApplianceEventsAndAlert
namespace ApplianceStatistics {
@@ -22613,7 +24653,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ApplianceStatistics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LogMaxSize::Id; }
};
} // namespace LogMaxSize
@@ -22623,10 +24663,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ApplianceStatistics::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LogQueueMaxSize::Id; }
};
} // namespace LogQueueMaxSize
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ApplianceStatistics
namespace ElectricalMeasurement {
@@ -22779,7 +24839,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasurementType::Id; }
};
} // namespace MeasurementType
@@ -22789,7 +24849,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltage::Id; }
};
} // namespace DcVoltage
@@ -22799,7 +24859,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltageMin::Id; }
};
} // namespace DcVoltageMin
@@ -22809,7 +24869,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltageMax::Id; }
};
} // namespace DcVoltageMax
@@ -22819,7 +24879,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrent::Id; }
};
} // namespace DcCurrent
@@ -22829,7 +24889,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrentMin::Id; }
};
} // namespace DcCurrentMin
@@ -22839,7 +24899,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrentMax::Id; }
};
} // namespace DcCurrentMax
@@ -22849,7 +24909,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcPower::Id; }
};
} // namespace DcPower
@@ -22859,7 +24919,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcPowerMin::Id; }
};
} // namespace DcPowerMin
@@ -22869,7 +24929,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcPowerMax::Id; }
};
} // namespace DcPowerMax
@@ -22879,7 +24939,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltageMultiplier::Id; }
};
} // namespace DcVoltageMultiplier
@@ -22889,7 +24949,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcVoltageDivisor::Id; }
};
} // namespace DcVoltageDivisor
@@ -22899,7 +24959,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrentMultiplier::Id; }
};
} // namespace DcCurrentMultiplier
@@ -22909,7 +24969,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcCurrentDivisor::Id; }
};
} // namespace DcCurrentDivisor
@@ -22919,7 +24979,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcPowerMultiplier::Id; }
};
} // namespace DcPowerMultiplier
@@ -22929,7 +24989,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::DcPowerDivisor::Id; }
};
} // namespace DcPowerDivisor
@@ -22939,7 +24999,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequency::Id; }
};
} // namespace AcFrequency
@@ -22949,7 +25009,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequencyMin::Id; }
};
} // namespace AcFrequencyMin
@@ -22959,7 +25019,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequencyMax::Id; }
};
} // namespace AcFrequencyMax
@@ -22969,7 +25029,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::NeutralCurrent::Id; }
};
} // namespace NeutralCurrent
@@ -22979,7 +25039,7 @@
using Type = int32_t;
using DecodableType = int32_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TotalActivePower::Id; }
};
} // namespace TotalActivePower
@@ -22989,7 +25049,7 @@
using Type = int32_t;
using DecodableType = int32_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TotalReactivePower::Id; }
};
} // namespace TotalReactivePower
@@ -22999,7 +25059,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::TotalApparentPower::Id; }
};
} // namespace TotalApparentPower
@@ -23009,7 +25069,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Measured1stHarmonicCurrent::Id; }
};
} // namespace Measured1stHarmonicCurrent
@@ -23019,7 +25079,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Measured3rdHarmonicCurrent::Id; }
};
} // namespace Measured3rdHarmonicCurrent
@@ -23029,7 +25089,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Measured5thHarmonicCurrent::Id; }
};
} // namespace Measured5thHarmonicCurrent
@@ -23039,7 +25099,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Measured7thHarmonicCurrent::Id; }
};
} // namespace Measured7thHarmonicCurrent
@@ -23049,7 +25109,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Measured9thHarmonicCurrent::Id; }
};
} // namespace Measured9thHarmonicCurrent
@@ -23059,7 +25119,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Measured11thHarmonicCurrent::Id; }
};
} // namespace Measured11thHarmonicCurrent
@@ -23069,7 +25129,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase1stHarmonicCurrent::Id; }
};
} // namespace MeasuredPhase1stHarmonicCurrent
@@ -23079,7 +25139,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase3rdHarmonicCurrent::Id; }
};
} // namespace MeasuredPhase3rdHarmonicCurrent
@@ -23089,7 +25149,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase5thHarmonicCurrent::Id; }
};
} // namespace MeasuredPhase5thHarmonicCurrent
@@ -23099,7 +25159,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase7thHarmonicCurrent::Id; }
};
} // namespace MeasuredPhase7thHarmonicCurrent
@@ -23109,7 +25169,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase9thHarmonicCurrent::Id; }
};
} // namespace MeasuredPhase9thHarmonicCurrent
@@ -23119,7 +25179,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredPhase11thHarmonicCurrent::Id; }
};
} // namespace MeasuredPhase11thHarmonicCurrent
@@ -23129,7 +25189,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequencyMultiplier::Id; }
};
} // namespace AcFrequencyMultiplier
@@ -23139,7 +25199,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcFrequencyDivisor::Id; }
};
} // namespace AcFrequencyDivisor
@@ -23149,7 +25209,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PowerMultiplier::Id; }
};
} // namespace PowerMultiplier
@@ -23159,7 +25219,7 @@
using Type = uint32_t;
using DecodableType = uint32_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PowerDivisor::Id; }
};
} // namespace PowerDivisor
@@ -23169,7 +25229,7 @@
using Type = int8_t;
using DecodableType = int8_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::HarmonicCurrentMultiplier::Id; }
};
} // namespace HarmonicCurrentMultiplier
@@ -23179,7 +25239,7 @@
using Type = int8_t;
using DecodableType = int8_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PhaseHarmonicCurrentMultiplier::Id; }
};
} // namespace PhaseHarmonicCurrentMultiplier
@@ -23189,7 +25249,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousVoltage::Id; }
};
} // namespace InstantaneousVoltage
@@ -23199,7 +25259,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousLineCurrent::Id; }
};
} // namespace InstantaneousLineCurrent
@@ -23209,7 +25269,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousActiveCurrent::Id; }
};
} // namespace InstantaneousActiveCurrent
@@ -23219,7 +25279,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousReactiveCurrent::Id; }
};
} // namespace InstantaneousReactiveCurrent
@@ -23229,7 +25289,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::InstantaneousPower::Id; }
};
} // namespace InstantaneousPower
@@ -23239,7 +25299,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltage::Id; }
};
} // namespace RmsVoltage
@@ -23249,7 +25309,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMin::Id; }
};
} // namespace RmsVoltageMin
@@ -23259,7 +25319,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMax::Id; }
};
} // namespace RmsVoltageMax
@@ -23269,7 +25329,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrent::Id; }
};
} // namespace RmsCurrent
@@ -23279,7 +25339,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMin::Id; }
};
} // namespace RmsCurrentMin
@@ -23289,7 +25349,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMax::Id; }
};
} // namespace RmsCurrentMax
@@ -23299,7 +25359,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActivePower::Id; }
};
} // namespace ActivePower
@@ -23309,7 +25369,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMin::Id; }
};
} // namespace ActivePowerMin
@@ -23319,7 +25379,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMax::Id; }
};
} // namespace ActivePowerMax
@@ -23329,7 +25389,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ReactivePower::Id; }
};
} // namespace ReactivePower
@@ -23339,7 +25399,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ApparentPower::Id; }
};
} // namespace ApparentPower
@@ -23349,7 +25409,7 @@
using Type = int8_t;
using DecodableType = int8_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PowerFactor::Id; }
};
} // namespace PowerFactor
@@ -23359,7 +25419,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsVoltageMeasurementPeriod::Id; }
};
} // namespace AverageRmsVoltageMeasurementPeriod
@@ -23369,7 +25429,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsUnderVoltageCounter::Id; }
};
} // namespace AverageRmsUnderVoltageCounter
@@ -23379,7 +25439,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeOverVoltagePeriod::Id; }
};
} // namespace RmsExtremeOverVoltagePeriod
@@ -23389,7 +25449,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeUnderVoltagePeriod::Id; }
};
} // namespace RmsExtremeUnderVoltagePeriod
@@ -23399,7 +25459,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSagPeriod::Id; }
};
} // namespace RmsVoltageSagPeriod
@@ -23409,7 +25469,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSwellPeriod::Id; }
};
} // namespace RmsVoltageSwellPeriod
@@ -23419,7 +25479,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcVoltageMultiplier::Id; }
};
} // namespace AcVoltageMultiplier
@@ -23429,7 +25489,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcVoltageDivisor::Id; }
};
} // namespace AcVoltageDivisor
@@ -23439,7 +25499,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcCurrentMultiplier::Id; }
};
} // namespace AcCurrentMultiplier
@@ -23449,7 +25509,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcCurrentDivisor::Id; }
};
} // namespace AcCurrentDivisor
@@ -23459,7 +25519,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcPowerMultiplier::Id; }
};
} // namespace AcPowerMultiplier
@@ -23469,7 +25529,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcPowerDivisor::Id; }
};
} // namespace AcPowerDivisor
@@ -23479,7 +25539,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::OverloadAlarmsMask::Id; }
};
} // namespace OverloadAlarmsMask
@@ -23489,7 +25549,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::VoltageOverload::Id; }
};
} // namespace VoltageOverload
@@ -23499,7 +25559,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::CurrentOverload::Id; }
};
} // namespace CurrentOverload
@@ -23509,7 +25569,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcOverloadAlarmsMask::Id; }
};
} // namespace AcOverloadAlarmsMask
@@ -23519,7 +25579,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcVoltageOverload::Id; }
};
} // namespace AcVoltageOverload
@@ -23529,7 +25589,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcCurrentOverload::Id; }
};
} // namespace AcCurrentOverload
@@ -23539,7 +25599,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcActivePowerOverload::Id; }
};
} // namespace AcActivePowerOverload
@@ -23549,7 +25609,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AcReactivePowerOverload::Id; }
};
} // namespace AcReactivePowerOverload
@@ -23559,7 +25619,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsOverVoltage::Id; }
};
} // namespace AverageRmsOverVoltage
@@ -23569,7 +25629,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsUnderVoltage::Id; }
};
} // namespace AverageRmsUnderVoltage
@@ -23579,7 +25639,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeOverVoltage::Id; }
};
} // namespace RmsExtremeOverVoltage
@@ -23589,7 +25649,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeUnderVoltage::Id; }
};
} // namespace RmsExtremeUnderVoltage
@@ -23599,7 +25659,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSag::Id; }
};
} // namespace RmsVoltageSag
@@ -23609,7 +25669,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSwell::Id; }
};
} // namespace RmsVoltageSwell
@@ -23619,7 +25679,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LineCurrentPhaseB::Id; }
};
} // namespace LineCurrentPhaseB
@@ -23629,7 +25689,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActiveCurrentPhaseB::Id; }
};
} // namespace ActiveCurrentPhaseB
@@ -23639,7 +25699,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ReactiveCurrentPhaseB::Id; }
};
} // namespace ReactiveCurrentPhaseB
@@ -23649,7 +25709,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltagePhaseB::Id; }
};
} // namespace RmsVoltagePhaseB
@@ -23659,7 +25719,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMinPhaseB::Id; }
};
} // namespace RmsVoltageMinPhaseB
@@ -23669,7 +25729,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMaxPhaseB::Id; }
};
} // namespace RmsVoltageMaxPhaseB
@@ -23679,7 +25739,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentPhaseB::Id; }
};
} // namespace RmsCurrentPhaseB
@@ -23689,7 +25749,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMinPhaseB::Id; }
};
} // namespace RmsCurrentMinPhaseB
@@ -23699,7 +25759,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMaxPhaseB::Id; }
};
} // namespace RmsCurrentMaxPhaseB
@@ -23709,7 +25769,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerPhaseB::Id; }
};
} // namespace ActivePowerPhaseB
@@ -23719,7 +25779,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMinPhaseB::Id; }
};
} // namespace ActivePowerMinPhaseB
@@ -23729,7 +25789,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMaxPhaseB::Id; }
};
} // namespace ActivePowerMaxPhaseB
@@ -23739,7 +25799,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ReactivePowerPhaseB::Id; }
};
} // namespace ReactivePowerPhaseB
@@ -23749,7 +25809,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ApparentPowerPhaseB::Id; }
};
} // namespace ApparentPowerPhaseB
@@ -23759,7 +25819,7 @@
using Type = int8_t;
using DecodableType = int8_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PowerFactorPhaseB::Id; }
};
} // namespace PowerFactorPhaseB
@@ -23769,7 +25829,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::Id; }
};
} // namespace AverageRmsVoltageMeasurementPeriodPhaseB
@@ -23779,7 +25839,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsOverVoltageCounterPhaseB::Id; }
};
} // namespace AverageRmsOverVoltageCounterPhaseB
@@ -23789,7 +25849,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsUnderVoltageCounterPhaseB::Id; }
};
} // namespace AverageRmsUnderVoltageCounterPhaseB
@@ -23799,7 +25859,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeOverVoltagePeriodPhaseB::Id; }
};
} // namespace RmsExtremeOverVoltagePeriodPhaseB
@@ -23809,7 +25869,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeUnderVoltagePeriodPhaseB::Id; }
};
} // namespace RmsExtremeUnderVoltagePeriodPhaseB
@@ -23819,7 +25879,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSagPeriodPhaseB::Id; }
};
} // namespace RmsVoltageSagPeriodPhaseB
@@ -23829,7 +25889,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSwellPeriodPhaseB::Id; }
};
} // namespace RmsVoltageSwellPeriodPhaseB
@@ -23839,7 +25899,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::LineCurrentPhaseC::Id; }
};
} // namespace LineCurrentPhaseC
@@ -23849,7 +25909,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActiveCurrentPhaseC::Id; }
};
} // namespace ActiveCurrentPhaseC
@@ -23859,7 +25919,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ReactiveCurrentPhaseC::Id; }
};
} // namespace ReactiveCurrentPhaseC
@@ -23869,7 +25929,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltagePhaseC::Id; }
};
} // namespace RmsVoltagePhaseC
@@ -23879,7 +25939,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMinPhaseC::Id; }
};
} // namespace RmsVoltageMinPhaseC
@@ -23889,7 +25949,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageMaxPhaseC::Id; }
};
} // namespace RmsVoltageMaxPhaseC
@@ -23899,7 +25959,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentPhaseC::Id; }
};
} // namespace RmsCurrentPhaseC
@@ -23909,7 +25969,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMinPhaseC::Id; }
};
} // namespace RmsCurrentMinPhaseC
@@ -23919,7 +25979,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsCurrentMaxPhaseC::Id; }
};
} // namespace RmsCurrentMaxPhaseC
@@ -23929,7 +25989,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerPhaseC::Id; }
};
} // namespace ActivePowerPhaseC
@@ -23939,7 +25999,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMinPhaseC::Id; }
};
} // namespace ActivePowerMinPhaseC
@@ -23949,7 +26009,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ActivePowerMaxPhaseC::Id; }
};
} // namespace ActivePowerMaxPhaseC
@@ -23959,7 +26019,7 @@
using Type = int16_t;
using DecodableType = int16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ReactivePowerPhaseC::Id; }
};
} // namespace ReactivePowerPhaseC
@@ -23969,7 +26029,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::ApparentPowerPhaseC::Id; }
};
} // namespace ApparentPowerPhaseC
@@ -23979,7 +26039,7 @@
using Type = int8_t;
using DecodableType = int8_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::PowerFactorPhaseC::Id; }
};
} // namespace PowerFactorPhaseC
@@ -23989,7 +26049,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::Id; }
};
} // namespace AverageRmsVoltageMeasurementPeriodPhaseC
@@ -23999,7 +26059,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsOverVoltageCounterPhaseC::Id; }
};
} // namespace AverageRmsOverVoltageCounterPhaseC
@@ -24009,7 +26069,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::AverageRmsUnderVoltageCounterPhaseC::Id; }
};
} // namespace AverageRmsUnderVoltageCounterPhaseC
@@ -24019,7 +26079,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeOverVoltagePeriodPhaseC::Id; }
};
} // namespace RmsExtremeOverVoltagePeriodPhaseC
@@ -24029,7 +26089,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsExtremeUnderVoltagePeriodPhaseC::Id; }
};
} // namespace RmsExtremeUnderVoltagePeriodPhaseC
@@ -24039,7 +26099,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSagPeriodPhaseC::Id; }
};
} // namespace RmsVoltageSagPeriodPhaseC
@@ -24049,10 +26109,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return ElectricalMeasurement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::RmsVoltageSwellPeriodPhaseC::Id; }
};
} // namespace RmsVoltageSwellPeriodPhaseC
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ElectricalMeasurement
namespace Binding {
@@ -24134,6 +26214,28 @@
}; // namespace Unbind
} // namespace Commands
+namespace Attributes {
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Binding::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::Binding::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
+} // namespace Attributes
} // namespace Binding
namespace GroupKeyManagement {
// Need to convert consumers to using the new enum classes, so we
@@ -24207,7 +26309,7 @@
using Type = DataModel::List<Structs::GroupState::Type>;
using DecodableType = DataModel::DecodableList<Structs::GroupState::DecodableType>;
- static constexpr ClusterId GetClusterId() { return GroupKeyManagement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GroupKeyManagement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::Groups::Id; }
};
} // namespace Groups
@@ -24217,10 +26319,30 @@
using Type = DataModel::List<Structs::GroupKey::Type>;
using DecodableType = DataModel::DecodableList<Structs::GroupKey::DecodableType>;
- static constexpr ClusterId GetClusterId() { return GroupKeyManagement::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::GroupKeyManagement::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::GroupKeys::Id; }
};
} // namespace GroupKeys
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::GroupKeyManagement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::GroupKeyManagement::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace GroupKeyManagement
namespace SampleMfgSpecificCluster {
@@ -24263,7 +26385,7 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return SampleMfgSpecificCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SampleMfgSpecificCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EmberSampleAttribute::Id; }
};
} // namespace EmberSampleAttribute
@@ -24273,10 +26395,30 @@
using Type = uint8_t;
using DecodableType = uint8_t;
- static constexpr ClusterId GetClusterId() { return SampleMfgSpecificCluster::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SampleMfgSpecificCluster::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EmberSampleAttribute2::Id; }
};
} // namespace EmberSampleAttribute2
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::SampleMfgSpecificCluster::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::SampleMfgSpecificCluster::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace SampleMfgSpecificCluster
namespace SampleMfgSpecificCluster2 {
@@ -24319,7 +26461,7 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return SampleMfgSpecificCluster2::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SampleMfgSpecificCluster2::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EmberSampleAttribute3::Id; }
};
} // namespace EmberSampleAttribute3
@@ -24329,10 +26471,30 @@
using Type = uint16_t;
using DecodableType = uint16_t;
- static constexpr ClusterId GetClusterId() { return SampleMfgSpecificCluster2::Id; }
+ static constexpr ClusterId GetClusterId() { return Clusters::SampleMfgSpecificCluster2::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::EmberSampleAttribute4::Id; }
};
} // namespace EmberSampleAttribute4
+namespace FeatureMap {
+struct TypeInfo
+{
+ using Type = uint32_t;
+ using DecodableType = uint32_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::SampleMfgSpecificCluster2::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
+};
+} // namespace FeatureMap
+namespace ClusterRevision {
+struct TypeInfo
+{
+ using Type = uint16_t;
+ using DecodableType = uint16_t;
+
+ static constexpr ClusterId GetClusterId() { return Clusters::SampleMfgSpecificCluster2::Id; }
+ static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
+};
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace SampleMfgSpecificCluster2
diff --git a/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h b/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h
index fdae2b7..cce9147 100644
--- a/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h
+++ b/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h
@@ -270,9 +270,13 @@
static constexpr AttributeId Id = 0x0000007E;
} // namespace Battery3AlarmState
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace PowerConfiguration
@@ -316,9 +320,13 @@
static constexpr AttributeId Id = 0x00000014;
} // namespace HighTempDwellTripPoint
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace DeviceTemperatureConfiguration
@@ -334,9 +342,13 @@
static constexpr AttributeId Id = 0x00000001;
} // namespace IdentifyType
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Identify
@@ -348,9 +360,13 @@
static constexpr AttributeId Id = 0x00000000;
} // namespace NameSupport
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Groups
@@ -382,9 +398,13 @@
static constexpr AttributeId Id = 0x00000005;
} // namespace LastConfiguredBy
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Scenes
@@ -428,9 +448,13 @@
static constexpr AttributeId Id = 0x00004003;
} // namespace StartUpOnOff
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OnOff
@@ -446,9 +470,13 @@
static constexpr AttributeId Id = 0x00000010;
} // namespace SwitchActions
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OnOffSwitchConfiguration
@@ -512,9 +540,13 @@
static constexpr AttributeId Id = 0x00004000;
} // namespace StartUpCurrentLevel
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace LevelControl
@@ -526,9 +558,13 @@
static constexpr AttributeId Id = 0x00000000;
} // namespace AlarmCount
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Alarms
@@ -576,9 +612,13 @@
static constexpr AttributeId Id = 0x00000009;
} // namespace ValidUntilTime
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Time
@@ -622,9 +662,13 @@
static constexpr AttributeId Id = 0x00000100;
} // namespace ApplicationType
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BinaryInputBasic
@@ -652,9 +696,13 @@
static constexpr AttributeId Id = 0x00000004;
} // namespace ScheduleMode
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace PowerProfile
@@ -674,9 +722,13 @@
static constexpr AttributeId Id = 0x00000002;
} // namespace RemainingTime
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ApplianceControl
@@ -700,9 +752,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace PartsList
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Descriptor
@@ -738,9 +794,13 @@
static constexpr AttributeId Id = 0x00000006;
} // namespace FastPollTimeoutMax
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace PollControl
@@ -820,13 +880,31 @@
static constexpr AttributeId Id = 0x00000011;
} // namespace Reachable
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Basic
+namespace OtaSoftwareUpdateProvider {
+namespace Attributes {
+
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
+
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
+
+} // namespace Attributes
+} // namespace OtaSoftwareUpdateProvider
+
namespace OtaSoftwareUpdateRequestor {
namespace Attributes {
@@ -838,9 +916,13 @@
static constexpr AttributeId Id = 0x00000002;
} // namespace UpdatePossible
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OtaSoftwareUpdateRequestor
@@ -972,9 +1054,13 @@
static constexpr AttributeId Id = 0x0000001E;
} // namespace ActiveBatteryChargeFaults
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace PowerSource
@@ -998,13 +1084,45 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace LocationCapabilityList
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace GeneralCommissioning
+namespace NetworkCommissioning {
+namespace Attributes {
+
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
+
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
+
+} // namespace Attributes
+} // namespace NetworkCommissioning
+
+namespace DiagnosticLogs {
+namespace Attributes {
+
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
+
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
+
+} // namespace Attributes
+} // namespace DiagnosticLogs
+
namespace GeneralDiagnostics {
namespace Attributes {
@@ -1040,9 +1158,13 @@
static constexpr AttributeId Id = 0x00000007;
} // namespace ActiveNetworkFaults
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace GeneralDiagnostics
@@ -1066,9 +1188,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace CurrentHeapHighWatermark
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace SoftwareDiagnostics
@@ -1328,9 +1454,13 @@
static constexpr AttributeId Id = 0x0000003E;
} // namespace ActiveNetworkFaultsList
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ThreadNetworkDiagnostics
@@ -1390,9 +1520,13 @@
static constexpr AttributeId Id = 0x0000000C;
} // namespace OverrunCount
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace WiFiNetworkDiagnostics
@@ -1436,9 +1570,13 @@
static constexpr AttributeId Id = 0x00000008;
} // namespace TimeSinceReset
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace EthernetNetworkDiagnostics
@@ -1502,9 +1640,13 @@
static constexpr AttributeId Id = 0x00000011;
} // namespace Reachable
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BridgedDeviceBasic
@@ -1524,13 +1666,31 @@
static constexpr AttributeId Id = 0x00000002;
} // namespace MultiPressMax
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Switch
+namespace AdministratorCommissioning {
+namespace Attributes {
+
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
+
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
+
+} // namespace Attributes
+} // namespace AdministratorCommissioning
+
namespace OperationalCredentials {
namespace Attributes {
@@ -1550,9 +1710,13 @@
static constexpr AttributeId Id = 0x00000004;
} // namespace TrustedRootCertificates
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OperationalCredentials
@@ -1564,9 +1728,13 @@
static constexpr AttributeId Id = 0x00000000;
} // namespace LabelList
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace FixedLabel
@@ -1578,9 +1746,13 @@
static constexpr AttributeId Id = 0x00000000;
} // namespace StateValue
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BooleanState
@@ -1608,9 +1780,13 @@
static constexpr AttributeId Id = 0x00000011;
} // namespace Mode
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ShadeConfiguration
@@ -1790,9 +1966,13 @@
static constexpr AttributeId Id = 0x00000047;
} // namespace RfidProgrammingEventMask
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace DoorLock
@@ -1908,9 +2088,13 @@
static constexpr AttributeId Id = 0x0000001A;
} // namespace SafetyStatus
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace WindowCovering
@@ -1958,9 +2142,13 @@
static constexpr AttributeId Id = 0x0000000A;
} // namespace BarrierPosition
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BarrierControl
@@ -2064,9 +2252,13 @@
static constexpr AttributeId Id = 0x00000022;
} // namespace AlarmMask
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace PumpConfigurationAndControl
@@ -2246,9 +2438,13 @@
static constexpr AttributeId Id = 0x00000047;
} // namespace AcCapacityFormat
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace Thermostat
@@ -2264,9 +2460,13 @@
static constexpr AttributeId Id = 0x00000001;
} // namespace FanModeSequence
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace FanControl
@@ -2306,9 +2506,13 @@
static constexpr AttributeId Id = 0x00000015;
} // namespace RelativeHumidityDisplay
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace DehumidificationControl
@@ -2328,9 +2532,13 @@
static constexpr AttributeId Id = 0x00000002;
} // namespace ScheduleProgrammingVisibility
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ThermostatUserInterfaceConfiguration
@@ -2546,9 +2754,13 @@
static constexpr AttributeId Id = 0x00004010;
} // namespace StartUpColorTemperatureMireds
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ColorControl
@@ -2620,9 +2832,13 @@
static constexpr AttributeId Id = 0x00000035;
} // namespace LampBurnHoursTripPoint
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BallastConfiguration
@@ -2650,9 +2866,13 @@
static constexpr AttributeId Id = 0x00000004;
} // namespace LightSensorType
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace IlluminanceMeasurement
@@ -2672,9 +2892,13 @@
static constexpr AttributeId Id = 0x00000010;
} // namespace IlluminanceLevelTarget
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace IlluminanceLevelSensing
@@ -2698,9 +2922,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TemperatureMeasurement
@@ -2744,9 +2972,13 @@
static constexpr AttributeId Id = 0x00000014;
} // namespace Scale
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace PressureMeasurement
@@ -2770,9 +3002,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace FlowMeasurement
@@ -2796,9 +3032,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace RelativeHumidityMeasurement
@@ -2854,9 +3094,13 @@
static constexpr AttributeId Id = 0x00000032;
} // namespace PhysicalContactUnoccupiedToOccupiedThreshold
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OccupancySensing
@@ -2880,9 +3124,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace CarbonMonoxideConcentrationMeasurement
@@ -2906,9 +3154,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace CarbonDioxideConcentrationMeasurement
@@ -2932,9 +3184,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace EthyleneConcentrationMeasurement
@@ -2958,9 +3214,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace EthyleneOxideConcentrationMeasurement
@@ -2984,9 +3244,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace HydrogenConcentrationMeasurement
@@ -3010,9 +3274,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace HydrogenSulphideConcentrationMeasurement
@@ -3036,9 +3304,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace NitricOxideConcentrationMeasurement
@@ -3062,9 +3334,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace NitrogenDioxideConcentrationMeasurement
@@ -3088,9 +3364,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OxygenConcentrationMeasurement
@@ -3114,9 +3394,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace OzoneConcentrationMeasurement
@@ -3140,9 +3424,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace SulfurDioxideConcentrationMeasurement
@@ -3166,9 +3454,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace DissolvedOxygenConcentrationMeasurement
@@ -3192,9 +3484,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BromateConcentrationMeasurement
@@ -3218,9 +3514,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ChloraminesConcentrationMeasurement
@@ -3244,9 +3544,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ChlorineConcentrationMeasurement
@@ -3270,9 +3574,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace FecalColiformAndEColiConcentrationMeasurement
@@ -3296,9 +3604,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace FluorideConcentrationMeasurement
@@ -3322,9 +3634,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace HaloaceticAcidsConcentrationMeasurement
@@ -3348,9 +3664,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TotalTrihalomethanesConcentrationMeasurement
@@ -3374,9 +3694,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TotalColiformBacteriaConcentrationMeasurement
@@ -3400,9 +3724,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TurbidityConcentrationMeasurement
@@ -3426,9 +3754,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace CopperConcentrationMeasurement
@@ -3452,9 +3784,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace LeadConcentrationMeasurement
@@ -3478,9 +3814,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ManganeseConcentrationMeasurement
@@ -3504,9 +3844,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace SulfateConcentrationMeasurement
@@ -3530,9 +3874,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BromodichloromethaneConcentrationMeasurement
@@ -3556,9 +3904,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace BromoformConcentrationMeasurement
@@ -3582,9 +3934,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ChlorodibromomethaneConcentrationMeasurement
@@ -3608,9 +3964,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ChloroformConcentrationMeasurement
@@ -3634,9 +3994,13 @@
static constexpr AttributeId Id = 0x00000003;
} // namespace Tolerance
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace SodiumConcentrationMeasurement
@@ -3672,13 +4036,31 @@
static constexpr AttributeId Id = 0x00000013;
} // namespace CurrentZoneSensitivityLevel
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace IasZone
+namespace IasAce {
+namespace Attributes {
+
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
+
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
+
+} // namespace Attributes
+} // namespace IasAce
+
namespace IasWd {
namespace Attributes {
@@ -3686,9 +4068,13 @@
static constexpr AttributeId Id = 0x00000000;
} // namespace MaxDuration
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace IasWd
@@ -3700,9 +4086,13 @@
static constexpr AttributeId Id = 0x00000000;
} // namespace WakeOnLanMacAddress
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace WakeOnLan
@@ -3722,9 +4112,13 @@
static constexpr AttributeId Id = 0x00000002;
} // namespace CurrentTvChannel
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TvChannel
@@ -3740,9 +4134,13 @@
static constexpr AttributeId Id = 0x00000001;
} // namespace CurrentNavigatorTarget
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TargetNavigator
@@ -3782,9 +4180,13 @@
static constexpr AttributeId Id = 0x00000007;
} // namespace SeekRangeStart
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace MediaPlayback
@@ -3800,13 +4202,45 @@
static constexpr AttributeId Id = 0x00000001;
} // namespace CurrentMediaInput
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace MediaInput
+namespace LowPower {
+namespace Attributes {
+
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
+
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
+
+} // namespace Attributes
+} // namespace LowPower
+
+namespace KeypadInput {
+namespace Attributes {
+
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
+
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
+
+} // namespace Attributes
+} // namespace KeypadInput
+
namespace ContentLauncher {
namespace Attributes {
@@ -3818,9 +4252,13 @@
static constexpr AttributeId Id = 0x00000001;
} // namespace SupportedStreamingTypes
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ContentLauncher
@@ -3836,9 +4274,13 @@
static constexpr AttributeId Id = 0x00000001;
} // namespace CurrentAudioOutput
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace AudioOutput
@@ -3858,9 +4300,13 @@
static constexpr AttributeId Id = 0x00000002;
} // namespace ApplicationId
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ApplicationLauncher
@@ -3896,13 +4342,31 @@
static constexpr AttributeId Id = 0x00000007;
} // namespace ApplicationStatus
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ApplicationBasic
+namespace AccountLogin {
+namespace Attributes {
+
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
+
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
+
+} // namespace Attributes
+} // namespace AccountLogin
+
namespace TestCluster {
namespace Attributes {
@@ -4006,13 +4470,31 @@
static constexpr AttributeId Id = 0x000000FF;
} // namespace Unsupported
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace TestCluster
+namespace Messaging {
+namespace Attributes {
+
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
+
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
+
+} // namespace Attributes
+} // namespace Messaging
+
namespace ApplianceIdentification {
namespace Attributes {
@@ -4064,9 +4546,13 @@
static constexpr AttributeId Id = 0x0000001A;
} // namespace CecedSpecificationVersion
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ApplianceIdentification
@@ -4122,13 +4608,31 @@
static constexpr AttributeId Id = 0x0000000E;
} // namespace PowerThreshold
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace MeterIdentification
+namespace ApplianceEventsAndAlert {
+namespace Attributes {
+
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
+
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
+
+} // namespace Attributes
+} // namespace ApplianceEventsAndAlert
+
namespace ApplianceStatistics {
namespace Attributes {
@@ -4140,9 +4644,13 @@
static constexpr AttributeId Id = 0x00000001;
} // namespace LogQueueMaxSize
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ApplianceStatistics
@@ -4662,13 +5170,31 @@
static constexpr AttributeId Id = 0x00000A17;
} // namespace RmsVoltageSwellPeriodPhaseC
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace ElectricalMeasurement
+namespace Binding {
+namespace Attributes {
+
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
+
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
+
+} // namespace Attributes
+} // namespace Binding
+
namespace GroupKeyManagement {
namespace Attributes {
@@ -4680,9 +5206,13 @@
static constexpr AttributeId Id = 0x00000001;
} // namespace GroupKeys
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace GroupKeyManagement
@@ -4698,9 +5228,13 @@
static constexpr AttributeId Id = 0x10020001;
} // namespace EmberSampleAttribute2
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace SampleMfgSpecificCluster
@@ -4716,9 +5250,13 @@
static constexpr AttributeId Id = 0x10490001;
} // namespace EmberSampleAttribute4
-namespace FeatureMap = Globals::Attributes::FeatureMap;
+namespace FeatureMap {
+static constexpr AttributeId Id = Globals::Attributes::FeatureMap::Id;
+} // namespace FeatureMap
-namespace ClusterRevision = Globals::Attributes::ClusterRevision;
+namespace ClusterRevision {
+static constexpr AttributeId Id = Globals::Attributes::ClusterRevision::Id;
+} // namespace ClusterRevision
} // namespace Attributes
} // namespace SampleMfgSpecificCluster2
diff --git a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp
index baf39de..95011d0 100644
--- a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp
+++ b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp
@@ -966,20 +966,18 @@
BasicAttributeFilter<CharStringAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::Basic::Attributes::UserLabel::TypeInfo>(
+ const chip::app::Clusters::Basic::Attributes::UserLabel::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR BasicCluster::WriteAttributeUserLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback,
chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000005;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::UserLabel::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -994,20 +992,18 @@
BasicAttributeFilter<CharStringAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::Basic::Attributes::Location::TypeInfo>(
+ const chip::app::Clusters::Basic::Attributes::Location::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR BasicCluster::WriteAttributeLocation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback,
chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000006;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::Location::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -1129,20 +1125,18 @@
BasicAttributeFilter<BooleanAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::Basic::Attributes::LocalConfigDisabled::TypeInfo>(
+ const chip::app::Clusters::Basic::Attributes::LocalConfigDisabled::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR BasicCluster::WriteAttributeLocalConfigDisabled(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000010;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::LocalConfigDisabled::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -1188,20 +1182,18 @@
BasicAttributeFilter<BooleanAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::BinaryInputBasic::Attributes::OutOfService::TypeInfo>(
+ const chip::app::Clusters::BinaryInputBasic::Attributes::OutOfService::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR BinaryInputBasicCluster::WriteAttributeOutOfService(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000051;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BinaryInputBasic::Attributes::OutOfService::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -1217,20 +1209,18 @@
BasicAttributeFilter<BooleanAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::BinaryInputBasic::Attributes::PresentValue::TypeInfo>(
+ const chip::app::Clusters::BinaryInputBasic::Attributes::PresentValue::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR BinaryInputBasicCluster::WriteAttributePresentValue(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000055;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BinaryInputBasic::Attributes::PresentValue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -1507,20 +1497,18 @@
BasicAttributeFilter<CharStringAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::BridgedDeviceBasic::Attributes::UserLabel::TypeInfo>(
+ const chip::app::Clusters::BridgedDeviceBasic::Attributes::UserLabel::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR BridgedDeviceBasicCluster::WriteAttributeUserLabel(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000005;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::UserLabel::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -2811,20 +2799,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::ColorControlOptions::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::ColorControlOptions::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeColorControlOptions(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000000F;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorControlOptions::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -3068,20 +3054,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::WhitePointX::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::WhitePointX::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeWhitePointX(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000030;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::WhitePointX::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -3097,20 +3081,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::WhitePointY::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::WhitePointY::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeWhitePointY(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000031;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::WhitePointY::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -3126,20 +3108,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::ColorPointRX::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::ColorPointRX::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeColorPointRX(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000032;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorPointRX::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -3155,20 +3135,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::ColorPointRY::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::ColorPointRY::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeColorPointRY(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000033;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorPointRY::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -3184,20 +3162,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::ColorPointRIntensity::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::ColorPointRIntensity::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeColorPointRIntensity(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000034;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorPointRIntensity::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -3213,20 +3189,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::ColorPointGX::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::ColorPointGX::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeColorPointGX(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000036;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorPointGX::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -3242,20 +3216,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::ColorPointGY::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::ColorPointGY::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeColorPointGY(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000037;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorPointGY::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -3271,20 +3243,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::ColorPointGIntensity::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::ColorPointGIntensity::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeColorPointGIntensity(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000038;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorPointGIntensity::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -3300,20 +3270,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::ColorPointBX::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::ColorPointBX::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeColorPointBX(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000003A;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorPointBX::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -3329,20 +3297,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::ColorPointBY::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::ColorPointBY::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeColorPointBY(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000003B;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorPointBY::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -3358,20 +3324,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::ColorPointBIntensity::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::ColorPointBIntensity::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeColorPointBIntensity(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000003C;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorPointBIntensity::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -3519,21 +3483,20 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR
+ClusterBase::WriteAttribute<chip::app::Clusters::ColorControl::Attributes::StartUpColorTemperatureMireds::TypeInfo>(
+ const chip::app::Clusters::ColorControl::Attributes::StartUpColorTemperatureMireds::TypeInfo::Type & requestData,
+ void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ColorControlCluster::WriteAttributeStartUpColorTemperatureMireds(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00004010;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::StartUpColorTemperatureMireds::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -5632,20 +5595,18 @@
BasicAttributeFilter<Int64uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::GeneralCommissioning::Attributes::Breadcrumb::TypeInfo>(
+ const chip::app::Clusters::GeneralCommissioning::Attributes::Breadcrumb::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR GeneralCommissioningCluster::WriteAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000000;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, GeneralCommissioning::Attributes::Breadcrumb::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -6252,20 +6213,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::Identify::Attributes::IdentifyTime::TypeInfo>(
+ const chip::app::Clusters::Identify::Attributes::IdentifyTime::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR IdentifyCluster::WriteAttributeIdentifyTime(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000000;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Identify::Attributes::IdentifyTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -6843,20 +6802,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::LevelControl::Attributes::Options::TypeInfo>(
+ const chip::app::Clusters::LevelControl::Attributes::Options::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR LevelControlCluster::WriteAttributeOptions(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000000F;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::Options::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -6872,20 +6829,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::LevelControl::Attributes::OnOffTransitionTime::TypeInfo>(
+ const chip::app::Clusters::LevelControl::Attributes::OnOffTransitionTime::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR LevelControlCluster::WriteAttributeOnOffTransitionTime(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000010;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::OnOffTransitionTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -6901,20 +6856,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::LevelControl::Attributes::OnLevel::TypeInfo>(
+ const chip::app::Clusters::LevelControl::Attributes::OnLevel::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR LevelControlCluster::WriteAttributeOnLevel(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000011;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::OnLevel::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -6930,20 +6883,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::LevelControl::Attributes::OnTransitionTime::TypeInfo>(
+ const chip::app::Clusters::LevelControl::Attributes::OnTransitionTime::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR LevelControlCluster::WriteAttributeOnTransitionTime(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000012;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::OnTransitionTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -6959,20 +6910,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::LevelControl::Attributes::OffTransitionTime::TypeInfo>(
+ const chip::app::Clusters::LevelControl::Attributes::OffTransitionTime::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR LevelControlCluster::WriteAttributeOffTransitionTime(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000013;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::OffTransitionTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -6988,20 +6937,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::LevelControl::Attributes::DefaultMoveRate::TypeInfo>(
+ const chip::app::Clusters::LevelControl::Attributes::DefaultMoveRate::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR LevelControlCluster::WriteAttributeDefaultMoveRate(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000014;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::DefaultMoveRate::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -7017,20 +6964,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::LevelControl::Attributes::StartUpCurrentLevel::TypeInfo>(
+ const chip::app::Clusters::LevelControl::Attributes::StartUpCurrentLevel::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR LevelControlCluster::WriteAttributeStartUpCurrentLevel(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00004000;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::StartUpCurrentLevel::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -8724,21 +8669,21 @@
BasicAttributeFilter<OctetStringAttributeCallback>);
}
+template CHIP_ERROR
+ClusterBase::WriteAttribute<chip::app::Clusters::OtaSoftwareUpdateRequestor::Attributes::DefaultOtaProvider::TypeInfo>(
+ const chip::app::Clusters::OtaSoftwareUpdateRequestor::Attributes::DefaultOtaProvider::TypeInfo::Type & requestData,
+ void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR OtaSoftwareUpdateRequestorCluster::WriteAttributeDefaultOtaProvider(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
chip::ByteSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000001;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OtaSoftwareUpdateRequestor::Attributes::DefaultOtaProvider::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -9132,20 +9077,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::OnOff::Attributes::OnTime::TypeInfo>(
+ const chip::app::Clusters::OnOff::Attributes::OnTime::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR OnOffCluster::WriteAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback,
uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00004001;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::OnTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -9161,20 +9104,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::OnOff::Attributes::OffWaitTime::TypeInfo>(
+ const chip::app::Clusters::OnOff::Attributes::OffWaitTime::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR OnOffCluster::WriteAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00004002;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::OffWaitTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -9190,20 +9131,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::OnOff::Attributes::StartUpOnOff::TypeInfo>(
+ const chip::app::Clusters::OnOff::Attributes::StartUpOnOff::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR OnOffCluster::WriteAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00004003;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::StartUpOnOff::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -9286,20 +9225,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::OnOffSwitchConfiguration::Attributes::SwitchActions::TypeInfo>(
+ const chip::app::Clusters::OnOffSwitchConfiguration::Attributes::SwitchActions::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR OnOffSwitchConfigurationCluster::WriteAttributeSwitchActions(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000010;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOffSwitchConfiguration::Attributes::SwitchActions::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -10292,20 +10229,19 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR
+ClusterBase::WriteAttribute<chip::app::Clusters::PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo>(
+ const chip::app::Clusters::PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR PumpConfigurationAndControlCluster::WriteAttributeOperationMode(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000020;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::OperationMode::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -10321,20 +10257,19 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR
+ClusterBase::WriteAttribute<chip::app::Clusters::PumpConfigurationAndControl::Attributes::ControlMode::TypeInfo>(
+ const chip::app::Clusters::PumpConfigurationAndControl::Attributes::ControlMode::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR PumpConfigurationAndControlCluster::WriteAttributeControlMode(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000021;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::ControlMode::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -11754,20 +11689,18 @@
BasicAttributeFilter<BooleanAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Boolean::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Boolean::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeBoolean(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000000;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Boolean::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -11783,20 +11716,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Bitmap8::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Bitmap8::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeBitmap8(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000001;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Bitmap8::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -11812,20 +11743,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Bitmap16::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Bitmap16::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeBitmap16(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000002;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Bitmap16::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -11841,20 +11770,18 @@
BasicAttributeFilter<Int32uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Bitmap32::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Bitmap32::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeBitmap32(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000003;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Bitmap32::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -11870,20 +11797,18 @@
BasicAttributeFilter<Int64uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Bitmap64::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Bitmap64::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeBitmap64(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000004;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Bitmap64::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -11899,20 +11824,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Int8u::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Int8u::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeInt8u(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000005;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Int8u::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -11928,20 +11851,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Int16u::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Int16u::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeInt16u(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000006;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Int16u::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -11957,20 +11878,18 @@
BasicAttributeFilter<Int32uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Int32u::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Int32u::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeInt32u(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000008;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Int32u::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -11986,20 +11905,18 @@
BasicAttributeFilter<Int64uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Int64u::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Int64u::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeInt64u(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000000C;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Int64u::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12015,20 +11932,18 @@
BasicAttributeFilter<Int8sAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Int8s::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Int8s::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeInt8s(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, int8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000000D;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Int8s::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12044,20 +11959,18 @@
BasicAttributeFilter<Int16sAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Int16s::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Int16s::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeInt16s(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000000E;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Int16s::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12073,20 +11986,18 @@
BasicAttributeFilter<Int32sAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Int32s::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Int32s::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeInt32s(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, int32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000010;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Int32s::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12102,20 +12013,18 @@
BasicAttributeFilter<Int64sAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Int64s::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Int64s::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeInt64s(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, int64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000014;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Int64s::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12131,20 +12040,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Enum8::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Enum8::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeEnum8(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000015;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Enum8::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12160,20 +12067,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Enum16::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Enum16::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeEnum16(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000016;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Enum16::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12189,20 +12094,18 @@
BasicAttributeFilter<OctetStringAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::OctetString::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::OctetString::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeOctetString(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, chip::ByteSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000019;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::OctetString::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12254,20 +12157,18 @@
BasicAttributeFilter<OctetStringAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::LongOctetString::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::LongOctetString::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeLongOctetString(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, chip::ByteSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000001D;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::LongOctetString::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12283,20 +12184,18 @@
BasicAttributeFilter<CharStringAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::CharString::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::CharString::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeCharString(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000001E;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::CharString::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12312,20 +12211,18 @@
BasicAttributeFilter<CharStringAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::LongCharString::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::LongCharString::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeLongCharString(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000001F;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::LongCharString::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12341,20 +12238,18 @@
BasicAttributeFilter<Int64uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::EpochUs::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::EpochUs::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeEpochUs(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000020;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::EpochUs::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12370,20 +12265,18 @@
BasicAttributeFilter<Int32uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::EpochS::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::EpochS::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeEpochS(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000021;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::EpochS::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12399,20 +12292,18 @@
BasicAttributeFilter<BooleanAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::TestCluster::Attributes::Unsupported::TypeInfo>(
+ const chip::app::Clusters::TestCluster::Attributes::Unsupported::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR TestClusterCluster::WriteAttributeUnsupported(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x000000FF;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::Unsupported::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12780,20 +12671,18 @@
BasicAttributeFilter<Int16sAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::TypeInfo>(
+ const chip::app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ThermostatCluster::WriteAttributeOccupiedCoolingSetpoint(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000011;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::OccupiedCoolingSetpoint::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12809,20 +12698,18 @@
BasicAttributeFilter<Int16sAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::Thermostat::Attributes::OccupiedHeatingSetpoint::TypeInfo>(
+ const chip::app::Clusters::Thermostat::Attributes::OccupiedHeatingSetpoint::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ThermostatCluster::WriteAttributeOccupiedHeatingSetpoint(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000012;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::OccupiedHeatingSetpoint::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12838,20 +12725,18 @@
BasicAttributeFilter<Int16sAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::Thermostat::Attributes::MinHeatSetpointLimit::TypeInfo>(
+ const chip::app::Clusters::Thermostat::Attributes::MinHeatSetpointLimit::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ThermostatCluster::WriteAttributeMinHeatSetpointLimit(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000015;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::MinHeatSetpointLimit::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12867,20 +12752,18 @@
BasicAttributeFilter<Int16sAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::Thermostat::Attributes::MaxHeatSetpointLimit::TypeInfo>(
+ const chip::app::Clusters::Thermostat::Attributes::MaxHeatSetpointLimit::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ThermostatCluster::WriteAttributeMaxHeatSetpointLimit(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000016;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::MaxHeatSetpointLimit::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12896,20 +12779,18 @@
BasicAttributeFilter<Int16sAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::Thermostat::Attributes::MinCoolSetpointLimit::TypeInfo>(
+ const chip::app::Clusters::Thermostat::Attributes::MinCoolSetpointLimit::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ThermostatCluster::WriteAttributeMinCoolSetpointLimit(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000017;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::MinCoolSetpointLimit::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12925,20 +12806,18 @@
BasicAttributeFilter<Int16sAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::Thermostat::Attributes::MaxCoolSetpointLimit::TypeInfo>(
+ const chip::app::Clusters::Thermostat::Attributes::MaxCoolSetpointLimit::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ThermostatCluster::WriteAttributeMaxCoolSetpointLimit(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000018;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::MaxCoolSetpointLimit::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12954,20 +12833,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::Thermostat::Attributes::ControlSequenceOfOperation::TypeInfo>(
+ const chip::app::Clusters::Thermostat::Attributes::ControlSequenceOfOperation::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ThermostatCluster::WriteAttributeControlSequenceOfOperation(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000001B;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::ControlSequenceOfOperation::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -12983,20 +12860,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::Thermostat::Attributes::SystemMode::TypeInfo>(
+ const chip::app::Clusters::Thermostat::Attributes::SystemMode::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ThermostatCluster::WriteAttributeSystemMode(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x0000001C;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::SystemMode::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -13100,20 +12975,22 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<
+ chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>(
+ const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo::Type &
+ requestData,
+ void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::WriteAttributeTemperatureDisplayMode(
Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000000;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId,
+ ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -13129,21 +13006,21 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR
+ClusterBase::WriteAttribute<chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::TypeInfo>(
+ const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::TypeInfo::Type & requestData,
+ void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::WriteAttributeKeypadLockout(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000001;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -13160,20 +13037,22 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<
+ chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>(
+ const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo::Type &
+ requestData,
+ void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::WriteAttributeScheduleProgrammingVisibility(
Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000002;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId,
+ ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -14860,20 +14739,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::WindowCovering::Attributes::Mode::TypeInfo>(
+ const chip::app::Clusters::WindowCovering::Attributes::Mode::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR WindowCoveringCluster::WriteAttributeMode(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000017;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::Mode::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -14974,5 +14851,31 @@
requestData, onSuccessCb, onFailureCb);
};
+template <typename AttributeInfo>
+CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb)
+{
+ VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE);
+ ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded());
+
+ auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) {
+ if (successCb != nullptr)
+ {
+ successCb(context);
+ }
+ };
+
+ auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status,
+ CHIP_ERROR aError) {
+ if (failureCb != nullptr)
+ {
+ failureCb(context, app::ToEmberAfStatus(status.mStatus));
+ }
+ };
+
+ return chip::Controller::WriteAttribute<AttributeInfo>(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(),
+ mEndpoint, requestData, onSuccessCb, onFailureCb);
+}
+
} // namespace Controller
} // namespace chip
diff --git a/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTest.cpp b/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTest.cpp
index 671c663..3c402d1 100644
--- a/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTest.cpp
+++ b/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTest.cpp
@@ -22,6 +22,7 @@
#include <app/InteractionModelEngine.h>
#include <app/util/basic-types.h>
+#include <app-common/zap-generated/cluster-objects.h>
#include <app-common/zap-generated/ids/Attributes.h>
#include <zap-generated/CHIPClientCallbacks.h>
@@ -33,6080 +34,3640 @@
namespace Controller {
CHIP_ERROR AccountLoginClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, AccountLogin::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR AdministratorCommissioningClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, AdministratorCommissioning::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeVendorName(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan vendorName)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ApplicationBasic::Attributes::VendorName::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, vendorName));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::VendorName::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeVendorId(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t vendorId)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ApplicationBasic::Attributes::VendorId::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, vendorId));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::VendorId::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeApplicationName(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- chip::CharSpan applicationName)
+ chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ApplicationBasic::Attributes::ApplicationName::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, applicationName));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::ApplicationName::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeProductId(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t productId)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ApplicationBasic::Attributes::ProductId::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, productId));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::ProductId::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeApplicationId(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan applicationId)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ApplicationBasic::Attributes::ApplicationId::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, applicationId));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::ApplicationId::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t catalogVendorId)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ApplicationBasic::Attributes::CatalogVendorId::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, catalogVendorId));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::CatalogVendorId::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeApplicationStatus(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t applicationStatus)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ApplicationBasic::Attributes::ApplicationStatus::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, applicationStatus));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::ApplicationStatus::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ApplicationBasicClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationBasic::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR ApplicationLauncherClusterTest::WriteAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t catalogVendorId)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ApplicationLauncher::Attributes::CatalogVendorId::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, catalogVendorId));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationLauncher::Attributes::CatalogVendorId::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ApplicationLauncherClusterTest::WriteAttributeApplicationId(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t applicationId)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ApplicationLauncher::Attributes::ApplicationId::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, applicationId));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationLauncher::Attributes::ApplicationId::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ApplicationLauncherClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ApplicationLauncher::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR AudioOutputClusterTest::WriteAttributeCurrentAudioOutput(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t currentAudioOutput)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = AudioOutput::Attributes::CurrentAudioOutput::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentAudioOutput));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, AudioOutput::Attributes::CurrentAudioOutput::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR AudioOutputClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, AudioOutput::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR BarrierControlClusterTest::WriteAttributeBarrierMovingState(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t barrierMovingState)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BarrierControl::Attributes::BarrierMovingState::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, barrierMovingState));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BarrierControl::Attributes::BarrierMovingState::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BarrierControlClusterTest::WriteAttributeBarrierSafetyStatus(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t barrierSafetyStatus)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BarrierControl::Attributes::BarrierSafetyStatus::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, barrierSafetyStatus));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BarrierControl::Attributes::BarrierSafetyStatus::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BarrierControlClusterTest::WriteAttributeBarrierCapabilities(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t barrierCapabilities)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BarrierControl::Attributes::BarrierCapabilities::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, barrierCapabilities));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BarrierControl::Attributes::BarrierCapabilities::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BarrierControlClusterTest::WriteAttributeBarrierPosition(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t barrierPosition)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BarrierControl::Attributes::BarrierPosition::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, barrierPosition));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BarrierControl::Attributes::BarrierPosition::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BarrierControlClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BarrierControl::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR BasicClusterTest::WriteAttributeInteractionModelVersion(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t interactionModelVersion)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::InteractionModelVersion::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, interactionModelVersion));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::InteractionModelVersion::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeVendorName(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, chip::CharSpan vendorName)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::VendorName::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, vendorName));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::VendorName::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeVendorID(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t vendorID)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::VendorID::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, vendorID));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::VendorID::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeProductName(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, chip::CharSpan productName)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::ProductName::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, productName));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::ProductName::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeProductID(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t productID)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::ProductID::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, productID));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::ProductID::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeHardwareVersion(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t hardwareVersion)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::HardwareVersion::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, hardwareVersion));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::HardwareVersion::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeHardwareVersionString(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan hardwareVersionString)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::HardwareVersionString::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, hardwareVersionString));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::HardwareVersionString::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeSoftwareVersion(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint32_t softwareVersion)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::SoftwareVersion::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, softwareVersion));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::SoftwareVersion::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeSoftwareVersionString(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan softwareVersionString)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::SoftwareVersionString::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, softwareVersionString));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::SoftwareVersionString::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeManufacturingDate(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan manufacturingDate)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::ManufacturingDate::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, manufacturingDate));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::ManufacturingDate::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributePartNumber(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, chip::CharSpan partNumber)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::PartNumber::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, partNumber));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::PartNumber::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeProductURL(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, chip::CharSpan productURL)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::ProductURL::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, productURL));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::ProductURL::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeProductLabel(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, chip::CharSpan productLabel)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::ProductLabel::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, productLabel));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::ProductLabel::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeSerialNumber(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, chip::CharSpan serialNumber)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::SerialNumber::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, serialNumber));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::SerialNumber::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeReachable(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, bool reachable)
+ Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Basic::Attributes::Reachable::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, reachable));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::Reachable::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BasicClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Basic::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR BinaryInputBasicClusterTest::WriteAttributeStatusFlags(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t statusFlags)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BinaryInputBasic::Attributes::StatusFlags::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, statusFlags));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BinaryInputBasic::Attributes::StatusFlags::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BinaryInputBasicClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BinaryInputBasic::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR BindingClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Binding::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR BooleanStateClusterTest::WriteAttributeStateValue(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, bool stateValue)
+ Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BooleanState::Attributes::StateValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, stateValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BooleanState::Attributes::StateValue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BooleanStateClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BooleanState::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeVendorName(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan vendorName)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::VendorName::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, vendorName));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::VendorName::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeVendorID(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t vendorID)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::VendorID::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, vendorID));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::VendorID::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeProductName(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan productName)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::ProductName::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, productName));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::ProductName::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeHardwareVersion(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t hardwareVersion)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::HardwareVersion::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, hardwareVersion));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::HardwareVersion::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeHardwareVersionString(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- chip::CharSpan hardwareVersionString)
+ chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::HardwareVersionString::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, hardwareVersionString));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::HardwareVersionString::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeSoftwareVersion(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t softwareVersion)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::SoftwareVersion::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, softwareVersion));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::SoftwareVersion::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeSoftwareVersionString(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- chip::CharSpan softwareVersionString)
+ chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::SoftwareVersionString::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, softwareVersionString));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::SoftwareVersionString::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeManufacturingDate(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- chip::CharSpan manufacturingDate)
+ chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::ManufacturingDate::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, manufacturingDate));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::ManufacturingDate::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributePartNumber(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan partNumber)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::PartNumber::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, partNumber));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::PartNumber::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeProductURL(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan productURL)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::ProductURL::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, productURL));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::ProductURL::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeProductLabel(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan productLabel)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::ProductLabel::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, productLabel));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::ProductLabel::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeSerialNumber(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan serialNumber)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::SerialNumber::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, serialNumber));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::SerialNumber::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeReachable(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, bool reachable)
+ Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = BridgedDeviceBasic::Attributes::Reachable::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, reachable));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::Reachable::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR BridgedDeviceBasicClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, BridgedDeviceBasic::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR ColorControlClusterTest::WriteAttributeCurrentHue(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t currentHue)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::CurrentHue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentHue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::CurrentHue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeCurrentSaturation(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t currentSaturation)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::CurrentSaturation::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentSaturation));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::CurrentSaturation::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeRemainingTime(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t remainingTime)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::RemainingTime::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, remainingTime));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::RemainingTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeCurrentX(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t currentX)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::CurrentX::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentX));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::CurrentX::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeCurrentY(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t currentY)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::CurrentY::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentY));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::CurrentY::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeDriftCompensation(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t driftCompensation)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::DriftCompensation::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, driftCompensation));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::DriftCompensation::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeCompensationText(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan compensationText)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::CompensationText::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, compensationText));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::CompensationText::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeColorTemperature(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t colorTemperature)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::ColorTemperature::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, colorTemperature));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorTemperature::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeColorMode(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t colorMode)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::ColorMode::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, colorMode));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorMode::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeNumberOfPrimaries(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t numberOfPrimaries)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::NumberOfPrimaries::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, numberOfPrimaries));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::NumberOfPrimaries::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary1X(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t primary1X)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary1X::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary1X));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary1X::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary1Y(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t primary1Y)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary1Y::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary1Y));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary1Y::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary1Intensity(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t primary1Intensity)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary1Intensity::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary1Intensity));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary1Intensity::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary2X(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t primary2X)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary2X::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary2X));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary2X::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary2Y(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t primary2Y)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary2Y::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary2Y));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary2Y::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary2Intensity(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t primary2Intensity)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary2Intensity::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary2Intensity));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary2Intensity::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary3X(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t primary3X)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary3X::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary3X));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary3X::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary3Y(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t primary3Y)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary3Y::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary3Y));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary3Y::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary3Intensity(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t primary3Intensity)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary3Intensity::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary3Intensity));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary3Intensity::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary4X(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t primary4X)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary4X::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary4X));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary4X::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary4Y(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t primary4Y)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary4Y::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary4Y));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary4Y::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary4Intensity(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t primary4Intensity)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary4Intensity::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary4Intensity));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary4Intensity::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary5X(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t primary5X)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary5X::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary5X));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary5X::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary5Y(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t primary5Y)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary5Y::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary5Y));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary5Y::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary5Intensity(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t primary5Intensity)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary5Intensity::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary5Intensity));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary5Intensity::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary6X(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t primary6X)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary6X::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary6X));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary6X::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary6Y(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t primary6Y)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary6Y::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary6Y));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary6Y::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributePrimary6Intensity(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t primary6Intensity)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::Primary6Intensity::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, primary6Intensity));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::Primary6Intensity::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeEnhancedCurrentHue(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t enhancedCurrentHue)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::EnhancedCurrentHue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, enhancedCurrentHue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::EnhancedCurrentHue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeEnhancedColorMode(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t enhancedColorMode)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::EnhancedColorMode::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, enhancedColorMode));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::EnhancedColorMode::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopActive(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t colorLoopActive)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::ColorLoopActive::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, colorLoopActive));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorLoopActive::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopDirection(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t colorLoopDirection)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::ColorLoopDirection::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, colorLoopDirection));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorLoopDirection::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopTime(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t colorLoopTime)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::ColorLoopTime::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, colorLoopTime));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorLoopTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopStartEnhancedHue(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t colorLoopStartEnhancedHue)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::ColorLoopStartEnhancedHue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, colorLoopStartEnhancedHue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorLoopStartEnhancedHue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeColorLoopStoredEnhancedHue(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t colorLoopStoredEnhancedHue)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, colorLoopStoredEnhancedHue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeColorCapabilities(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t colorCapabilities)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::ColorCapabilities::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, colorCapabilities));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorCapabilities::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeColorTempPhysicalMin(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t colorTempPhysicalMin)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::ColorTempPhysicalMin::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, colorTempPhysicalMin));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorTempPhysicalMin::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeColorTempPhysicalMax(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t colorTempPhysicalMax)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::ColorTempPhysicalMax::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, colorTempPhysicalMax));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ColorTempPhysicalMax::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeCoupleColorTempToLevelMinMireds(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t coupleColorTempToLevelMinMireds)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ColorControl::Attributes::CoupleColorTempToLevelMinMireds::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, coupleColorTempToLevelMinMireds));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::CoupleColorTempToLevelMinMireds::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ColorControlClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ColorControl::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR ContentLauncherClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ContentLauncher::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR DescriptorClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Descriptor::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR DoorLockClusterTest::WriteAttributeLockState(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t lockState)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = DoorLock::Attributes::LockState::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, lockState));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, DoorLock::Attributes::LockState::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR DoorLockClusterTest::WriteAttributeLockType(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t lockType)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = DoorLock::Attributes::LockType::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, lockType));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, DoorLock::Attributes::LockType::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR DoorLockClusterTest::WriteAttributeActuatorEnabled(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, bool actuatorEnabled)
+ Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = DoorLock::Attributes::ActuatorEnabled::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, actuatorEnabled));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, DoorLock::Attributes::ActuatorEnabled::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR DoorLockClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, DoorLock::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeMeasurementType(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t measurementType)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ElectricalMeasurement::Attributes::MeasurementType::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, measurementType));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::MeasurementType::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeTotalActivePower(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int32_t totalActivePower)
+ Callback::Cancelable * onFailureCallback, int32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ElectricalMeasurement::Attributes::TotalActivePower::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, totalActivePower));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::TotalActivePower::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsVoltage(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t rmsVoltage)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ElectricalMeasurement::Attributes::RmsVoltage::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rmsVoltage));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::RmsVoltage::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsVoltageMin(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t rmsVoltageMin)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ElectricalMeasurement::Attributes::RmsVoltageMin::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rmsVoltageMin));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::RmsVoltageMin::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsVoltageMax(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t rmsVoltageMax)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ElectricalMeasurement::Attributes::RmsVoltageMax::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rmsVoltageMax));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::RmsVoltageMax::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsCurrent(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t rmsCurrent)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ElectricalMeasurement::Attributes::RmsCurrent::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rmsCurrent));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::RmsCurrent::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsCurrentMin(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t rmsCurrentMin)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ElectricalMeasurement::Attributes::RmsCurrentMin::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rmsCurrentMin));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::RmsCurrentMin::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeRmsCurrentMax(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t rmsCurrentMax)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ElectricalMeasurement::Attributes::RmsCurrentMax::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rmsCurrentMax));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::RmsCurrentMax::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeActivePower(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t activePower)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ElectricalMeasurement::Attributes::ActivePower::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, activePower));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::ActivePower::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeActivePowerMin(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t activePowerMin)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ElectricalMeasurement::Attributes::ActivePowerMin::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, activePowerMin));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::ActivePowerMin::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeActivePowerMax(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t activePowerMax)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ElectricalMeasurement::Attributes::ActivePowerMax::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, activePowerMax));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::ActivePowerMax::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ElectricalMeasurementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ElectricalMeasurement::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributePHYRate(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t PHYRate)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = EthernetNetworkDiagnostics::Attributes::PHYRate::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, PHYRate));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::PHYRate::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeFullDuplex(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- bool fullDuplex)
+ Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = EthernetNetworkDiagnostics::Attributes::FullDuplex::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, fullDuplex));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::FullDuplex::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributePacketRxCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint64_t packetRxCount)
+ uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = EthernetNetworkDiagnostics::Attributes::PacketRxCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, packetRxCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::PacketRxCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributePacketTxCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint64_t packetTxCount)
+ uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = EthernetNetworkDiagnostics::Attributes::PacketTxCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, packetTxCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::PacketTxCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeTxErrCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint64_t txErrCount)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = EthernetNetworkDiagnostics::Attributes::TxErrCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txErrCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::TxErrCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeCollisionCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint64_t collisionCount)
+ uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = EthernetNetworkDiagnostics::Attributes::CollisionCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, collisionCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::CollisionCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeOverrunCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint64_t overrunCount)
+ uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = EthernetNetworkDiagnostics::Attributes::OverrunCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, overrunCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::OverrunCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeCarrierDetect(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- bool carrierDetect)
+ Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = EthernetNetworkDiagnostics::Attributes::CarrierDetect::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, carrierDetect));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::CarrierDetect::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeTimeSinceReset(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint64_t timeSinceReset)
+ uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = EthernetNetworkDiagnostics::Attributes::TimeSinceReset::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, timeSinceReset));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::TimeSinceReset::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR EthernetNetworkDiagnosticsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, EthernetNetworkDiagnostics::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR FixedLabelClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, FixedLabel::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, int16_t measuredValue)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = FlowMeasurement::Attributes::MeasuredValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, measuredValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, FlowMeasurement::Attributes::MeasuredValue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t minMeasuredValue)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = FlowMeasurement::Attributes::MinMeasuredValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, minMeasuredValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, FlowMeasurement::Attributes::MinMeasuredValue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t maxMeasuredValue)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = FlowMeasurement::Attributes::MaxMeasuredValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxMeasuredValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, FlowMeasurement::Attributes::MaxMeasuredValue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR FlowMeasurementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, FlowMeasurement::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR GeneralCommissioningClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, GeneralCommissioning::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeRebootCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t rebootCount)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = GeneralDiagnostics::Attributes::RebootCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rebootCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, GeneralDiagnostics::Attributes::RebootCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeUpTime(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint64_t upTime)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = GeneralDiagnostics::Attributes::UpTime::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, upTime));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, GeneralDiagnostics::Attributes::UpTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeTotalOperationalHours(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t totalOperationalHours)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = GeneralDiagnostics::Attributes::TotalOperationalHours::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, totalOperationalHours));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, GeneralDiagnostics::Attributes::TotalOperationalHours::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeBootReasons(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t bootReasons)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = GeneralDiagnostics::Attributes::BootReasons::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, bootReasons));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, GeneralDiagnostics::Attributes::BootReasons::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR GeneralDiagnosticsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, GeneralDiagnostics::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR GroupKeyManagementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, GroupKeyManagement::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR GroupsClusterTest::WriteAttributeNameSupport(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t nameSupport)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Groups::Attributes::NameSupport::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, nameSupport));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Groups::Attributes::NameSupport::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR GroupsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Groups::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR IdentifyClusterTest::WriteAttributeIdentifyType(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t identifyType)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Identify::Attributes::IdentifyType::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, identifyType));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Identify::Attributes::IdentifyType::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR IdentifyClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Identify::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR KeypadInputClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, KeypadInput::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR LevelControlClusterTest::WriteAttributeCurrentLevel(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t currentLevel)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = LevelControl::Attributes::CurrentLevel::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentLevel));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::CurrentLevel::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR LevelControlClusterTest::WriteAttributeRemainingTime(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t remainingTime)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = LevelControl::Attributes::RemainingTime::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, remainingTime));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::RemainingTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR LevelControlClusterTest::WriteAttributeMinLevel(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t minLevel)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = LevelControl::Attributes::MinLevel::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, minLevel));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::MinLevel::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR LevelControlClusterTest::WriteAttributeMaxLevel(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t maxLevel)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = LevelControl::Attributes::MaxLevel::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxLevel));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::MaxLevel::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR LevelControlClusterTest::WriteAttributeCurrentFrequency(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t currentFrequency)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = LevelControl::Attributes::CurrentFrequency::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentFrequency));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::CurrentFrequency::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR LevelControlClusterTest::WriteAttributeMinFrequency(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t minFrequency)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = LevelControl::Attributes::MinFrequency::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, minFrequency));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::MinFrequency::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR LevelControlClusterTest::WriteAttributeMaxFrequency(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t maxFrequency)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = LevelControl::Attributes::MaxFrequency::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxFrequency));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::MaxFrequency::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR LevelControlClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LevelControl::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR LowPowerClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, LowPower::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR MediaInputClusterTest::WriteAttributeCurrentMediaInput(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t currentMediaInput)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = MediaInput::Attributes::CurrentMediaInput::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentMediaInput));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, MediaInput::Attributes::CurrentMediaInput::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR MediaInputClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, MediaInput::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR MediaPlaybackClusterTest::WriteAttributePlaybackState(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t playbackState)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = MediaPlayback::Attributes::PlaybackState::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, playbackState));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::PlaybackState::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeStartTime(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint64_t startTime)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = MediaPlayback::Attributes::StartTime::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, startTime));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::StartTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeDuration(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint64_t duration)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = MediaPlayback::Attributes::Duration::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, duration));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::Duration::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR MediaPlaybackClusterTest::WriteAttributePositionUpdatedAt(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint64_t positionUpdatedAt)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = MediaPlayback::Attributes::PositionUpdatedAt::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, positionUpdatedAt));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::PositionUpdatedAt::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR MediaPlaybackClusterTest::WriteAttributePosition(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint64_t position)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = MediaPlayback::Attributes::Position::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, position));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::Position::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR MediaPlaybackClusterTest::WriteAttributePlaybackSpeed(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint64_t playbackSpeed)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = MediaPlayback::Attributes::PlaybackSpeed::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, playbackSpeed));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::PlaybackSpeed::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeSeekRangeEnd(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint64_t seekRangeEnd)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = MediaPlayback::Attributes::SeekRangeEnd::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, seekRangeEnd));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::SeekRangeEnd::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeSeekRangeStart(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint64_t seekRangeStart)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = MediaPlayback::Attributes::SeekRangeStart::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, seekRangeStart));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::SeekRangeStart::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR MediaPlaybackClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, MediaPlayback::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR NetworkCommissioningClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint32_t featureMap)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::FeatureMap::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, featureMap));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, NetworkCommissioning::Attributes::FeatureMap::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR NetworkCommissioningClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, NetworkCommissioning::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR OtaSoftwareUpdateProviderClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OtaSoftwareUpdateProvider::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR OtaSoftwareUpdateRequestorClusterTest::WriteAttributeUpdatePossible(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- bool updatePossible)
+ Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = OtaSoftwareUpdateRequestor::Attributes::UpdatePossible::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, updatePossible));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OtaSoftwareUpdateRequestor::Attributes::UpdatePossible::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR OtaSoftwareUpdateRequestorClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OtaSoftwareUpdateRequestor::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR OccupancySensingClusterTest::WriteAttributeOccupancy(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t occupancy)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = OccupancySensing::Attributes::Occupancy::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, occupancy));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OccupancySensing::Attributes::Occupancy::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR OccupancySensingClusterTest::WriteAttributeOccupancySensorType(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t occupancySensorType)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = OccupancySensing::Attributes::OccupancySensorType::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, occupancySensorType));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OccupancySensing::Attributes::OccupancySensorType::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR OccupancySensingClusterTest::WriteAttributeOccupancySensorTypeBitmap(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint8_t occupancySensorTypeBitmap)
+ uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = OccupancySensing::Attributes::OccupancySensorTypeBitmap::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, occupancySensorTypeBitmap));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OccupancySensing::Attributes::OccupancySensorTypeBitmap::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR OccupancySensingClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OccupancySensing::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR OnOffClusterTest::WriteAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback,
- bool onOff)
+ bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = OnOff::Attributes::OnOff::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, onOff));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::OnOff::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR OnOffClusterTest::WriteAttributeGlobalSceneControl(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, bool globalSceneControl)
+ Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = OnOff::Attributes::GlobalSceneControl::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, globalSceneControl));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::GlobalSceneControl::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR OnOffClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint32_t featureMap)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::FeatureMap::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, featureMap));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::FeatureMap::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR OnOffClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR OnOffSwitchConfigurationClusterTest::WriteAttributeSwitchType(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t switchType)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = OnOffSwitchConfiguration::Attributes::SwitchType::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, switchType));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOffSwitchConfiguration::Attributes::SwitchType::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR OnOffSwitchConfigurationClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOffSwitchConfiguration::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR OperationalCredentialsClusterTest::WriteAttributeSupportedFabrics(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint8_t supportedFabrics)
+ uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = OperationalCredentials::Attributes::SupportedFabrics::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, supportedFabrics));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OperationalCredentials::Attributes::SupportedFabrics::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR OperationalCredentialsClusterTest::WriteAttributeCommissionedFabrics(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint8_t commissionedFabrics)
+ uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = OperationalCredentials::Attributes::CommissionedFabrics::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, commissionedFabrics));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OperationalCredentials::Attributes::CommissionedFabrics::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR OperationalCredentialsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OperationalCredentials::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR PowerSourceClusterTest::WriteAttributeStatus(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t status)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PowerSource::Attributes::Status::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, status));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::Status::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PowerSourceClusterTest::WriteAttributeOrder(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t order)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PowerSource::Attributes::Order::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, order));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::Order::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PowerSourceClusterTest::WriteAttributeDescription(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, chip::CharSpan description)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PowerSource::Attributes::Description::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, description));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::Description::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryVoltage(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint32_t batteryVoltage)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PowerSource::Attributes::BatteryVoltage::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, batteryVoltage));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::BatteryVoltage::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryPercentRemaining(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t batteryPercentRemaining)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PowerSource::Attributes::BatteryPercentRemaining::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, batteryPercentRemaining));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::BatteryPercentRemaining::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryTimeRemaining(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t batteryTimeRemaining)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PowerSource::Attributes::BatteryTimeRemaining::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, batteryTimeRemaining));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::BatteryTimeRemaining::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryChargeLevel(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t batteryChargeLevel)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PowerSource::Attributes::BatteryChargeLevel::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, batteryChargeLevel));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::BatteryChargeLevel::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PowerSourceClusterTest::WriteAttributeBatteryChargeState(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t batteryChargeState)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PowerSource::Attributes::BatteryChargeState::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, batteryChargeState));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::BatteryChargeState::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PowerSourceClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint32_t featureMap)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::FeatureMap::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, featureMap));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::FeatureMap::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PowerSourceClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PowerSource::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR PressureMeasurementClusterTest::WriteAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t measuredValue)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PressureMeasurement::Attributes::MeasuredValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, measuredValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PressureMeasurement::Attributes::MeasuredValue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PressureMeasurementClusterTest::WriteAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t minMeasuredValue)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PressureMeasurement::Attributes::MinMeasuredValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, minMeasuredValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PressureMeasurement::Attributes::MinMeasuredValue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PressureMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t maxMeasuredValue)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PressureMeasurement::Attributes::MaxMeasuredValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxMeasuredValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PressureMeasurement::Attributes::MaxMeasuredValue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PressureMeasurementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PressureMeasurement::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxPressure(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- int16_t maxPressure)
+ int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MaxPressure::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxPressure));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxPressure::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxSpeed(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t maxSpeed)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MaxSpeed::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxSpeed));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxSpeed::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxFlow(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t maxFlow)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MaxFlow::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxFlow));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxFlow::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinConstPressure(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- int16_t minConstPressure)
+ int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MinConstPressure::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, minConstPressure));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MinConstPressure::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxConstPressure(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- int16_t maxConstPressure)
+ int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MaxConstPressure::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxConstPressure));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxConstPressure::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinCompPressure(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- int16_t minCompPressure)
+ int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MinCompPressure::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, minCompPressure));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MinCompPressure::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxCompPressure(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- int16_t maxCompPressure)
+ int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MaxCompPressure::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxCompPressure));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxCompPressure::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinConstSpeed(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t minConstSpeed)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MinConstSpeed::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, minConstSpeed));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MinConstSpeed::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxConstSpeed(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t maxConstSpeed)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MaxConstSpeed::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxConstSpeed));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxConstSpeed::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinConstFlow(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t minConstFlow)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MinConstFlow::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, minConstFlow));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MinConstFlow::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxConstFlow(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t maxConstFlow)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MaxConstFlow::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxConstFlow));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxConstFlow::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMinConstTemp(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- int16_t minConstTemp)
+ int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MinConstTemp::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, minConstTemp));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MinConstTemp::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeMaxConstTemp(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- int16_t maxConstTemp)
+ int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::MaxConstTemp::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxConstTemp));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::MaxConstTemp::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributePumpStatus(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t pumpStatus)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::PumpStatus::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, pumpStatus));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::PumpStatus::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeEffectiveOperationMode(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint8_t effectiveOperationMode)
+ uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::EffectiveOperationMode::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, effectiveOperationMode));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::EffectiveOperationMode::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeEffectiveControlMode(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint8_t effectiveControlMode)
+ uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::EffectiveControlMode::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, effectiveControlMode));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::EffectiveControlMode::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeCapacity(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t capacity)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::Capacity::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, capacity));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::Capacity::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeSpeed(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t speed)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::Speed::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, speed));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::Speed::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeLifetimeEnergyConsumed(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t lifetimeEnergyConsumed)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::LifetimeEnergyConsumed::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, lifetimeEnergyConsumed));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::LifetimeEnergyConsumed::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeAlarmMask(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t alarmMask)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = PumpConfigurationAndControl::Attributes::AlarmMask::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, alarmMask));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::AlarmMask::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t featureMap)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::FeatureMap::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, featureMap));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::FeatureMap::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR PumpConfigurationAndControlClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::ClusterRevision::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t measuredValue)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = RelativeHumidityMeasurement::Attributes::MeasuredValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, measuredValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, RelativeHumidityMeasurement::Attributes::MeasuredValue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t minMeasuredValue)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = RelativeHumidityMeasurement::Attributes::MinMeasuredValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, minMeasuredValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, RelativeHumidityMeasurement::Attributes::MinMeasuredValue::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t maxMeasuredValue)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = RelativeHumidityMeasurement::Attributes::MaxMeasuredValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxMeasuredValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, RelativeHumidityMeasurement::Attributes::MaxMeasuredValue::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR RelativeHumidityMeasurementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, RelativeHumidityMeasurement::Attributes::ClusterRevision::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR ScenesClusterTest::WriteAttributeSceneCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t sceneCount)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Scenes::Attributes::SceneCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, sceneCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Scenes::Attributes::SceneCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ScenesClusterTest::WriteAttributeCurrentScene(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t currentScene)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Scenes::Attributes::CurrentScene::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentScene));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Scenes::Attributes::CurrentScene::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ScenesClusterTest::WriteAttributeCurrentGroup(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t currentGroup)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Scenes::Attributes::CurrentGroup::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentGroup));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Scenes::Attributes::CurrentGroup::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ScenesClusterTest::WriteAttributeSceneValid(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, bool sceneValid)
+ Callback::Cancelable * onFailureCallback, bool value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Scenes::Attributes::SceneValid::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, sceneValid));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Scenes::Attributes::SceneValid::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ScenesClusterTest::WriteAttributeNameSupport(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t nameSupport)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Scenes::Attributes::NameSupport::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, nameSupport));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Scenes::Attributes::NameSupport::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ScenesClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Scenes::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR SoftwareDiagnosticsClusterTest::WriteAttributeCurrentHeapFree(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint64_t currentHeapFree)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = SoftwareDiagnostics::Attributes::CurrentHeapFree::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentHeapFree));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, SoftwareDiagnostics::Attributes::CurrentHeapFree::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR SoftwareDiagnosticsClusterTest::WriteAttributeCurrentHeapUsed(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint64_t currentHeapUsed)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = SoftwareDiagnostics::Attributes::CurrentHeapUsed::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentHeapUsed));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, SoftwareDiagnostics::Attributes::CurrentHeapUsed::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR SoftwareDiagnosticsClusterTest::WriteAttributeCurrentHeapHighWatermark(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint64_t currentHeapHighWatermark)
+ uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentHeapHighWatermark));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR SoftwareDiagnosticsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, SoftwareDiagnostics::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR SwitchClusterTest::WriteAttributeNumberOfPositions(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t numberOfPositions)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Switch::Attributes::NumberOfPositions::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, numberOfPositions));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Switch::Attributes::NumberOfPositions::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR SwitchClusterTest::WriteAttributeCurrentPosition(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t currentPosition)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Switch::Attributes::CurrentPosition::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentPosition));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Switch::Attributes::CurrentPosition::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR SwitchClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Switch::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR TvChannelClusterTest::WriteAttributeTvChannelLineup(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::ByteSpan tvChannelLineup)
+ Callback::Cancelable * onFailureCallback, chip::ByteSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = TvChannel::Attributes::TvChannelLineup::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, tvChannelLineup));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TvChannel::Attributes::TvChannelLineup::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR TvChannelClusterTest::WriteAttributeCurrentTvChannel(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::ByteSpan currentTvChannel)
+ Callback::Cancelable * onFailureCallback, chip::ByteSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = TvChannel::Attributes::CurrentTvChannel::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentTvChannel));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TvChannel::Attributes::CurrentTvChannel::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR TvChannelClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TvChannel::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR TargetNavigatorClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TargetNavigator::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t measuredValue)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = TemperatureMeasurement::Attributes::MeasuredValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, measuredValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TemperatureMeasurement::Attributes::MeasuredValue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- int16_t minMeasuredValue)
+ int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = TemperatureMeasurement::Attributes::MinMeasuredValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, minMeasuredValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TemperatureMeasurement::Attributes::MinMeasuredValue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- int16_t maxMeasuredValue)
+ int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = TemperatureMeasurement::Attributes::MaxMeasuredValue::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, maxMeasuredValue));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TemperatureMeasurement::Attributes::MaxMeasuredValue::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR TemperatureMeasurementClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TemperatureMeasurement::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR TestClusterClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, TestCluster::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR ThermostatClusterTest::WriteAttributeLocalTemperature(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, int16_t localTemperature)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Thermostat::Attributes::LocalTemperature::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, localTemperature));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::LocalTemperature::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThermostatClusterTest::WriteAttributeAbsMinHeatSetpointLimit(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t absMinHeatSetpointLimit)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Thermostat::Attributes::AbsMinHeatSetpointLimit::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, absMinHeatSetpointLimit));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::AbsMinHeatSetpointLimit::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThermostatClusterTest::WriteAttributeAbsMaxHeatSetpointLimit(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t absMaxHeatSetpointLimit)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Thermostat::Attributes::AbsMaxHeatSetpointLimit::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, absMaxHeatSetpointLimit));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::AbsMaxHeatSetpointLimit::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThermostatClusterTest::WriteAttributeAbsMinCoolSetpointLimit(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t absMinCoolSetpointLimit)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Thermostat::Attributes::AbsMinCoolSetpointLimit::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, absMinCoolSetpointLimit));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::AbsMinCoolSetpointLimit::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThermostatClusterTest::WriteAttributeAbsMaxCoolSetpointLimit(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- int16_t absMaxCoolSetpointLimit)
+ Callback::Cancelable * onFailureCallback, int16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Thermostat::Attributes::AbsMaxCoolSetpointLimit::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, absMaxCoolSetpointLimit));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::AbsMaxCoolSetpointLimit::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThermostatClusterTest::WriteAttributeStartOfWeek(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t startOfWeek)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Thermostat::Attributes::StartOfWeek::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, startOfWeek));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::StartOfWeek::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThermostatClusterTest::WriteAttributeNumberOfWeeklyTransitions(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t numberOfWeeklyTransitions)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Thermostat::Attributes::NumberOfWeeklyTransitions::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, numberOfWeeklyTransitions));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::NumberOfWeeklyTransitions::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThermostatClusterTest::WriteAttributeNumberOfDailyTransitions(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t numberOfDailyTransitions)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Thermostat::Attributes::NumberOfDailyTransitions::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, numberOfDailyTransitions));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::NumberOfDailyTransitions::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThermostatClusterTest::WriteAttributeFeatureMap(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint32_t featureMap)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::FeatureMap::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, featureMap));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::FeatureMap::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThermostatClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, Thermostat::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR ThermostatUserInterfaceConfigurationClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId,
+ ThermostatUserInterfaceConfiguration::Attributes::ClusterRevision::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeChannel(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t channel)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::Channel::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, channel));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::Channel::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRoutingRole(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t routingRole)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RoutingRole::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, routingRole));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RoutingRole::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeNetworkName(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- chip::ByteSpan networkName)
+ chip::ByteSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::NetworkName::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, networkName));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::NetworkName::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributePanId(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t panId)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::PanId::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, panId));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::PanId::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeExtendedPanId(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint64_t extendedPanId)
+ uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::ExtendedPanId::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, extendedPanId));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::ExtendedPanId::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeMeshLocalPrefix(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- chip::ByteSpan meshLocalPrefix)
+ chip::ByteSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::MeshLocalPrefix::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, meshLocalPrefix));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::MeshLocalPrefix::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeOverrunCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint64_t overrunCount)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::OverrunCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, overrunCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::OverrunCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributePartitionId(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t partitionId)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::PartitionId::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, partitionId));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::PartitionId::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeWeighting(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t weighting)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::Weighting::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, weighting));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::Weighting::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeDataVersion(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t dataVersion)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::DataVersion::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, dataVersion));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::DataVersion::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeStableDataVersion(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint8_t stableDataVersion)
+ uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::StableDataVersion::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, stableDataVersion));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::StableDataVersion::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeLeaderRouterId(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint8_t leaderRouterId)
+ uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::LeaderRouterId::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, leaderRouterId));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::LeaderRouterId::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeDetachedRoleCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t detachedRoleCount)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::DetachedRoleCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, detachedRoleCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::DetachedRoleCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeChildRoleCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t childRoleCount)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::ChildRoleCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, childRoleCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::ChildRoleCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRouterRoleCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t routerRoleCount)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RouterRoleCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, routerRoleCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RouterRoleCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeLeaderRoleCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t leaderRoleCount)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::LeaderRoleCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, leaderRoleCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::LeaderRoleCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeAttachAttemptCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t attachAttemptCount)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::AttachAttemptCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, attachAttemptCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::AttachAttemptCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributePartitionIdChangeCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t partitionIdChangeCount)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::PartitionIdChangeCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, partitionIdChangeCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::PartitionIdChangeCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeBetterPartitionAttachAttemptCount(
- Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t betterPartitionAttachAttemptCount)
+ Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::BetterPartitionAttachAttemptCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, betterPartitionAttachAttemptCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId,
+ ThreadNetworkDiagnostics::Attributes::BetterPartitionAttachAttemptCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeParentChangeCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t parentChangeCount)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::ParentChangeCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, parentChangeCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::ParentChangeCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxTotalCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t txTotalCount)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxTotalCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txTotalCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxTotalCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxUnicastCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t txUnicastCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxUnicastCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txUnicastCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxUnicastCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxBroadcastCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t txBroadcastCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxBroadcastCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txBroadcastCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxBroadcastCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxAckRequestedCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t txAckRequestedCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxAckRequestedCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txAckRequestedCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxAckRequestedCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxAckedCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t txAckedCount)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxAckedCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txAckedCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxAckedCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxNoAckRequestedCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t txNoAckRequestedCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxNoAckRequestedCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txNoAckRequestedCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxNoAckRequestedCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxDataCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t txDataCount)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxDataCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txDataCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxDataCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxDataPollCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t txDataPollCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxDataPollCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txDataPollCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxDataPollCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxBeaconCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t txBeaconCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxBeaconCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txBeaconCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxBeaconCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxBeaconRequestCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t txBeaconRequestCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxBeaconRequestCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txBeaconRequestCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxBeaconRequestCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxOtherCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t txOtherCount)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxOtherCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txOtherCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxOtherCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxRetryCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t txRetryCount)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxRetryCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txRetryCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxRetryCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxDirectMaxRetryExpiryCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t txDirectMaxRetryExpiryCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxDirectMaxRetryExpiryCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txDirectMaxRetryExpiryCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId,
+ ThreadNetworkDiagnostics::Attributes::TxDirectMaxRetryExpiryCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxIndirectMaxRetryExpiryCount(
- Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t txIndirectMaxRetryExpiryCount)
+ Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxIndirectMaxRetryExpiryCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txIndirectMaxRetryExpiryCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId,
+ ThreadNetworkDiagnostics::Attributes::TxIndirectMaxRetryExpiryCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxErrCcaCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t txErrCcaCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxErrCcaCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txErrCcaCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxErrCcaCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxErrAbortCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t txErrAbortCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxErrAbortCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txErrAbortCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxErrAbortCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeTxErrBusyChannelCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t txErrBusyChannelCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::TxErrBusyChannelCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, txErrBusyChannelCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::TxErrBusyChannelCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxTotalCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t rxTotalCount)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxTotalCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxTotalCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxTotalCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxUnicastCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxUnicastCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxUnicastCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxUnicastCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxUnicastCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxBroadcastCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxBroadcastCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxBroadcastCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxBroadcastCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxBroadcastCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxDataCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t rxDataCount)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxDataCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxDataCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxDataCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxDataPollCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxDataPollCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxDataPollCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxDataPollCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxDataPollCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxBeaconCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxBeaconCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxBeaconCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxBeaconCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxBeaconCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxBeaconRequestCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxBeaconRequestCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxBeaconRequestCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxBeaconRequestCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxBeaconRequestCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxOtherCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t rxOtherCount)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxOtherCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxOtherCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxOtherCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxAddressFilteredCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxAddressFilteredCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxAddressFilteredCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxAddressFilteredCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxAddressFilteredCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxDestAddrFilteredCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxDestAddrFilteredCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxDestAddrFilteredCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxDestAddrFilteredCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxDestAddrFilteredCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxDuplicatedCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxDuplicatedCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxDuplicatedCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxDuplicatedCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxDuplicatedCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrNoFrameCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxErrNoFrameCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxErrNoFrameCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrUnknownNeighborCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxErrUnknownNeighborCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxErrUnknownNeighborCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxErrUnknownNeighborCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxErrUnknownNeighborCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrInvalidSrcAddrCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxErrInvalidSrcAddrCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxErrInvalidSrcAddrCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxErrInvalidSrcAddrCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxErrInvalidSrcAddrCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrSecCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxErrSecCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxErrSecCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxErrSecCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxErrSecCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrFcsCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxErrFcsCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxErrFcsCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxErrFcsCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxErrFcsCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeRxErrOtherCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t rxErrOtherCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::RxErrOtherCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rxErrOtherCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::RxErrOtherCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeActiveTimestamp(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint64_t activeTimestamp)
+ uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::ActiveTimestamp::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, activeTimestamp));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::ActiveTimestamp::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributePendingTimestamp(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint64_t pendingTimestamp)
+ uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::PendingTimestamp::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, pendingTimestamp));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::PendingTimestamp::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeDelay(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint32_t delay)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::Delay::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, delay));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::Delay::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeChannelMask(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- chip::ByteSpan channelMask)
+ chip::ByteSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = ThreadNetworkDiagnostics::Attributes::ChannelMask::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, channelMask));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::ChannelMask::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR ThreadNetworkDiagnosticsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, ThreadNetworkDiagnostics::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR WakeOnLanClusterTest::WriteAttributeWakeOnLanMacAddress(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- chip::CharSpan wakeOnLanMacAddress)
+ Callback::Cancelable * onFailureCallback, chip::CharSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WakeOnLan::Attributes::WakeOnLanMacAddress::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, wakeOnLanMacAddress));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WakeOnLan::Attributes::WakeOnLanMacAddress::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WakeOnLanClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WakeOnLan::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeBssid(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, chip::ByteSpan bssid)
+ Callback::Cancelable * onFailureCallback, chip::ByteSpan value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::Bssid::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, bssid));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::Bssid::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeSecurityType(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t securityType)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::SecurityType::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, securityType));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::SecurityType::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeWiFiVersion(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t wiFiVersion)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::WiFiVersion::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, wiFiVersion));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::WiFiVersion::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeChannelNumber(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t channelNumber)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::ChannelNumber::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, channelNumber));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::ChannelNumber::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeRssi(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, int8_t rssi)
+ Callback::Cancelable * onFailureCallback, int8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::Rssi::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, rssi));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::Rssi::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeBeaconLostCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t beaconLostCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::BeaconLostCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, beaconLostCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::BeaconLostCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeBeaconRxCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint32_t beaconRxCount)
+ Callback::Cancelable * onFailureCallback, uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::BeaconRxCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, beaconRxCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::BeaconRxCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributePacketMulticastRxCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t packetMulticastRxCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, packetMulticastRxCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributePacketMulticastTxCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t packetMulticastTxCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, packetMulticastTxCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributePacketUnicastRxCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t packetUnicastRxCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, packetUnicastRxCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributePacketUnicastTxCount(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint32_t packetUnicastTxCount)
+ uint32_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, packetUnicastTxCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeCurrentMaxRate(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint64_t currentMaxRate)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentMaxRate));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeOverrunCount(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint64_t overrunCount)
+ Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WiFiNetworkDiagnostics::Attributes::OverrunCount::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, overrunCount));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::OverrunCount::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WiFiNetworkDiagnosticsClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WiFiNetworkDiagnostics::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeType(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t type)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::Type::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, type));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::Type::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionLift(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t currentPositionLift)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::CurrentPositionLift::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentPositionLift));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::CurrentPositionLift::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionTilt(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t currentPositionTilt)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::CurrentPositionTilt::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentPositionTilt));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::CurrentPositionTilt::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeConfigStatus(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t configStatus)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::ConfigStatus::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, configStatus));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::ConfigStatus::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionLiftPercentage(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint8_t currentPositionLiftPercentage)
+ uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::CurrentPositionLiftPercentage::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentPositionLiftPercentage));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::CurrentPositionLiftPercentage::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionTiltPercentage(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint8_t currentPositionTiltPercentage)
+ uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::CurrentPositionTiltPercentage::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentPositionTiltPercentage));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::CurrentPositionTiltPercentage::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeOperationalStatus(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint8_t operationalStatus)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::OperationalStatus::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, operationalStatus));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::OperationalStatus::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeTargetPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t targetPositionLiftPercent100ths)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::TargetPositionLiftPercent100ths::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, targetPositionLiftPercent100ths));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::TargetPositionLiftPercent100ths::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeTargetPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t targetPositionTiltPercent100ths)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::TargetPositionTiltPercent100ths::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, targetPositionTiltPercent100ths));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::TargetPositionTiltPercent100ths::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeEndProductType(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint8_t endProductType)
+ Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::EndProductType::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, endProductType));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::EndProductType::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t currentPositionLiftPercent100ths)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::CurrentPositionLiftPercent100ths::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentPositionLiftPercent100ths));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::CurrentPositionLiftPercent100ths::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeCurrentPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t currentPositionTiltPercent100ths)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::CurrentPositionTiltPercent100ths::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, currentPositionTiltPercent100ths));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::CurrentPositionTiltPercent100ths::Id),
+ value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeInstalledOpenLimitLift(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t installedOpenLimitLift)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::InstalledOpenLimitLift::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, installedOpenLimitLift));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::InstalledOpenLimitLift::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeInstalledClosedLimitLift(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t installedClosedLimitLift)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::InstalledClosedLimitLift::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, installedClosedLimitLift));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::InstalledClosedLimitLift::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeInstalledOpenLimitTilt(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t installedOpenLimitTilt)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::InstalledOpenLimitTilt::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, installedOpenLimitTilt));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::InstalledOpenLimitTilt::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeInstalledClosedLimitTilt(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback,
- uint16_t installedClosedLimitTilt)
+ uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::InstalledClosedLimitTilt::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, installedClosedLimitTilt));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::InstalledClosedLimitTilt::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeSafetyStatus(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback, uint16_t safetyStatus)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = WindowCovering::Attributes::SafetyStatus::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, safetyStatus));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::SafetyStatus::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
-
CHIP_ERROR WindowCoveringClusterTest::WriteAttributeClusterRevision(Callback::Cancelable * onSuccessCallback,
- Callback::Cancelable * onFailureCallback,
- uint16_t clusterRevision)
+ Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = Globals::Attributes::ClusterRevision::Id;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, clusterRevision));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, WindowCovering::Attributes::ClusterRevision::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
diff --git a/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp b/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp
index 5ad9a1d..622d7a5 100644
--- a/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp
+++ b/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp
@@ -102,20 +102,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::OnOff::Attributes::OnTime::TypeInfo>(
+ const chip::app::Clusters::OnOff::Attributes::OnTime::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR OnOffCluster::WriteAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback,
uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00004001;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::OnTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -131,20 +129,18 @@
BasicAttributeFilter<Int16uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::OnOff::Attributes::OffWaitTime::TypeInfo>(
+ const chip::app::Clusters::OnOff::Attributes::OffWaitTime::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR OnOffCluster::WriteAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint16_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00004002;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::OffWaitTime::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -160,20 +156,18 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::OnOff::Attributes::StartUpOnOff::TypeInfo>(
+ const chip::app::Clusters::OnOff::Attributes::StartUpOnOff::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR OnOffCluster::WriteAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00004003;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, OnOff::Attributes::StartUpOnOff::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -220,5 +214,31 @@
requestData, onSuccessCb, onFailureCb);
};
+template <typename AttributeInfo>
+CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb)
+{
+ VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE);
+ ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded());
+
+ auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) {
+ if (successCb != nullptr)
+ {
+ successCb(context);
+ }
+ };
+
+ auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status,
+ CHIP_ERROR aError) {
+ if (failureCb != nullptr)
+ {
+ failureCb(context, app::ToEmberAfStatus(status.mStatus));
+ }
+ };
+
+ return chip::Controller::WriteAttribute<AttributeInfo>(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(),
+ mEndpoint, requestData, onSuccessCb, onFailureCb);
+}
+
} // namespace Controller
} // namespace chip
diff --git a/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp b/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp
index db97f5e..51ec898 100644
--- a/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp
+++ b/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp
@@ -252,5 +252,31 @@
requestData, onSuccessCb, onFailureCb);
};
+template <typename AttributeInfo>
+CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb)
+{
+ VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE);
+ ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded());
+
+ auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) {
+ if (successCb != nullptr)
+ {
+ successCb(context);
+ }
+ };
+
+ auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status,
+ CHIP_ERROR aError) {
+ if (failureCb != nullptr)
+ {
+ failureCb(context, app::ToEmberAfStatus(status.mStatus));
+ }
+ };
+
+ return chip::Controller::WriteAttribute<AttributeInfo>(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(),
+ mEndpoint, requestData, onSuccessCb, onFailureCb);
+}
+
} // namespace Controller
} // namespace chip
diff --git a/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp b/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp
index 89efe98..f871d4d 100644
--- a/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp
+++ b/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp
@@ -273,5 +273,31 @@
requestData, onSuccessCb, onFailureCb);
};
+template <typename AttributeInfo>
+CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb)
+{
+ VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE);
+ ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded());
+
+ auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) {
+ if (successCb != nullptr)
+ {
+ successCb(context);
+ }
+ };
+
+ auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status,
+ CHIP_ERROR aError) {
+ if (failureCb != nullptr)
+ {
+ failureCb(context, app::ToEmberAfStatus(status.mStatus));
+ }
+ };
+
+ return chip::Controller::WriteAttribute<AttributeInfo>(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(),
+ mEndpoint, requestData, onSuccessCb, onFailureCb);
+}
+
} // namespace Controller
} // namespace chip
diff --git a/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp b/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp
index 67f97b6..e4cb936 100644
--- a/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp
+++ b/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp
@@ -884,20 +884,19 @@
BasicAttributeFilter<Int8uAttributeCallback>);
}
+template CHIP_ERROR
+ClusterBase::WriteAttribute<chip::app::Clusters::PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo>(
+ const chip::app::Clusters::PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR PumpConfigurationAndControlCluster::WriteAttributeOperationMode(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint8_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000020;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, PumpConfigurationAndControl::Attributes::OperationMode::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -1001,5 +1000,31 @@
requestData, onSuccessCb, onFailureCb);
};
+template <typename AttributeInfo>
+CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb)
+{
+ VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE);
+ ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded());
+
+ auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) {
+ if (successCb != nullptr)
+ {
+ successCb(context);
+ }
+ };
+
+ auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status,
+ CHIP_ERROR aError) {
+ if (failureCb != nullptr)
+ {
+ failureCb(context, app::ToEmberAfStatus(status.mStatus));
+ }
+ };
+
+ return chip::Controller::WriteAttribute<AttributeInfo>(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(),
+ mEndpoint, requestData, onSuccessCb, onFailureCb);
+}
+
} // namespace Controller
} // namespace chip
diff --git a/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp b/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp
index 6442159..e653ac9 100644
--- a/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp
+++ b/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp
@@ -198,20 +198,18 @@
BasicAttributeFilter<Int64uAttributeCallback>);
}
+template CHIP_ERROR ClusterBase::WriteAttribute<chip::app::Clusters::GeneralCommissioning::Attributes::Breadcrumb::TypeInfo>(
+ const chip::app::Clusters::GeneralCommissioning::Attributes::Breadcrumb::TypeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb);
+
CHIP_ERROR GeneralCommissioningCluster::WriteAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback,
Callback::Cancelable * onFailureCallback, uint64_t value)
{
app::WriteClientHandle handle;
- chip::app::AttributePathParams attributePath;
- attributePath.mNodeId = mDevice->GetDeviceId();
- attributePath.mEndpointId = mEndpoint;
- attributePath.mClusterId = mClusterId;
- attributePath.mFieldId = 0x00000000;
- attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid);
-
- ReturnErrorOnFailure(app::InteractionModelEngine::GetInstance()->NewWriteClient(handle));
- ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(attributePath, value));
-
+ ReturnErrorOnFailure(
+ app::InteractionModelEngine::GetInstance()->NewWriteClient(handle, mDevice->GetInteractionModelDelegate()));
+ ReturnErrorOnFailure(handle.EncodeAttributeWritePayload(
+ chip::app::AttributePathParams(mEndpoint, mClusterId, GeneralCommissioning::Attributes::Breadcrumb::Id), value));
return mDevice->SendWriteAttributeRequest(std::move(handle), onSuccessCallback, onFailureCallback);
}
@@ -967,5 +965,31 @@
requestData, onSuccessCb, onFailureCb);
};
+template <typename AttributeInfo>
+CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context,
+ WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb)
+{
+ VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE);
+ ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded());
+
+ auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) {
+ if (successCb != nullptr)
+ {
+ successCb(context);
+ }
+ };
+
+ auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status,
+ CHIP_ERROR aError) {
+ if (failureCb != nullptr)
+ {
+ failureCb(context, app::ToEmberAfStatus(status.mStatus));
+ }
+ };
+
+ return chip::Controller::WriteAttribute<AttributeInfo>(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(),
+ mEndpoint, requestData, onSuccessCb, onFailureCb);
+}
+
} // namespace Controller
} // namespace chip