From 9e1ae940d3bf765e28cff9895f219cd182a4ec6d Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Tue, 7 Nov 2023 18:09:12 +0700 Subject: [PATCH] fixed authentication checkmark bug --- src/espmega_iot_core.cpp | 2 +- src/ota_html/config-auth-part1.html | 2 +- src/ota_html/config-auth-part2.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/espmega_iot_core.cpp b/src/espmega_iot_core.cpp index ea82440..4df48d4 100644 --- a/src/espmega_iot_core.cpp +++ b/src/espmega_iot_core.cpp @@ -271,7 +271,7 @@ void ota_begin() configbuffer+=config_txt_part1+"Hostname"+config_txt_part2+"text"+config_txt_part3+"hostname"+config_txt_part4+"hostname"+config_txt_part5+String(HOSTNAME)+config_txt_part6; configbuffer+=config_txt_part1+"BMS Server - IP Address"+config_txt_part2+"text"+config_txt_part3+"bms_ip"+config_txt_part4+"bms_ip"+config_txt_part5+MQTT_SERVER.toString()+config_txt_part6; configbuffer+=config_txt_part1+"BMS Server - Port"+config_txt_part2+"text"+config_txt_part3+"bms_port"+config_txt_part4+"bms_port"+config_txt_part5+String(MQTT_PORT)+config_txt_part6; - configbuffer+=config_auth_part1+(MQTT_USE_AUTH?"yes":"no")+config_auth_part2; + configbuffer+=config_auth_part1+(MQTT_USE_AUTH?"checked=\"checked\"":"")+config_auth_part2; configbuffer+=config_txt_part1+"BMS Server - Username"+config_txt_part2+"text"+config_txt_part3+"bms_username"+config_txt_part4+"bms_username"+config_txt_part5+String(MQTT_USERNAME)+config_txt_part6; configbuffer+=config_txt_part1+"BMS Server - Password"+config_txt_part2+"password"+config_txt_part3+"bms_password"+config_txt_part4+"bms_password"+config_txt_part5+String(MQTT_PASSWORD)+config_txt_part6; configbuffer+=config_txt_part1+"BMS Server - Endpoint"+config_txt_part2+"text"+config_txt_part3+"bms_endpoint"+config_txt_part4+"bms_endpoint"+config_txt_part5+String(MQTT_BASE_TOPIC)+config_txt_part6; diff --git a/src/ota_html/config-auth-part1.html b/src/ota_html/config-auth-part1.html index 4e76dca..ab970c0 100644 --- a/src/ota_html/config-auth-part1.html +++ b/src/ota_html/config-auth-part1.html @@ -1,2 +1,2 @@ R"=====()=====" \ No newline at end of file