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

Commit 9081614

Browse files
authored
v1.10.1 adds dynamic data public methods
### Release v1.10.1 1. Add public methods to load and save dynamic data. Check [added public methods to load and save dynamic data #24](#24) 2. Bump up to `v1.10.1` to sync with [ESP_WiFiManager_Lite](https://github.com/khoih-prog/ESP_WiFiManager_Lite)
1 parent c3cf18d commit 9081614

File tree

9 files changed

+128
-28
lines changed

9 files changed

+128
-28
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,31 @@ However, before reporting a bug please check through the following:
1010

1111
If you don't find anything, please [open a new issue](https://github.com/khoih-prog/ESPAsync_WiFiManager_Lite/issues/new).
1212

13+
---
14+
1315
### How to submit a bug report
1416

1517
Please ensure to specify the following:
1618

1719
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18-
* `ESP8266` or `ESP32` Core Version (e.g. ESP8266 core v3.0.2 or ESP32 v2.0.6)
20+
* `ESP8266` or `ESP32` Core Version (e.g. ESP8266 core v3.1.0 or ESP32 v2.0.6)
1921
* Contextual information (e.g. what you were trying to achieve)
2022
* Simplest possible steps to reproduce
2123
* Anything that might be relevant in your opinion, such as:
2224
* Operating system (Windows, Ubuntu, etc.) and the output of `uname -a`
2325
* Network configuration
2426

