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

Commit

Permalink
v1.5.0 to fix the blocking issue in loop()
Browse files Browse the repository at this point in the history
### Release v1.5.0

1. Workaround for core WiFi.status() bug, which does not detect WiFi lost.
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. Update `Packages' Patches`
  • Loading branch information
khoih-prog committed Jan 8, 2022
1 parent 6b0a17d commit af6b1d8
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions examples/Portenta_H7_WiFi_MQTT/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,21 @@

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

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

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

/////////////////////////////////////////////

#define USE_DYNAMIC_PARAMETERS true

/////////////////////////////////////////////

Expand Down

0 comments on commit af6b1d8

Please sign in to comment.