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

◆ nrf_cloud_rest_pgps_data_get()

int nrf_cloud_rest_pgps_data_get ( struct nrf_cloud_rest_context *const  rest_ctx,
struct nrf_cloud_rest_pgps_request const *const  request 
)

#include <include/net/nrf_cloud_rest.h>

nRF Cloud Predicted GPS (P-GPS) data request.

Parameters
[in,out]rest_ctxContext for communicating with nRF Cloud's REST API. If successful, rest_ctx->result will point to the P-GPS data; which, along with rest_ctx->response_len, can be passed into nrf_cloud_pgps_process.
[in]requestData to be provided in API call.
Return values
0If successful. Otherwise, a (negative) error code is returned. See
embed:rst:inline :ref:`nrf_cloud_rest_failure` 
for details.