From 07b871f35122ef256145bb5ebbd0ef61a60b0cec Mon Sep 17 00:00:00 2001
From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com>
Date: Sat, 24 Apr 2021 15:12:39 -0400
Subject: [PATCH] v1.4.1 to fix EP32 custom Blynk port bug
### Releases v1.4.1
1. Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32. Check [Custom Blynk port not working for BlynkSimpleEsp32_Async_WM.h #4](https://github.com/khoih-prog/Blynk_Async_WM/issues/4)
---
README.md | 32 ++++++++++++++++++---------
library.json | 4 ++--
library.properties | 2 +-
src/BlynkSimpleEsp32_Async_WM.h | 7 +++---
src/BlynkSimpleEsp32_SSL_Async_WM.h | 7 +++---
src/BlynkSimpleEsp8266_Async_WM.h | 5 +++--
src/BlynkSimpleEsp8266_SSL_Async_WM.h | 5 +++--
7 files changed, 38 insertions(+), 24 deletions(-)
diff --git a/README.md b/README.md
index db7510b..ab54bd3 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,7 @@
* [Why using SSL insecured mode now](#why-using-ssl-insecured-mode-now)
* [Currently supported Boards](#currently-supported-boards)
* [Changelog](#changelog)
+ * [Releases v1.4.1](#releases-v141)
* [Major Releases v1.4.0](#major-releases-v140)
* [Major Releases v1.3.0](#major-releases-v130)
* [Releases v1.2.3](#releases-v123)
@@ -184,6 +185,10 @@ This [**BlynkESP32_BT_WF** library](https://github.com/khoih-prog/BlynkESP32_BT_
## Changelog
+### Releases v1.4.1
+
+1. Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32. Check [Custom Blynk port not working for BlynkSimpleEsp32_Async_WM.h #4](https://github.com/khoih-prog/Blynk_Async_WM/issues/4)
+
### Major Releases v1.4.0
1. Add **LittleFS and SPIFFS** support to new **ESP32-S2** boards (**Arduino ESP32C3_DEV**). Check [HOWTO Install esp32 core for ESP32-S2 (Saola, AI-Thinker ESP-12K) and ESP32-C3 boards into Arduino IDE](#howto-install-esp32-core-for-esp32-s2-saola-ai-thinker-esp-12k-and-esp32-c3-boards-into-arduino-ide).
@@ -1844,7 +1849,7 @@ The following is the sample terminal output when running example [Async_ESP32WM_
```
Starting Async_ESP32WM_MRD_Config using LittleFS with SSL on ESP32_DEV
-Blynk_Async_WM SSL for ESP32 v1.4.0
+Blynk_Async_WM SSL for ESP32 v1.4.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
@@ -1923,7 +1928,7 @@ Pubs Topics = default-mqtt-PubTopic
```
Starting Async_ESP32WM_MRD_Config using LittleFS with SSL on ESP32_DEV
-Blynk_Async_WM SSL for ESP32 v1.4.0
+Blynk_Async_WM SSL for ESP32 v1.4.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFC0003
multiResetDetectorFlag = 0xFFFC0003
@@ -2028,7 +2033,7 @@ RFRFRF[188660] id: = HueNet1
```
Starting Async_ESP32WM_MRD_Config using LittleFS with SSL on ESP32_DEV
-Blynk_Async_WM SSL for ESP32 v1.4.0
+Blynk_Async_WM SSL for ESP32 v1.4.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
@@ -2377,7 +2382,7 @@ Blynk.resetAndEnterConfigPortal();
```
Starting Async_ESP32WM_MRD_ForcedConfig using LittleFS with SSL on ESP32_DEV
-Blynk_Async_WM SSL for ESP32 v1.4.0
+Blynk_Async_WM SSL for ESP32 v1.4.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
@@ -2468,7 +2473,7 @@ Non-Persistent CP will be removed after first reset, even you didn't enter the C
```
Starting Async_ESP32WM_MRD_ForcedConfig using LittleFS with SSL on ESP32_DEV
-Blynk_Async_WM SSL for ESP32 v1.4.0
+Blynk_Async_WM SSL for ESP32 v1.4.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
@@ -2583,7 +2588,7 @@ RF[66298] id: = HueNet1
```
Starting Async_ESP32WM_MRD_ForcedConfig using LittleFS with SSL on ESP32_DEV
-Blynk_Async_WM SSL for ESP32 v1.4.0
+Blynk_Async_WM SSL for ESP32 v1.4.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
@@ -2682,7 +2687,7 @@ Blynk.resetAndEnterConfigPortalPersistent();
```
Starting Async_ESP32WM_MRD_ForcedConfig using LittleFS with SSL on ESP32_DEV
-Blynk_Async_WM SSL for ESP32 v1.4.0
+Blynk_Async_WM SSL for ESP32 v1.4.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
@@ -2773,7 +2778,7 @@ Persistent CP will remain after resets. The only way to get rid of Config Portal
```
Starting Async_ESP32WM_MRD_ForcedConfig using LittleFS with SSL on ESP32_DEV
-Blynk_Async_WM SSL for ESP32 v1.4.0
+Blynk_Async_WM SSL for ESP32 v1.4.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
@@ -2885,7 +2890,7 @@ Enter CP, input (even fake data or none) and `Save` config data to exit persiste
```
Starting Async_ESP32WM_MRD_ForcedConfig using LittleFS with SSL on ESP32_DEV
-Blynk_Async_WM SSL for ESP32 v1.4.0
+Blynk_Async_WM SSL for ESP32 v1.4.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
@@ -2970,7 +2975,7 @@ The following is the sample terminal output when running example [Async_ESP32WM_
```
Starting Async_ESP32WM_ForcedConfig using LittleFS with SSL on ESP32S2_DEV
-Blynk_Async_WM SSL for ESP32 v1.4.0
+Blynk_Async_WM SSL for ESP32 v1.4.1
ESP_DoubleResetDetector v1.1.1
[958] Set CustomsStyle to :
[980] Set CustomsHeadElement to :
@@ -3075,6 +3080,10 @@ Sometimes, the library will only work if you update the board core to the latest
## Releases
+### Releases v1.4.1
+
+1. Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32. Check [Custom Blynk port not working for BlynkSimpleEsp32_Async_WM.h #4](https://github.com/khoih-prog/Blynk_Async_WM/issues/4)
+
### Major Releases v1.4.0
1. Add **LittleFS and SPIFFS** support to new **ESP32-S2** boards (**Arduino ESP32C3_DEV**). Check [HOWTO Install esp32 core for ESP32-S2 (Saola, AI-Thinker ESP-12K) and ESP32-C3 boards into Arduino IDE](#howto-install-esp32-core-for-esp32-s2-saola-ai-thinker-esp-12k-and-esp32-c3-boards-into-arduino-ide).
@@ -3186,7 +3195,7 @@ Check these new features thanks to his direct contribution and/or enhancement re
* [How to trigger a Config Portal from code #25](https://github.com/khoih-prog/Blynk_WM/issues/25)
* [Good new feature: Blynk.resetAndEnterConfigPortal() Thanks & question #27](https://github.com/khoih-prog/Blynk_WM/issues/27)
4. Thanks to good work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip) for working with, developing, debugging and testing.
-
+5. Thanks to [komaneko](https://github.com/jjskaife) to report bugs in [Custom Blynk port not working for BlynkSimpleEsp32_Async_WM.h #4](https://github.com/khoih-prog/Blynk_Async_WM/issues/4) leading to v1.4.1
diff --git a/library.json b/library.json
index cd7e945..7c9cab1 100644
--- a/library.json
+++ b/library.json
@@ -1,7 +1,7 @@
{
"name": "Blynk_Async_WM",
- "version": "1.4.0",
- "description": "Library, using AsyncWebServer instead of (ESP8266)WebServer, for configuring/auto(re)connecting ESP32 (including ESP32-S2), ESP8266 modules to best or available MultiWiFi APs and MultiBlynk servers at runtime. Enable adding dynamic custom parameters from sketch and input using the same Config Portal (CP). CP will be auto-adjusted to match the number of dynamic parameters. Optional default Credentials to be autoloaded into CP to use or change instead of manually input. Static STA IP and DHCP Hostname as well as Config Portal AP channel, IP, SSID, Password can be configured. Config. Data saved in ESP8266/ESP32 LittleFS, SPIFFS or EEPROM. Multi, Double DetectDetector or Virtual CP Switch feature permits entering CP as requested. Configurable Customs HTML Headers, including Customs Style, Customs Head Elements, CORS Header.",
+ "version": "1.4.1",
+ "description": "Library, using AsyncWebServer instead of (ESP8266)WebServer, for configuring/auto(re)connecting ESP32 (including ESP32-S2 and ESP32-C3), ESP8266 modules to best or available MultiWiFi APs and MultiBlynk servers at runtime. Enable adding dynamic custom parameters from sketch and input using the same Config Portal (CP). CP will be auto-adjusted to match the number of dynamic parameters. Optional default Credentials to be autoloaded into CP to use or change instead of manually input. Static STA IP and DHCP Hostname as well as Config Portal AP channel, IP, SSID, Password can be configured. Config. Data saved in ESP8266/ESP32 LittleFS, SPIFFS or EEPROM. Multi, Double DetectDetector or Virtual CP Switch feature permits entering CP as requested. Configurable Customs HTML Headers, including Customs Style, Customs Head Elements, CORS Header.",
"keywords": "control, device, communication, blynk, iot, wifi, esp8266, esp32, esp32-s2, esp32-c3, async, drd, mrd, double-reset, multi-reset, config-portal, credentials, dynamic-params, customs-header, smartphone, mobile, app, web, cloud, sensors, m2m, protocol, ble, bluetooth, Manager, DynamicParameters, dynamic, configportal, usb, serial, ethernet, data, http, portal ",
"authors":
{
diff --git a/library.properties b/library.properties
index 1a68796..0a8c3a9 100644
--- a/library.properties
+++ b/library.properties
@@ -1,5 +1,5 @@
name=Blynk_Async_WM
-version=1.4.0
+version=1.4.1
author=Khoi Hoang
license=MIT
maintainer=Khoi Hoang
diff --git a/src/BlynkSimpleEsp32_Async_WM.h b/src/BlynkSimpleEsp32_Async_WM.h
index 42854f9..e2b0907 100644
--- a/src/BlynkSimpleEsp32_Async_WM.h
+++ b/src/BlynkSimpleEsp32_Async_WM.h
@@ -17,7 +17,7 @@
@date Jan 2015
@brief
- Version: 1.4.0
+ Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
1.3.0 K Hoang 24/02/2021 Add customs HTML header feature and support to ESP32-S2.
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
********************************************************************************************************************************/
#pragma once
@@ -42,7 +43,7 @@
#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
#endif
-#define BLYNK_ASYNC_WM_VERSION "Blynk_Async_WM for ESP32 v1.4.0"
+#define BLYNK_ASYNC_WM_VERSION "Blynk_Async_WM for ESP32 v1.4.1"
#define BLYNK_SEND_ATOMIC
@@ -2067,7 +2068,7 @@ class BlynkWifi
for (uint16_t i = 0; i < NUM_BLYNK_CREDENTIALS; i++)
{
config(BlynkESP32_WM_config.Blynk_Creds[i].blynk_token,
- BlynkESP32_WM_config.Blynk_Creds[i].blynk_server, BLYNK_SERVER_HARDWARE_PORT);
+ BlynkESP32_WM_config.Blynk_Creds[i].blynk_server, BlynkESP32_WM_config.blynk_port);
if (connect(BLYNK_CONNECT_TIMEOUT_MS) )
{
diff --git a/src/BlynkSimpleEsp32_SSL_Async_WM.h b/src/BlynkSimpleEsp32_SSL_Async_WM.h
index 20fca8c..acb1759 100644
--- a/src/BlynkSimpleEsp32_SSL_Async_WM.h
+++ b/src/BlynkSimpleEsp32_SSL_Async_WM.h
@@ -17,7 +17,7 @@
@date Jan 2015
@brief
- Version: 1.4.0
+ Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
1.3.0 K Hoang 24/02/2021 Add customs HTML header feature and support to ESP32-S2.
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
********************************************************************************************************************************/
#pragma once
@@ -42,7 +43,7 @@
#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
#endif
-#define BLYNK_ASYNC_WM_VERSION "Blynk_Async_WM SSL for ESP32 v1.4.0"
+#define BLYNK_ASYNC_WM_VERSION "Blynk_Async_WM SSL for ESP32 v1.4.1"
#if defined(BLYNK_SSL_USE_LETSENCRYPT)
static const char BLYNK_DEFAULT_ROOT_CA[] =
@@ -2140,7 +2141,7 @@ class BlynkWifi
for (uint16_t i = 0; i < NUM_BLYNK_CREDENTIALS; i++)
{
config(BlynkESP32_WM_config.Blynk_Creds[i].blynk_token,
- BlynkESP32_WM_config.Blynk_Creds[i].blynk_server, BLYNK_SERVER_HARDWARE_PORT);
+ BlynkESP32_WM_config.Blynk_Creds[i].blynk_server, BlynkESP32_WM_config.blynk_port);
if (this->connect(BLYNK_CONNECT_TIMEOUT_MS) )
{
diff --git a/src/BlynkSimpleEsp8266_Async_WM.h b/src/BlynkSimpleEsp8266_Async_WM.h
index db7c7d9..534861c 100644
--- a/src/BlynkSimpleEsp8266_Async_WM.h
+++ b/src/BlynkSimpleEsp8266_Async_WM.h
@@ -17,7 +17,7 @@
@date Jan 2015
@brief
- Version: 1.4.0
+ Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
1.3.0 K Hoang 24/02/2021 Add customs HTML header feature and support to ESP32-S2.
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
********************************************************************************************************************************/
#pragma once
@@ -42,7 +43,7 @@
#error This code is intended to run on the ESP8266 platform! Please check your Tools->Board setting.
#endif
-#define BLYNK_ASYNC_WM_VERSION "Blynk_Async_WM for ESP8266 v1.4.0"
+#define BLYNK_ASYNC_WM_VERSION "Blynk_Async_WM for ESP8266 v1.4.1"
#include
diff --git a/src/BlynkSimpleEsp8266_SSL_Async_WM.h b/src/BlynkSimpleEsp8266_SSL_Async_WM.h
index 09f74d2..78c389b 100644
--- a/src/BlynkSimpleEsp8266_SSL_Async_WM.h
+++ b/src/BlynkSimpleEsp8266_SSL_Async_WM.h
@@ -17,7 +17,7 @@
@date Jan 2015
@brief
- Version: 1.4.0
+ Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
1.3.0 K Hoang 24/02/2021 Add customs HTML header feature and support to ESP32-S2.
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
********************************************************************************************************************************/
#pragma once
@@ -42,7 +43,7 @@
#error This code is intended to run on the ESP8266 platform! Please check your Tools->Board setting.
#endif
-#define BLYNK_ASYNC_WM_VERSION "Blynk_Async_WM SSL for ESP8266 v1.4.0"
+#define BLYNK_ASYNC_WM_VERSION "Blynk_Async_WM SSL for ESP8266 v1.4.1"
#include