#include <include/net/nrf_cloud_pgps.h>
Requests specified P-GPS data from nRF Cloud via MQTT. Not used for other transports.
- Parameters
-
request | Pointer to structure specifying what P-GPS data is desired. The request may fail if there no cloud connection; if the specified GPS day and GPS time of day is in the past or more than 2 weeks in the future; if the GPS time of day is larger than 86339; or if the prediction_period_min field is not within the range 120 to 480. |
- Return values
-
0 | Request sent successfully. |
-EACCES | Cloud connection is not established; wait for NRF_CLOUD_EVT_READY. |
- Returns
- A negative value indicates an error.