Controller: Pass remote node id to the report callbacks of read/subscribe commands

This commit is contained in:
WanqQixiang
2023-08-03 12:13:38 +08:00
parent f51fc75925
commit 5b28ebd931
3 changed files with 8 additions and 6 deletions
@@ -116,7 +116,7 @@ void read_command::OnAttributeData(const chip::app::ConcreteDataAttributePath &p
}
if (attribute_data_cb) {
attribute_data_cb(path, data);
attribute_data_cb(m_node_id, path, data);
}
}
@@ -142,7 +142,7 @@ void read_command::OnEventData(const chip::app::EventHeader &event_header, chip:
}
if (event_data_cb) {
event_data_cb(event_header, data);
event_data_cb(m_node_id, event_header, data);
}
}