Skip to content

Commit

Permalink
Added printing MRP intervals in resolver log output
Browse files Browse the repository at this point in the history
Resolver LogDetail() method used by chip-tool doesn't
print MRP interval values

Added printing MRP interval idle and active values
  • Loading branch information
kkasperczyk-no committed Feb 23, 2022
1 parent 76fb87d commit d328390
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/lib/dnssd/Resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,22 @@ struct DiscoveredNodeData
ChipLogDetail(Discovery, "\tPort: %u", port);
}
ChipLogDetail(Discovery, "\tCommissioning Mode: %u", commissioningMode);
if (mrpRetryIntervalIdle.HasValue())
{
ChipLogDetail(Discovery, "\tMrp Interval idle: %u ms", static_cast<uint32_t>(mrpRetryIntervalIdle.Value().count()));
}
else
{
ChipLogDetail(Discovery, "\tMrp Interval idle: not present");
}
if (mrpRetryIntervalActive.HasValue())
{
ChipLogDetail(Discovery, "\tMrp Interval active: %u ms", static_cast<uint32_t>(mrpRetryIntervalActive.Value().count()));
}
else
{
ChipLogDetail(Discovery, "\tMrp Interval active: not present");
}
}
};

Expand Down

0 comments on commit d328390

Please sign in to comment.