Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow chip-repl to know how many InvokeResponseMessages were recieved #31781

Prev Previous commit
Next Next commit
Address PR comment
  • Loading branch information
tehampson committed Feb 5, 2024
commit 1314d7bfbde486f04b03fc587965b0c611154747
6 changes: 6 additions & 0 deletions src/app/CommandSender.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,12 @@ class CommandSender final : public Messaging::ExchangeDelegate
return FinishCommand(aTimedInvokeTimeoutMs, optionalArgs);
}

/**
* @brief Returns the number of InvokeResponseMessages received.
*
* Responses to multiple requests might be split across several InvokeResponseMessages.
* This function helps track the total count. Primarily for test validation purposes.
*/
size_t GetInvokeResponseMessageCount();
tehampson marked this conversation as resolved.
Show resolved Hide resolved

#if CONFIG_BUILD_FOR_HOST_UNIT_TEST
Expand Down
Loading