Skip to content

Commit

Permalink
version bump, add code to reset wifi driver before restart
Browse files Browse the repository at this point in the history
  • Loading branch information
technyon committed Jan 31, 2024
1 parent bcdcc8a commit 423814f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Config.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 6 additions & 1 deletion networkDevices/WifiDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Binary file modified webflash/nuki_hub.bin
Binary file not shown.

0 comments on commit 423814f

Please sign in to comment.