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

◆ nrf_cloud_client_id_runtime_set()

int nrf_cloud_client_id_runtime_set ( const char *const client_id)

#include <include/net/nrf_cloud.h>

Set the device ID at runtime. Requires.

CONFIG_NRF_CLOUD_CLIENT_ID_SRC_RUNTIME 

to be enabled.

Note
This function does not perform any management of the device's connection to nRF Cloud.
Parameters
[in]client_idNull-terminated device ID string. Max string length is NRF_CLOUD_CLIENT_ID_MAX_LEN.
Return values
0If successful.
Returns
A negative value indicates an error.