From 49cb7621be6200741169e8a16fcb2d28ab941687 Mon Sep 17 00:00:00 2001 From: lumapu Date: Thu, 30 May 2024 16:44:15 +0200 Subject: [PATCH] 0.8.123 * fix ESP8266 static IP #1643 #1608 * update MqTT library which enhances stability --- scripts/getVersion.py | 2 +- src/CHANGES.md | 4 ++++ src/defines.h | 2 +- src/network/AhoyWifiEsp8266.h | 2 +- src/platformio.ini | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/getVersion.py b/scripts/getVersion.py index d3f1e576..f579b56a 100644 --- a/scripts/getVersion.py +++ b/scripts/getVersion.py @@ -78,7 +78,7 @@ def renameFw(path_define, env): os.rename("src/.pio/build/" + env + "/firmware.bin", dst + fname) os.rename("src/.pio/build/" + env + "/firmware.elf.7z", dst + fname[:-3] + "elf.7z") - if env[:5] == "esp32": + if env[:5] == "esp32" or env[:4] == "open": os.rename("src/.pio/build/" + env + "/bootloader.bin", dst + "bootloader.bin") os.rename("src/.pio/build/" + env + "/partitions.bin", dst + "partitions.bin") genOtaBin(dst) diff --git a/src/CHANGES.md b/src/CHANGES.md index 5efb1610..b4b65c7c 100644 --- a/src/CHANGES.md +++ b/src/CHANGES.md @@ -1,5 +1,9 @@ # Development Changes +## 0.8.123 - 2024-05-30 +* fix ESP8266 static IP #1643 #1608 +* update MqTT library which enhances stability + ## 0.8.122 - 2024-05-23 * add button for donwloading coredump (ESP32 variants only) diff --git a/src/defines.h b/src/defines.h index c0664b7d..ab651821 100644 --- a/src/defines.h +++ b/src/defines.h @@ -13,7 +13,7 @@ //------------------------------------- #define VERSION_MAJOR 0 #define VERSION_MINOR 8 -#define VERSION_PATCH 122 +#define VERSION_PATCH 123 //------------------------------------- typedef struct { uint8_t ch; diff --git a/src/network/AhoyWifiEsp8266.h b/src/network/AhoyWifiEsp8266.h index 2da0a409..b6ea65d2 100644 --- a/src/network/AhoyWifiEsp8266.h +++ b/src/network/AhoyWifiEsp8266.h @@ -71,6 +71,7 @@ class AhoyWifi : public AhoyNetwork { DBGPRINT(" " + String(bssid[j], HEX)); } DBGPRINTLN(""); + setStaticIp(); WiFi.begin(mConfig->sys.stationSsid, mConfig->sys.stationPwd, 0, &bssid[0]); mWifiConnecting = true; break; @@ -84,7 +85,6 @@ class AhoyWifi : public AhoyNetwork { break; case NetworkState::CONNECTED: - setStaticIp(); break; case NetworkState::GOT_IP: diff --git a/src/platformio.ini b/src/platformio.ini index 30436414..0ed3f298 100644 --- a/src/platformio.ini +++ b/src/platformio.ini @@ -29,7 +29,7 @@ lib_deps = https://github.com/esphome/ESPAsyncWebServer @ ^3.2.0 https://github.com/nRF24/RF24.git#v1.4.8 paulstoffregen/Time @ ^1.6.1 - https://github.com/bertmelis/espMqttClient#v1.6.0 + https://github.com/bertmelis/espMqttClient#v1.7.0 bblanchon/ArduinoJson @ ^6.21.3 https://github.com/JChristensen/Timezone @ ^1.2.4 olikraus/U8g2 @ ^2.35.9