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

◆ nrf_cloud_coap_pgps_url_get()

int nrf_cloud_coap_pgps_url_get ( struct nrf_cloud_rest_pgps_request const *const  request,
struct nrf_cloud_pgps_result file_location 
)

#include <include/net/nrf_cloud_coap.h>

Request URL for nRF Cloud Predicted GPS (P-GPS) data.

After a successful call to this function, pass the file_location to nrf_cloud_pgps_update(), which then downloads and processes the file's binary P-GPS data.

Parameters
[in]requestData to be provided in API call.
[in,out]file_locationStructure that will contain the host and path to the prediction file.
Return values
-EACCESDevice does not have a valid nRF Cloud CoAP connection.
Returns
0 If successful, nonzero if failed. Negative values are device-side errors defined in errno.h. Positive values are cloud-side errors (CoAP result codes) defined in zephyr/net/coap.h.