Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit c554456

Browse files
authored
v1.4.0 to enable scan of WiFi networks
### Major Release v1.4.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 12fe4fb commit c554456

Some content is hidden

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

41 files changed

+2090
-177
lines changed

README.md

Lines changed: 333 additions & 16 deletions
Large diffs are not rendered by default.

examples/AM2315_ESP32_SSL/AM2315_ESP32_SSL.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
99
Licensed under MIT license
10-
Version: 1.3.1
10+
Version: 1.4.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -36,6 +36,7 @@
3636
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
3737
Fix SSL issue with Blynk Cloud Server
3838
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
39+
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
3940
*****************************************************************************************************************************/
4041

4142
#include "defines.h"

examples/AM2315_ESP32_SSL/defines.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,19 @@
9494
#define CONFIG_TIMEOUT 120000L
9595

9696
#define USE_DYNAMIC_PARAMETERS true
97+
98+
/////////////////////////////////////////////
99+
100+
#define SCAN_WIFI_NETWORKS true
101+
102+
// To be able to manually input SSID, not from a scanned SSID lists
103+
#define MANUAL_SSID_INPUT_ALLOWED true
104+
105+
// From 2-15
106+
#define MAX_SSID_IN_LIST 8
107+
108+
/////////////////////////////////////////////
109+
97110
// Those above #define's must be placed before #include <BlynkSimpleEsp32_WM.h> and <BlynkSimpleEsp32_SSL_WM.h>
98111
//////////////////////////////////////////
99112

examples/AM2315_ESP8266/AM2315_ESP8266.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
99
Licensed under MIT license
10-
Version: 1.3.1
10+
Version: 1.4.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -36,6 +36,7 @@
3636
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
3737
Fix SSL issue with Blynk Cloud Server
3838
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
39+
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
3940
*****************************************************************************************************************************/
4041

4142
#include "defines.h"

examples/AM2315_ESP8266/defines.h

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

8181
#define USE_DYNAMIC_PARAMETERS true
82+
83+
/////////////////////////////////////////////
84+
85+
#define SCAN_WIFI_NETWORKS true
86+
87+
// To be able to manually input SSID, not from a scanned SSID lists
88+
#define MANUAL_SSID_INPUT_ALLOWED true
89+
90+
// From 2-15
91+
#define MAX_SSID_IN_LIST 8
92+
93+
/////////////////////////////////////////////
94+
8295
// Those above #define's must be placed before #include <BlynkSimpleEsp8266_WM.h> and <BlynkSimpleEsp8266_SSL_WM.h>
8396
//////////////////////////////////////////
8497

examples/Blynk_WM_Template/Blynk_WM_Template.ino

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
99
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
1010
Licensed under MIT license
11-
Version: 1.3.1
11+
Version: 1.4.0
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -37,6 +37,7 @@
3737
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
3838
Fix SSL issue with Blynk Cloud Server
3939
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
40+
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
4041
*****************************************************************************************************************************/
4142

4243
// Sketch uses Arduino IDE-selected ESP32 and ESP8266 to select compile choices
@@ -155,6 +156,17 @@
155156
#define USE_DYNAMIC_PARAMETERS true
156157
//#define USE_DYNAMIC_PARAMETERS false
157158

159+
/////////////////////////////////////////////
160+
161+
#define SCAN_WIFI_NETWORKS true
162+
163+
// To be able to manually input SSID, not from a scanned SSID lists
164+
#define MANUAL_SSID_INPUT_ALLOWED true
165+
166+
// From 2-15
167+
#define MAX_SSID_IN_LIST 8
168+
169+
/////////////////////////////////////////////
158170

159171
///////////////////////////////////////////////////////////////////////////////////////////
160172
//// COMPILER SWITCH SELECTION - USE DEFAULT CONFIG PORTAL FIELD DATA OR NOT //////////////

examples/DHT11ESP32/DHT11ESP32.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
99
Licensed under MIT license
10-
Version: 1.3.1
10+
Version: 1.4.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -36,6 +36,7 @@
3636
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
3737
Fix SSL issue with Blynk Cloud Server
3838
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
39+
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
3940
*****************************************************************************************************************************/
4041

4142
#include "defines.h"

examples/DHT11ESP32/defines.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,18 @@
9292
#define CONFIG_TIMEOUT 120000L
9393

9494
#define USE_DYNAMIC_PARAMETERS true
95+
96+
/////////////////////////////////////////////
97+
98+
#define SCAN_WIFI_NETWORKS true
99+
100+
// To be able to manually input SSID, not from a scanned SSID lists
101+
#define MANUAL_SSID_INPUT_ALLOWED true
102+
103+
// From 2-15
104+
#define MAX_SSID_IN_LIST 8
105+
106+
/////////////////////////////////////////////
95107
// Those above #define's must be placed before #include <BlynkSimpleEsp32_WM.h> and <BlynkSimpleEsp32_SSL_WM.h>
96108
//////////////////////////////////////////
97109

examples/DHT11ESP32_SSL/DHT11ESP32_SSL.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
99
Licensed under MIT license
10-
Version: 1.3.1
10+
Version: 1.4.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -36,6 +36,7 @@
3636
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
3737
Fix SSL issue with Blynk Cloud Server
3838
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
39+
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
3940
*****************************************************************************************************************************/
4041

4142
#include "defines.h"

examples/DHT11ESP32_SSL/defines.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,19 @@
9292
#define CONFIG_TIMEOUT 120000L
9393

