Skip to content

Commit

Permalink
[chip-tool] Use subscribe instead of report since it has been commite…
Browse files Browse the repository at this point in the history
…d in #14231 but #14361 has landed right after with the keyword 'report' (#14420)
  • Loading branch information
vivien-apple authored Jan 27, 2022
1 parent a4618fe commit 30ed0c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/chip-tool/commands/clusters/ReportCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class ReadAttribute : public ReportCommand
class SubscribeAttribute : public ReportCommand
{
public:
SubscribeAttribute() : ReportCommand("report-by-id")
SubscribeAttribute() : ReportCommand("subscribe-by-id")
{
AddArgument("cluster-id", 0, UINT32_MAX, &mClusterId);
AddArgument("attribute-id", 0, UINT32_MAX, &mAttributeId);
Expand All @@ -211,7 +211,7 @@ class SubscribeAttribute : public ReportCommand
ReportCommand::AddArguments();
}

SubscribeAttribute(chip::ClusterId clusterId) : ReportCommand("report-by-id"), mClusterId(clusterId)
SubscribeAttribute(chip::ClusterId clusterId) : ReportCommand("subscribe-by-id"), mClusterId(clusterId)
{
AddArgument("attribute-id", 0, UINT32_MAX, &mAttributeId);
AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval);
Expand All @@ -221,7 +221,7 @@ class SubscribeAttribute : public ReportCommand
}

SubscribeAttribute(chip::ClusterId clusterId, const char * attributeName, chip::AttributeId attributeId) :
ReportCommand("report"), mClusterId(clusterId), mAttributeId(attributeId)
ReportCommand("subscribe"), mClusterId(clusterId), mAttributeId(attributeId)
{
AddArgument("attr-name", attributeName);
AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval);
Expand Down Expand Up @@ -302,7 +302,7 @@ class ReadEvent : public ReportCommand
class SubscribeEvent : public ReportCommand
{
public:
SubscribeEvent() : ReportCommand("report-event-by-id")
SubscribeEvent() : ReportCommand("subscribe-event-by-id")
{
AddArgument("cluster-id", 0, UINT32_MAX, &mClusterId);
AddArgument("event-id", 0, UINT32_MAX, &mEventId);
Expand All @@ -312,7 +312,7 @@ class SubscribeEvent : public ReportCommand
ReportCommand::AddArguments();
}

SubscribeEvent(chip::ClusterId clusterId) : ReportCommand("report-event-by-id"), mClusterId(clusterId)
SubscribeEvent(chip::ClusterId clusterId) : ReportCommand("subscribe-event-by-id"), mClusterId(clusterId)
{
AddArgument("event-id", 0, UINT32_MAX, &mEventId);
AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval);
Expand All @@ -322,7 +322,7 @@ class SubscribeEvent : public ReportCommand
}

SubscribeEvent(chip::ClusterId clusterId, const char * eventName, chip::EventId eventId) :
ReportCommand("report-event"), mClusterId(clusterId), mEventId(eventId)
ReportCommand("subscribe-event"), mClusterId(clusterId), mEventId(eventId)
{
AddArgument("attr-name", eventName);
AddArgument("min-interval", 0, UINT16_MAX, &mMinInterval);
Expand Down

0 comments on commit 30ed0c5

Please sign in to comment.