diff --git a/lib/WiFiManager/WiFiManager.cpp b/lib/WiFiManager/WiFiManager.cpp index aede273..8f9dd0d 100644 --- a/lib/WiFiManager/WiFiManager.cpp +++ b/lib/WiFiManager/WiFiManager.cpp @@ -1129,7 +1129,7 @@ bool WiFiManager::wifiConnectNew(String ssid, String pass,bool connect){ DEBUG_WM(F("find best RSSI: TRUE")); #endif if (!_numNetworks) - WiFi_scanNetworks(false, _enableCaptivePortal); // scan in case this gets called before any scans + WiFi_scanNetworks(false, false); // scan in case this gets called before any scans int n = _numNetworks; if (n == 0) { @@ -1218,7 +1218,7 @@ bool WiFiManager::wifiConnectDefault(){ DEBUG_WM(F("find best RSSI: TRUE")); #endif if (!_numNetworks) - WiFi_scanNetworks(false, _enableCaptivePortal); // scan in case this gets called before any scans + WiFi_scanNetworks(false, false); // scan in case this gets called before any scans int n = _numNetworks; if (n == 0) { diff --git a/src/Config.h b/src/Config.h index 74e85f5..e56b8ef 100644 --- a/src/Config.h +++ b/src/Config.h @@ -4,7 +4,7 @@ #define NUKI_HUB_VERSION "9.01" #define NUKI_HUB_BUILD "unknownbuildnr" -#define NUKI_HUB_DATE "2024-09-01" +#define NUKI_HUB_DATE "2024-09-06" #define GITHUB_LATEST_RELEASE_URL (char*)"https://github.com/technyon/nuki_hub/releases/latest" #define GITHUB_OTA_MANIFEST_URL (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/manifest.json" diff --git a/src/NukiNetwork.cpp b/src/NukiNetwork.cpp index 53b8e69..aa4b541 100644 --- a/src/NukiNetwork.cpp +++ b/src/NukiNetwork.cpp @@ -598,13 +598,16 @@ void NukiNetwork::mqtt_event_handler(void *handler_args, esp_event_base_t base, switch ((esp_mqtt_event_id_t)event_id) { case MQTT_EVENT_CONNECTED: ESP_LOGI(MQTT_TAG, "MQTT_EVENT_CONNECTED"); + Log->println("MQTT Connected"); _mqttClientInitiated = true; _mqttConnected = true; reconnect(); break; case MQTT_EVENT_DISCONNECTED: ESP_LOGI(MQTT_TAG, "MQTT_EVENT_DISCONNECTED"); + Log->println("MQTT Disconnected"); _mqttConnected = false; + reconnect(); break; case MQTT_EVENT_SUBSCRIBED: ESP_LOGI(MQTT_TAG, "MQTT_EVENT_SUBSCRIBED, msg_id=%d", event->msg_id); @@ -637,7 +640,6 @@ bool NukiNetwork::reconnect() { if (_mqttConnected) { - Log->println(F("MQTT connected")); _mqttConnectedTs = millis(); _mqttConnectionState = 1; delay(100); diff --git a/src/WebCfgServer.cpp b/src/WebCfgServer.cpp index 203c37f..da0b7c2 100644 --- a/src/WebCfgServer.cpp +++ b/src/WebCfgServer.cpp @@ -3234,7 +3234,6 @@ esp_err_t WebCfgServer::buildConfigureWifiHtml(PsychicRequest *request) esp_err_t WebCfgServer::buildInfoHtml(PsychicRequest *request) { - Log->println("INFO HTML"); uint32_t aclPrefs[17]; _preferences->getBytes(preference_acl, &aclPrefs, sizeof(aclPrefs)); PsychicStreamResponse response(request, "text/plain");