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

◆ log_rpc_set_history_usage_threshold()

void log_rpc_set_history_usage_threshold ( log_rpc_history_threshold_reached_handler_t handler,
uint8_t threshold )

#include <include/logging/log_rpc.h>

Sets the current history usage threshold.

The log history is the feature of nRF RPC logging that allows saving log messages generated by the application running on the remote device into a ring buffer, and then retrieving the log history when needed.

This function issues an nRF RPC command that requests the remote device to emit an nRF RPC event when the ring buffer occupancy exceeds the requested threshold for the first time after the threshold is set or the log history is flushed.

Parameters
handlerThe handler that is invoked when the configured log history usage threshold has been reached, see log_rpc_history_threshold_reached_handler_t.
thresholdThe history usage threshold in percentage (0 - 100). Passing 0 disables this feature.