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

◆ nrf_cloud_pgps_process_update()

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.

Parameters
bufPointer to P-GPS data received from transport.
lenSize of P-GPS data chunk received from transport.
Return values
0Buffer processed.
-EINVALInvalid parameter to function or invalid header in P-GPS data received.
-ENODATAUnable to determine current date and time.
-ENOMEMNo free flash in P-GPS storage area.
-EFAULTError writing to flash stream.
Returns
a negative value indicates an error.