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

◆ location_assistance_result_code_cb_t

typedef void(* location_assistance_result_code_cb_t) (uint16_t object_id, int32_t result_code)

#include <include/net/lwm2m_client_utils_location.h>

Callback for location assistance result.

This callback is called whenever there is a new result in the location assistance from Ground or GNSS location object.

Parameters
object_idObject identifier GROUND_FIX_OBJECT_ID or GNSS_ASSIST_OBJECT_ID
result_codeContains following possible result codes: LOCATION_ASSIST_RESULT_CODE_OK when there are no problems LOCATION_ASSIST_RESULT_CODE_PERMANENT_ERR when there is a permanent error between LwM2M-server and the nRF Cloud. Location assistance library will no longer send any requests. Device needs reboot for assistance library to resume operation. LOCATION_ASSIST_RESULT_CODE_TEMP_ERR when there is a temporary error between LwM2M Server and the nRF Cloud. The library automatically uses exponential backoff for the retries. LOCATION_ASSIST_RESULT_CODE_NO_RESP_ERR when no response has been received from the server in LOCATION_ASSISTANT_RESULT_TIMEOUT seconds.