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

◆ timeout

int32_t location_wifi_config::timeout

Timeout (in milliseconds) of how long the Wi-Fi positioning procedure can take. SYS_FOREVER_MS means that the timer is disabled.

Default value is 30000 (30 seconds). It is applied when location_config_defaults_set() function is called and can be changed at build time with

CONFIG_LOCATION_REQUEST_DEFAULT_WIFI_TIMEOUT 

configuration.

Timeout only applies to Wi-Fi scan, not the cloud communication. Timeout for the entire location request specified in location_config structure is still valid.

When

CONFIG_LOCATION_SERVICE_EXTERNAL 

is enabled, this timeout stops when event LOCATION_EVT_CLOUD_LOCATION_EXT_REQUEST is sent. However, timeout specified in location_config structure is still valid.