From 1d7940aaf314658266d842deb889e7539c05de3b Mon Sep 17 00:00:00 2001 From: lumapu Date: Fri, 31 May 2024 00:17:19 +0200 Subject: [PATCH] 0.8.123 * fix ESP32 static IP as well --- src/CHANGES.md | 2 +- src/network/AhoyWifiEsp32.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CHANGES.md b/src/CHANGES.md index af3ce543..f4c5d4ce 100644 --- a/src/CHANGES.md +++ b/src/CHANGES.md @@ -1,7 +1,7 @@ # Development Changes ## 0.8.123 - 2024-05-30 -* fix ESP8266 static IP #1643 #1608 +* fix ESP8266, ESP32 static IP #1643 #1608 * update MqTT library which enhances stability #1646 * merge PR: MQTT JSON Payload pro Kanal und total, auswählbar #1541 * add option to publish mqtt as json diff --git a/src/network/AhoyWifiEsp32.h b/src/network/AhoyWifiEsp32.h index 52ad6292..89c9bbb4 100644 --- a/src/network/AhoyWifiEsp32.h +++ b/src/network/AhoyWifiEsp32.h @@ -25,6 +25,7 @@ class AhoyWifi : public AhoyNetwork { #if !defined(AP_ONLY) WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN); WiFi.setSortMethod(WIFI_CONNECT_AP_BY_SIGNAL); + setStaticIp(); WiFi.begin(mConfig->sys.stationSsid, mConfig->sys.stationPwd, WIFI_ALL_CHANNEL_SCAN); mWifiConnecting = true; @@ -41,7 +42,6 @@ class AhoyWifi : public AhoyNetwork { mStatus = NetworkState::CONNECTED; mWifiConnecting = false; DPRINTLN(DBG_INFO, F("Network connected")); - setStaticIp(); } break;