From 70c992f005fd7e23580e50149333a7b938d350a3 Mon Sep 17 00:00:00 2001
From: Peter Lambrechtsen
Date: Sun, 3 Aug 2025 13:10:12 +1200
Subject: [PATCH 01/27] Changing WebUI to include display device name, and
change it to select drop down rather than checkbox
---
main/TheengsCommon.h | 1 +
main/config_WebContent.h | 2 +-
main/config_WebUI.h | 4 ++++
main/config_mqttDiscovery.h | 4 ----
main/gatewayBT.cpp | 15 ++++++++++-----
main/mqttDiscovery.cpp | 2 +-
main/webUI.cpp | 23 +++++++++++++++++++----
7 files changed, 36 insertions(+), 15 deletions(-)
diff --git a/main/TheengsCommon.h b/main/TheengsCommon.h
index 17a0fe8469..73c9930d6c 100644
--- a/main/TheengsCommon.h
+++ b/main/TheengsCommon.h
@@ -62,6 +62,7 @@ extern bool ready_to_sleep;
extern char mqtt_topic[];
extern char gateway_name[];
extern unsigned long lastDiscovery; // Time of the last discovery to trigger automaticaly to off after DiscoveryAutoOffTimer
+extern bool displayDeviceName;
extern bool enqueueJsonObject(const StaticJsonDocument& jsonDoc, int timeout);
extern bool enqueueJsonObject(const StaticJsonDocument& jsonDoc);
diff --git a/main/config_WebContent.h b/main/config_WebContent.h
index 9215d0d9e7..4544d3f394 100644
--- a/main/config_WebContent.h
+++ b/main/config_WebContent.h
@@ -112,7 +112,7 @@ const char config_gateway_body[] = body_header "" body_footer_config_menu;
-const char config_webui_body[] = body_header "" body_footer_config_menu;
+const char config_webui_body[] = body_header "" body_footer_config_menu;
const char config_rf_body[] = body_header
"
"
+#else
+# define configure_7
+#endif
#define configure_8
/*------------------- ----------------------*/
@@ -219,6 +223,10 @@ const char config_lora_body[] = body_header
""
"" body_footer_config_menu;
+#ifdef BLEDecryptor
+const char config_ble_body[] = body_header "" body_footer_config_menu;
+#endif
+
const char footer[] = "