25-
Please be educated, civilized and constructive. Disrespective posts against [GitHub Code of Conduct](https://docs.github.com/en/site-policy/github-terms/github-event-code-of-conduct) will be ignored and deleted.
27+
Please be educated, civilized and constructive as you've always been. Disrespective posts against [GitHub Code of Conduct](https://docs.github.com/en/site-policy/github-terms/github-event-code-of-conduct) will be ignored and deleted.
28+
29+
---
2630

2731
### Example
2832

2933
```
3034
Arduino IDE version: 1.8.19
31-
ESP8266 Core Version 3.0.2
35+
ESP8266 Core Version 3.1.0
3236
OS: Ubuntu 20.04 LTS
33-
Linux xy-Inspiron-3593 5.15.0-56-generic #62~20.04.1-Ubuntu SMP Tue Nov 22 21:24:20 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
37+
Linux xy-Inspiron-3593 5.15.0-58-generic #64~20.04.1-Ubuntu SMP Fri Jan 6 16:42:31 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
3438
3539
Context:
3640
I encountered a crash while using this library

README.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ This [**ESPAsync_WiFiManager_Lite** library](https://github.com/khoih-prog/ESPAs
205205
## Prerequisites
206206

207207
1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [![GitHub release](https://img.shields.io/github/release/arduino/Arduino.svg)](https://github.com/arduino/Arduino/releases/latest)
208-
2. [`ESP8266 Core 3.0.2+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [![Latest release](https://img.shields.io/github/release/esp8266/Arduino.svg)](https://github.com/esp8266/Arduino/releases/latest/). To use ESP8266 core 2.7.1+ for LittleFS.
208+
2. [`ESP8266 Core 3.1.0+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [![Latest release](https://img.shields.io/github/release/esp8266/Arduino.svg)](https://github.com/esp8266/Arduino/releases/latest/). To use ESP8266 core 2.7.1+ for LittleFS.
209209
3. [`ESP32 Core 2.0.6+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/)
210210
4. [`ESPAsyncWebServer v1.2.3+`](https://github.com/me-no-dev/ESPAsyncWebServer) for all ESP32/ESP8266-based boards. You have to use the latest [forked ESPAsyncWebServer](https://github.com/khoih-prog/ESPAsyncWebServer) if the PR [Fix compiler error for ESP32-C3 and mbed TLS v2.7.0+ #970](https://github.com/me-no-dev/ESPAsyncWebServer/pull/970) hasn't been merged. **To install manually for Arduino IDE**
211211
5. [`ESPAsyncDNSServer v1.0.0+`](https://github.com/devyte/ESPAsyncDNSServer) or [`ESPAsyncDNSServer v1.0.0+`](https://github.com/khoih-prog/ESPAsyncDNSServer/releases/tag/v1.0.0) for all ESP32/ESP8266-based boards.
@@ -837,7 +837,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
837837

838838
```cpp
839839
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32_DEV
840-
ESPAsync_WiFiManager_Lite v1.9.1
840+
ESPAsync_WiFiManager_Lite v1.10.1
841841
ESP_MultiResetDetector v1.3.2
842842
LittleFS Flag read = 0xFFFE0001
843843
multiResetDetectorFlag = 0xFFFE0001
@@ -912,7 +912,7 @@ CCC
912912

913913

914914
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32_DEV
915-
ESPAsync_WiFiManager_Lite v1.9.1
915+
ESPAsync_WiFiManager_Lite v1.10.1
916916
ESP_MultiResetDetector v1.3.2
917917
LittleFS Flag read = 0xFFFE0001
918918
multiResetDetectorFlag = 0xFFFE0001
@@ -1004,7 +1004,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
10041004

10051005
```cpp
10061006
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP8266_NODEMCU
1007-
ESPAsync_WiFiManager_Lite v1.9.1
1007+
ESPAsync_WiFiManager_Lite v1.10.1
10081008
ESP_MultiResetDetector v1.3.2
10091009
LittleFS Flag read = 0xFFFE0001
10101010
multiResetDetectorFlag = 0xFFFE0001
@@ -1079,7 +1079,7 @@ CCC
10791079

10801080

10811081
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP8266_NODEMCU
1082-
ESPAsync_WiFiManager_Lite v1.9.1
1082+
ESPAsync_WiFiManager_Lite v1.10.1
10831083
ESP_MultiResetDetector v1.3.2
10841084
LittleFS Flag read = 0xFFFE0001
10851085
multiResetDetectorFlag = 0xFFFE0001
@@ -1170,7 +1170,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
11701170

11711171
```cpp
11721172
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32S2_DEV
1173-
ESPAsync_WiFiManager_Lite v1.9.1
1173+
ESPAsync_WiFiManager_Lite v1.10.1
11741174
ESP_MultiResetDetector v1.3.2
11751175
LittleFS Flag read = 0xFFFE0001
11761176
multiResetDetectorFlag = 0xFFFE0001
@@ -1283,7 +1283,7 @@ entry 0x4004c190
12831283

12841284

12851285
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32S2_DEV
1286-
ESPAsync_WiFiManager_Lite v1.9.1
1286+
ESPAsync_WiFiManager_Lite v1.10.1
12871287
ESP_MultiResetDetector v1.3.2
12881288
LittleFS Flag read = 0xFFFE0001
12891289
multiResetDetectorFlag = 0xFFFE0001
@@ -1386,7 +1386,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
13861386

13871387
```cpp
13881388
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32S2_DEV
1389-
ESPAsync_WiFiManager_Lite v1.9.1
1389+
ESPAsync_WiFiManager_Lite v1.10.1
13901390
ESP_MultiResetDetector v1.3.2
13911391
LittleFS Flag read = 0xFFFC0003
13921392
multiResetDetectorFlag = 0xFFFC0003
@@ -1429,7 +1429,7 @@ entry 0x4004c190
14291429

14301430
```cpp
14311431
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32S2_DEV
1432-
ESPAsync_WiFiManager_Lite v1.9.1
1432+
ESPAsync_WiFiManager_Lite v1.10.1
14331433
ESP_MultiResetDetector v1.3.2
14341434
LittleFS Flag read = 0xFFFE0001
14351435
multiResetDetectorFlag = 0xFFFE0001
@@ -1485,7 +1485,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
14851485
14861486
```cpp
14871487
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32_DEV
1488-
ESPAsync_WiFiManager_Lite v1.9.1
1488+
ESPAsync_WiFiManager_Lite v1.10.1
14891489
ESP_MultiResetDetector v1.3.2
14901490
LittleFS Flag read = 0xFFFC0003
14911491
multiResetDetectorFlag = 0xFFFC0003
@@ -1530,7 +1530,7 @@ CCCC CCCCC CCCCC C
15301530

15311531
```cpp
15321532
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32_DEV
1533-
ESPAsync_WiFiManager_Lite v1.9.1
1533+
ESPAsync_WiFiManager_Lite v1.10.1
15341534
ESP_MultiResetDetector v1.3.2
15351535
LittleFS Flag read = 0xFFFE0001
15361536
multiResetDetectorFlag = 0xFFFE0001
@@ -1577,7 +1577,7 @@ This is the terminal output when running [**ESPAsync_WiFi**](examples/ESPAsync_W
15771577
15781578
```cpp
15791579
Starting ESPAsync_WiFi using LittleFS on ESP32S3_DEV
1580-
ESPAsync_WiFiManager_Lite v1.9.1
1580+
ESPAsync_WiFiManager_Lite v1.10.1
15811581
ESP_MultiResetDetector v1.3.2
15821582
LittleFS Flag read = 0xFFFE0001
15831583
multiResetDetectorFlag = 0xFFFE0001
@@ -1619,7 +1619,7 @@ This is the terminal output when running [**ESPAsync_WiFi**](examples/ESPAsync_W
16191619

16201620
```cpp
16211621
Starting ESPAsync_WiFi using LittleFS on ESP32C3_DEV
1622-
ESPAsync_WiFiManager_Lite v1.9.1
1622+
ESPAsync_WiFiManager_Lite v1.10.1
16231623
ESP_MultiResetDetector v1.3.2
16241624
LittleFS Flag read = 0xFFFE0001
16251625
multiResetDetectorFlag = 0xFFFE0001
@@ -1739,7 +1739,7 @@ Submit issues to: [ESPAsync_WiFiManager_Lite issues](https://github.com/khoih-pr
17391739
34. Fix ESP32 `chipID`
17401740
35. Add ESP32 `getChipID()` and `getChipOUI()` functions
17411741
36. Add `Captive Portal` using AsyncDNSServer
1742-
1742+
37. Add public methods to load and save dynamic data
17431743

17441744
---
17451745
---
@@ -1750,15 +1750,16 @@ Please help contribute to this project and add your name here.
17501750

17511751
1. Thanks to [Michael H. "bizprof"](https://github.com/bizprof). With the impressive new feature :
17521752
- `Enable scan of WiFi networks for selection in Configuration Portal`. Check [PR for v1.3.0 - Enable scan of WiFi networks #10](https://github.com/khoih-prog/WiFiManager_NINA_Lite/pull/10) leading to v1.5.0
1753-
2. Thanks to [Holger Müller](https://github.com/hmueller01) for creating the following merged PRs leading to v1.9.1
1753+
2. Thanks to [Holger Müller](https://github.com/hmueller01) for creating the following merged PRs leading to `v1.9.1` then `v1.10.1`
17541754
- [Captive portal #22](https://github.com/khoih-prog/ESPAsync_WiFiManager_Lite/pull/22)
17551755
- [cleanup reset code #23](https://github.com/khoih-prog/ESPAsync_WiFiManager_Lite/pull/23)
1756+
- [added public methods to load and save dynamic data #24](https://github.com/khoih-prog/ESPAsync_WiFiManager_Lite/pull/24)
1757+
17561758

17571759
<table>
17581760
<tr>
17591761
<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>
1760-
<td align="center"><a href="https://github.com/hmueller01"><img src="https://github.com/hmueller01.png" width="100px;" alt="hmueller01"/><br /><sub><b>
1761-
Holger Müller</b></sub></a><br /></td>
1762+
<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>
17621763
</tr>
17631764
</table>
17641765

changelog.md

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

1818
* [Changelog](#changelog)
19+
* [Release v1.10.1](#release-v1101)
1920
* [Release v1.9.1](#release-v191)
2021
* [Release v1.9.0](#release-v190)
2122
* [Release v1.8.2](#release-v182)
@@ -37,6 +38,11 @@
3738

3839
## Changelog
3940

41+
### Release v1.10.1
42+
43+
1. Add public methods to load and save dynamic data. Check [added public methods to load and save dynamic data #24](https://github.com/khoih-prog/ESPAsync_WiFiManager_Lite/pull/24)
44+
2. Bump up to `v1.10.1` to sync with [ESP_WiFiManager_Lite](https://github.com/khoih-prog/ESP_WiFiManager_Lite)
45+
4046

4147
### Release v1.9.1
4248

keywords.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ setCustomsHeadElement KEYWORD2
4242
getCustomsHeadElement KEYWORD2
4343
setCORSHeader KEYWORD2
4444
getCORSHeader KEYWORD2
45+
extLoadDynamicData KEYWORD2
46+
extSaveDynamicData KEYWORD2
4547

4648
#######################################
4749

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ESPAsync_WiFiManager_Lite",
3-
"version": "1.9.1",
3+
"version": "1.10.1",
44
"keywords": "wifi, wi-fi, Async, Async-WebServer, Async-WiFiManager, Communication, MultiWiFi, multi-wifi, ESP32, ESP32-S2, ESP32-S3, esp32-c3, ESP8266, Credentials, config-portal, DoubleReset, MultiReset, Detector, dynamic-params, dynamic, customs-header",
55
"description": "Library using AsyncWebServer 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=ESPAsync_WiFiManager_Lite
2-
version=1.9.1
2+
version=1.10.1
33
author=Khoi Hoang
44
maintainer=Khoi Hoang <[email protected]>
55
license=MIT

platformio/platformio.ini

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
; chose environment:
1414
; ESP8266
1515
; ESP32
16+
; esp32s2
17+
; esp32s3
18+
; esp32c3
19+
1620
; ============================================================
1721
default_envs = ESP8266
1822
;default_envs = ESP32
@@ -27,11 +31,13 @@ upload_speed = 921600
2731
;monitor_speed = 9600
2832
;monitor_port = COM11
2933

34+
; ============================================================
3035
; Checks for the compatibility with frameworks and dev/platforms
3136
lib_compat_mode = strict
3237
lib_ldf_mode = chain+
3338
;lib_ldf_mode = deep+
3439

40+
; ============================================================
3541
lib_deps =
3642
; PlatformIO 4.x
3743
; ESP Async WebServer@>=1.2.3
@@ -54,12 +60,15 @@ lib_deps =
5460
devyte/ESPAsyncDNSServer@>=1.0.0
5561
; lorol/LittleFS_esp32@>=1.0.6
5662

63+
; ============================================================
5764
build_flags =
5865
; set your debug output (default=Serial)
5966
-D DEBUG_ESP_PORT=Serial
6067
; comment the following line to enable WiFi debugging
6168
-D NDEBUG
6269

70+
; ============================================================
71+
; ============================================================
6372
[env:ESP8266]
6473
platform = espressif8266
6574
framework = arduino
@@ -105,9 +114,12 @@ board = nodemcuv2
105114
;board = xinabox_cw01
106115
;board = esp32doit-devkit-v1
107116

117+
; ============================================================
118+
; ============================================================
108119
[env:ESP32]
109120
platform = espressif32
110121
framework = arduino
122+
111123
; ============================================================
112124
; Board configuration
113125
; choose your board by uncommenting one of the following lines
@@ -145,3 +157,76 @@ board = esp32doit-devkit-v1
145157
;board = iotbusio
146158
;board = iotbusproteus
147159
;board = nina_w10
160+
161+
; ============================================================
162+
; ============================================================
163+
[env:esp32s2]
164+
platform = espressif32
165+
framework = arduino
166+
167+
; toolchain download links see
168+
; refer "name": "xtensa-esp32s2-elf-gcc","version": "gcc8_4_0-esp-2021r1" section of
169+
; https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
170+
; e.g. Windows: https://github.com/espressif/crosstool-NG/releases/download/esp-2021r1/xtensa-esp32s2-elf-gcc8_4_0-esp-2021r1-win32.zip
171+
platform_packages =
172+
toolchain-xtensa32s2@file://C:\Users\Max\Downloads\xtensa-esp32s2-elf
173+
framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#a4118ea88987c28aac3a49bcb9cc5d6c0acc6f3f
174+
platformio/tool-esptoolpy @ ~1.30100
175+
framework = arduino
176+
board = esp32dev
177+
board_build.mcu = esp32s2
178+
board_build.partitions = huge_app.csv
179+
board_build.variant = esp32s2
180+
board_build.f_cpu = 240000000L
181+
board_build.f_flash = 80000000L
182+
board_build.flash_mode = qio
183+
board_build.arduino.ldscript = esp32s2_out.ld
184+
build_unflags =
185+
-DARDUINO_ESP32_DEV
186+
-DARDUINO_VARIANT="esp32"
187+
build_flags =
188+
-DARDUINO_ESP32S2_DEV
189+
-DARDUINO_VARIANT="esp32s2"
190+
191+
; ============================================================
192+
; ============================================================
193+
[env:esp32s3]
194+
platform = espressif32
195+
framework = arduino
196+
197+
board_build.mcu = esp32s3
198+
board_build.partitions = huge_app.csv
199+
board_build.variant = esp32s3
200+
board_build.f_cpu = 240000000L
201+
board_build.f_flash = 80000000L
202+
board_build.flash_mode = qio
203+
board_build.arduino.ldscript = esp32s3_out.ld
204+
build_unflags =
205+
-DARDUINO_ESP32_DEV
206+
-DARDUINO_VARIANT="esp32"
207+
build_flags =
208+
-DARDUINO_ESP32S3_DEV
209+
-DARDUINO_VARIANT="esp32s3"
210+
211+
; ============================================================
212+
; ============================================================
213+
[env:esp32sc3]
214+
platform = espressif32
215+
framework = arduino
216+
217+
board_build.mcu = esp32c3
218+
board_build.partitions = huge_app.csv
219+
board_build.variant = esp32c3
220+
board_build.f_cpu = 160000000L
221+
board_build.f_flash = 80000000L
222+
board_build.flash_mode = qio
223+
board_build.arduino.ldscript = esp32c3_out.ld
224+
build_unflags =
225+
-DARDUINO_ESP32_DEV
226+
-DARDUINO_VARIANT="esp32"
227+
build_flags =
228+
-DARDUINO_ESP32S3_DEV
229+
-DARDUINO_VARIANT="esp32c3"
230+
231+
; ============================================================
232+
; ============================================================

src/ESPAsync_WiFiManager_Lite.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager_Lite
1010
Licensed under MIT license
1111
12-
Version: 1.9.1
12+
Version: 1.10.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -27,6 +27,7 @@
2727
1.8.2 K Hoang 21/02/2022 Optional Board_Name in Menu. Optimize code by using passing by reference
2828
1.9.0 K Hoang 09/09/2022 Fix ESP32 chipID and add getChipOUI()
2929
1.9.1 K Hoang 28/12/2022 Add Captive Portal using AsyncDNSServer
30+
1.10.1 K Hoang 12/01/2023 Added public methods to load and save dynamic data. Bump up to v1.10.1
3031
*****************************************************************************************************************************/
3132

3233
#pragma once
@@ -61,13 +62,13 @@
6162
///////////////////////////////////////////
6263

6364
#ifndef ESP_ASYNC_WIFI_MANAGER_LITE_VERSION
64-
#define ESP_ASYNC_WIFI_MANAGER_LITE_VERSION "ESPAsync_WiFiManager_Lite v1.9.1"
65+
#define ESP_ASYNC_WIFI_MANAGER_LITE_VERSION "ESPAsync_WiFiManager_Lite v1.10.1"
6566

6667
#define ESP_ASYNC_WIFI_MANAGER_LITE_VERSION_MAJOR 1
67-
#define ESP_ASYNC_WIFI_MANAGER_LITE_VERSION_MINOR 9
68+
#define ESP_ASYNC_WIFI_MANAGER_LITE_VERSION_MINOR 10
6869
#define ESP_ASYNC_WIFI_MANAGER_LITE_VERSION_PATCH 1
6970

70-
#define ESP_ASYNC_WIFI_MANAGER_LITE_VERSION_INT 1009001
71+
#define ESP_ASYNC_WIFI_MANAGER_LITE_VERSION_INT 1010001
7172
#endif
7273

7374
///////////////////////////////////////////

0 commit comments

Comments
 (0)