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

◆ nrf_cloud_obj_gnss_msg_create()

int nrf_cloud_obj_gnss_msg_create ( struct nrf_cloud_obj *const obj,
const struct nrf_cloud_gnss_data *const gnss )

#include <include/net/nrf_cloud_codec.h>

Create an nRF Cloud GNSS message object.

If successful, memory is allocated for the provided object. The nrf_cloud_obj_free function should be called when finished with the object.

Parameters
[out]objUninitialzed object to contain the GNSS message.
[in]gnssGNSS data.
Return values
-EINVALInvalid parameter.
-EBADFInvalid object type.
-ENOTEMPTYObject already initialized.
-ENOMEMOut of memory.
-ENOSYSModem library (NRF_MODEM) not enabled.
-EFBIGNMEA string too large, see NRF_MODEM_GNSS_NMEA_MAX_LEN.
-EPROTOUnhandled GNSS type.
0Success; GNSS message created.