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

0 commit comments

Comments
 (0)