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

◆ nrf_cloud_pgps_find_prediction()

int nrf_cloud_pgps_find_prediction ( struct nrf_cloud_pgps_prediction ** prediction)

#include <include/net/nrf_cloud_pgps.h>

Tries to find an appropriate GPS prediction for the current time.

Parameters
predictionPointer to a pointer to a prediction; the pointer at this pointer will be modified to point to the prediction if the return value is 0. Will be set to NULL on failure.
Returns
0..NumPredictions-1 if successful; -ETIMEUNKNOWN if current date and time not known; -ETIMEDOUT if all predictions stored are expired; -EINVAL if prediction for the current time is invalid.