nRF Connect SDK API 0.1.0
|
int nrf_cloud_pgps_process_update | ( | uint8_t * | buf, |
size_t | len | ||
) |
#include <include/net/nrf_cloud_pgps.h>
Call this function when your transport receives a block of prediction data. Prediction data must be received in file order.
The library calls this automatically for HTTP(S) transports.
buf | Pointer to P-GPS data received from transport. |
len | Size of P-GPS data chunk received from transport. |
0 | Buffer processed. |
-EINVAL | Invalid parameter to function or invalid header in P-GPS data received. |
-ENODATA | Unable to determine current date and time. |
-ENOMEM | No free flash in P-GPS storage area. |
-EFAULT | Error writing to flash stream. |