diff --git a/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino b/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino index 9a86617d7..d16d911f5 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino @@ -307,19 +307,21 @@ const char HTTP_FORM_LOGIN[] PROGMEM = const char HTTP_FIELDSET_LEGEND[] PROGMEM = "
 %s "; -const char HTTP_FORM_TEMPLATE[] PROGMEM = - "
"; +const char HTTP_FORM_GET_ACTION[] PROGMEM = + ""; + +const char HTTP_FORM_BUTTON[] PROGMEM = + "

"; + const char HTTP_FORM_TEMPLATE_FLAG[] PROGMEM = // "
" "

"; const char HTTP_FORM_MODULE[] PROGMEM = - "
" "

" D_MODULE_TYPE " (%s)

" "
"; const char HTTP_FORM_WIFI_PART1[] PROGMEM = - "" "

" D_AP1_SSID "%s

" // Need \" instead of ' to be able to use ' in text (#8489) "


"; -const char HTTP_FORM_LOG2[] PROGMEM = +const char HTTP_FORM_LOG[] PROGMEM = "

" D_SYSLOG_HOST " (" SYS_LOG_HOST ")

" "

" D_SYSLOG_PORT " (" STR(SYS_LOG_PORT) ")

" "

" D_TELEMETRY_PERIOD " (" STR(TELE_PERIOD) ")

"; -const char HTTP_FORM_OTHER1[] PROGMEM = - "" - "

"; - -const char HTTP_FORM_OTHER2[] PROGMEM = +const char HTTP_FORM_OTHER[] PROGMEM = "

" // We need ' apostrophe here as the template contains " quotation mark "

" "" @@ -362,11 +358,10 @@ const char HTTP_FORM_END[] PROGMEM = "" ""; -const char HTTP_DIV_BLOCK[] PROGMEM = +const char HTTP_DIV_F1_BLOCK[] PROGMEM = "
"; const char HTTP_FORM_UPG[] PROGMEM = - "
" "
" D_OTA_URL "

" "
" "

"; @@ -2275,7 +2270,7 @@ void HandleTemplateConfiguration(void) { WSContentSendStyle(); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_TEMPLATE_PARAMETERS)); - WSContentSend_P(HTTP_FORM_TEMPLATE); + WSContentSend_P(HTTP_FORM_GET_ACTION, PSTR("tp")); WSContentSend_P(HTTP_TABLE100); // "
" WSContentSend_P(PSTR("" "" @@ -2449,6 +2444,7 @@ void HandleModuleConfiguration(void) { WSContentSendStyle(); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_MODULE_PARAMETERS)); + WSContentSend_P(HTTP_FORM_GET_ACTION, PSTR("md")); WSContentSend_P(HTTP_FORM_MODULE, AnyModuleName(MODULE).c_str()); for (uint32_t i = 0; i < nitems(template_gp.io); i++) { if (ValidGPIO(i, template_gp.io[i])) { @@ -2729,6 +2725,7 @@ void HandleWifiConfiguration(void) { WSContentSend_P(PSTR("
%s

"), (limitScannedNetworks) ? PSTR(D_SHOW_MORE_WIFI_NETWORKS) : PSTR(D_SCAN_FOR_WIFI_NETWORKS)); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_WIFI_PARAMETERS)); + WSContentSend_P(HTTP_FORM_GET_ACTION, PSTR("wi")); WSContentSend_P(HTTP_FORM_WIFI_PART1, (WifiIsInManagerMode()) ? "" : PSTR(" (" STA_SSID1 ")"), SettingsTextEscaped(SET_STASSID1).c_str()); @@ -2813,7 +2810,7 @@ void HandleLoggingConfiguration(void) { WSContentStart_P(PSTR(D_CONFIGURE_LOGGING)); WSContentSendStyle(); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_LOGGING_PARAMETERS)); - WSContentSend_P(HTTP_FORM_LOG1); + WSContentSend_P(HTTP_FORM_GET_ACTION, PSTR("lg")); char stemp1[45]; char stemp2[32]; uint8_t dlevel[4] = { LOG_LEVEL_INFO, LOG_LEVEL_INFO, LOG_LEVEL_NONE, LOG_LEVEL_NONE }; @@ -2831,7 +2828,7 @@ void HandleLoggingConfiguration(void) { } WSContentSend_P(PSTR("

