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

◆ memfault_ncs_device_id_set()

int memfault_ncs_device_id_set ( const char *  device_id,
size_t  len 
)

#include <include/memfault_ncs.h>

Set the Memfault device ID.

Note
In order to use this API successfully, CONFIG_MEMFAULT_NCS_DEVICE_ID_RUNTIME must be enabled.
Parameters
device_idPointer to device ID buffer
lenLength of device ID. Cannot exceed CONFIG_MEMFAULT_NCS_DEVICE_ID_MAX_LEN.
Returns
0 on success, otherwise a negative error code