Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 874ec02

Browse files
authored
v1.10.4 using PROGMEM for HTML strings
### Release v1.10.4 1. Using PROGMEM for HTML strings. Check [move HTML char* into PROGMEM #35](#35)
1 parent 1a5b5df commit 874ec02

File tree

6 files changed

+58
-50
lines changed

6 files changed

+58
-50
lines changed

README.md

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -849,9 +849,9 @@ This is the terminal output when running [**ESP_WiFi**](examples/ESP_WiFi) examp
849849

850850
#### 1.1. MRD/DRD => Open Config Portal
851851

852-
```
852+
```cpp
853853
Starting ESP_WiFi using LittleFS on ESP32_DEV
854-
ESP_WiFiManager_Lite v1.10.3
854+
ESP_WiFiManager_Lite v1.10.4
855855
ESP_MultiResetDetector v1.3.2
856856
LittleFS Flag read = 0xFFFC0003
857857
multiResetDetectorFlag = 0xFFFC0003
@@ -920,9 +920,9 @@ CCCCCCCCC
920920

921921
#### 1.2. Got valid Credentials from Config Portal then connected to WiFi
922922

923-
```
923+
```cpp
924924
Starting ESP_WiFi using LittleFS on ESP32_DEV
925-
ESP_WiFiManager_Lite v1.10.3
925+
ESP_WiFiManager_Lite v1.10.4
926926
ESP_MultiResetDetector v1.3.2
927927
LittleFS Flag read = 0xFFFE0001
928928
multiResetDetectorFlag = 0xFFFE0001
@@ -973,7 +973,7 @@ HHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHH
973973

974974
#### 1.3. Lost a WiFi and autoconnect to another WiFi AP
975975

