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

◆ nrf_cloud_get_imei()

int nrf_cloud_get_imei ( char *  buf,
size_t  buf_sz 
)

#include <include/net/nrf_cloud.h>

Retrieve the IMEI.

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 IMEI string.
[in]buf_szThe size of the buffer. It should be at least 22 to include the 15 bytes for the IMEI and 7 for AT command overhead.
Return values
0If successful.
-ENOTSUPIf the modem library is not available.
Returns
A negative value indicates an error.