")); } - WSContentSend_P(HTTP_FORM_LOG2, + WSContentSend_P(HTTP_FORM_LOG, SettingsTextEscaped(SET_SYSLOG_HOST).c_str(), Settings->syslog_port, Settings->tele_period); @@ -2875,9 +2872,10 @@ void HandleOtherConfiguration(void) { TemplateJson(); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_OTHER_PARAMETERS)); - WSContentSend_P(HTTP_FORM_OTHER1); + WSContentSend_P(HTTP_FORM_GET_ACTION, PSTR("co")); + WSContentSend_P(PSTR("

")); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_TEMPLATE)); - WSContentSend_P(HTTP_FORM_OTHER2, + WSContentSend_P(HTTP_FORM_OTHER, HtmlEscape(ResponseData()).c_str(), (USER_MODULE == Settings->module) ? PSTR(" checked disabled") : "", (Settings->flag5.disable_referer_chk) ? PSTR(" checked") : "", // SetOption128 - Enable HTTP API @@ -3018,7 +3016,7 @@ void HandleRestoreConfiguration(void) { WSContentStart_P(PSTR(D_RESTORE_CONFIGURATION)); WSContentSendStyle(); - WSContentSend_P(HTTP_DIV_BLOCK); + WSContentSend_P(HTTP_DIV_F1_BLOCK); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_RESTORE_CONFIGURATION)); WSContentSend_P(HTTP_FORM_RST_UPG, PSTR(D_START_RESTORE)); if (WifiIsInManagerMode()) { @@ -3390,8 +3388,9 @@ void HandleUpgradeFirmware(void) { WSContentStart_P(PSTR(D_FIRMWARE_UPGRADE)); WSContentSendStyle(); WSContentSend_P(HTTP_MENU_HEAD, D_FIRMWARE_UPGRADE); - WSContentSend_P(HTTP_DIV_BLOCK); + WSContentSend_P(HTTP_DIV_F1_BLOCK); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_UPGRADE_BY_WEBSERVER)); + WSContentSend_P(HTTP_FORM_GET_ACTION, PSTR("u1")); WSContentSend_P(HTTP_FORM_UPG, SettingsTextEscaped(SET_OTAURL).c_str()); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_UPGRADE_BY_FILE_UPLOAD)); #ifdef ESP32 diff --git a/tasmota/tasmota_xdrv_driver/xdrv_02_9_mqtt.ino b/tasmota/tasmota_xdrv_driver/xdrv_02_9_mqtt.ino index f023a789a..3f291159c 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_02_9_mqtt.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_02_9_mqtt.ino @@ -2049,13 +2049,7 @@ void CmndTlsDump(void) { #define WEB_HANDLE_MQTT "mq" -const char S_CONFIGURE_MQTT[] PROGMEM = D_CONFIGURE_MQTT; - -const char HTTP_BTN_MENU_MQTT[] PROGMEM = - "

"; - const char HTTP_FORM_MQTT1[] PROGMEM = - "" "

" D_HOST " (" MQTT_HOST ")

" "

" D_PORT " (" STR(MQTT_PORT) ")

