Configuration

Asset Tracker Template

tags
Asset Tracker Template

You can configure the Location module with the following Kconfig options from Kconfig.location:

  • CONFIG_APP_LOCATION: Enables the Location module. The option is selected automatically when CONFIG_LOCATION is enabled.
  • CONFIG_APP_LOCATION_THREAD_STACK_SIZE: Stack size for the Location module's main thread.
  • CONFIG_APP_LOCATION_WATCHDOG_TIMEOUT_SECONDS: Watchdog timeout for the module's thread, 120 seconds by default. The timeout covers the following periods:

    • Waiting for an incoming message in zbus_sub_wait_msg().
    • Time spent processing the message, defined by the CONFIG_APP_LOCATION_MSG_PROCESSING_TIMEOUT_SECONDS Kconfig option.

    This value must be larger than CONFIG_APP_LOCATION_MSG_PROCESSING_TIMEOUT_SECONDS. A small difference between the two can mean more frequent watchdog feeds, which increases power consumption.

  • CONFIG_APP_LOCATION_MSG_PROCESSING_TIMEOUT_SECONDS: Maximum time allowed for processing a single message, 60 seconds by default. This value must be smaller than the value set in the CONFIG_APP_LOCATION_WATCHDOG_TIMEOUT_SECONDS Kconfig option.

For more information about these configuration options, see the Kconfig.location file.