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.
### 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. Clean up
Copy file name to clipboardExpand all lines: README.md
+80-21Lines changed: 80 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,9 @@
44
44
*[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)
*[12.3 Select maximum number of SSIDs in the list](#123-select-maximum-number-of-ssids-in-the-list)
47
+
*[13. To avoid blocking in loop when WiFi is lost](#13-To-avoid-blocking-in-loop-when-wifi-is-lost)
48
+
*[13.1 Max times to try WiFi per loop](#131-max-times-to-try-wifi-per-loop)
49
+
*[13.2 Interval between reconnection WiFi if lost](#132-interval-between-reconnection-wifi-if-lost)
47
50
*[Examples](#examples)
48
51
*[ 1. ESP_WiFi](examples/ESP_WiFi)
49
52
*[ 2. ESP_WiFi_MQTT](examples/ESP_WiFi_MQTT)
@@ -138,8 +141,8 @@ This [**ESP_WiFiManager_Lite** library](https://github.com/khoih-prog/ESP_WiFiMa
138
141
139
142
## Prerequisites
140
143
141
-
1.[`Arduino IDE 1.8.16+` for Arduino](https://www.arduino.cc/en/Main/Software)
142
-
2.[`ESP32 Core 2.0.1+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [](https://github.com/espressif/arduino-esp32/releases/latest/)
144
+
1.[`Arduino IDE 1.8.19+` for Arduino](https://www.arduino.cc/en/Main/Software)
145
+
2.[`ESP32 Core 2.0.2+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [](https://github.com/espressif/arduino-esp32/releases/latest/)
143
146
3.[`ESP8266 Core 3.0.2+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [](https://github.com/esp8266/Arduino/releases/latest/). SPIFFS is deprecated from ESP8266 core 2.7.1+, to use LittleFS.
144
147
4.[`ESP_DoubleResetDetector v1.2.1+`](https://github.com/khoih-prog/ESP_DoubleResetDetector) if using DRD feature. To install, check [](https://www.ardu-badge.com/ESP_DoubleResetDetector).
145
148
5.[`ESP_MultiResetDetector v1.2.1+`](https://github.com/khoih-prog/ESP_MultiResetDetector) if using MRD feature. To install, check [](https://www.ardu-badge.com/ESP_MultiResetDetector).
@@ -470,6 +473,35 @@ The maximum number of SSIDs in the list is seletable from 2 to 15. If invalid nu
470
473
#define MAX_SSID_IN_LIST 8
471
474
```
472
475
476
+
#### 13. To avoid blocking in loop when WiFi is lost
477
+
478
+
#### 13.1 Max times to try WiFi per loop
479
+
480
+
To define max times to try WiFi per loop() iteration. To avoid blocking issue in loop()
481
+
482
+
Default is 1 if not defined, and minimum is forced to be 1.
483
+
484
+
To use, uncomment in `defines.h`.
485
+
486
+
Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18#issue-1094004380)
487
+
488
+
```
489
+
#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
490
+
```
491
+
492
+
#### 13.2 Interval between reconnection WiFi if lost
493
+
494
+
Default is no interval between reconnection WiFi times if lost WiFi. Max permitted interval will be 10mins.
495
+
496
+
Uncomment to use. Be careful, WiFi reconnection will be delayed if using this method.
497
+
498
+
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.
499
+
500
+
Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18#issuecomment-1006197561)
501
+
502
+
```
503
+
#define WIFI_RECON_INTERVAL 30000 // 30s
504
+
```
473
505
474
506
---
475
507
---
@@ -913,7 +945,10 @@ void loop()
913
945
914
946
// RTC Memory Address for the DoubleResetDetector to use
915
947
#define MRD_ADDRESS 0
916
-
#warning Using MULTI_RESETDETECTOR
948
+
949
+
#if (_ESP_WM_LITE_LOGLEVEL_ > 3)
950
+
#warning Using MULTI_RESETDETECTOR
951
+
#endif
917
952
#else
918
953
#defineDOUBLERESETDETECTOR_DEBUG true
919
954
@@ -923,7 +958,10 @@ void loop()
923
958
924
959
// RTC Memory Address for the DoubleResetDetector to use
925
960
#defineDRD_ADDRESS 0
926
-
#warning Using DOUBLE_RESETDETECTOR
961
+
962
+
#if (_ESP_WM_LITE_LOGLEVEL_ > 3)
963
+
#warning Using DOUBLE_RESETDETECTOR
964
+
#endif
927
965
#endif
928
966
929
967
/////////////////////////////////////////////
@@ -947,10 +985,6 @@ void loop()
947
985
948
986
/////////////////////////////////////////////
949
987
950
-
// Permit input only one set of WiFi SSID/PWD. The other can be "NULL or "blank"
951
-
// Default is false (if not defined) => must input 2 sets of SSID/PWD
952
-
#defineREQUIRE_ONE_SET_SSID_PW false
953
-
954
988
// Force some params
955
989
#defineTIMEOUT_RECONNECT_WIFI 10000L
956
990
@@ -963,9 +997,32 @@ void loop()
963
997
#defineCONFIG_TIMEOUT_RETRYTIMES_BEFORE_RESET5
964
998
965
999
// Config Timeout 120s (default 60s). Applicable only if Config Data is Valid
966
-
#defineCONFIG_TIMEOUT 120000L
1000
+
#defineCONFIG_TIMEOUT 120000L
1001
+
1002
+
/////////////////////////////////////////////
1003
+
1004
+
// Permit input only one set of WiFi SSID/PWD. The other can be "NULL or "blank"
1005
+
// Default is false (if not defined) => must input 2 sets of SSID/PWD
1006
+
#defineREQUIRE_ONE_SET_SSID_PW true //false
1007
+
1008
+
// Max times to try WiFi per loop() iteration. To avoid blocking issue in loop()
1009
+
// Default 1 if not defined, and minimum 1.
1010
+
#defineMAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
1011
+
1012
+
// Default no interval between recon WiFi if lost
1013
+
// Max permitted interval will be 10mins
1014
+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
1015
+
// 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.
1016
+
//#define WIFI_RECON_INTERVAL 30000
1017
+
1018
+
/////////////////////////////////////////////
1019
+
1020
+
// Permit reset hardware if no WiFi to permit user another chance to access Config Portal.
1021
+
#defineRESET_IF_NO_WIFI false
1022
+
1023
+
/////////////////////////////////////////////
967
1024
968
-
#defineUSE_DYNAMIC_PARAMETERStrue
1025
+
#defineUSE_DYNAMIC_PARAMETERS true
969
1026
970
1027
/////////////////////////////////////////////
971
1028
@@ -975,7 +1032,7 @@ void loop()
975
1032
#defineMANUAL_SSID_INPUT_ALLOWED true
976
1033
977
1034
// From 2-15
978
-
#defineMAX_SSID_IN_LIST 8
1035
+
#defineMAX_SSID_IN_LIST 8
979
1036
980
1037
/////////////////////////////////////////////
981
1038
@@ -1171,7 +1228,7 @@ This is the terminal output when running [**ESP_WiFi**](examples/ESP_WiFi) examp
1171
1228
1172
1229
```
1173
1230
Starting ESP_WiFi using LittleFS on ESP32_DEV
1174
-
ESP_WiFiManager_Lite v1.6.0
1231
+
ESP_WiFiManager_Lite v1.7.0
1175
1232
ESP_MultiResetDetector v1.2.1
1176
1233
LittleFS Flag read = 0xFFFC0003
1177
1234
multiResetDetectorFlag = 0xFFFC0003
@@ -1242,7 +1299,7 @@ FFFFFFFFF
1242
1299
1243
1300
```
1244
1301
Starting ESP_WiFi using LittleFS on ESP32_DEV
1245
-
ESP_WiFiManager_Lite v1.6.0
1302
+
ESP_WiFiManager_Lite v1.7.0
1246
1303
ESP_MultiResetDetector v1.2.1
1247
1304
LittleFS Flag read = 0xFFFE0001
1248
1305
multiResetDetectorFlag = 0xFFFE0001
@@ -1314,7 +1371,7 @@ This is the terminal output when running [**ESP_WiFi_MQTT**](examples/ESP_WiFi_M
1314
1371
1315
1372
```
1316
1373
Starting ESP_WiFi_MQTT using LittleFS on ESP8266_NODEMCU
1317
-
ESP_WiFiManager_Lite v1.6.0
1374
+
ESP_WiFiManager_Lite v1.7.0
1318
1375
ESP_MultiResetDetector v1.2.1
1319
1376
LittleFS Flag read = 0xFFFE0001
1320
1377
multiResetDetectorFlag = 0xFFFE0001
@@ -1389,7 +1446,7 @@ NNN
1389
1446
1390
1447
1391
1448
Starting ESP_WiFi_MQTT using LittleFS on ESP8266_NODEMCU
1392
-
ESP_WiFiManager_Lite v1.6.0
1449
+
ESP_WiFiManager_Lite v1.7.0
1393
1450
ESP_MultiResetDetector v1.2.1
1394
1451
LittleFS Flag read = 0xFFFE0001
1395
1452
multiResetDetectorFlag = 0xFFFE0001
@@ -1481,7 +1538,7 @@ This is the terminal output when running [**ESP_WiFi_MQTT**](examples/ESP_WiFi_M
1481
1538
1482
1539
```
1483
1540
Starting ESP_WiFi_MQTT using LittleFS on ESP32S2_DEV
1484
-
ESP_WiFiManager_Lite v1.6.0
1541
+
ESP_WiFiManager_Lite v1.7.0
1485
1542
ESP_MultiResetDetector v1.2.1
1486
1543
LittleFS Flag read = 0xFFFE0001
1487
1544
multiResetDetectorFlag = 0xFFFE0001
@@ -1594,7 +1651,7 @@ entry 0x4004c190
1594
1651
1595
1652
1596
1653
Starting ESP_WiFi_MQTT using LittleFS on ESP32S2_DEV
1597
-
ESP_WiFiManager_Lite v1.6.0
1654
+
ESP_WiFiManager_Lite v1.7.0
1598
1655
ESP_MultiResetDetector v1.2.1
1599
1656
LittleFS Flag read = 0xFFFE0001
1600
1657
multiResetDetectorFlag = 0xFFFE0001
@@ -1696,7 +1753,7 @@ This is the terminal output when running [**ESP_WiFi_MQTT**](examples/ESP_WiFi_M
1696
1753
1697
1754
```
1698
1755
Starting ESP_WiFi_MQTT using LittleFS on ESP32S2_DEV
Copy file name to clipboardExpand all lines: changelog.md
+8Lines changed: 8 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
+
*[Release v1.7.0](#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)
@@ -26,6 +27,13 @@
26
27
27
28
## Changelog
28
29
30
+
### Release v1.7.0
31
+
32
+
1. Fix ESP8266 bug not easy to connect to Config Portal for ESP8266 core v3.0.0+
33
+
2. Fix the blocking issue in loop(). Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18)
34
+
3. Configurable `WIFI_RECON_INTERVAL`. Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18#issuecomment-1006197561)
35
+
4. Clean up
36
+
29
37
### Release v1.6.0
30
38
31
39
1. Auto detect ESP32 core and use either built-in LittleFS or [LITTLEFS](https://github.com/lorol/LITTLEFS) library.
0 commit comments