Skip to content

Commit

Permalink
Added Feature Map to read handler (#29098)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhazley authored and pull[bot] committed Jan 16, 2024
1 parent 3a0c4ca commit 1154832
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Instance

MeasurementMediumEnum mMeasurementMedium;

uint32_t mFeature = 0;
uint32_t mFeatureMap = 0;

// AttributeAccessInterface
CHIP_ERROR Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder) override
Expand Down Expand Up @@ -192,6 +192,10 @@ class Instance
case Attributes::MeasurementMedium::Id:
ReturnErrorOnFailure(aEncoder.Encode(mMeasurementMedium));
break;

case Attributes::FeatureMap::Id:
ReturnErrorOnFailure(aEncoder.Encode(mFeatureMap));
break;
}

return CHIP_NO_ERROR;
Expand Down Expand Up @@ -351,7 +355,7 @@ class Instance
// Register the object as attribute provider
VerifyOrReturnError(registerAttributeAccessOverride(this), CHIP_ERROR_INCORRECT_STATE);

mFeature = GenerateFeatureMap();
mFeatureMap = GenerateFeatureMap();

return CHIP_NO_ERROR;
};
Expand Down

0 comments on commit 1154832

Please sign in to comment.