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

◆ nrf_cloud_obj_pgps_request_create()

int nrf_cloud_obj_pgps_request_create ( struct nrf_cloud_obj *const  obj,
const struct gps_pgps_request *const  request 
)

#include <include/net/nrf_cloud_codec.h>

Create an nRF Cloud P-GPS request device 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 P-GPS request message.
[in]requestP-GPS request data.
Return values
-EINVALInvalid parameter.
-EBADFInvalid object type.
-ENOTEMPTYObject already initialized.
-ENOMEMOut of memory.
-ENOTSUPAction not supported for the object's type.
0Success; GNSS message created.