![]() |
nRF Connect SDK API 3.4.99
|
| 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.
| [in] | params | Cloud positioning parameters to be used. |
| [out] | location | Storage for the result from response parsing. |
| [out] | cloud_err | nRF Cloud error code if the cloud responded with an error, otherwise NRF_CLOUD_ERROR_NONE. |
| -ETIMEDOUT | No response from the cloud in time. |
| -EACCES | Cloud connection is not established. |
| -EFAULT | The cloud responded with an error over MQTT. |