nRF Connect SDK API 2.8.99
|
int nrf_cloud_pgps_begin_update | ( | void | ) |
#include <include/net/nrf_cloud_pgps.h>
Use this function when you use a custom transport mechanism for downloading prediction data. When your pgps_event_handler_t receives a PGPS_EVT_REQUEST event, send the P-GPS request to the cloud over your transport, then call this function. This function resets the internal state of the library and prepares the flash storage to receive incoming data.
The library calls this automatically for HTTP(S) transports.
0 | Ready for updating. |
-ENOMEM | No free space in P-GPS flash storage area. |
-EBUSY | P-GPS download already in progress. |
-ENODEV | Flash device is not ready. |
-EFAULT | Error accessing flash stream. |