Output messages

Asset Tracker Template

tags
Asset Tracker Template
  • LOCATION_MODULE_READY: Indicates that the location module has finished initialization.

  • LOCATION_SEARCH_STARTED: Indicates that a location search has been initiated.

  • LOCATION_SEARCH_DONE: Indicates that a location search has completed (successfully or with error/timeout).

  • LOCATION_GNSS_DATA: Contains a successful GNSS fix.

  • LOCATION_CLOUD_REQUEST: Contains cellular neighbor cell and/or Wi-Fi access point information that should be sent to cloud services for location resolution.

  • LOCATION_AGNSS_REQUEST: Indicates that A-GNSS assistance data is needed for GNSS positioning.

The message types used by the location module are defined in location.h:

enum location_msg_type {
    LOCATION_SEARCH_STARTED = 0x1,
    LOCATION_SEARCH_DONE,
    LOCATION_CLOUD_REQUEST,
    LOCATION_AGNSS_REQUEST,
    LOCATION_GNSS_DATA,
    LOCATION_MODULE_READY,
    LOCATION_SEARCH_TRIGGER,
    LOCATION_GNSS_SEARCH_TRIGGER,
    LOCATION_SEARCH_CANCEL,
};