Output messages

Asset Tracker Template

tags
Asset Tracker Template

The module publishes the following output messages:

  • 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, either successfully or with an error or a timeout.
  • LOCATION_GNSS_DATA: Contains a successful GNSS fix.
  • LOCATION_CLOUD_REQUEST: Contains cellular neighbor cell information, Wi-Fi access point information, or both, to send to the cloud services for location resolution.
  • LOCATION_AGNSS_REQUEST: Indicates that assisted GNSS (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,
};