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

◆ cloud_service_location_get()

int cloud_service_location_get ( const struct cloud_service_pos_req * params,
struct location_data * location,
enum nrf_cloud_error * cloud_err )

Generate location request, send, and parse response.

Parameters
[in]paramsCloud positioning parameters to be used.
[out]locationStorage for the result from response parsing.
[out]cloud_errnRF Cloud error code if the cloud responded with an error, otherwise NRF_CLOUD_ERROR_NONE.
Returns
0 on success, positive CoAP result code if the cloud responded with an error over CoAP, or negative error code on failure.
Return values
-ETIMEDOUTNo response from the cloud in time.
-EACCESCloud connection is not established.
-EFAULTThe cloud responded with an error over MQTT.