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

◆ nrf_cloud_service_info_json_encode()

int nrf_cloud_service_info_json_encode ( const struct nrf_cloud_svc_info *const  svc_inf,
cJSON *const  svc_inf_obj 
)

#include <include/net/nrf_cloud_codec.h>

Add service info into the provided cJSON object.

Parameters
[in]svc_infService info to add.
[in,out]svc_inf_objcJSON object to which the service info will be added.
Return values
0If successful.
Returns
A negative value indicates an error.