Added auto reconnect call to setup function. Removed wifi connection check functionality - which isn't work properly.

This commit is contained in:
Kai Lauterbach 2022-12-31 09:35:56 +01:00
parent 097623dcfc
commit 9a920aeb88

View file

@ -252,6 +252,7 @@ float readSensors(uint8_t s) {
void wifiConnectionCheck() { void wifiConnectionCheck() {
/*
if ((wifi_check_interval_counter + WIFI_CHECK_INTERVAL_MS) > millis()) { if ((wifi_check_interval_counter + WIFI_CHECK_INTERVAL_MS) > millis()) {
// if check interval is not exceeded abort check // if check interval is not exceeded abort check
return; return;
@ -285,6 +286,7 @@ void wifiConnectionCheck() {
//initWifiBasedSW(); //initWifiBasedSW();
} }
*/
} }
//*************************************************************************// //*************************************************************************//
@ -325,6 +327,7 @@ void wifiConnect() {
} }
WiFi.begin(WIFI_SSID, WIFI_PASSWD); WiFi.begin(WIFI_SSID, WIFI_PASSWD);
WiFi.setAutoReconnect(true);
debug("Connecting to WLAN"); debug("Connecting to WLAN");