version bump, add code to reset wifi driver before restart

This commit is contained in:
technyon
2024-01-31 16:35:45 +01:00
parent bcdcc8aed9
commit 423814fcce
3 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#pragma once
#define NUKI_HUB_VERSION "8.31-pre-1"
#define NUKI_HUB_VERSION "8.31"
#define MQTT_QOS_LEVEL 1
#define MQTT_CLEAN_SESSIONS false

View File

@@ -91,7 +91,12 @@ void WifiDevice::initialize()
res = _wm.autoConnect(); // password protected ap
}
if(!res) {
if(!res)
{
esp_wifi_disconnect ();
esp_wifi_stop ();
esp_wifi_deinit ();
Log->println(F("Failed to connect. Wait for ESP restart."));
delay(1000);
restartEsp(RestartReason::WifiInitFailed);

Binary file not shown.