version bump, add code to reset wifi driver before restart
This commit is contained in:
2
Config.h
2
Config.h
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define NUKI_HUB_VERSION "8.31-pre-1"
|
#define NUKI_HUB_VERSION "8.31"
|
||||||
|
|
||||||
#define MQTT_QOS_LEVEL 1
|
#define MQTT_QOS_LEVEL 1
|
||||||
#define MQTT_CLEAN_SESSIONS false
|
#define MQTT_CLEAN_SESSIONS false
|
||||||
|
|||||||
@@ -91,7 +91,12 @@ void WifiDevice::initialize()
|
|||||||
res = _wm.autoConnect(); // password protected ap
|
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."));
|
Log->println(F("Failed to connect. Wait for ESP restart."));
|
||||||
delay(1000);
|
delay(1000);
|
||||||
restartEsp(RestartReason::WifiInitFailed);
|
restartEsp(RestartReason::WifiInitFailed);
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user