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

Commit

Permalink
v1.5.0 to enable scan of WiFi networks
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
khoih-prog committed Apr 25, 2021
1 parent 07b871f commit af6b681
Show file tree
Hide file tree
Showing 43 changed files with 379 additions and 28 deletions.
3 changes: 2 additions & 1 deletion examples/Async_AM2315_ESP32_SSL/Async_AM2315_ESP32_SSL.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
Licensed under MIT license
Version: 1.4.1
Version: 1.5.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -23,6 +23,7 @@
1.4.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.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
********************************************************************************************************************************/

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

#define USE_DYNAMIC_PARAMETERS true

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

#define REQUIRE_ONE_SET_SSID_PW 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

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

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

Expand Down
3 changes: 2 additions & 1 deletion examples/Async_AM2315_ESP8266/Async_AM2315_ESP8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
Licensed under MIT license
Version: 1.4.1
Version: 1.5.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -23,6 +23,7 @@
1.4.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.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
********************************************************************************************************************************/

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

#define USE_DYNAMIC_PARAMETERS true

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

#define REQUIRE_ONE_SET_SSID_PW 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

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

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

Expand Down
17 changes: 16 additions & 1 deletion examples/Async_Blynk_WM_Template/Async_Blynk_WM_Template.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
Licensed under MIT license
Version: 1.4.1
Version: 1.5.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -25,6 +25,7 @@
1.4.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.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.5.0 K Hoang 25/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 @@ -235,6 +236,20 @@
#define CONFIG_TIMEOUT_RETRYTIMES_BEFORE_RESET 3 // Library default is 10 (times 2) - DEBUG SET AT 2
#define RESET_IF_CONFIG_TIMEOUT true

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

#define REQUIRE_ONE_SET_SSID_PW 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

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


// NOT NECESSARY TO MODIFY
// COMPILE-TIME LOGIC: AUTOMATIC WIFI LIBRARY SELECTION
Expand Down
3 changes: 2 additions & 1 deletion examples/Async_DHT11ESP32/Async_DHT11ESP32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
Licensed under MIT license
Version: 1.4.1
Version: 1.5.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -23,6 +23,7 @@
1.4.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.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
********************************************************************************************************************************/

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

#define USE_DYNAMIC_PARAMETERS true

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

#define REQUIRE_ONE_SET_SSID_PW 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

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

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

Expand Down
3 changes: 2 additions & 1 deletion examples/Async_DHT11ESP32_SSL/Async_DHT11ESP32_SSL.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
Licensed under MIT license
Version: 1.4.1
Version: 1.5.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -23,6 +23,7 @@
1.4.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.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
********************************************************************************************************************************/

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

#define USE_DYNAMIC_PARAMETERS true

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

#define REQUIRE_ONE_SET_SSID_PW 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

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

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

Expand Down
3 changes: 2 additions & 1 deletion examples/Async_DHT11ESP8266/Async_DHT11ESP8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
Licensed under MIT license
Version: 1.4.1
Version: 1.5.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -23,6 +23,7 @@
1.4.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.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
********************************************************************************************************************************/

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

#define USE_DYNAMIC_PARAMETERS true

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

#define REQUIRE_ONE_SET_SSID_PW 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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
Licensed under MIT license
Version: 1.4.1
Version: 1.5.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -23,6 +23,7 @@
1.4.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.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
********************************************************************************************************************************/
#include "defines.h"

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

#define USE_DYNAMIC_PARAMETERS true

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

#define REQUIRE_ONE_SET_SSID_PW 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

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

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

Expand Down
3 changes: 2 additions & 1 deletion examples/Async_DHT11ESP8266_SSL/Async_DHT11ESP8266_SSL.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
Licensed under MIT license
Version: 1.4.1
Version: 1.5.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -23,6 +23,7 @@
1.4.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.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
********************************************************************************************************************************/

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

#define USE_DYNAMIC_PARAMETERS true

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

#define REQUIRE_ONE_SET_SSID_PW 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

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

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

Expand Down
3 changes: 2 additions & 1 deletion examples/Async_ESP32WM_Config/Async_ESP32WM_Config.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
Licensed under MIT license
Version: 1.4.1
Version: 1.5.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -23,6 +23,7 @@
1.4.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.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
********************************************************************************************************************************/

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

#define USE_DYNAMIC_PARAMETERS true

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

#define REQUIRE_ONE_SET_SSID_PW 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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
Licensed under MIT license
Version: 1.4.1
Version: 1.5.0

Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -23,6 +23,7 @@
1.4.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.4.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
********************************************************************************************************************************/

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

#define USE_DYNAMIC_PARAMETERS true

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

#define REQUIRE_ONE_SET_SSID_PW 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

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

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

Expand Down
Loading

0 comments on commit af6b681

Please sign in to comment.