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

◆ nrf_cloud_coap_agnss_data_get()

int nrf_cloud_coap_agnss_data_get ( struct nrf_cloud_rest_agnss_request const *const  request,
struct nrf_cloud_rest_agnss_result result 
)

#include <include/net/nrf_cloud_coap.h>

Request nRF Cloud CoAP Assisted GNSS (A-GNSS) data.

Parameters
[in]requestData to be provided in API call.
[in,out]resultStructure pointing to caller-provided buffer in which to store A-GNSS data.
Return values
-EACCESDevice does not have a valid nRF Cloud CoAP connection.
-EINVALwill be returned, and an error message printed, if invalid parameters are given.
-ENOBUFSwill be returned, and an error message printed, if there is not enough buffer space to store retrieved A-GNSS data.
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.