9494
#define USE_DYNAMIC_PARAMETERS true
95+
96+
/////////////////////////////////////////////
97+
98+
#define SCAN_WIFI_NETWORKS true
99+
100+
// To be able to manually input SSID, not from a scanned SSID lists
101+
#define MANUAL_SSID_INPUT_ALLOWED true
102+
103+
// From 2-15
104+
#define MAX_SSID_IN_LIST 8
105+
106+
/////////////////////////////////////////////
107+
95108
// Those above #define's must be placed before #include <BlynkSimpleEsp32_WM.h> and <BlynkSimpleEsp32_SSL_WM.h>
96109
//////////////////////////////////////////
97110

examples/DHT11ESP8266/DHT11ESP8266.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
99
Licensed under MIT license
10-
Version: 1.3.1
10+
Version: 1.4.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -36,6 +36,7 @@
3636
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
3737
Fix SSL issue with Blynk Cloud Server
3838
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
39+
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
3940
*****************************************************************************************************************************/
4041

4142
#include "defines.h"

examples/DHT11ESP8266/defines.h

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

8282
#define USE_DYNAMIC_PARAMETERS true
83+
84+
/////////////////////////////////////////////
85+
86+
#define SCAN_WIFI_NETWORKS true
87+
88+
// To be able to manually input SSID, not from a scanned SSID lists
89+
#define MANUAL_SSID_INPUT_ALLOWED true
90+
91+
// From 2-15
92+
#define MAX_SSID_IN_LIST 8
93+
94+
/////////////////////////////////////////////
8395

8496
// Those above #define's must be placed before #include <BlynkSimpleEsp8266_WM.h> and <BlynkSimpleEsp8266_SSL_WM.h>
8597
#if USE_SSL

examples/DHT11ESP8266_Debug/DHT11ESP8266_Debug.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
99
Licensed under MIT license
10-
Version: 1.3.1
10+
Version: 1.4.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -36,6 +36,7 @@
3636
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
3737
Fix SSL issue with Blynk Cloud Server
3838
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
39+
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
3940
*****************************************************************************************************************************/
4041
#include "defines.h"
4142

examples/DHT11ESP8266_Debug/defines.h

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

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

8598
#if USE_SSL

examples/DHT11ESP8266_SSL/DHT11ESP8266_SSL.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
99
Licensed under MIT license
10-
Version: 1.3.1
10+
Version: 1.4.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -36,6 +36,7 @@
3636
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
3737
Fix SSL issue with Blynk Cloud Server
3838
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
39+
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
3940
*****************************************************************************************************************************/
4041

4142
#include "defines.h"

examples/DHT11ESP8266_SSL/defines.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@
7878
#define CONFIG_TIMEOUT 120000L
7979

8080
#define USE_DYNAMIC_PARAMETERS true
81+
82+
/////////////////////////////////////////////
83+
84+
#define SCAN_WIFI_NETWORKS true
85+
86+
// To be able to manually input SSID, not from a scanned SSID lists
87+
#define MANUAL_SSID_INPUT_ALLOWED true
88+
89+
// From 2-15
90+
#define MAX_SSID_IN_LIST 8
91+
92+
/////////////////////////////////////////////
93+
8194
// Those above #define's must be placed before #include <BlynkSimpleEsp8266_WM.h> and <BlynkSimpleEsp8266_SSL_WM.h>
8295

8396
#if USE_SSL

examples/ESP32WM_Config/ESP32WM_Config.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
99
Licensed under MIT license
10-
Version: 1.3.1
10+
Version: 1.4.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -36,6 +36,7 @@
3636
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
3737
Fix SSL issue with Blynk Cloud Server
3838
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
39+
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
3940
*****************************************************************************************************************************/
4041

4142
#include "defines.h"

examples/ESP32WM_Config/defines.h

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

8484
#define USE_DYNAMIC_PARAMETERS true
85+
86+
/////////////////////////////////////////////
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+
8598
// Those above #define's must be placed before #include <BlynkSimpleEsp32_WM.h> and <BlynkSimpleEsp32_SSL_WM.h>
8699
//////////////////////////////////////////
87100

examples/ESP32WM_ForcedConfig/ESP32WM_ForcedConfig.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
99
Licensed under MIT license
10-
Version: 1.3.1
10+
Version: 1.4.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -36,6 +36,7 @@
3636
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
3737
Fix SSL issue with Blynk Cloud Server
3838
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
39+
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
3940
*****************************************************************************************************************************/
4041

4142
#include "defines.h"

examples/ESP32WM_ForcedConfig/defines.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,19 @@
8484
#define CONFIG_TIMEOUT 120000L
8585

8686
#define USE_DYNAMIC_PARAMETERS true
87+
88+
/////////////////////////////////////////////
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+
87100
// Those above #define's must be placed before #include <BlynkSimpleEsp32_WM.h> and <BlynkSimpleEsp32_SSL_WM.h>
88101
//////////////////////////////////////////
89102

examples/ESP32WM_MRD_Config/ESP32WM_MRD_Config.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
99
Licensed under MIT license
10-
Version: 1.3.1
10+
Version: 1.4.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -36,6 +36,7 @@
3636
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
3737
Fix SSL issue with Blynk Cloud Server
3838
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
39+
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
3940
*****************************************************************************************************************************/
4041

4142
#include "defines.h"

0 commit comments

Comments
 (0)