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

◆ nrf_cloud_log_rest_context_set()

void nrf_cloud_log_rest_context_set ( struct nrf_cloud_rest_context ctx,
const char *  dev_id 
)

#include <include/net/nrf_cloud_log.h>

Set REST context for logging subsystem.

Tell REST-based logger the REST context and device_id for later use when outputting a log. This is used by the nRF Cloud logs backend when CONFIG_NRF_CLOUD_LOG_BACKEND=y.

Parameters
[in]ctxREST context to use.
[in]dev_idDevice ID to send message on behalf of.