nRF Connect SDK API 2.8.99
|
int32_t location_gnss_config::timeout |
Timeout (in milliseconds), meaning how long GNSS is allowed to run when trying to acquire a fix. SYS_FOREVER_MS means that the timer is disabled, meaning that GNSS will continue to search until it gets a fix or the application calls cancel.
Note that this is not real time as experienced by the user. Since GNSS cannot run while LTE is operating, the running time is counted from the instant when GNSS is allowed to start. Library waits until RRC connection is inactive before starting GNSS. If LTE power saving mode (PSM) is enabled and A-GNSS is disabled, library waits until modem enters PSM before starting GNSS, thus maximizing uninterrupted operating window and minimizing power consumption.
Default value is 120000 (2 minutes). It is applied when location_config_defaults_set() function is called and can be changed at build time with
CONFIG_LOCATION_REQUEST_DEFAULT_GNSS_TIMEOUT
configuration.