Skip to content

Commit

Permalink
Set EchoClient as the exchange delegate to receive the incoming messa…
Browse files Browse the repository at this point in the history
…ges (#3821)
  • Loading branch information
yufengwangca authored and pull[bot] committed Dec 18, 2020
1 parent 950a313 commit 1073647
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/protocols/echo/EchoClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ CHIP_ERROR EchoClient::SendEchoRequest(NodeId nodeId, System::PacketBuffer * pay
return CHIP_ERROR_NO_MEMORY;
}

// Set EchoClient itself as the exchange delegate to receive the message from exchange.
mExchangeCtx->SetDelegate(this);

return SendEchoRequest(payload);
}

Expand Down

0 comments on commit 1073647

Please sign in to comment.