Skip to content

Commit

Permalink
Added printing MRP intervals in resolver log output (#15457)
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 authored and pull[bot] committed Feb 25, 2022
1 parent 4b61778 commit 1baac49
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: %" PRIu32 " ms", mrpRetryIntervalIdle.Value().count());
}
else
{
ChipLogDetail(Discovery, "\tMrp Interval idle: not present");
}
if (mrpRetryIntervalActive.HasValue())
{
ChipLogDetail(Discovery, "\tMrp Interval active: %" PRIu32 " ms", mrpRetryIntervalActive.Value().count());
}
else
{
ChipLogDetail(Discovery, "\tMrp Interval active: not present");
}
}
};

Expand Down

0 comments on commit 1baac49

Please sign in to comment.