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

Commit af6b681

Browse files
authored
v1.5.0 to enable scan of WiFi networks
### Major Releases v1.5.0 1. Enable scan of WiFi networks for selection in Configuration Portal. Check [PR for v1.3.0 - Enable scan of WiFi networks #10](khoih-prog/WiFiManager_NINA_Lite#10). Now you can select optional **SCAN_WIFI_NETWORKS**, **MANUAL_SSID_INPUT_ALLOWED** to be able to manually input SSID, not only from a scanned SSID lists and **MAX_SSID_IN_LIST** (from 2-15) 2. Fix invalid "blank" Config Data treated as Valid. 3. Permit optionally inputting one set of WiFi SSID/PWD by using `REQUIRE_ONE_SET_SSID_PW == true` 4. Enforce WiFi PWD minimum length of 8 chars 5. Minor enhancement to not display garbage when data is invalid
1 parent 07b871f commit af6b681

File tree

43 files changed

+379
-28
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+379
-28
lines changed

examples/Async_AM2315_ESP32_SSL/Async_AM2315_ESP32_SSL.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
99
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
1010
Licensed under MIT license
11-
Version: 1.4.1
11+
Version: 1.5.0
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.4.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
2424
Fix SSL issue with Blynk Cloud Server
2525
1.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
26+
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
2627
********************************************************************************************************************************/
2728

2829
#include "defines.h"

examples/Async_AM2315_ESP32_SSL/defines.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,21 @@
108108
#define CONFIG_TIMEOUT 120000L
109109

110110
#define USE_DYNAMIC_PARAMETERS true
111+
112+
/////////////////////////////////////////////
113+
114+
#define REQUIRE_ONE_SET_SSID_PW false
115+
116+
#define SCAN_WIFI_NETWORKS true
117+
118+
// To be able to manually input SSID, not from a scanned SSID lists
119+
#define MANUAL_SSID_INPUT_ALLOWED true
120+
121+
// From 2-15
122+
#define MAX_SSID_IN_LIST 8
123+
124+
/////////////////////////////////////////////
125+
111126
//////////////////////////////////////////
112127
// Those above #define's must be placed before #include <BlynkSimpleEsp32_Async_WM.h>
113128

examples/Async_AM2315_ESP8266/Async_AM2315_ESP8266.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
99
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
1010
Licensed under MIT license
11-
Version: 1.4.1
11+
Version: 1.5.0
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.4.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
2424
Fix SSL issue with Blynk Cloud Server
2525
1.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
26+
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
2627
********************************************************************************************************************************/
2728

2829
#include "defines.h"

examples/Async_AM2315_ESP8266/defines.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,21 @@
7979
#define CONFIG_TIMEOUT 120000L
8080

8181
#define USE_DYNAMIC_PARAMETERS true
82+
83+
/////////////////////////////////////////////
84+
85+
#define REQUIRE_ONE_SET_SSID_PW false
86+
87+
#define SCAN_WIFI_NETWORKS true
88+
89+
// To be able to manually input SSID, not from a scanned SSID lists
90+
#define MANUAL_SSID_INPUT_ALLOWED true
91+
92+
// From 2-15
93+
#define MAX_SSID_IN_LIST 8
94+
95+
/////////////////////////////////////////////
96+
8297
//////////////////////////////////////////
8398
// Those above #define's must be placed before #include <BlynkSimpleEsp8266_Async_WM.h>
8499

examples/Async_Blynk_WM_Template/Async_Blynk_WM_Template.ino

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
1111
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
1212
Licensed under MIT license
13-
Version: 1.4.1
13+
Version: 1.5.0
1414
1515
Version Modified By Date Comments
1616
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.4.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
2626
Fix SSL issue with Blynk Cloud Server
2727
1.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
28+
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
2829
********************************************************************************************************************************/
2930

3031
// Sketch uses Arduino IDE-selected ESP32 and ESP8266 to select compile choices
@@ -235,6 +236,20 @@
235236
#define CONFIG_TIMEOUT_RETRYTIMES_BEFORE_RESET 3 // Library default is 10 (times 2) - DEBUG SET AT 2
236237
#define RESET_IF_CONFIG_TIMEOUT true
237238

239+
/////////////////////////////////////////////
240+
241+
#define REQUIRE_ONE_SET_SSID_PW false
242+
243+
#define SCAN_WIFI_NETWORKS true
244+
245+
// To be able to manually input SSID, not from a scanned SSID lists
246+
#define MANUAL_SSID_INPUT_ALLOWED true
247+
248+
// From 2-15
249+
#define MAX_SSID_IN_LIST 8
250+
251+
/////////////////////////////////////////////
252+
238253

