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

Commit dc5a0f2

Browse files
authored
v1.6.0 for configurable WIFI_RECON_INTERVAL
### Major Release v1.6.0 1. Add support to RP2040-based boards, such as **NANO_RP2040_CONNECT**, using [**Earle Philhower's arduino-pico** core](https://github.com/earlephilhower/arduino-pico) 2. Configurable `WIFI_RECON_INTERVAL`. Check [retries block the main loop #18](#18 (comment))
1 parent 7a37010 commit dc5a0f2

File tree

25 files changed

+1017
-142
lines changed

25 files changed

+1017
-142
lines changed

README.md

Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
* [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)
6161
* [12.2 Disable manually input SSIDs](#122-disable-manually-input-ssids)
6262
* [12.3 Select maximum number of SSIDs in the list](#123-select-maximum-number-of-ssids-in-the-list)
63+
* [13. To avoid blocking in loop when WiFi is lost](#13-To-avoid-blocking-in-loop-when-wifi-is-lost)
64+
* [13.1 Max times to try WiFi per loop](#131-max-times-to-try-wifi-per-loop)
65+
* [13.2 Interval between reconnection WiFi if lost](#132-interval-between-reconnection-wifi-if-lost)
6366
* [Examples](#examples)
6467
* [ 1. SAMD_WiFiNINA](examples/SAMD_WiFiNINA)
6568
* [ 2. SAMD_WiFiNINA_MQTT](examples/SAMD_WiFiNINA_MQTT)
@@ -219,7 +222,7 @@ This [**WiFiManager_NINA_Lite** library](https://github.com/khoih-prog/WiFiManag
219222
7. [`Seeeduino SAMD core 1.8.2+`](https://github.com/Seeed-Studio/ArduinoCore-samd) for SAMD21/SAMD51 boards (XIAO M0, Wio Terminal, etc.). [![Latest release](https://img.shields.io/github/release/Seeed-Studio/ArduinoCore-samd.svg)](https://github.com/Seeed-Studio/ArduinoCore-samd/releases/latest/)
220223
8. [`Adafruit nRF52 v1.2.0+`](https://www.adafruit.com) for nRF52 boards such as Adafruit NRF52840_FEATHER, NRF52832_FEATHER, NRF52840_FEATHER_SENSE, NRF52840_ITSYBITSY, NRF52840_CIRCUITPLAY, NRF52840_CLUE, NRF52840_METRO, NRF52840_PCA10056, PARTICLE_XENON, **NINA_B302_ublox**, etc. [![GitHub release](https://img.shields.io/github/release/adafruit/Adafruit_nRF52_Arduino.svg)](https://github.com/adafruit/Adafruit_nRF52_Arduino/releases/latest)
221224
9. [`Arduino mbed_rp2040 core 2.6.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino (Use Arduino Board Manager) RP2040-based boards, such as **Arduino Nano RP2040 Connect, RASPBERRY_PI_PICO, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)
222-
10. [`Earle Philhower's arduino-pico core v1.9.12+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest)
225+
10. [`Earle Philhower's arduino-pico core v1.9.13+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest)
223226
11. [`Functional-VLPP library v1.0.2+`](https://github.com/khoih-prog/functional-vlpp) to use server's lambda function. To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/Functional-Vlpp.svg?)](https://www.ardu-badge.com/Functional-Vlpp)
224227
12. [`WiFiNINA_Generic library v1.8.14-3+`](https://github.com/khoih-prog/WiFiNINA_Generic). To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiNINA_Generic.svg?)](https://www.ardu-badge.com/WiFiNINA_Generic)
225228
13. [`Modified WiFi101 Library v0.16.1+`](https://github.com/khoih-prog/WiFi101) if using WINC1500/WiFi101 shields (MKR1000, etc.).
@@ -742,6 +745,38 @@ The maximum number of SSIDs in the list is seletable from 2 to 15. If invalid nu
742745
#define MAX_SSID_IN_LIST 8
743746
```
744747
748+
#### 13. To avoid blocking in loop when WiFi is lost
749+
750+
751+
#### 13.1 Max times to try WiFi per loop
752+
753+
To define max times to try WiFi per loop() iteration. To avoid blocking issue in loop()
754+
755+
Default is 1 if not defined, and minimum is forced to be 1.
756+
757+
To use, uncomment in `defines.h`.
758+
759+
Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18#issue-1094004380)
760+
761+
```
762+
#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
763+
```
764+
765+
#### 13.2 Interval between reconnection WiFi if lost
766+
767+
Default is no interval between reconnection WiFi times if lost WiFi. Max permitted interval will be 10mins.
768+
769+
Uncomment to use. Be careful, WiFi reconnection will be delayed if using this method.
770+
771+
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.
772+
773+
Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18#issuecomment-1006197561)
774+
775+
```
776+
#define WIFI_RECON_INTERVAL 30000 // 30s
777+
```
778+
779+
745780
746781
---
747782
---
@@ -1309,6 +1344,12 @@ void loop()
13091344
// Default 1 if not defined, and minimum 1.
13101345
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
13111346
1347+
// Default no interval between recon WiFi if lost
1348+
// Max permitted interval will be 10mins
1349+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
1350+
// 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.
1351+
//#define WIFI_RECON_INTERVAL 30000
1352+
13121353
/////////////////////////////////////////////
13131354
13141355
#define USE_DYNAMIC_PARAMETERS true
@@ -1500,7 +1541,7 @@ This is the terminal output when running [**SAMD_WiFiNINA**](examples/SAMD_WiFiN
15001541

15011542
```
15021543
Starting SAMD_WiFiNINA on SAMD NANO_33_IOT
1503-
WiFiManager_NINA_Lite v1.5.0
1544+
WiFiManager_NINA_Lite v1.6.0
15041545
[WN] Hostname=SAMD-Master-Controller
15051546
Flag read = 0xffffffff
15061547
No doubleResetDetected
@@ -1552,7 +1593,7 @@ FFFFFFFFF
15521593

15531594
```
15541595
Start SAMD_WiFiNINA on SAMD NANO_33_IOT
1555-
WiFiManager_NINA_Lite v1.5.0
1596+
WiFiManager_NINA_Lite v1.6.0
15561597
[WN] Hostname=SAMD-WIFININA51F485
15571598
[WN] CrCCSum=44880,CrRCSum=-1
15581599
[WN] CCSum=53040,RCSum=-1
@@ -1599,7 +1640,7 @@ FFFFFFFFF
15991640

16001641
```
16011642
Start SAMD_WiFiNINA on SAMD NANO_33_IOT
1602-
WiFiManager_NINA_Lite v1.5.0
1643+
WiFiManager_NINA_Lite v1.6.0
16031644
[WN] Hostname=SAMD-Master-Controller
16041645
Flag read = 0xd0d04321
16051646
No doubleResetDetected
@@ -1676,7 +1717,7 @@ HHHHHHHHHH HHHHHHHHHH
16761717

16771718
```
16781719
Start SAMD_WiFiNINA on SAMD NANO_33_IOT
1679-
WiFiManager_NINA_Lite v1.5.0
1720+
WiFiManager_NINA_Lite v1.6.0
16801721
[WN] Hostname=SAMD-Master-Controller
16811722
Flag read = 0xd0d04321
16821723
No doubleResetDetected
@@ -1740,7 +1781,7 @@ FF
17401781

17411782
```
17421783
Start SAMD_WiFiNINA on SAMD NANO_33_IOT
1743-
WiFiManager_NINA_Lite v1.5.0
1784+
WiFiManager_NINA_Lite v1.6.0
17441785
[WN] Hostname=SAMD-Master-Controller
17451786
Flag read = 0xd0d04321
17461787
No doubleResetDetected
@@ -1796,7 +1837,7 @@ HHHHHHHHH HHHHHHHHHH
17961837

17971838
```
17981839
Start SAMD_WiFiNINA on SAMD NANO_33_IOT
1799-
WiFiManager_NINA_Lite v1.5.0
1840+
WiFiManager_NINA_Lite v1.6.0
18001841
[WN] Hostname=SAMD-Master-Controller
18011842
Flag read = 0xd0d01234
18021843
doubleResetDetected
@@ -1852,7 +1893,7 @@ This is the terminal output when running [**RP2040_WiFiNINA_MQTT**](examples/RP2
18521893

18531894
```
18541895
Starting RP2040_WiFiNINA_MQTT on MBED NANO_RP2040_CONNECT
1855-
WiFiManager_NINA_Lite v1.5.0
1896+
WiFiManager_NINA_Lite v1.6.0
18561897
[WN] Hostname=RP2040-Master-Controller
18571898
LittleFS size (KB) = 64
18581899
LittleFS Mount OK
@@ -1904,7 +1945,7 @@ N
19041945

19051946
```
19061947
Starting RP2040_WiFiNINA_MQTT on MBED NANO_RP2040_CONNECT
1907-
WiFiManager_NINA_Lite v1.5.0
1948+
WiFiManager_NINA_Lite v1.6.0
19081949
[WN] Hostname=RP2040-Master-Controller
19091950
LittleFS size (KB) = 64
19101951
LittleFS Mount OK
@@ -2018,7 +2059,7 @@ Sometimes, the library will only work if you update the `WiFiNINA module/shield`
20182059
18. Add support to RP2040-based boards, such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, using [**Earle Philhower's arduino-pico** core](https://github.com/earlephilhower/arduino-pico).
20192060
19. Add support to RP2040-based boards, such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, using [**Arduino-mbed RP2040** core](https://github.com/arduino/ArduinoCore-mbed)
20202061
20. Add `LibraryPatches` for [**Adafruit_MQTT_Library**](https://github.com/adafruit/Adafruit_MQTT_Library) to fix compiler error for RP2040-based and many other boards.
2021-
21. Fix the blocking issue in loop()
2062+
21. Fix the blocking issue in loop() with configurable `WIFI_RECON_INTERVAL`
20222063

20232064
---
20242065
---
@@ -2042,7 +2083,9 @@ Submit issues to: [WiFiManager_NINA_Lite issues](https://github.com/khoih-prog/W
20422083
- [WiFiManager connection attempt to unconfigured ("blank") SSID after restart on SAMD #8](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/8) leading to v1.1.3 and v1.2.0
20432084
6. Again thanks to [Michael H. "bizprof"](https://github.com/bizprof) to be `collaborator, co-author/maintainer` of this library. With the impressive new introducing feature :
20442085
- `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.3.0
2045-
7. Thanks to [tomtobback](https://github.com/tomtobback) to report issue [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18) leading to version v1.5.0 to fix the blocking issue in loop().
2086+
7. Thanks to [tomtobback](https://github.com/tomtobback) to report issue [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18) leading to version v1.5.0 and v1.6.0 to fix the blocking issue in loop() with `WIFI_RECON_INTERVAL`.
2087+
2088+
20462089

20472090
<table>
20482091
<tr>

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Major Release v1.6.0](#major-release-v160)
1516
* [Release v1.5.0](#release-v150)
1617
* [Release v1.4.1](#release-v141)
1718
* [Major Release v1.4.0](#major-release-v140)
@@ -35,6 +36,11 @@
3536

3637
## Changelog
3738

39+
### Major Release v1.6.0
40+
41+
1. Add support to RP2040-based boards, such as **NANO_RP2040_CONNECT**, using [**Earle Philhower's arduino-pico** core](https://github.com/earlephilhower/arduino-pico)
42+
2. Configurable `WIFI_RECON_INTERVAL`. Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18#issuecomment-1006197561)
43+
3844
### Release v1.5.0
3945

4046
1. Fix the blocking issue in loop(). Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18)

examples/RP2040_WiFiNINA/RP2040_WiFiNINA.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void displayCredentialsInLoop()
129129
#endif
130130

131131
void loop()
132-
{
132+
{
133133
WiFiManager_NINA->run();
134134
check_status();
135135

examples/RP2040_WiFiNINA/defines.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,18 @@
134134

135135
// Permit input only one set of WiFi SSID/PWD. The other can be "NULL or "blank"
136136
// Default is false (if not defined) => must input 2 sets of SSID/PWD
137-
#define REQUIRE_ONE_SET_SSID_PW false
137+
#define REQUIRE_ONE_SET_SSID_PW true //false
138138

139139
// Max times to try WiFi per loop() iteration. To avoid blocking issue in loop()
140140
// Default 1 if not defined, and minimum 1.
141141
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
142142

143+
// Default no interval between recon WiFi if lost
144+
// Max permitted interval will be 10mins
145+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
146+
// 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.
147+
//#define WIFI_RECON_INTERVAL 30000
148+
143149
/////////////////////////////////////////////
144150

145151
#define USE_DYNAMIC_PARAMETERS true

examples/RP2040_WiFiNINA_MQTT/defines.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@
140140
// Default 1 if not defined, and minimum 1.
141141
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
142142

143+
// Default no interval between recon WiFi if lost
144+
// Max permitted interval will be 10mins
145+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
146+
// 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.
147+
//#define WIFI_RECON_INTERVAL 30000
148+
143149
/////////////////////////////////////////////
144150

145151
#define USE_DYNAMIC_PARAMETERS true

examples/SAMD_WiFiNINA/defines.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@
166166
// Default 1 if not defined, and minimum 1.
167167
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
168168

169+
// Default no interval between recon WiFi if lost
170+
// Max permitted interval will be 10mins
171+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
172+
// 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.
173+
//#define WIFI_RECON_INTERVAL 30000
174+
169175
/////////////////////////////////////////////
170176

171177
#define USE_DYNAMIC_PARAMETERS true

examples/SAMD_WiFiNINA_MQTT/defines.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,18 @@
171171
// Default 1 if not defined, and minimum 1.
172172
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
173173

174+
// Default no interval between recon WiFi if lost
175+
// Max permitted interval will be 10mins
176+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
177+
// 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.
178+
//#define WIFI_RECON_INTERVAL 30000
179+
180+
// Default no interval between recon WiFi if lost
181+
// Max permitted interval will be 10mins
182+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
183+
// 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.
184+
//#define WIFI_RECON_INTERVAL 30000
185+
174186
/////////////////////////////////////////////
175187

176188
#define USE_DYNAMIC_PARAMETERS true

examples/SAM_DUE_WiFiNINA/defines.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@
128128
// Default 1 if not defined, and minimum 1.
129129
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
130130

131+
// Default no interval between recon WiFi if lost
132+
// Max permitted interval will be 10mins
133+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
134+
// 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.
135+
//#define WIFI_RECON_INTERVAL 30000
136+
131137
/////////////////////////////////////////////
132138

133139
#define USE_DYNAMIC_PARAMETERS true

examples/SAM_DUE_WiFiNINA_MQTT/defines.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@
128128
// Default 1 if not defined, and minimum 1.
129129
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
130130

131+
// Default no interval between recon WiFi if lost
132+
// Max permitted interval will be 10mins
133+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
134+
// 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.
135+
//#define WIFI_RECON_INTERVAL 30000
136+
131137
/////////////////////////////////////////////
132138

133139
#define USE_DYNAMIC_PARAMETERS true

examples/STM32_WiFiNINA/defines.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@
142142
// Default 1 if not defined, and minimum 1.
143143
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
144144

145+
// Default no interval between recon WiFi if lost
146+
// Max permitted interval will be 10mins
147+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
148+
// 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.
149+
//#define WIFI_RECON_INTERVAL 30000
150+
145151
/////////////////////////////////////////////
146152

147153
#define USE_DYNAMIC_PARAMETERS true

examples/STM32_WiFiNINA_MQTT/defines.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@
142142
// Default 1 if not defined, and minimum 1.
143143
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
144144

145+
// Default no interval between recon WiFi if lost
146+
// Max permitted interval will be 10mins
147+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
148+
// 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.
149+
//#define WIFI_RECON_INTERVAL 30000
150+
145151
/////////////////////////////////////////////
146152

147153
#define USE_DYNAMIC_PARAMETERS true

examples/Teensy_WiFiNINA/defines.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@
130130
// Default 1 if not defined, and minimum 1.
131131
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
132132

133+
// Default no interval between recon WiFi if lost
134+
// Max permitted interval will be 10mins
135+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
136+
// 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.
137+
//#define WIFI_RECON_INTERVAL 30000
138+
133139
/////////////////////////////////////////////
134140

135141
#define USE_DYNAMIC_PARAMETERS true

examples/Teensy_WiFiNINA_MQTT/defines.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@
133133
// Default 1 if not defined, and minimum 1.
134134
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
135135

136+
// Default no interval between recon WiFi if lost
137+
// Max permitted interval will be 10mins
138+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
139+
// 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.
140+
//#define WIFI_RECON_INTERVAL 30000
141+
136142
/////////////////////////////////////////////
137143

138144
#define USE_DYNAMIC_PARAMETERS true

examples/nRF52_WiFiNINA/defines.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,18 @@
150150
// Default 1 if not defined, and minimum 1.
151151
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
152152

153+
// Default no interval between recon WiFi if lost
154+
// Max permitted interval will be 10mins
155+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
156+
// 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.
157+
//#define WIFI_RECON_INTERVAL 30000
158+
159+
// Default no interval between recon WiFi if lost
160+
// Max permitted interval will be 10mins
161+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
162+
// 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.
163+
//#define WIFI_RECON_INTERVAL 30000
164+
153165
/////////////////////////////////////////////
154166

155167
#define USE_DYNAMIC_PARAMETERS true

examples/nRF52_WiFiNINA_MQTT/defines.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@
150150
// Default 1 if not defined, and minimum 1.
151151
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2
152152

153+
// Default no interval between recon WiFi if lost
154+
// Max permitted interval will be 10mins
155+
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method
156+
// 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.
157+
//#define WIFI_RECON_INTERVAL 30000
158+
153159
/////////////////////////////////////////////
154160

155161
#define USE_DYNAMIC_PARAMETERS true

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "WiFiManager_NINA_Lite",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"keywords": "wifi, wi-fi, MutiWiFi, WiFiNINA, SAM DUE, SAMD, nRF52, STM32, rpi-pico, rp2040, nano-rp2040-connect, Credentials, config-portal, dynamic-params, FlashStorage-SAMD, FlashStorage-STM32, DueFlashStorage, LittleFS, Double-Reset, FlashStorage, light-weight, EEPROM, AVR Mega",
55
"description": "Library to configure MultiWiFi/Credentials at runtime for AVR Mega, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52, RP2040-based (Nano RP2040 Connect, RASPBERRY_PI_PICO) boards, etc. using WiFiNINA modules/shields. 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, EEPROM, FlashStorage_SAMD, FlashStorage_STM32 or DueFlashStorage. DoubleDetectDetector feature permits entering Config Portal as requested",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=WiFiManager_NINA_Lite
2-
version=1.5.0
2+
version=1.6.0
33
author=Khoi Hoang
44
maintainer=Khoi Hoang <[email protected]>
55
license=MIT

0 commit comments

Comments
 (0)