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

◆ nrf_cloud_gnss_msg_json_encode()

int nrf_cloud_gnss_msg_json_encode ( const struct nrf_cloud_gnss_data *const  gnss,
cJSON *const  gnss_msg_obj 
)

#include <include/net/nrf_cloud_codec.h>

Create an nRF Cloud GNSS device message using the provided GNSS data.

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