From 8f1edeaa667664a35b4626022a7b852012c6dc14 Mon Sep 17 00:00:00 2001 From: Hasty Granbery Date: Fri, 26 Jan 2024 22:37:31 -0800 Subject: [PATCH] Sync optional attributes list with .zap file for EPM --- .../src/electrical-power-measurement-stub.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/src/electrical-power-measurement-stub.cpp b/examples/all-clusters-app/all-clusters-common/src/electrical-power-measurement-stub.cpp index 9d7051d28f9405..eccffd4a357cb8 100644 --- a/examples/all-clusters-app/all-clusters-common/src/electrical-power-measurement-stub.cpp +++ b/examples/all-clusters-app/all-clusters-common/src/electrical-power-measurement-stub.cpp @@ -253,8 +253,16 @@ void emberAfElectricalPowerMeasurementClusterInitCallback(chip::EndpointId endpo gDelegate = std::make_unique(); if (gDelegate) { - gInstance = std::make_unique(endpointId, *gDelegate, BitMask(Feature::kAlternatingCurrent), - BitMask()); + gInstance = std::make_unique( + endpointId, *gDelegate, BitMask(Feature::kAlternatingCurrent), + BitMask( + OptionalAttributes::kOptionalAttributeRanges, OptionalAttributes::kOptionalAttributeVoltage, + OptionalAttributes::kOptionalAttributeActiveCurrent, OptionalAttributes::kOptionalAttributeReactiveCurrent, + OptionalAttributes::kOptionalAttributeApparentCurrent, OptionalAttributes::kOptionalAttributeReactivePower, + OptionalAttributes::kOptionalAttributeApparentPower, OptionalAttributes::kOptionalAttributeRMSVoltage, + OptionalAttributes::kOptionalAttributeRMSCurrent, OptionalAttributes::kOptionalAttributeRMSPower, + OptionalAttributes::kOptionalAttributeFrequency, OptionalAttributes::kOptionalAttributePowerFactor, + OptionalAttributes::kOptionalAttributeNeutralCurrent)); gInstance->Init(); }