Skip to content

Commit 5643217

Browse files
vivien-applepull[bot]
authored andcommitted
[chip-tool] Replace 'ReportAttribute' by 'ReportEvent' when using read-event otherwise it does returns attributes (#14401)
1 parent 87cd887 commit 5643217

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/chip-tool/commands/clusters/ReportCommand.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,7 @@ class ReadEvent : public ReportCommand
291291
{
292292
ChipLogProgress(chipTool, "Sending ReadEvent to cluster " ChipLogFormatMEI " on endpoint %" PRIu16,
293293
ChipLogValueMEI(mClusterId), endpointId);
294-
return ReportCommand::ReportAttribute(device, endpointId, mClusterId, mEventId,
295-
chip::app::ReadClient::InteractionType::Read);
294+
return ReportCommand::ReportEvent(device, endpointId, mClusterId, mEventId, chip::app::ReadClient::InteractionType::Read);
296295
}
297296

298297
private:

0 commit comments

Comments
 (0)