From 67a7e28b7895f45f308410a13b614a3989ded796 Mon Sep 17 00:00:00 2001 From: mikep1998 <44448320+mikep1998@users.noreply.github.com> Date: Tue, 26 Oct 2021 10:11:21 -0700 Subject: [PATCH] WIFI connection retry Allow #define to change wifi connection timeout. --- tasmota/support_wifi.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasmota/support_wifi.ino b/tasmota/support_wifi.ino index ff5f48d51..bf80f579e 100644 --- a/tasmota/support_wifi.ino +++ b/tasmota/support_wifi.ino @@ -32,10 +32,13 @@ #ifndef WIFI_RESCAN_MINUTES #define WIFI_RESCAN_MINUTES 44 // Number of minutes between wifi network rescan #endif +#ifndef WIFI_RETRY_SECONDS +#define WIFI_RETRY_SECONDS 12 // Number of seconds connection to wifi network will retry +#endif const uint8_t WIFI_CONFIG_SEC = 180; // seconds before restart const uint8_t WIFI_CHECK_SEC = 20; // seconds -const uint8_t WIFI_RETRY_OFFSET_SEC = 12; // seconds +const uint8_t WIFI_RETRY_OFFSET_SEC = WIFI_RETRY_SECONDS; // seconds #include // Wifi, MQTT, Ota, WifiManager #if LWIP_IPV6