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

◆ location_module_event_type

#include <applications/asset_tracker_v2/src/events/location_module_event.h>

Location event types submitted by location module.

Enumerator
LOCATION_MODULE_EVT_GNSS_DATA_READY 

A valid GNSS location has been obtained and the data is ready to be used. The event has associated payload of the type location_module_data in the event struct member data.location. All struct members within data.location contain valid data.

LOCATION_MODULE_EVT_DATA_NOT_READY 

Location could not be obtained and will not be ready for this sampling interval. The event has no associated payload.

LOCATION_MODULE_EVT_CLOUD_LOCATION_DATA_READY 

Neighbor cell measurements and/or Wi-Fi access point information have been gathered and the data is ready. The event has associated payload of type location_module_cloud_location in the data.cloud_location member.

LOCATION_MODULE_EVT_TIMEOUT 

The location search timed out without acquiring location. The event has associated payload of the type struct location_module_data in the event struct member data.location. The data.location struct member search_time contains valid data and satellites_tracked contain valid data for GNSS.

LOCATION_MODULE_EVT_ACTIVE 

An active location search has started.

LOCATION_MODULE_EVT_INACTIVE 

A location search has stopped, either as a result of timeout, error or acquired location.

LOCATION_MODULE_EVT_SHUTDOWN_READY 

The module has been shut down gracefully. The event has associated payload of the type uint32 in the struct member data.id that contains the module ID used when acknowledging a shutdown request from the util module.

LOCATION_MODULE_EVT_AGNSS_NEEDED 

The location library has reported that it needs GPS assistance data. The event has associated payload of the type struct nrf_modem_gnss_agnss_data_frame in the event struct member data.agnss_request, which contains the types of A-GNSS data that the modem needs.

LOCATION_MODULE_EVT_PGPS_NEEDED 

The location library has reported that it needs GPS prediction data. The event has associated payload of the type struct gps_pgps_request in the event struct member data.pgps_request, which specifies the P-GPS data need.

LOCATION_MODULE_EVT_ERROR_CODE 

An error has occurred, and data may have been lost. The event has associated payload of the type int in the struct member data.err, that contains the original error code that triggered the sending of this event.