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

Commit a2ff908

Browse files
authored
v1.2.1
### Releases v1.2.1 1. Add functions to control Config Portal from software or Virtual Switches. Check [How to trigger a Config Portal from code #25](khoih-prog/Blynk_WM#25) 2. Add examples to demo the new Virtual ConfigPortal SW feature 3. Optimize code
1 parent 4180d26 commit a2ff908

File tree

91 files changed

+4041
-1236
lines changed

Some content is hidden

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

91 files changed

+4041
-1236
lines changed

examples/Async_AM2315_ESP32_SSL/Async_AM2315_ESP32_SSL.ino

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
/*******************************************************************************************************************************
2-
Async_AM2315_ESP32_SSL.ino
3-
For ESP32 boards
4-
5-
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6-
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7-
8-
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9-
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10-
Licensed under MIT license
11-
Version: 1.2.0
12-
13-
Version Modified By Date Comments
14-
------- ----------- ---------- -----------
15-
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16-
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17-
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18-
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
2+
Async_AM2315_ESP32_SSL.ino
3+
For ESP32 boards
4+
5+
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6+
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7+
8+
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9+
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10+
Licensed under MIT license
11+
Version: 1.2.1
12+
13+
Version Modified By Date Comments
14+
------- ----------- ---------- -----------
15+
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16+
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17+
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18+
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
19+
1.2.1 K Hoang 16/01/2021 Add functions to control Config Portal from software or Virtual Switches
1920
********************************************************************************************************************************/
2021

2122
#include "defines.h"

examples/Async_AM2315_ESP32_SSL/Credentials.h

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
/*******************************************************************************************************************************
2-
Credentials.h
3-
For ESP32 boards
4-
5-
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6-
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7-
8-
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9-
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10-
Licensed under MIT license
11-
Version: 1.2.0
12-
13-
Version Modified By Date Comments
14-
------- ----------- ---------- -----------
15-
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16-
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17-
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18-
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
2+
Credentials.h
3+
For ESP32 boards
4+
5+
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6+
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7+
8+
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9+
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10+
Licensed under MIT license
11+
Version: 1.2.1
12+
13+
Version Modified By Date Comments
14+
------- ----------- ---------- -----------
15+
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16+
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17+
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18+
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
19+
1.2.1 K Hoang 16/01/2021 Add functions to control Config Portal from software or Virtual Switches
1920
********************************************************************************************************************************/
2021

2122
#ifndef Credentials_h

examples/Async_AM2315_ESP32_SSL/defines.h

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
/****************************************************************************************************************************
2-
defines.h
3-
For ESP32 boards
4-
5-
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6-
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7-
8-
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9-
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10-
Licensed under MIT license
11-
Version: 1.2.0
12-
13-
Version Modified By Date Comments
14-
------- ----------- ---------- -----------
15-
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16-
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17-
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18-
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
2+
defines.h
3+
For ESP32 boards
4+
5+
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6+
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7+
8+
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9+
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10+
Licensed under MIT license
11+
Version: 1.2.1
12+
13+
Version Modified By Date Comments
14+
------- ----------- ---------- -----------
15+
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16+
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17+
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18+
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
19+
1.2.1 K Hoang 16/01/2021 Add functions to control Config Portal from software or Virtual Switches
1920
********************************************************************************************************************************/
2021

2122
#ifndef defines_h
@@ -35,7 +36,7 @@
3536
// (USE_LITTLEFS == true) and (USE_SPIFFS == false) => using LITTLEFS for configuration data in WiFiManager
3637
// (USE_LITTLEFS == true) and (USE_SPIFFS == true) => using LITTLEFS for configuration data in WiFiManager
3738
// (USE_LITTLEFS == false) and (USE_SPIFFS == true) => using SPIFFS for configuration data in WiFiManager
38-
// Those above #define's must be placed before #include <BlynkSimpleEsp32_WFM.h>
39+
// Those above #define's must be placed before #include <BlynkSimpleEsp32_Async_WM.h>
3940

4041
#define USE_LITTLEFS true
4142
#define USE_SPIFFS false
@@ -62,6 +63,8 @@
6263
#define TIMEOUT_RECONNECT_WIFI 10000L
6364
#define RESET_IF_CONFIG_TIMEOUT true
6465
#define CONFIG_TIMEOUT_RETRYTIMES_BEFORE_RESET 5
66+
67+
#define USE_DYNAMIC_PARAMETERS true
6568
// Those above #define's must be placed before #include <BlynkSimpleEsp8266_Async_WM.h>
6669

6770
//You have to download Blynk WiFiManager Blynk_Async_WM library at //https://github.com/khoih-prog/Blynk_Async_WM

examples/Async_AM2315_ESP32_SSL/dynamicParams.h

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
/****************************************************************************************************************************
2-
dynamicParams.h
3-
For ESP32 boards
2+
dynamicParams.h
3+
For ESP32 boards
44
5-
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6-
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7-
8-
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9-
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10-
Licensed under MIT license
11-
Version: 1.2.0
5+
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6+
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7+
8+
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9+
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10+
Licensed under MIT license
11+
Version: 1.2.1
1212
13-
Version Modified By Date Comments
14-
------- ----------- ---------- -----------
15-
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16-
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17-
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18-
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
13+
Version Modified By Date Comments
14+
------- ----------- ---------- -----------
15+
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16+
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17+
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18+
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
19+
1.2.1 K Hoang 16/01/2021 Add functions to control Config Portal from software or Virtual Switches
1920
********************************************************************************************************************************/
2021