" #ifdef USE_MQTT_TLS @@ -2085,6 +2079,7 @@ void HandleMqttConfiguration(void) WSContentStart_P(PSTR(D_CONFIGURE_MQTT)); WSContentSendStyle(); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_MQTT_PARAMETERS)); + WSContentSend_P(HTTP_FORM_GET_ACTION, PSTR(WEB_HANDLE_MQTT)); WSContentSend_P(HTTP_FORM_MQTT1, SettingsTextEscaped(SET_MQTT_HOST).c_str(), Settings->mqtt_port, @@ -2135,7 +2130,7 @@ bool Xdrv02(uint32_t function) #ifdef USE_WEBSERVER #ifndef FIRMWARE_MINIMAL // not needed in minimal/safeboot because of disabled feature and Settings are not saved anyways case FUNC_WEB_ADD_BUTTON: - WSContentSend_P(HTTP_BTN_MENU_MQTT); + WSContentSend_P(HTTP_FORM_BUTTON, PSTR(WEB_HANDLE_MQTT), PSTR(D_CONFIGURE_MQTT)); break; case FUNC_WEB_ADD_HANDLER: WebServer_on(PSTR("/" WEB_HANDLE_MQTT), HandleMqttConfiguration); diff --git a/tasmota/tasmota_xdrv_driver/xdrv_07_domoticz.ino b/tasmota/tasmota_xdrv_driver/xdrv_07_domoticz.ino index 7e5f36504..dca811f5c 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_07_domoticz.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_07_domoticz.ino @@ -636,9 +636,6 @@ void CmndDomoticzSend(void) { #define WEB_HANDLE_DOMOTICZ "dm" -const char HTTP_BTN_MENU_DOMOTICZ[] PROGMEM = - "

"; - const char HTTP_FORM_DOMOTICZ[] PROGMEM = "" "
" D_TEMPLATE_NAME "
" D_BASE_TYPE "
"; @@ -739,7 +736,7 @@ bool Xdrv07(uint32_t function) { break; #ifdef USE_WEBSERVER case FUNC_WEB_ADD_BUTTON: - WSContentSend_P(HTTP_BTN_MENU_DOMOTICZ); + WSContentSend_P(HTTP_FORM_BUTTON, PSTR(WEB_HANDLE_DOMOTICZ), PSTR(D_CONFIGURE_DOMOTICZ)); break; case FUNC_WEB_ADD_HANDLER: WebServer_on(PSTR("/" WEB_HANDLE_DOMOTICZ), HandleDomoticzConfiguration); diff --git a/tasmota/tasmota_xdrv_driver/xdrv_07_ufs_domoticz.ino b/tasmota/tasmota_xdrv_driver/xdrv_07_ufs_domoticz.ino index 3b55eb872..8213b8a0c 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_07_ufs_domoticz.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_07_ufs_domoticz.ino @@ -872,9 +872,6 @@ void CmndDomoticzSend(void) { #define WEB_HANDLE_DOMOTICZ "dm" -const char HTTP_BTN_MENU_DOMOTICZ[] PROGMEM = - "

"; - const char HTTP_FORM_DOMOTICZ[] PROGMEM = "" "
" @@ -997,7 +994,7 @@ bool Xdrv07(uint32_t function) { break; #ifdef USE_WEBSERVER case FUNC_WEB_ADD_BUTTON: - WSContentSend_P(HTTP_BTN_MENU_DOMOTICZ); + WSContentSend_P(HTTP_FORM_BUTTON, PSTR(WEB_HANDLE_DOMOTICZ), PSTR(D_CONFIGURE_DOMOTICZ)); break; case FUNC_WEB_ADD_HANDLER: WebServer_on(PSTR("/" WEB_HANDLE_DOMOTICZ), HandleDomoticzConfiguration); diff --git a/tasmota/tasmota_xdrv_driver/xdrv_09_timers.ino b/tasmota/tasmota_xdrv_driver/xdrv_09_timers.ino index 734b93890..c42373829 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_09_timers.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_09_timers.ino @@ -530,9 +530,6 @@ void CmndSunrise(void) { #define WEB_HANDLE_TIMER "tm" -const char HTTP_BTN_MENU_TIMER[] PROGMEM = - "

