From 26ef1aa99de4a692367bf46451e1210b5106fd2d Mon Sep 17 00:00:00 2001 From: Cliff Chung Date: Wed, 26 Jul 2023 21:12:27 -0700 Subject: [PATCH] Adding back the instance of the ReplacementProductList so that it can be used in the Read function --- .../resource-monitoring-cluster-objects.h | 4 ++++ .../resource-monitoring-server/resource-monitoring-server.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/clusters/resource-monitoring-server/resource-monitoring-cluster-objects.h b/src/app/clusters/resource-monitoring-server/resource-monitoring-cluster-objects.h index 0381f8821d4982..970a85c957bdf3 100644 --- a/src/app/clusters/resource-monitoring-server/resource-monitoring-cluster-objects.h +++ b/src/app/clusters/resource-monitoring-server/resource-monitoring-cluster-objects.h @@ -211,6 +211,10 @@ struct TypeInfo }; } // namespace LastChangedTime +namespace ReplacementProductList { +static constexpr AttributeId Id = 0x00000005; +} + namespace GeneratedCommandList { static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo diff --git a/src/app/clusters/resource-monitoring-server/resource-monitoring-server.cpp b/src/app/clusters/resource-monitoring-server/resource-monitoring-server.cpp index a95203d06a22a8..c5687467d00ca0 100644 --- a/src/app/clusters/resource-monitoring-server/resource-monitoring-server.cpp +++ b/src/app/clusters/resource-monitoring-server/resource-monitoring-server.cpp @@ -300,7 +300,7 @@ CHIP_ERROR Instance::Read(const ConcreteReadAttributePath & aPath, AttributeValu ReturnErrorOnFailure(aEncoder.Encode(mLastChangedTime)); break; } - case HepaFilterMonitoring::Attributes::ReplacementProductList::TypeInfo::GetAttributeId(): { + case Attributes::ReplacementProductList::Id: { return ReadReplacableProductList(aEncoder); break; }