2122
#ifndef dynamicParams_h
2223
#define dynamicParams_h
2324

24-
#define USE_DYNAMIC_PARAMETERS true
25+
// USE_DYNAMIC_PARAMETERS defined in defined.h
2526

2627
/////////////// Start dynamic Credentials ///////////////
2728

examples/Async_AM2315_ESP8266/Async_AM2315_ESP8266.ino

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
/****************************************************************************************************************************
2-
Async_AM2315_ESP8266.ino
3-
For ESP8266 boards
4-
5-
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6-
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7-
8-
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9-
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10-
Licensed under MIT license
11-
Version: 1.2.0
12-
13-
Version Modified By Date Comments
14-
------- ----------- ---------- -----------
15-
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16-
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17-
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18-
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
2+
Async_AM2315_ESP8266.ino
3+
For ESP8266 boards
4+
5+
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6+
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7+
8+
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9+
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10+
Licensed under MIT license
11+
Version: 1.2.1
12+
13+
Version Modified By Date Comments
14+
------- ----------- ---------- -----------
15+
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16+
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17+
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18+
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
19+
1.2.1 K Hoang 16/01/2021 Add functions to control Config Portal from software or Virtual Switches
1920
********************************************************************************************************************************/
2021

2122
#include "defines.h"

examples/Async_AM2315_ESP8266/Credentials.h

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
/****************************************************************************************************************************
2-
Credentials.h
3-
For ESP8266 boards
4-
5-
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6-
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7-
8-
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9-
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10-
Licensed under MIT license
11-
Version: 1.2.0
12-
13-
Version Modified By Date Comments
14-
------- ----------- ---------- -----------
15-
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16-
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17-
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18-
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
2+
Credentials.h
3+
For ESP8266 boards
4+
5+
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6+
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7+
8+
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9+
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10+
Licensed under MIT license
11+
Version: 1.2.1
12+
13+
Version Modified By Date Comments
14+
------- ----------- ---------- -----------
15+
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16+
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17+
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18+
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
19+
1.2.1 K Hoang 16/01/2021 Add functions to control Config Portal from software or Virtual Switches
1920
********************************************************************************************************************************/
2021

2122
#ifndef Credentials_h

examples/Async_AM2315_ESP8266/defines.h

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
/****************************************************************************************************************************
2-
defines.h
3-
For ESP8266 boards
4-
5-
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6-
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7-
8-
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9-
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10-
Licensed under MIT license
11-
Version: 1.2.0
12-
13-
Version Modified By Date Comments
14-
------- ----------- ---------- -----------
15-
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16-
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17-
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18-
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
2+
defines.h
3+
For ESP8266 boards
4+
5+
Blynk_Async_WM is a library, using AsyncWebServer instead of (ESP8266)WebServer for the ESP8266/ESP32 to enable easy
6+
configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk.
7+
8+
Based on and modified from Blynk library v0.6.1 (https://github.com/blynkkk/blynk-library/releases)
9+
Built by Khoi Hoang (https://github.com/khoih-prog/Blynk_Async_WM)
10+
Licensed under MIT license
11+
Version: 1.2.1
12+
13+
Version Modified By Date Comments
14+
------- ----------- ---------- -----------
15+
1.0.16 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
16+
Bump up to v1.0.16 to sync with Blynk_WM v1.0.16
17+
1.1.0 K Hoang 26/11/2020 Add examples using RTOS MultiTask to avoid blocking in operation.
18+
1.2.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
19+
1.2.1 K Hoang 16/01/2021 Add functions to control Config Portal from software or Virtual Switches
1920
********************************************************************************************************************************/
2021

2122
#ifndef defines_h
@@ -28,7 +29,7 @@
2829
#define BLYNK_PRINT Serial
2930

3031
#define DOUBLERESETDETECTOR_DEBUG false
31-
#define BLYNK_WM_DEBUG 0
32+
#define BLYNK_WM_DEBUG 1
3233

3334
// #define USE_SPIFFS and USE_LITTLEFS false => using EEPROM for configuration data in WiFiManager
3435
// #define USE_LITTLEFS true => using LITTLEFS for configuration data in WiFiManager
@@ -38,9 +39,7 @@
3839
// Select USE_LITTLEFS (higher priority) or USE_SPIFFS
3940

4041
#define USE_LITTLEFS true
41-
//#define USE_LITTLEFS false
4242
#define USE_SPIFFS false
43-
//#define USE_SPIFFS true
4443

4544
#if USE_LITTLEFS
4645
//LittleFS has higher priority
@@ -58,7 +57,7 @@
5857
// EEPROM_SIZE must be <= 4096 and >= CONFIG_DATA_SIZE (currently 172 bytes)
5958
#define EEPROM_SIZE (4 * 1024)
6059
// EEPROM_START + CONFIG_DATA_SIZE must be <= EEPROM_SIZE
61-
#define EEPROM_START 768
60+
#define EEPROM_START 0
6261
#endif
6362

6463
//You have to download Blynk WiFiManager Blynk_Async_WM library at //https://github.com/khoih-prog/Blynk_Async_WM
@@ -69,6 +68,9 @@
6968
#define USE_SSL false
7069

7170
#if USE_BLYNK_WM
71+
72+
#define USE_DYNAMIC_PARAMETERS true
73+
7274
#if USE_SSL
7375
#include <BlynkSimpleEsp8266_SSL_Async_WM.h> //https://github.com/khoih-prog/Blynk_Async_WM
7476
#else

0 commit comments

Comments
 (0)