nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ log_rpc_fetch_history()

int log_rpc_fetch_history ( log_rpc_history_handler_t handler)

#include <include/logging/log_rpc.h>

Fetches the log history.

This function issues an nRF RPC command that starts the log history transfer from the remote device. The handler callback function is invoked for each received log message. Additionally, it is invoked with msg argument set to NULL after all log messages have been received.

Note
If the function is called while the previous log history transfer is still is in progress, the process is restarted from the current oldest log message saved in the log history on the remote device.
Parameters
handlerHistory handler, see log_rpc_history_handler_t.
Return values
0On success.
-errnoOn failure.