976-
```
976+
```cpp
977977
[WML] run: WiFi lost. Reconnect WiFi
978978
[WML] Connecting MultiWifi...
979979
[WML] WiFi connected after time: 2
@@ -992,9 +992,9 @@ This is the terminal output when running [**ESP_WiFi_MQTT**](examples/ESP_WiFi_M
992992

993993
#### 2.1. No Config Data => Open Config Portal
994994

995-
```
995+
```cpp
996996
Starting ESP_WiFi_MQTT using LittleFS on ESP8266_NODEMCU
997-
ESP_WiFiManager_Lite v1.10.3
997+
ESP_WiFiManager_Lite v1.10.4
998998
ESP_MultiResetDetector v1.3.2
999999
LittleFS Flag read = 0xFFFE0001
10001000
multiResetDetectorFlag = 0xFFFE0001
@@ -1053,7 +1053,7 @@ CCC
10531053

10541054
#### 2.2. Got valid Credentials from Config Portal then connected to WiFi
10551055

1056-
```
1056+
```cpp
10571057
[WML] h:UpdLittleFS
10581058
[WML] SaveCfgFile
10591059
[WML] WCSum=0x13a5
@@ -1066,10 +1066,10 @@ CCC
10661066
[WML] SaveBkUpCredFile
10671067
[WML] OK
10681068
[WML] h:Rst
1069-
1069+
...
10701070

10711071
Starting ESP_WiFi_MQTT using LittleFS on ESP8266_NODEMCU
1072-
ESP_WiFiManager_Lite v1.10.3
1072+
ESP_WiFiManager_Lite v1.10.4
10731073
ESP_MultiResetDetector v1.3.2
10741074
LittleFS Flag read = 0xFFFE0001
10751075
multiResetDetectorFlag = 0xFFFE0001
@@ -1140,7 +1140,7 @@ TWTWTWTW TW
11401140
11411141
#### 2.3. Lost a WiFi and autoconnect to another WiFi AP
11421142
1143-
```
1143+
```cpp
11441144
[WML] run: WiFi lost. Reconnect WiFi
11451145
[WML] Connecting MultiWifi...
11461146
[WML] WiFi connected after time: 1
@@ -1159,9 +1159,9 @@ This is the terminal output when running [**ESP_WiFi_MQTT**](examples/ESP_WiFi_M
11591159

11601160
#### 3.1. No Config Data => Open Config Portal
11611161

1162-
```
1162+
```cpp
11631163
Starting ESP_WiFi_MQTT using LittleFS on ESP32S2_DEV
1164-
ESP_WiFiManager_Lite v1.10.3
1164+
ESP_WiFiManager_Lite v1.10.4
11651165
ESP_MultiResetDetector v1.3.2
11661166
LittleFS Flag read = 0xFFFE0001
11671167
multiResetDetectorFlag = 0xFFFE0001
@@ -1201,7 +1201,7 @@ CCC C
12011201

12021202
#### 3.2. Got valid Credentials from Config Portal then connected to WiFi
12031203

1204-
```
1204+
```cpp
12051205
[WML] h: Init menuItemUpdated
12061206
[WML] h:repl id
12071207
[WML] h:items updated =1
@@ -1271,10 +1271,10 @@ load:0x3ffe6108,len:0x608
12711271
load:0x4004c000,len:0xa38
12721272
load:0x40050000,len:0x2848
12731273
entry 0x4004c190
1274-
1274+
...
12751275

12761276
Starting ESP_WiFi_MQTT using LittleFS on ESP32S2_DEV
1277-
ESP_WiFiManager_Lite v1.10.3
1277+
ESP_WiFiManager_Lite v1.10.4
12781278
ESP_MultiResetDetector v1.3.2
12791279
LittleFS Flag read = 0xFFFE0001
12801280
multiResetDetectorFlag = 0xFFFE0001
@@ -1355,7 +1355,7 @@ TWTWTWTW TW
13551355
13561356
#### 3.3. Lost a WiFi and autoconnect to another WiFi AP
13571357
1358-
```
1358+
```cpp
13591359
[WML] run: WiFi lost. Reconnect WiFi
13601360
[WML] Connecting MultiWifi...
13611361
[WML] WiFi connected after time: 1
@@ -1374,9 +1374,9 @@ This is the terminal output when running [**ESP_WiFi_MQTT**](examples/ESP_WiFi_M
13741374

13751375
#### 4.1. MultiResetDetected => Open Config Portal
13761376

1377-
```
1377+
```cpp
13781378
Starting ESP_WiFi_MQTT using LittleFS on ESP32S2_DEV
1379-
ESP_WiFiManager_Lite v1.10.3
1379+
ESP_WiFiManager_Lite v1.10.4
13801380
ESP_MultiResetDetector v1.3.2
13811381
LittleFS Flag read = 0xFFFC0003
13821382
multiResetDetectorFlag = 0xFFFC0003
@@ -1402,9 +1402,9 @@ NNNN NNNNN NNNNN NNNNN NN[WML] h:UpdLittleFS
14021402
#### 4.2. Got valid Credentials from Config Portal then connected to WiFi
14031403

14041404

1405-
```
1405+
```cpp
14061406
Starting ESP_WiFi_MQTT using LittleFS on ESP32S2_DEV
1407-
ESP_WiFiManager_Lite v1.10.3
1407+
ESP_WiFiManager_Lite v1.10.4
14081408
ESP_MultiResetDetector v1.3.2
14091409
LittleFS Flag read = 0xFFFE0001
14101410
multiResetDetectorFlag = 0xFFFE0001
@@ -1458,9 +1458,9 @@ This is the terminal output when running [**ESP_WiFi**](examples/ESP_WiFi) examp
14581458
14591459
#### 5.1 MRD/DRD => Open Config Portal
14601460
1461-
```
1461+
```cpp
14621462
Starting ESP_WiFi_MQTT using LittleFS on ESP32_DEV
1463-
ESP_WiFiManager_Lite v1.10.3
1463+
ESP_WiFiManager_Lite v1.10.4
14641464
ESP_MultiResetDetector v1.3.2
14651465
LittleFS Flag read = 0xFFFC0003
14661466
multiResetDetectorFlag = 0xFFFC0003
@@ -1502,9 +1502,9 @@ CCC
15021502

15031503
### 5.2 Config Data Saved => Connection to Adafruit MQTT
15041504

1505-
```
1505+
```cpp
15061506
Starting ESP_WiFi_MQTT using LittleFS on ESP32_DEV
1507-
ESP_WiFiManager_Lite v1.10.3
1507+
ESP_WiFiManager_Lite v1.10.4
15081508
ESP_MultiResetDetector v1.3.2
15091509
LittleFS Flag read = 0xFFFE0001
15101510
multiResetDetectorFlag = 0xFFFE0001
@@ -1550,9 +1550,9 @@ TWTWTWTW TWTW
15501550
This is the terminal output when running [**ESP_WiFi**](examples/ESP_WiFi) example on **ESP32S3_DEV**
15511551
15521552
1553-
```
1553+
```cpp
15541554
Starting ESP_WiFi using LittleFS on ESP32S3_DEV
1555-
ESP_WiFiManager_Lite v1.10.3
1555+
ESP_WiFiManager_Lite v1.10.4
15561556
ESP_MultiResetDetector v1.3.2
15571557
LittleFS Flag read = 0xFFFE0001
15581558
multiResetDetectorFlag = 0xFFFE0001
@@ -1592,9 +1592,9 @@ HHH
15921592
This is the terminal output when running [**ESP_WiFi**](examples/ESP_WiFi) example on **ESP32C3_DEV** using LittleFS
15931593

15941594

1595-
```
1595+
```cpp
15961596
Starting ESP_WiFi using LittleFS on ESP32C3_DEV
1597-
ESP_WiFiManager_Lite v1.10.3
1597+
ESP_WiFiManager_Lite v1.10.4
15981598
ESP_MultiResetDetector v1.3.2
15991599
LittleFS Flag read = 0xFFFE0001
16001600
multiResetDetectorFlag = 0xFFFE0001
@@ -1713,7 +1713,7 @@ Submit issues to: [ESP_WiFiManager_Lite issues](https://github.com/khoih-prog/ES
17131713
37. Add option to not `USE_LED_BUILTIN` for Config-Portal. Check [added switch to turn use of builtin LED off #20](https://github.com/khoih-prog/ESP_WiFiManager_Lite/pull/20)
17141714
38. Add public methods to load and save dynamic data
17151715
39. Add Config Portal `scaling` support to mobile devices
1716-
1716+
40. Using PROGMEM for HTML strings. Check [move HTML char* into PROGMEM #35](https://github.com/khoih-prog/ESP_WiFiManager_Lite/pull/35)
17171717

17181718
---
17191719
---
@@ -1731,11 +1731,12 @@ Please help contribute to this project and add your name here.
17311731
- [added public methods to load and save dynamic data #28](https://github.com/khoih-prog/ESP_WiFiManager_Lite/pull/28)
17321732
- [Mobile scale #30](https://github.com/khoih-prog/ESP_WiFiManager_Lite/pull/30)
17331733
- [fix compiler error if EEPROM is used #33](https://github.com/khoih-prog/ESP_WiFiManager_Lite/pull/33)
1734+
- [move HTML char* into PROGMEM #35](https://github.com/khoih-prog/ESP_WiFiManager_Lite/pull/35)
17341735

17351736
<table>
17361737
<tr>
17371738
<td align="center"><a href="https://github.com/bizprof"><img src="https://github.com/bizprof.png" width="100px;" alt="bizprof"/><br /><sub><b>⭐️⭐️ Michael H. "bizprof"</b></sub></a><br /></td>
1738-
<td align="center"><a href="https://github.com/hmueller01"><img src="https://github.com/hmueller01.png" width="100px;" alt="hmueller01"/><br /><sub><b>⭐️ Holger Müller</b></sub></a><br /></td>
1739+
<td align="center"><a href="https://github.com/hmueller01"><img src="https://github.com/hmueller01.png" width="100px;" alt="hmueller01"/><br /><sub><b>⭐️⭐️ Holger Müller</b></sub></a><br /></td>
17391740
</tr>
17401741
</table>
17411742

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
## Table of Contents
1616

1717
* [Changelog](#changelog)
18+
* [Release v1.10.4](#release-v1104)
1819
* [Release v1.10.3](#release-v1103)
1920
* [Release v1.10.2](#release-v1102)
2021
* [Release v1.10.1](#release-v1101)
@@ -38,6 +39,10 @@
3839

3940
## Changelog
4041

42+
### Release v1.10.4
43+
44+
1. Using PROGMEM for HTML strings. Check [move HTML char* into PROGMEM #35](https://github.com/khoih-prog/ESP_WiFiManager_Lite/pull/35)
45+
4146
### Release v1.10.3
4247

4348
1. Fix compiler error if EEPROM is used. Check [fix compiler error if EEPROM is used #33](https://github.com/khoih-prog/ESP_WiFiManager_Lite/pull/33)

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ESP_WiFiManager_Lite",
3-
"version": "1.10.3",
3+
"version": "1.10.4",
44
"keywords": "wifi, wi-fi, MultiWiFi, multi-wifi, WiFiManager, esp8266, esp32, esp32-s2, esp32-s3, esp32-c3, Communication, iot, credentials, persistent, config-portal, DoubleReset, MultiReset, DoubleResetDetector, littlefs, spiffs, eeprom, light-weight",
55
"description": "Library to configure MultiWiFi/Credentials at runtime for ESP32 (including ESP32-S2, ESP32-S3 and ESP32-C3) and ESP8266 boards. You can also specify DHCP HostName, static AP and STA IP. Use much less memory compared to full-fledge WiFiManager. Config Portal will be auto-adjusted to match the number of dynamic custom parameters. Optional default Credentials to be autoloaded into Config Portal to use or change instead of manually input. Credentials are saved in LittleFS, SPIFFS or EEPROM. New powerful-yet-simple-to-use feature to enable adding dynamic custom parameters from sketch and input using the same Config Portal. Double or MultiDetectDetector as well as Virtual Switches feature permits entering Config Portal as requested. Configurable Customs HTML Headers, including Customs Style, Customs Head Elements, CORS Header. Now using correct ESP32 chipIP",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP_WiFiManager_Lite
2-
version=1.10.3
2+
version=1.10.4
33
author=Khoi Hoang
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
license=MIT

src/ESP_WiFiManager_Lite.h

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/ESP_WiFiManager_Lite
1010
Licensed under MIT license
1111
12-
Version: 1.10.3
12+
Version: 1.10.4
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -22,6 +22,7 @@
2222
1.10.1 K Hoang 12/01/2023 Added public methods to load and save dynamic data
2323
1.10.2 K Hoang 15/01/2023 Add Config Portal scaling support to mobile devices
2424
1.10.3 K Hoang 19/01/2023 Fix compiler error if EEPROM is used
25+
1.10.4 K Hoang 27/01/2023 Using PROGMEM for HTML strings
2526
*****************************************************************************************************************************/
2627

2728
#pragma once
@@ -30,35 +31,35 @@
3031
#define ESP_WiFiManager_Lite_h
3132

3233
#if !( defined(ESP8266) || defined(ESP32) )
33-
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
34+
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
3435
#elif ( ARDUINO_ESP32S2_DEV || ARDUINO_FEATHERS2 || ARDUINO_ESP32S2_THING_PLUS || ARDUINO_MICROS2 || \
3536
ARDUINO_METRO_ESP32S2 || ARDUINO_MAGTAG29_ESP32S2 || ARDUINO_FUNHOUSE_ESP32S2 || \
3637
ARDUINO_ADAFRUIT_FEATHER_ESP32S2_NOPSRAM )
37-
#warning Using ESP32_S2. To follow library instructions to install esp32-s2 core and WebServer Patch
38-
#define USING_ESP32_S2 true
38+
#warning Using ESP32_S2. To follow library instructions to install esp32-s2 core and WebServer Patch
39+
#define USING_ESP32_S2 true
3940
#elif ( ARDUINO_ESP32C3_DEV )
40-
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
41-
#warning Using ESP32_C3 using core v2.0.0+. Either LittleFS, SPIFFS or EEPROM OK.
42-
#else
43-
#warning Using ESP32_C3 using core v1.0.6-. To follow library instructions to install esp32-c3 core. Only SPIFFS and EEPROM OK.
44-
#endif
41+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
42+
#warning Using ESP32_C3 using core v2.0.0+. Either LittleFS, SPIFFS or EEPROM OK.
43+
#else
44+
#warning Using ESP32_C3 using core v1.0.6-. To follow library instructions to install esp32-c3 core. Only SPIFFS and EEPROM OK.
45+
#endif
4546

46-
#warning You have to select Flash size 2MB and Minimal APP (1.3MB + 700KB) for some boards
47-
#define USING_ESP32_C3 true
47+
#warning You have to select Flash size 2MB and Minimal APP (1.3MB + 700KB) for some boards
48+
#define USING_ESP32_C3 true
4849
#elif ( defined(ARDUINO_ESP32S3_DEV) || defined(ARDUINO_ESP32_S3_BOX) || defined(ARDUINO_TINYS3) || \
4950
defined(ARDUINO_PROS3) || defined(ARDUINO_FEATHERS3) )
50-
#warning Using ESP32_S3. To install esp32-s3-support branch if using core v2.0.2-.
51-
#define USING_ESP32_S3 true
51+
#warning Using ESP32_S3. To install esp32-s3-support branch if using core v2.0.2-.
52+
#define USING_ESP32_S3 true
5253
#endif
5354

5455
#ifndef ESP_WIFI_MANAGER_LITE_VERSION
55-
#define ESP_WIFI_MANAGER_LITE_VERSION "ESP_WiFiManager_Lite v1.10.3"
56+
#define ESP_WIFI_MANAGER_LITE_VERSION "ESP_WiFiManager_Lite v1.10.4"
5657

5758
#define ESP_WIFI_MANAGER_LITE_VERSION_MAJOR 1
5859
#define ESP_WIFI_MANAGER_LITE_VERSION_MINOR 10
59-
#define ESP_WIFI_MANAGER_LITE_VERSION_PATCH 3
60+
#define ESP_WIFI_MANAGER_LITE_VERSION_PATCH 4
6061

61-
#define ESP_WIFI_MANAGER_LITE_VERSION_INT 1010003
62+
#define ESP_WIFI_MANAGER_LITE_VERSION_INT 1010004
6263
#endif
6364

6465
#ifdef ESP8266

src/ESP_WiFiManager_Lite_Debug.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/ESP_WiFiManager_Lite
1010
Licensed under MIT license
1111
12-
Version: 1.10.3
12+
Version: 1.10.4
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -22,6 +22,7 @@
2222
1.10.1 K Hoang 12/01/2023 Added public methods to load and save dynamic data
2323
1.10.2 K Hoang 15/01/2023 Add Config Portal scaling support to mobile devices
2424
1.10.3 K Hoang 19/01/2023 Fix compiler error if EEPROM is used
25+
1.10.4 K Hoang 27/01/2023 Using PROGMEM for HTML strings
2526
*****************************************************************************************************************************/
2627

2728
#ifndef ESP_WiFiManager_Lite_Debug_h

0 commit comments

Comments
 (0)