"; - #ifdef USE_UNISHOX_COMPRESSION const size_t HTTP_TIMER_SCRIPT1_SIZE = 106; const char HTTP_TIMER_SCRIPT1_COMPRESSED[] PROGMEM = "\x33\xBF\xA1\x94\x7C\x3D\xE3\xDF\x3A\x83\xA3\xE1\xC4\x8F\x04\x60\x5F\x07\x5B\x9C" @@ -938,9 +935,11 @@ bool Xdrv09(uint32_t function) #ifdef USE_TIMERS_WEB case FUNC_WEB_ADD_BUTTON: #if defined(USE_RULES) || defined(USE_SCRIPT) - WSContentSend_P(HTTP_BTN_MENU_TIMER); + WSContentSend_P(HTTP_FORM_BUTTON, PSTR(WEB_HANDLE_TIMER), PSTR(D_CONFIGURE_TIMER)); #else - if (TasmotaGlobal.devices_present) { WSContentSend_P(HTTP_BTN_MENU_TIMER); } + if (TasmotaGlobal.devices_present) { + WSContentSend_P(HTTP_FORM_BUTTON, PSTR(WEB_HANDLE_TIMER), PSTR(D_CONFIGURE_TIMER)); + } #endif // USE_RULES break; case FUNC_WEB_ADD_HANDLER: diff --git a/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino b/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino index e2d65c88f..a26836206 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino @@ -10044,9 +10044,6 @@ void Scripter_save_pvars(void) { #define WEB_HANDLE_SCRIPT "s10" -const char HTTP_BTN_MENU_RULES[] PROGMEM = - "

"; - const char HTTP_FORM_SCRIPT[] PROGMEM = ""; @@ -14872,7 +14869,7 @@ bool Xdrv10(uint32_t function) { if (XdrvMailbox.index) { XdrvMailbox.index++; } else { - WSContentSend_P(HTTP_BTN_MENU_RULES); + WSContentSend_P(HTTP_FORM_BUTTON, PSTR(WEB_HANDLE_SCRIPT), PSTR(D_CONFIGURE_SCRIPT)); } break; #ifdef USE_SCRIPT_WEB_DISPLAY diff --git a/tasmota/tasmota_xdrv_driver/xdrv_11_knx.ino b/tasmota/tasmota_xdrv_driver/xdrv_11_knx.ino index 28affa69e..c16c545a9 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_11_knx.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_11_knx.ino @@ -1050,9 +1050,6 @@ void KnxSensor(uint8_t sensor_type, float value) #ifdef USE_WEBSERVER #ifdef USE_KNX_WEB_MENU -const char HTTP_BTN_MENU_KNX[] PROGMEM = - "

"; - const char HTTP_FORM_KNX[] PROGMEM = "
" " " D_KNX_PARAMETERS " " @@ -1583,7 +1580,7 @@ bool Xdrv11(uint32_t function) #ifdef USE_WEBSERVER #ifdef USE_KNX_WEB_MENU case FUNC_WEB_ADD_BUTTON: - WSContentSend_P(HTTP_BTN_MENU_KNX); + WSContentSend_P(HTTP_FORM_BUTTON, PSTR("kn"), PSTR(D_CONFIGURE_KNX)); break; case FUNC_WEB_ADD_HANDLER: WebServer_on(PSTR("/kn"), HandleKNXConfiguration); diff --git a/tasmota/tasmota_xdrv_driver/xdrv_28_pcf8574_v2.ino b/tasmota/tasmota_xdrv_driver/xdrv_28_pcf8574_v2.ino index 42e474c81..1dc58ad55 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_28_pcf8574_v2.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_28_pcf8574_v2.ino @@ -515,11 +515,7 @@ void Pcf8574ModuleInitMode1(void) { #ifdef USE_WEBSERVER #define WEB_HANDLE_PCF8574 "pcf" -const char HTTP_BTN_MENU_PCF8574[] PROGMEM = - "

"; - const char HTTP_FORM_I2C_PCF8574_1[] PROGMEM = - "
" "


