diff --git a/README.md b/README.md index 56d82f0..d1620e5 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,4 @@ How to use: - Step 4: set Wifi information, save & reboot. Fall back to AP mode if WiFi connection fails (AP password sets to default SSID name from step 2). - Step 5: find the device IP with last 4 character MAC address in your router - Step 6: (optional): Set MQTT information for use with Home Assistant + - Step 7: (optional): Set Login password to prevent unwanted access in SETUP->ADVANCE->Login Password diff --git a/src/mitsubishi2mqtt/config.h b/src/mitsubishi2mqtt/config.h index 2000338..c8c6466 100644 --- a/src/mitsubishi2mqtt/config.h +++ b/src/mitsubishi2mqtt/config.h @@ -3,12 +3,12 @@ * */ -String m2mqtt_version = "0.4.8.1"; +String m2mqtt_version = "0.4.9"; //Define global variables for files String wifi_conf = "wifi.json"; String mqtt_conf = "mqtt.json"; -String advance_conf = "unit.json"; //we can use advance.json but keep old name for backward comparity with version 0.4.8 +String advance_conf = "advance.json"; String console_file = "console.log"; String others_conf = "others.json"; diff --git a/src/mitsubishi2mqtt/html_common.h b/src/mitsubishi2mqtt/html_common.h index 89c1811..6f83421 100644 --- a/src/mitsubishi2mqtt/html_common.h +++ b/src/mitsubishi2mqtt/html_common.h @@ -1,4 +1,4 @@ -String html_common_header = R"====( +const char html_common_header[] PROGMEM = R"====( @@ -27,7 +27,7 @@ String html_common_header = R"====( )===="; -String html_common_footer = R"====( +const char html_common_footer[] PROGMEM = R"====(

Mitsubishi2MQTT _VERSION_
diff --git a/src/mitsubishi2mqtt/html_init.h b/src/mitsubishi2mqtt/html_init.h index 583c4b5..912a1e8 100644 --- a/src/mitsubishi2mqtt/html_init.h +++ b/src/mitsubishi2mqtt/html_init.h @@ -1,4 +1,4 @@ -String html_init_setup = R"====( +const char html_init_setup[] PROGMEM = R"====(
@@ -23,7 +23,7 @@ String html_init_setup = R"====( )===="; -String html_init_save = R"====( +const char html_init_save[] PROGMEM = R"====(
@@ -35,7 +35,7 @@ String html_init_save = R"====( )===="; -String html_init_reboot = R"====( +const char html_init_reboot[] PROGMEM = R"====(
diff --git a/src/mitsubishi2mqtt/html_menu.h b/src/mitsubishi2mqtt/html_menu.h index 2c67dbe..9cab7a4 100644 --- a/src/mitsubishi2mqtt/html_menu.h +++ b/src/mitsubishi2mqtt/html_menu.h @@ -1,19 +1,30 @@ -String html_menu_root = R"====( +const char html_menu_root[] PROGMEM = R"====( +

_UNIT_NAME_

-

-

-

-

-

+
+
+
+
+
)===="; -String html_menu_setup = R"====( +const char html_menu_setup[] PROGMEM = R"====(
diff --git a/src/mitsubishi2mqtt/html_pages.h b/src/mitsubishi2mqtt/html_pages.h index 48c49cb..0dae3a6 100644 --- a/src/mitsubishi2mqtt/html_pages.h +++ b/src/mitsubishi2mqtt/html_pages.h @@ -1,4 +1,4 @@ -String html_page_reboot = R"====( +const char html_page_reboot[] PROGMEM = R"====(
@@ -14,7 +14,7 @@ String html_page_reboot = R"====( )===="; -String html_page_reset = R"====( +const char html_page_reset[] PROGMEM = R"====(
@@ -26,7 +26,7 @@ String html_page_reset = R"====( )===="; -String html_page_save_reboot = R"====( +const char html_page_save_reboot[] PROGMEM = R"====(
@@ -43,7 +43,7 @@ String html_page_save_reboot = R"====( )===="; -String html_page_mqtt = R"====( +const char html_page_mqtt[] PROGMEM = R"====(
@@ -69,7 +69,7 @@ String html_page_mqtt = R"====(

)===="; -String html_page_others = R"====( +const char html_page_others[] PROGMEM = R"====(
@@ -100,7 +100,7 @@ String html_page_others = R"====(

)===="; -String html_page_status = R"====( +const char html_page_status[] PROGMEM = R"====(
@@ -117,7 +117,7 @@ String html_page_status = R"====(

)===="; -String html_page_wifi = R"====( +const char html_page_wifi[] PROGMEM = R"====(
@@ -139,7 +139,7 @@ String html_page_wifi = R"====( )===="; -String html_page_control = R"====( +const char html_page_control[] PROGMEM = R"====(