@@ -1470,11 +1470,16 @@ class ESP_WiFiManager_Lite
1470
1470
1471
1471
void displayConfigData (const ESP_WM_LITE_Configuration& configData)
1472
1472
{
1473
- ESP_WML_LOGERROR5 (F (" Hdr=" ), configData.header , F (" ,SSID=" ), configData.WiFi_Creds [0 ].wifi_ssid ,
1474
- F (" ,PW=" ), configData.WiFi_Creds [0 ].wifi_pw );
1475
- ESP_WML_LOGERROR3 (F (" SSID1=" ), configData.WiFi_Creds [1 ].wifi_ssid , F (" ,PW1=" ), configData.WiFi_Creds [1 ].wifi_pw );
1473
+ ESP_WML_LOGERROR1 (F (" Hdr=" ), configData.header );
1474
+ ESP_WML_LOGERROR3 (F (" SSID0=" ), configData.WiFi_Creds [0 ].wifi_ssid , F (" ,PW0=" ), configData.WiFi_Creds [0 ].wifi_pw );
1475
+ ESP_WML_LOGERROR3 (F (" SSID1=" ), configData.WiFi_Creds [1 ].wifi_ssid , F (" ,PW1=" ), configData.WiFi_Creds [1 ].wifi_pw );
1476
+
1477
+ #if USING_BOARD_NAME
1478
+
1476
1479
ESP_WML_LOGERROR1 (F (" BName=" ), configData.board_name );
1477
1480
1481
+ #endif
1482
+
1478
1483
#if USE_DYNAMIC_PARAMETERS
1479
1484
1480
1485
for (uint16_t i = 0 ; i < NUM_MENU_ITEMS; i++)
@@ -2174,10 +2179,6 @@ class ESP_WiFiManager_Lite
2174
2179
// If SSID, PW ="blank" or NULL, stay in config mode forever until having config Data.
2175
2180
return false ;
2176
2181
}
2177
- else
2178
- {
2179
- displayConfigData (ESP_WM_LITE_config);
2180
- }
2181
2182
2182
2183
return true ;
2183
2184
}
@@ -2663,6 +2664,7 @@ class ESP_WiFiManager_Lite
2663
2664
void createHTML (String& root_html_template)
2664
2665
{
2665
2666
String pitem;
2667
+ pitem.reserve (600 );
2666
2668
2667
2669
root_html_template = FPSTR (ESP_WM_LITE_HTML_HEAD_START);
2668
2670
@@ -2706,7 +2708,7 @@ class ESP_WiFiManager_Lite
2706
2708
if (ListOfSSIDs == " " ) // No SSID found or none was good enough
2707
2709
ListOfSSIDs = String (FPSTR (ESP_WM_LITE_OPTION_START)) + String (FPSTR (ESP_WM_LITE_NO_NETWORKS_FOUND)) + String (FPSTR (ESP_WM_LITE_OPTION_END));
2708
2710
2709
- pitem = String ( FPSTR (ESP_WM_LITE_HTML_HEAD_END) );
2711
+ pitem = FPSTR (ESP_WM_LITE_HTML_HEAD_END);
2710
2712
2711
2713
#if MANUAL_SSID_INPUT_ALLOWED
2712
2714
pitem.replace (" [[input_id]]" , " <input id='id' list='SSIDs'>" + String (FPSTR (ESP_WM_LITE_DATALIST_START)) + " 'SSIDs'>" +
@@ -2724,7 +2726,7 @@ class ESP_WiFiManager_Lite
2724
2726
2725
2727
#else
2726
2728
2727
- pitem = String ( FPSTR (ESP_WM_LITE_HTML_HEAD_END) );
2729
+ pitem = FPSTR (ESP_WM_LITE_HTML_HEAD_END);
2728
2730
pitem.replace (" [[input_id]]" , FPSTR (ESP_WM_LITE_HTML_INPUT_ID));
2729
2731
pitem.replace (" [[input_id1]]" , FPSTR (ESP_WM_LITE_HTML_INPUT_ID1));
2730
2732
root_html_template += pitem + FPSTR (ESP_WM_LITE_FLDSET_START);
@@ -2735,7 +2737,7 @@ class ESP_WiFiManager_Lite
2735
2737
2736
2738
for (uint16_t i = 0 ; i < NUM_MENU_ITEMS; i++)
2737
2739
{
2738
- pitem = String ( FPSTR (ESP_WM_LITE_HTML_PARAM) );
2740
+ pitem = FPSTR (ESP_WM_LITE_HTML_PARAM);
2739
2741
2740
2742
pitem.replace (" {b}" , myMenuItems[i].displayName );
2741
2743
pitem.replace (" {v}" , myMenuItems[i].id );
@@ -2752,7 +2754,7 @@ class ESP_WiFiManager_Lite
2752
2754
2753
2755
for (uint16_t i = 0 ; i < NUM_MENU_ITEMS; i++)
2754
2756
{
2755
- pitem = String ( FPSTR (ESP_WM_LITE_HTML_SCRIPT_ITEM) );
2757
+ pitem = FPSTR (ESP_WM_LITE_HTML_SCRIPT_ITEM);
2756
2758
2757
2759
pitem.replace (" {d}" , myMenuItems[i].id );
2758
2760
@@ -2804,6 +2806,7 @@ class ESP_WiFiManager_Lite
2804
2806
// ////
2805
2807
2806
2808
String result;
2809
+ result.reserve (3072 );
2807
2810
createHTML (result);
2808
2811
2809
2812
// ESP_WML_LOGDEBUG1(F("h:Repl:"), result);
0 commit comments