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

◆ nrf_cloud_pgps_request()

int nrf_cloud_pgps_request ( const struct gps_pgps_request request)

#include <include/net/nrf_cloud_pgps.h>

Requests specified P-GPS data from nRF Cloud via MQTT. Not used for other transports.

Parameters
requestPointer 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
0Request sent successfully.
-EACCESCloud connection is not established; wait for NRF_CLOUD_EVT_READY.
Returns
A negative value indicates an error.