diff --git a/README.md b/README.md
index 5b44d6c..822d3b7 100644
--- a/README.md
+++ b/README.md
@@ -709,7 +709,7 @@ If you have enabled "Allow updating using MQTT" you can also use the Home Assist
Alternatively you can select a binary file from your file system to update Nuki Hub or the Nuki Hub updator manually
You can only update Nuki Hub from the Nuki Hub updater and update the updater only from Nuki Hub
-You can reboot from Nuki Hub to the updater and vice versa by selecting the reboot option from the "Firware update" page
+You can reboot from Nuki Hub to the updater and vice versa by selecting the reboot option from the "Firmware update" page
When you are on the right application you can upload the new binary by clicking on "Browse" and select the new "nuki_hub\[board\].bin" or "nuki_hub_updater\[board\].bin" file and select "Upload file".
After about a minute the new firmware should be installed afterwhich the ESP will reboot automatically to the updated binary.
Selecting the wrong binary will lead to an unsuccessfull update
diff --git a/platformio.ini b/platformio.ini
index c9e7f43..34fca70 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -75,6 +75,7 @@ extra_scripts =
build_flags =
${env.build_flags}
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
+ -DNUKI_HUB_HTTPS_SERVER
[env:esp32-gl-s10]
extends = env:esp32
@@ -90,6 +91,9 @@ extends = env:esp32
board = esp32-c3-devkitc-02
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release.defaults;sdkconfig.singlecore.defaults"
+build_flags =
+ ${env.build_flags}
+ -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
[env:esp32-s3]
extends = env:esp32
@@ -102,7 +106,7 @@ extends = env:esp32
board = nuki-esp32-s3-oct
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release.defaults;sdkconfig.defaults.esp32-s3-oct"
-
+
[env:esp32-c5]
extends = env:esp32
board_build.partitions = partitions_c5.csv
@@ -115,6 +119,10 @@ extends = env:esp32
board = esp32-c6-devkitm-1
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release.defaults;sdkconfig.singlecore.defaults"
+build_flags =
+ ${env:esp32.build_flags}
+ -DNUKI_HUB_HTTPS_SERVER
+ -DFORCE_NUKI_HUB_HTTPS_SERVER
[env:esp32-h2]
extends = env:esp32
@@ -131,12 +139,18 @@ lib_ignore =
ESPAsyncTCP-esphome
AsyncTCP_RP2040W
WiFiManager
+build_flags =
+ ${env.build_flags}
+ -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
[env:esp32-solo1]
extends = env:esp32
board = nuki-esp32solo1
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release.defaults;sdkconfig.singlecore.defaults;sdkconfig.defaults.esp32-solo1"
+build_flags =
+ ${env.build_flags}
+ -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
[env:esp32-p4]
extends = env:esp32
@@ -144,9 +158,6 @@ board_build.embed_txtfiles =
board = esp32-p4
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release.defaults;sdkconfig.defaults.esp32-p4"
-build_flags =
- ${env.build_flags}
- -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
[env:esp32_dbg]
extends = env:esp32
@@ -157,6 +168,7 @@ build_flags =
${env.build_flags}
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
-DDEBUG_NUKIHUB
+ -DNUKI_HUB_HTTPS_SERVER
[env:esp32-gl-s10_dbg]
extends = env:esp32-gl-s10
@@ -185,9 +197,7 @@ custom_build = debug
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.debug.defaults;sdkconfig.defaults.esp32-c5;sdkconfig.defaults.esp32-c5dbg;sdkconfig.singlecore.defaults"
build_flags =
- ${env.build_flags}
- -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
- -DDEBUG_NUKIHUB
+ ${env:esp32_dbg.build_flags}
[env:esp32-c6_dbg]
extends = env:esp32-c6
@@ -195,9 +205,8 @@ custom_build = debug
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.debug.defaults;sdkconfig.singlecore.defaults"
build_flags =
- ${env.build_flags}
- -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
- -DDEBUG_NUKIHUB
+ ${env:esp32_dbg.build_flags}
+ -DFORCE_NUKI_HUB_HTTPS_SERVER
[env:esp32-h2_dbg]
extends = env:esp32-h2
@@ -216,9 +225,7 @@ custom_build = debug
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.debug.defaults;sdkconfig.defaults.esp32-s3"
build_flags =
- ${env.build_flags}
- -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
- -DDEBUG_NUKIHUB
+ ${env:esp32_dbg.build_flags}
[env:esp32-s3-oct_dbg]
extends = env:esp32-s3-oct
@@ -226,9 +233,7 @@ custom_build = debug
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.debug.defaults;sdkconfig.defaults.esp32-s3-oct"
build_flags =
- ${env.build_flags}
- -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
- -DDEBUG_NUKIHUB
+ ${env:esp32_dbg.build_flags}
[env:esp32-solo1_dbg]
extends = env:esp32-solo1
@@ -246,6 +251,4 @@ custom_build = debug
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.debug.defaults;sdkconfig.defaults.esp32-p4"
build_flags =
- ${env.build_flags}
- -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
- -DDEBUG_NUKIHUB
\ No newline at end of file
+ ${env:esp32_dbg.build_flags}
\ No newline at end of file
diff --git a/src/Config.h b/src/Config.h
index 99ee1ea..a2bf009 100644
--- a/src/Config.h
+++ b/src/Config.h
@@ -5,7 +5,7 @@
#define NUKI_HUB_VERSION "9.11"
#define NUKI_HUB_VERSION_INT (uint32_t)911
#define NUKI_HUB_BUILD "unknownbuildnr"
-#define NUKI_HUB_DATE "2025-06-18"
+#define NUKI_HUB_DATE "2025-06-19"
#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/WebCfgServer.cpp b/src/WebCfgServer.cpp
index c1ad285..4576b46 100644
--- a/src/WebCfgServer.cpp
+++ b/src/WebCfgServer.cpp
@@ -9,6 +9,8 @@
#include "esp_random.h"
#ifdef CONFIG_SOC_SPIRAM_SUPPORTED
#include "esp_psram.h"
+#endif
+#ifdef NUKI_HUB_HTTPS_SERVER
#include "util/SSLCert.hpp"
#endif
#ifndef CONFIG_IDF_TARGET_ESP32H2
@@ -2697,8 +2699,7 @@ bool WebCfgServer::processArgs(PsychicRequest *request, PsychicResponse* resp, S
}
}
}
- #ifdef CONFIG_SOC_SPIRAM_SUPPORTED
- else if(key == "HTTPCRT")
+ else if(key == "HTTPCRT" && nuki_hub_https_server_enabled)
{
if (!SPIFFS.begin(true)) {
Log->println("SPIFFS Mount Failed");
@@ -2734,7 +2735,7 @@ bool WebCfgServer::processArgs(PsychicRequest *request, PsychicResponse* resp, S
}
}
}
- else if(key == "HTTPKEY")
+ else if(key == "HTTPKEY" && nuki_hub_https_server_enabled)
{
if (!SPIFFS.begin(true)) {
Log->println("SPIFFS Mount Failed");
@@ -2770,14 +2771,15 @@ bool WebCfgServer::processArgs(PsychicRequest *request, PsychicResponse* resp, S
}
}
}
- else if(key == "HTTPGEN")
+ else if(key == "HTTPGEN" && nuki_hub_https_server_enabled)
{
+ #ifdef NUKI_HUB_HTTPS_SERVER
createSSLCertificate();
+ #endif
Log->print("Setting changed: ");
Log->println(key);
configChanged = true;
}
- #endif
else if(key == "UPTIME")
{
if(_preferences->getBool(preference_update_time, false) != (value == "1"))
@@ -4809,12 +4811,10 @@ esp_err_t WebCfgServer::buildImportExportHtml(PsychicRequest *request, PsychicRe
response.print("");
response.print("
");
response.print("
");
- #ifdef CONFIG_SOC_SPIRAM_SUPPORTED
- if(esp_psram_get_size() > 0)
+ if(nuki_hub_https_server_enabled)
{
response.print("
");
}
- #endif
response.print("
");
response.print("
");
response.print("