239254
// NOT NECESSARY TO MODIFY
240255
// COMPILE-TIME LOGIC: AUTOMATIC WIFI LIBRARY SELECTION

examples/Async_DHT11ESP32/Async_DHT11ESP32.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
99
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
1010
Licensed under MIT license
11-
Version: 1.4.1
11+
Version: 1.5.0
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.4.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
2424
Fix SSL issue with Blynk Cloud Server
2525
1.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
26+
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
2627
********************************************************************************************************************************/
2728

2829
#include "defines.h"

examples/Async_DHT11ESP32/defines.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,21 @@
108108
#define CONFIG_TIMEOUT 120000L
109109

110110
#define USE_DYNAMIC_PARAMETERS true
111+
112+
/////////////////////////////////////////////
113+
114+
#define REQUIRE_ONE_SET_SSID_PW false
115+
116+
#define SCAN_WIFI_NETWORKS true
117+
118+
// To be able to manually input SSID, not from a scanned SSID lists
119+
#define MANUAL_SSID_INPUT_ALLOWED true
120+
121+
// From 2-15
122+
#define MAX_SSID_IN_LIST 8
123+
124+
/////////////////////////////////////////////
125+
111126
//////////////////////////////////////////
112127
// Those above #define's must be placed before #include <BlynkSimpleEsp32_Async_WM.h>
113128

examples/Async_DHT11ESP32_SSL/Async_DHT11ESP32_SSL.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
99
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
1010
Licensed under MIT license
11-
Version: 1.4.1
11+
Version: 1.5.0
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.4.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
2424
Fix SSL issue with Blynk Cloud Server
2525
1.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
26+
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
2627
********************************************************************************************************************************/
2728

2829
#include "defines.h"

examples/Async_DHT11ESP32_SSL/defines.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,21 @@
108108
#define CONFIG_TIMEOUT 120000L
109109

110110
#define USE_DYNAMIC_PARAMETERS true
111+
112+
/////////////////////////////////////////////
113+
114+
#define REQUIRE_ONE_SET_SSID_PW false
115+
116+
#define SCAN_WIFI_NETWORKS true
117+
118+
// To be able to manually input SSID, not from a scanned SSID lists
119+
#define MANUAL_SSID_INPUT_ALLOWED true
120+
121+
// From 2-15
122+
#define MAX_SSID_IN_LIST 8
123+
124+
/////////////////////////////////////////////
125+
111126
//////////////////////////////////////////
112127
// Those above #define's must be placed before #include <BlynkSimpleEsp32_Async_WM.h>
113128

examples/Async_DHT11ESP8266/Async_DHT11ESP8266.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
99
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
1010
Licensed under MIT license
11-
Version: 1.4.1
11+
Version: 1.5.0
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.4.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
2424
Fix SSL issue with Blynk Cloud Server
2525
1.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
26+
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
2627
********************************************************************************************************************************/
2728

2829
#include "defines.h"

examples/Async_DHT11ESP8266/defines.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,21 @@
8080
#define CONFIG_TIMEOUT 120000L
8181

8282
#define USE_DYNAMIC_PARAMETERS true
83+
84+
/////////////////////////////////////////////
85+
86+
#define REQUIRE_ONE_SET_SSID_PW false
87+
88+
#define SCAN_WIFI_NETWORKS true
89+
90+
// To be able to manually input SSID, not from a scanned SSID lists
91+
#define MANUAL_SSID_INPUT_ALLOWED true
92+
93+
// From 2-15
94+
#define MAX_SSID_IN_LIST 8
95+
96+
/////////////////////////////////////////////
97+
8398
//////////////////////////////////////////
8499
// Those above #define's must be placed before #include <BlynkSimpleEsp8266_Async_WM.h>
85100

examples/Async_DHT11ESP8266_Debug/Async_DHT11ESP8266_Debug.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
99
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
1010
Licensed under MIT license
11-
Version: 1.4.1
11+
Version: 1.5.0
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.4.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
2424
Fix SSL issue with Blynk Cloud Server
2525
1.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
26+
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
2627
********************************************************************************************************************************/
2728
#include "defines.h"
2829

