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

Commit

Permalink
v1.4.0 to enable scan of WiFi networks
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
khoih-prog committed Apr 25, 2021
1 parent 12fe4fb commit c554456
Show file tree
Hide file tree
Showing 41 changed files with 2,090 additions and 177 deletions.
349 changes: 333 additions & 16 deletions README.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion examples/AM2315_ESP32_SSL/AM2315_ESP32_SSL.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
Licensed under MIT license
Version: 1.3.1
Version: 1.4.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -36,6 +36,7 @@
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
Fix SSL issue with Blynk Cloud Server
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
13 changes: 13 additions & 0 deletions examples/AM2315_ESP32_SSL/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,19 @@
#define CONFIG_TIMEOUT 120000L

#define USE_DYNAMIC_PARAMETERS true

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

#define SCAN_WIFI_NETWORKS true

// To be able to manually input SSID, not from a scanned SSID lists
#define MANUAL_SSID_INPUT_ALLOWED true

// From 2-15
#define MAX_SSID_IN_LIST 8

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

// Those above #define's must be placed before #include <BlynkSimpleEsp32_WM.h> and <BlynkSimpleEsp32_SSL_WM.h>
//////////////////////////////////////////

Expand Down
3 changes: 2 additions & 1 deletion examples/AM2315_ESP8266/AM2315_ESP8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
Licensed under MIT license
Version: 1.3.1
Version: 1.4.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -36,6 +36,7 @@
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
Fix SSL issue with Blynk Cloud Server
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
13 changes: 13 additions & 0 deletions examples/AM2315_ESP8266/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@
#define CONFIG_TIMEOUT 120000L

#define USE_DYNAMIC_PARAMETERS true

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

#define SCAN_WIFI_NETWORKS true

// To be able to manually input SSID, not from a scanned SSID lists
#define MANUAL_SSID_INPUT_ALLOWED true

// From 2-15
#define MAX_SSID_IN_LIST 8

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

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

Expand Down
14 changes: 13 additions & 1 deletion examples/Blynk_WM_Template/Blynk_WM_Template.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
Licensed under MIT license
Version: 1.3.1
Version: 1.4.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -37,6 +37,7 @@
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
Fix SSL issue with Blynk Cloud Server
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
*****************************************************************************************************************************/

// Sketch uses Arduino IDE-selected ESP32 and ESP8266 to select compile choices
Expand Down Expand Up @@ -155,6 +156,17 @@
#define USE_DYNAMIC_PARAMETERS true
//#define USE_DYNAMIC_PARAMETERS false

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

#define SCAN_WIFI_NETWORKS true

// To be able to manually input SSID, not from a scanned SSID lists
#define MANUAL_SSID_INPUT_ALLOWED true

// From 2-15
#define MAX_SSID_IN_LIST 8

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

///////////////////////////////////////////////////////////////////////////////////////////
//// COMPILER SWITCH SELECTION - USE DEFAULT CONFIG PORTAL FIELD DATA OR NOT //////////////
Expand Down
3 changes: 2 additions & 1 deletion examples/DHT11ESP32/DHT11ESP32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
Licensed under MIT license
Version: 1.3.1
Version: 1.4.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -36,6 +36,7 @@
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
Fix SSL issue with Blynk Cloud Server
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
12 changes: 12 additions & 0 deletions examples/DHT11ESP32/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@
#define CONFIG_TIMEOUT 120000L

#define USE_DYNAMIC_PARAMETERS true

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

#define SCAN_WIFI_NETWORKS true

// To be able to manually input SSID, not from a scanned SSID lists
#define MANUAL_SSID_INPUT_ALLOWED true

// From 2-15
#define MAX_SSID_IN_LIST 8

/////////////////////////////////////////////
// Those above #define's must be placed before #include <BlynkSimpleEsp32_WM.h> and <BlynkSimpleEsp32_SSL_WM.h>
//////////////////////////////////////////

Expand Down
3 changes: 2 additions & 1 deletion examples/DHT11ESP32_SSL/DHT11ESP32_SSL.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
Licensed under MIT license
Version: 1.3.1
Version: 1.4.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -36,6 +36,7 @@
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
Fix SSL issue with Blynk Cloud Server
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
13 changes: 13 additions & 0 deletions examples/DHT11ESP32_SSL/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,19 @@
#define CONFIG_TIMEOUT 120000L

#define USE_DYNAMIC_PARAMETERS true

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

#define SCAN_WIFI_NETWORKS true

// To be able to manually input SSID, not from a scanned SSID lists
#define MANUAL_SSID_INPUT_ALLOWED true

// From 2-15
#define MAX_SSID_IN_LIST 8

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

// Those above #define's must be placed before #include <BlynkSimpleEsp32_WM.h> and <BlynkSimpleEsp32_SSL_WM.h>
//////////////////////////////////////////

