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

◆ nrf_cloud_get_uuid()

int nrf_cloud_get_uuid ( char *  buf,
size_t  buf_sz 
)

#include <include/net/nrf_cloud.h>

Retrieve the device's UUID.

If

embed:rst:inline :kconfig:option:`CONFIG_NRF_MODEM_LIB` 

is not enabled, returns an error.

Parameters
[in,out]bufA pointer in which to store the UUID string.
[in]buf_szThe size of the buffer. It should be at least NRF_DEVICE_UUID_STR_LEN + 1 bytes in size.
Return values
0If successful.
-ENOTSUPIf the modem library is not available.
-EINVALbuf cannot be NULL.
-ENOMEMbuf_sz was too small.
Returns
A negative value indicates an error.