examples/Async_DHT11ESP8266_Debug/defines.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,21 @@
8080
#define CONFIG_TIMEOUT 120000L
8181

8282
#define USE_DYNAMIC_PARAMETERS true
83+
84+
/////////////////////////////////////////////
85+
86+
#define REQUIRE_ONE_SET_SSID_PW false
87+
88+
#define SCAN_WIFI_NETWORKS true
89+
90+
// To be able to manually input SSID, not from a scanned SSID lists
91+
#define MANUAL_SSID_INPUT_ALLOWED true
92+
93+
// From 2-15
94+
#define MAX_SSID_IN_LIST 8
95+
96+
/////////////////////////////////////////////
97+
8398
//////////////////////////////////////////
8499
// Those above #define's must be placed before #include <BlynkSimpleEsp8266_Async_WM.h>
85100

examples/Async_DHT11ESP8266_SSL/Async_DHT11ESP8266_SSL.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
99
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
1010
Licensed under MIT license
11-
Version: 1.4.1
11+
Version: 1.5.0
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.4.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
2424
Fix SSL issue with Blynk Cloud Server
2525
1.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
26+
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
2627
********************************************************************************************************************************/
2728

2829
#include "defines.h"

examples/Async_DHT11ESP8266_SSL/defines.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,21 @@
8282
#define CONFIG_TIMEOUT 120000L
8383

8484
#define USE_DYNAMIC_PARAMETERS true
85+
86+
/////////////////////////////////////////////
87+
88+
#define REQUIRE_ONE_SET_SSID_PW false
89+
90+
#define SCAN_WIFI_NETWORKS true
91+
92+
// To be able to manually input SSID, not from a scanned SSID lists
93+
#define MANUAL_SSID_INPUT_ALLOWED true
94+
95+
// From 2-15
96+
#define MAX_SSID_IN_LIST 8
97+
98+
/////////////////////////////////////////////
99+
85100
//////////////////////////////////////////
86101
// Those above #define's must be placed before #include <BlynkSimpleEsp8266_Async_WM.h>
87102

examples/Async_ESP32WM_Config/Async_ESP32WM_Config.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
99
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
1010
Licensed under MIT license
11-
Version: 1.4.1
11+
Version: 1.5.0
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.4.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
2424
Fix SSL issue with Blynk Cloud Server
2525
1.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
26+
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
2627
********************************************************************************************************************************/
2728

2829
#include "defines.h"

examples/Async_ESP32WM_Config/defines.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,21 @@
9797
#define CONFIG_TIMEOUT 120000L
9898

9999
#define USE_DYNAMIC_PARAMETERS true
100+
101+
/////////////////////////////////////////////
102+
103+
#define REQUIRE_ONE_SET_SSID_PW false
104+
105+
#define SCAN_WIFI_NETWORKS true
106+
107+
// To be able to manually input SSID, not from a scanned SSID lists
108+
#define MANUAL_SSID_INPUT_ALLOWED true
109+
110+
// From 2-15
111+
#define MAX_SSID_IN_LIST 8
112+
113+
/////////////////////////////////////////////
114+
100115
//////////////////////////////////////////
101116
// Those above #define's must be placed before #include <BlynkSimpleEsp32_Async_WM.h>
102117

examples/Async_ESP32WM_ForcedConfig/Async_ESP32WM_ForcedConfig.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
99
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
1010
Licensed under MIT license
11-
Version: 1.4.1
11+
Version: 1.5.0
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.4.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
2424
Fix SSL issue with Blynk Cloud Server
2525
1.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
26+
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
2627
********************************************************************************************************************************/
2728

2829
#include "defines.h"

examples/Async_ESP32WM_ForcedConfig/defines.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,21 @@
9797
#define CONFIG_TIMEOUT 120000L
9898

9999
#define USE_DYNAMIC_PARAMETERS true
100+
101+
/////////////////////////////////////////////
102+
103+
#define REQUIRE_ONE_SET_SSID_PW false
104+
105+
#define SCAN_WIFI_NETWORKS true
106+
107+
// To be able to manually input SSID, not from a scanned SSID lists
108+
#define MANUAL_SSID_INPUT_ALLOWED true
109+
110+
// From 2-15
111+
#define MAX_SSID_IN_LIST 8
112+
113+
/////////////////////////////////////////////
114+
100115
//////////////////////////////////////////
101116
// Those above #define's must be placed before #include <BlynkSimpleEsp32_Async_WM.h>
102117

0 commit comments

Comments
 (0)