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

◆ nrf_cloud_coap_location_get()

int nrf_cloud_coap_location_get ( struct nrf_cloud_rest_location_request const *const request,
struct nrf_cloud_location_result *const result )

#include <include/net/nrf_cloud_coap.h>

Request device location from nRF Cloud.

At least one of cell_info or wifi_info must be provided within the request.

Parameters
[in]requestData to be provided in API call.
[in,out]resultLocation information.
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.