nRF Connect SDK API 2.8.99
|
int location_agnss_data_process | ( | const char * | buf, |
size_t | buf_len ) |
#include <include/modem/location.h>
Feed in A-GNSS data to be processed by library.
If Location library is not receiving A-GNSS assistance data directly from nRF Cloud, it triggers the LOCATION_EVT_GNSS_ASSISTANCE_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 A-GNSS data, see for example nrf_cloud_agnss_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. |