nRF Connect SDK API 2.8.0
|
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.
[out] | obj | Uninitialzed object to contain the P-GPS request message. |
[in] | request | P-GPS request data. |
-EINVAL | Invalid parameter. |
-EBADF | Invalid object type. |
-ENOTEMPTY | Object already initialized. |
-ENOMEM | Out of memory. |
-ENOTSUP | Action not supported for the object's type. |
0 | Success; GNSS message created. |