nRF Connect SDK API 2.8.99
|
int location_pgps_data_process | ( | const char * | buf, |
size_t | buf_len ) |
#include <include/modem/location.h>
Feed in P-GPS data to be processed by library.
If Location library is not receiving P-GPS assistance data directly from nRF Cloud, it triggers the LOCATION_EVT_GNSS_PREDICTION_REQUEST event when assistance is needed. Once application has obtained the assistance data it can be handed over to Location library using this function.
Note that the data must be formatted similarly to the nRF Cloud P-GPS data, see for example nrf_cloud_pgps_schema_v1.h.
[in] | buf | Data received. |
[in] | buf_len | Buffer size of data to be processed. |
-EINVAL | Given buffer is NULL or buffer length zero. |
-ENOTSUP | CONFIG_LOCATION_SERVICE_EXTERNALis not set. |