Expand Down
3 changes: 2 additions & 1 deletion examples/DHT11ESP8266/DHT11ESP8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
Licensed under MIT license
Version: 1.3.1
Version: 1.4.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -36,6 +36,7 @@
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
Fix SSL issue with Blynk Cloud Server
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
12 changes: 12 additions & 0 deletions examples/DHT11ESP8266/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@
#define CONFIG_TIMEOUT 120000L

#define USE_DYNAMIC_PARAMETERS true

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

#define SCAN_WIFI_NETWORKS true

// To be able to manually input SSID, not from a scanned SSID lists
#define MANUAL_SSID_INPUT_ALLOWED true

// From 2-15
#define MAX_SSID_IN_LIST 8

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

// Those above #define's must be placed before #include <BlynkSimpleEsp8266_WM.h> and <BlynkSimpleEsp8266_SSL_WM.h>
#if USE_SSL
Expand Down
3 changes: 2 additions & 1 deletion examples/DHT11ESP8266_Debug/DHT11ESP8266_Debug.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
Licensed under MIT license
Version: 1.3.1
Version: 1.4.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -36,6 +36,7 @@
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
Fix SSL issue with Blynk Cloud Server
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
*****************************************************************************************************************************/
#include "defines.h"

Expand Down
13 changes: 13 additions & 0 deletions examples/DHT11ESP8266_Debug/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,19 @@
#define CONFIG_TIMEOUT 120000L

#define USE_DYNAMIC_PARAMETERS true

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

#define SCAN_WIFI_NETWORKS true

// To be able to manually input SSID, not from a scanned SSID lists
#define MANUAL_SSID_INPUT_ALLOWED true

// From 2-15
#define MAX_SSID_IN_LIST 8

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

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

#if USE_SSL
Expand Down
3 changes: 2 additions & 1 deletion examples/DHT11ESP8266_SSL/DHT11ESP8266_SSL.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
Licensed under MIT license
Version: 1.3.1
Version: 1.4.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -36,6 +36,7 @@
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
Fix SSL issue with Blynk Cloud Server
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
13 changes: 13 additions & 0 deletions examples/DHT11ESP8266_SSL/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,19 @@
#define CONFIG_TIMEOUT 120000L

#define USE_DYNAMIC_PARAMETERS true

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

#define SCAN_WIFI_NETWORKS true

// To be able to manually input SSID, not from a scanned SSID lists
#define MANUAL_SSID_INPUT_ALLOWED true

// From 2-15
#define MAX_SSID_IN_LIST 8

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

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

#if USE_SSL
Expand Down
3 changes: 2 additions & 1 deletion examples/ESP32WM_Config/ESP32WM_Config.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
Licensed under MIT license
Version: 1.3.1
Version: 1.4.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -36,6 +36,7 @@
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
Fix SSL issue with Blynk Cloud Server
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
13 changes: 13 additions & 0 deletions examples/ESP32WM_Config/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,19 @@
#define CONFIG_TIMEOUT 120000L

#define USE_DYNAMIC_PARAMETERS true

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

#define SCAN_WIFI_NETWORKS true

// To be able to manually input SSID, not from a scanned SSID lists
#define MANUAL_SSID_INPUT_ALLOWED true

// From 2-15
#define MAX_SSID_IN_LIST 8

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

// Those above #define's must be placed before #include <BlynkSimpleEsp32_WM.h> and <BlynkSimpleEsp32_SSL_WM.h>
//////////////////////////////////////////

Expand Down
3 changes: 2 additions & 1 deletion examples/ESP32WM_ForcedConfig/ESP32WM_ForcedConfig.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
Licensed under MIT license
Version: 1.3.1
Version: 1.4.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -36,6 +36,7 @@
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
Fix SSL issue with Blynk Cloud Server
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
13 changes: 13 additions & 0 deletions examples/ESP32WM_ForcedConfig/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@
#define CONFIG_TIMEOUT 120000L

#define USE_DYNAMIC_PARAMETERS true

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

#define SCAN_WIFI_NETWORKS true

// To be able to manually input SSID, not from a scanned SSID lists
#define MANUAL_SSID_INPUT_ALLOWED true

// From 2-15
#define MAX_SSID_IN_LIST 8

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

// Those above #define's must be placed before #include <BlynkSimpleEsp32_WM.h> and <BlynkSimpleEsp32_SSL_WM.h>
//////////////////////////////////////////

Expand Down
3 changes: 2 additions & 1 deletion examples/ESP32WM_MRD_Config/ESP32WM_MRD_Config.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
Licensed under MIT license
Version: 1.3.1
Version: 1.4.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -36,6 +36,7 @@
1.3.0 K Hoang 19/04/2021 Add LittleFS and SPIFFS support to ESP32-S2. Add support to ESP32-C3 without LittleFS
Fix SSL issue with Blynk Cloud Server
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
Loading

0 comments on commit c554456

Please sign in to comment.