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

◆ nrf_cloud_get_modem_fw()

int nrf_cloud_get_modem_fw ( char *  buf,
size_t  buf_sz 
)

#include <include/net/nrf_cloud.h>

Retrieve the Modem firmware version.

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 mfw string.
[in]buf_szThe size of the buffer. The required size could be up to 2048, but 32 should be sufficient.
Return values
0If successful.
-ENOTSUPIf the modem library is not available.
Returns
A negative value indicates an error.