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

◆ nrf_cloud_modem_info_json_encode()

int nrf_cloud_modem_info_json_encode ( const struct nrf_cloud_modem_info *const  mod_inf,
cJSON *const  mod_inf_obj 
)

#include <include/net/nrf_cloud_codec.h>

Add modem info into the provided cJSON object.

Note
To add modem info, CONFIG_MODEM_INFO must be enabled.
Parameters
[in]mod_infModem info to add.
[in,out]mod_inf_objcJSON object to which the modem info will be added.
Return values
0If successful.
Returns
A negative value indicates an error.