"; const char HTTP_FORM_I2C_PCF8574_2[] PROGMEM = @@ -544,6 +540,7 @@ void HandlePcf8574(void) { WSContentStart_P(D_CONFIGURE_PCF8574); WSContentSendStyle(); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_PCF8574_PARAMETERS)); + WSContentSend_P(HTTP_FORM_GET_ACTION, PSTR(WEB_HANDLE_PCF8574)); WSContentSend_P(HTTP_FORM_I2C_PCF8574_1, (Settings->flag3.pcf8574_ports_inverted) ? PSTR(" checked") : ""); // SetOption81 - Invert all ports on PCF8574 devices WSContentSend_P(HTTP_TABLE100); for (uint32_t idx = 0; idx < Pcf8574.max_devices; idx++) { @@ -710,7 +707,7 @@ bool Xdrv28(uint32_t function) { #endif // USE_PCF8574_SENSOR #ifdef USE_WEBSERVER case FUNC_WEB_ADD_BUTTON: - WSContentSend_P(HTTP_BTN_MENU_PCF8574); + WSContentSend_P(HTTP_FORM_BUTTON, PSTR(WEB_HANDLE_PCF8574), PSTR(D_CONFIGURE_PCF8574)); break; case FUNC_WEB_ADD_HANDLER: WebServer_on(PSTR("/" WEB_HANDLE_PCF8574), HandlePcf8574); diff --git a/tasmota/tasmota_xdrv_driver/xdrv_43_mlx90640.ino b/tasmota/tasmota_xdrv_driver/xdrv_43_mlx90640.ino index 34ec6aed2..19256302f 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_43_mlx90640.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_43_mlx90640.ino @@ -41,7 +41,6 @@ const char MLX90640type[] PROGMEM = "MLX90640"; #ifdef USE_WEBSERVER #define WEB_HANDLE_MLX90640 "mlx" -const char HTTP_BTN_MENU_MLX90640[] PROGMEM = "

"; #endif // USE_WEBSERVER struct { @@ -608,7 +607,7 @@ bool Xdrv43(uint32_t function) break; #ifdef USE_WEBSERVER case FUNC_WEB_ADD_MAIN_BUTTON: - WSContentSend_P(HTTP_BTN_MENU_MLX90640); + WSContentSend_P(HTTP_FORM_BUTTON, PSTR(WEB_HANDLE_MLX90640), PSTR("MLX90640")); break; case FUNC_WEB_ADD_HANDLER: WebServer_on(PSTR("/mlx"), MLX90640HandleWebGui); diff --git a/tasmota/tasmota_xdrv_driver/xdrv_50_filesystem.ino b/tasmota/tasmota_xdrv_driver/xdrv_50_filesystem.ino index a5f83a91c..f016ffffd 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_50_filesystem.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_50_filesystem.ino @@ -1292,7 +1292,7 @@ const char UFS_FORM_SDC_DIRa[] PROGMEM = const char UFS_FORM_SDC_DIRc[] PROGMEM = ""; const char UFS_FORM_FILE_UPGb[] PROGMEM = - "
" + "" ""; const char UFS_FORM_FILE_UPGb1[] PROGMEM = ""; @@ -1423,7 +1423,7 @@ void UfsDirectory(void) { WSContentStart_P(PSTR(D_MANAGE_FILE_SYSTEM)); WSContentSendStyle(); - WSContentSend_P(HTTP_DIV_BLOCK); + WSContentSend_P(HTTP_DIV_F1_BLOCK); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_MANAGE_FILE_SYSTEM)); char ts[FLOATSZ]; @@ -1452,6 +1452,7 @@ void UfsDirectory(void) { } WSContentSend_P(UFS_FORM_SDC_DIRc); #ifdef GUI_EDIT_FILE + WSContentSend_P(HTTP_FORM_GET_ACTION, PSTR("ufse")); WSContentSend_P(UFS_FORM_FILE_UPGb, ufs_path); #endif if (!UfsIsSDC()) { diff --git a/tasmota/tasmota_xdrv_driver/xdrv_52_9_berry.ino b/tasmota/tasmota_xdrv_driver/xdrv_52_9_berry.ino index ac518cea2..0317472c5 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_52_9_berry.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_52_9_berry.ino @@ -745,10 +745,6 @@ const char HTTP_BERRY_FORM_CMND[] PROGMEM = #endif // USE_BERRY_DEBUG ; -const char HTTP_BTN_BERRY_CONSOLE[] PROGMEM = - "

