Skip to content

Commit

Permalink
Log when MRP params are set by Matter.framework API clients. (#37717)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple authored Feb 25, 2025
1 parent 0201fc5 commit ff7398a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/darwin/Framework/CHIP/MTRDeviceControllerFactory.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,10 @@ - (void)setMessageReliabilityProtocolIdleRetransmitMs:(nullable NSNumber *)idleR
additionalRetransmitDelayMs:(nullable NSNumber *)additionalRetransmitDelayMs
{
[self _assertCurrentQueueIsNotMatterQueue];

MTR_LOG("%@ setting MRP params: idle %@ active %@ threshold %@ additional retransmit delay %@",
self, idleRetransmitMs, activeRetransmitMs, activeThresholdMs, additionalRetransmitDelayMs);

dispatch_async(_chipWorkQueue, ^{
bool resetAdvertising;
if (idleRetransmitMs == nil && activeRetransmitMs == nil && activeThresholdMs == nil && additionalRetransmitDelayMs == nil) {
Expand Down

0 comments on commit ff7398a

Please sign in to comment.