Skip to content

Commit

Permalink
Inject nodeId from subscribed path to path set by SetDirty
Browse files Browse the repository at this point in the history
--SetDirty don't take the nodeId in clusterInfo, it just mark all interested
attribute dirty, when generated report, we need explicitly inject node
Id from subscribed path to interested dirty path, then
construct correct tlv representation.
  • Loading branch information
yunhanw-google committed Nov 5, 2021
1 parent 7addec8 commit f1e78b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/reporting/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ CHIP_ERROR Engine::BuildSingleReportDataAttributeDataList(ReportDataMessage::Bui
{
if (clusterInfo->IsAttributePathSupersetOf(*path))
{
// SetDirty's path don't have the particular nodeId, need to reover nodeId from subscribed path
path->mNodeId = clusterInfo->mNodeId
err = RetrieveClusterData(apReadHandler->GetFabricIndex(), attributeDataList, *path);
}
else if (path->IsAttributePathSupersetOf(*clusterInfo))
Expand Down

0 comments on commit f1e78b8

Please sign in to comment.