"; - - void HandleBerryConsoleRefresh(void) { String svalue = Webserver->arg(F("c1")); @@ -1048,7 +1044,7 @@ bool Xdrv52(uint32_t function) if (XdrvMailbox.index) { XdrvMailbox.index++; } else { - WSContentSend_P(HTTP_BTN_BERRY_CONSOLE); + WSContentSend_P(HTTP_FORM_BUTTON, PSTR("bc"), PSTR("Berry Scripting console")); HandleBerryBECLoaderButton(); // display buttons to load BEC files callBerryEventDispatcher(PSTR("web_add_button"), nullptr, 0, nullptr); callBerryEventDispatcher(PSTR("web_add_console_button"), nullptr, 0, nullptr); diff --git a/tasmota/tasmota_xdrv_driver/xdrv_79_esp32_ble.ino b/tasmota/tasmota_xdrv_driver/xdrv_79_esp32_ble.ino index c8a30da9b..6ee31c5de 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_79_esp32_ble.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_79_esp32_ble.ino @@ -3580,11 +3580,10 @@ std::string BLETriggerResponse(generic_sensor_t *toSend){ #define WEB_HANDLE_BLE "ble" -const char HTTP_BTN_MENU_BLE[] PROGMEM = - "

"; +//const char HTTP_BTN_MENU_BLE[] PROGMEM = +// "

"; const char HTTP_FORM_BLE[] PROGMEM = - "
" "

" "

" "

" D_BLE_REMARK "

"; @@ -3644,6 +3643,7 @@ void HandleBleConfiguration(void) WSContentSendStyle_P(HTTP_BLE_DEV_STYLE); //WSContentSendStyle(); WSContentSend_P(HTTP_FIELDSET_LEGEND, PSTR(D_BLE_PARAMETERS)); + WSContentSend_P(HTTP_FORM_GET_ACTION, PSTR(WEB_HANDLE_BLE)); WSContentSend_P(HTTP_FORM_BLE, (Settings->flag5.mi32_enable) ? " checked" : "", (BLEScanActiveMode) ? " checked" : "" @@ -3751,7 +3751,8 @@ bool Xdrv79(uint32_t function) */ #ifdef USE_WEBSERVER case FUNC_WEB_ADD_BUTTON: - WSContentSend_P(BLE_ESP32::HTTP_BTN_MENU_BLE); +// WSContentSend_P(BLE_ESP32::HTTP_BTN_MENU_BLE); + WSContentSend_P(HTTP_FORM_BUTTON, PSTR(WEB_HANDLE_BLE), PSTR(D_CONFIGURE_BLE)); break; case FUNC_WEB_ADD_HANDLER: WebServer_on(PSTR("/" WEB_HANDLE_BLE), BLE_ESP32::HandleBleConfiguration); diff --git a/tasmota/tasmota_xsns_sensor/xsns_34_hx711.ino b/tasmota/tasmota_xsns_sensor/xsns_34_hx711.ino index eeeda0948..85d7ec8a9 100644 --- a/tasmota/tasmota_xsns_sensor/xsns_34_hx711.ino +++ b/tasmota/tasmota_xsns_sensor/xsns_34_hx711.ino @@ -618,9 +618,6 @@ void HxShow(bool json) { const char HTTP_BTN_MENU_MAIN_HX711[] PROGMEM = "

"; -const char HTTP_BTN_MENU_HX711[] PROGMEM = - "

"; - const char HTTP_FORM_HX711a[] PROGMEM = "
" "

" D_REFERENCE_WEIGHT " (" D_UNIT_KILOGRAM ")

" @@ -720,7 +717,7 @@ bool Xsns34(uint32_t function) { } break; case FUNC_WEB_ADD_BUTTON: - WSContentSend_P(HTTP_BTN_MENU_HX711); + WSContentSend_P(HTTP_FORM_BUTTON, PSTR(WEB_HANDLE_HX711), PSTR(D_CONFIGURE_HX711)); break; case FUNC_WEB_ADD_HANDLER: WebServer_on(PSTR("/" WEB_HANDLE_HX711), HandleHxAction);