You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
### Major Release v1.7.0
1. Fix ESP8266 bug not easy to connect to Config Portal for ESP8266 core v3.0.0+
2. Fix the blocking issue in loop(). Check [retries block the main loop #18](khoih-prog/WiFiManager_NINA_Lite#18)
3. Configurable `WIFI_RECON_INTERVAL`. Check [retries block the main loop #18](khoih-prog/WiFiManager_NINA_Lite#18 (comment))
4. Optimize library code by using `reference-passing` instead of `value-passing`
5. Clean up
Copy file name to clipboardExpand all lines: README.md
+80-20Lines changed: 80 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,9 @@
45
45
*[12.1 Enable auto-scan of WiFi networks for selection in Configuration Portal](#121-enable-auto-scan-of-wifi-networks-for-selection-in-configuration-portal)
@@ -161,9 +164,9 @@ This [**ESPAsync_WiFiManager_Lite** library](https://github.com/khoih-prog/ESPAs
161
164
162
165
## Prerequisites
163
166
164
-
1.[`Arduino IDE 1.8.16+` for Arduino](https://www.arduino.cc/en/Main/Software)
167
+
1.[`Arduino IDE 1.8.19+` for Arduino](https://www.arduino.cc/en/Main/Software)
165
168
2.[`ESP8266 Core 3.0.2+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [](https://github.com/esp8266/Arduino/releases/latest/). To use ESP8266 core 2.7.1+ for LittleFS.
166
-
3.[`ESP32 Core 2.0.1+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [](https://github.com/espressif/arduino-esp32/releases/latest/)
169
+
3.[`ESP32 Core 2.0.2+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [](https://github.com/espressif/arduino-esp32/releases/latest/)
167
170
4.[`ESPAsyncWebServer v1.2.3+`](https://github.com/me-no-dev/ESPAsyncWebServer) for all ESP32/ESP8266-based boards.
168
171
5.[`ESPAsyncTCP v1.2.2+`](https://github.com/me-no-dev/ESPAsyncTCP) for ESP8266-based boards.
169
172
6.[`AsyncTCP v1.1.1+`](https://github.com/me-no-dev/AsyncTCP) for ESP32-based boards
@@ -494,6 +497,35 @@ The maximum number of SSIDs in the list is seletable from 2 to 15. If invalid nu
494
497
#define MAX_SSID_IN_LIST 8
495
498
```
496
499
500
+
#### 13. To avoid blocking in loop when WiFi is lost
501
+
502
+
#### 13.1 Max times to try WiFi per loop
503
+
504
+
To define max times to try WiFi per loop() iteration. To avoid blocking issue in loop()
505
+
506
+
Default is 1 if not defined, and minimum is forced to be 1.
507
+
508
+
To use, uncomment in `defines.h`.
509
+
510
+
Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18#issue-1094004380)
511
+
512
+
```
513
+
#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
514
+
```
515
+
516
+
#### 13.2 Interval between reconnection WiFi if lost
517
+
518
+
Default is no interval between reconnection WiFi times if lost WiFi. Max permitted interval will be 10mins.
519
+
520
+
Uncomment to use. Be careful, WiFi reconnection will be delayed if using this method.
521
+
522
+
Only use whenever urgent tasks in loop() can't be delayed. But if so, it's better you have to rewrite your code, e.g. using higher priority tasks.
523
+
524
+
Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18#issuecomment-1006197561)
525
+
526
+
```
527
+
#define WIFI_RECON_INTERVAL 30000 // 30s
528
+
```
497
529
498
530
---
499
531
---
@@ -938,7 +970,10 @@ void loop()
938
970
939
971
// RTC Memory Address for the DoubleResetDetector to use
940
972
#define MRD_ADDRESS 0
941
-
#warning Using MULTI_RESETDETECTOR
973
+
974
+
#if (_ESP_WM_LITE_LOGLEVEL_ > 3)
975
+
#warning Using MULTI_RESETDETECTOR
976
+
#endif
942
977
#else
943
978
#defineDOUBLERESETDETECTOR_DEBUG true
944
979
@@ -948,7 +983,10 @@ void loop()
948
983
949
984
// RTC Memory Address for the DoubleResetDetector to use
950
985
#defineDRD_ADDRESS 0
951
-
#warning Using DOUBLE_RESETDETECTOR
986
+
987
+
#if (_ESP_WM_LITE_LOGLEVEL_ > 3)
988
+
#warning Using DOUBLE_RESETDETECTOR
989
+
#endif
952
990
#endif
953
991
954
992
/////////////////////////////////////////////
@@ -972,10 +1010,6 @@ void loop()
972
1010
973
1011
/////////////////////////////////////////////
974
1012
975
-
// Permit input only one set of WiFi SSID/PWD. The other can be "NULL or "blank"
976
-
// Default is false (if not defined) => must input 2 sets of SSID/PWD
977
-
#defineREQUIRE_ONE_SET_SSID_PW false
978
-
979
1013
// Force some params
980
1014
#defineTIMEOUT_RECONNECT_WIFI 10000L
981
1015
@@ -988,9 +1022,32 @@ void loop()
988
1022
#defineCONFIG_TIMEOUT_RETRYTIMES_BEFORE_RESET5
989
1023
990
1024
// Config Timeout 120s (default 60s). Applicable only if Config Data is Valid
991
-
#defineCONFIG_TIMEOUT 120000L
1025
+
#defineCONFIG_TIMEOUT 120000L
1026
+
1027
+
/////////////////////////////////////////////
1028
+
1029
+
// Permit input only one set of WiFi SSID/PWD. The other can be "NULL or "blank"
1030
+
// Default is false (if not defined) => must input 2 sets of SSID/PWD
1031
+
#defineREQUIRE_ONE_SET_SSID_PW true //false
1032
+
1033
+
// Max times to try WiFi per loop() iteration. To avoid blocking issue in loop()
1034
+
// Default 1 if not defined, and minimum 1.
1035
+
#defineMAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
1036
+
1037
+
// Default no interval between recon WiFi if lost
1038
+
// Max permitted interval will be 10mins
1039
+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
1040
+
// Only use whenever urgent tasks in loop() can't be delayed. But if so, it's better you have to rewrite your code, e.g. using higher priority tasks.
1041
+
#defineWIFI_RECON_INTERVAL 30000
1042
+
1043
+
/////////////////////////////////////////////
1044
+
1045
+
// Permit reset hardware if no WiFi to permit user another chance to access Config Portal.
1046
+
#defineRESET_IF_NO_WIFI false
1047
+
1048
+
/////////////////////////////////////////////
992
1049
993
-
#defineUSE_DYNAMIC_PARAMETERStrue
1050
+
#defineUSE_DYNAMIC_PARAMETERS true
994
1051
995
1052
/////////////////////////////////////////////
996
1053
@@ -1196,7 +1253,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
1196
1253
1197
1254
```
1198
1255
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32_DEV
1199
-
ESPAsync_WiFiManager_Lite v1.6.0
1256
+
ESPAsync_WiFiManager_Lite v1.7.0
1200
1257
ESP_MultiResetDetector v1.2.1
1201
1258
LittleFS Flag read = 0xFFFE0001
1202
1259
multiResetDetectorFlag = 0xFFFE0001
@@ -1271,7 +1328,7 @@ NNN
1271
1328
1272
1329
1273
1330
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32_DEV
1274
-
ESPAsync_WiFiManager_Lite v1.6.0
1331
+
ESPAsync_WiFiManager_Lite v1.7.0
1275
1332
ESP_MultiResetDetector v1.2.1
1276
1333
LittleFS Flag read = 0xFFFE0001
1277
1334
multiResetDetectorFlag = 0xFFFE0001
@@ -1363,7 +1420,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
1363
1420
1364
1421
```
1365
1422
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP8266_NODEMCU
1366
-
ESPAsync_WiFiManager_Lite v1.6.0
1423
+
ESPAsync_WiFiManager_Lite v1.7.0
1367
1424
ESP_MultiResetDetector v1.2.1
1368
1425
LittleFS Flag read = 0xFFFE0001
1369
1426
multiResetDetectorFlag = 0xFFFE0001
@@ -1438,7 +1495,7 @@ NNN
1438
1495
1439
1496
1440
1497
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP8266_NODEMCU
1441
-
ESPAsync_WiFiManager_Lite v1.6.0
1498
+
ESPAsync_WiFiManager_Lite v1.7.0
1442
1499
ESP_MultiResetDetector v1.2.1
1443
1500
LittleFS Flag read = 0xFFFE0001
1444
1501
multiResetDetectorFlag = 0xFFFE0001
@@ -1529,7 +1586,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
1529
1586
1530
1587
```
1531
1588
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32S2_DEV
1532
-
ESPAsync_WiFiManager_Lite v1.6.0
1589
+
ESPAsync_WiFiManager_Lite v1.7.0
1533
1590
ESP_MultiResetDetector v1.2.1
1534
1591
LittleFS Flag read = 0xFFFE0001
1535
1592
multiResetDetectorFlag = 0xFFFE0001
@@ -1642,7 +1699,7 @@ entry 0x4004c190
1642
1699
1643
1700
1644
1701
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32S2_DEV
1645
-
ESPAsync_WiFiManager_Lite v1.6.0
1702
+
ESPAsync_WiFiManager_Lite v1.7.0
1646
1703
ESP_MultiResetDetector v1.2.1
1647
1704
LittleFS Flag read = 0xFFFE0001
1648
1705
multiResetDetectorFlag = 0xFFFE0001
@@ -1745,7 +1802,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
1745
1802
1746
1803
```
1747
1804
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32S2_DEV
1748
-
ESPAsync_WiFiManager_Lite v1.6.0
1805
+
ESPAsync_WiFiManager_Lite v1.7.0
1749
1806
ESP_MultiResetDetector v1.2.1
1750
1807
LittleFS Flag read = 0xFFFC0003
1751
1808
multiResetDetectorFlag = 0xFFFC0003
@@ -1788,7 +1845,7 @@ entry 0x4004c190
1788
1845
1789
1846
```
1790
1847
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32S2_DEV
1791
-
ESPAsync_WiFiManager_Lite v1.6.0
1848
+
ESPAsync_WiFiManager_Lite v1.7.0
1792
1849
ESP_MultiResetDetector v1.2.1
1793
1850
LittleFS Flag read = 0xFFFE0001
1794
1851
multiResetDetectorFlag = 0xFFFE0001
@@ -1844,7 +1901,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
1844
1901
1845
1902
```
1846
1903
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32_DEV
1847
-
ESPAsync_WiFiManager_Lite v1.6.0
1904
+
ESPAsync_WiFiManager_Lite v1.7.0
1848
1905
ESP_MultiResetDetector v1.2.1
1849
1906
LittleFS Flag read = 0xFFFC0003
1850
1907
multiResetDetectorFlag = 0xFFFC0003
@@ -1889,7 +1946,7 @@ NNNN NNNNN NNNNN N
1889
1946
1890
1947
```
1891
1948
Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32_DEV
1892
-
ESPAsync_WiFiManager_Lite v1.6.0
1949
+
ESPAsync_WiFiManager_Lite v1.7.0
1893
1950
ESP_MultiResetDetector v1.2.1
1894
1951
LittleFS Flag read = 0xFFFE0001
1895
1952
multiResetDetectorFlag = 0xFFFE0001
@@ -2000,6 +2057,9 @@ Submit issues to: [ESPAsync_WiFiManager_Lite issues](https://github.com/khoih-pr
2000
2057
20. Add support to **ESP32-C3 using EEPROM and SPIFFS**
2001
2058
21. Enable **scan of WiFi networks** for selection in Configuration Portal
2002
2059
22. Ready for ESP32 core v2.0.0+
2060
+
23. Fix ESP8266 bug not easy to connect to Config Portal for ESP8266 core v3.0.0+
2061
+
24. Fix the blocking issue in loop() with configurable `WIFI_RECON_INTERVAL`
2062
+
25. Optimize library code by using `reference-passing` instead of `value-passing`
Copy file name to clipboardExpand all lines: changelog.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
## Table of Contents
13
13
14
14
*[Changelog](#changelog)
15
+
*[Major Release v1.7.0](#major-release-v170)
15
16
*[Release v1.6.0](#release-v160)
16
17
*[Release v1.5.1](#release-v151)
17
18
*[Major Release v1.5.0](#major-release-v150)
@@ -27,6 +28,14 @@
27
28
28
29
## Changelog
29
30
31
+
### Major Release v1.7.0
32
+
33
+
1. Fix ESP8266 bug not easy to connect to Config Portal for ESP8266 core v3.0.0+
34
+
2. Fix the blocking issue in loop(). Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18)
35
+
3. Configurable `WIFI_RECON_INTERVAL`. Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18#issuecomment-1006197561)
36
+
4. Optimize library code by using `reference-passing` instead of `value-passing`
37
+
5. Clean up
38
+
30
39
### Release v1.6.0
31
40
32
41
1. Auto detect ESP32 core and use either built-in LittleFS or [LITTLEFS](https://github.com/lorol/LITTLEFS) library.
0 commit comments