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

Commit

Permalink
v1.4.1 to fix EP32 custom Blynk port bug
Browse files Browse the repository at this point in the history
### 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](#4)
  • Loading branch information
khoih-prog authored Apr 24, 2021
1 parent d0a83f9 commit 07b871f
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 24 deletions.
32 changes: 21 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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).
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 : <style>div,input{padding:5px;font-size:1em;}input{width:95%;}body{text-align: center;}button{background-color:blue;color:white;line-height:2.4rem;font-size:1.2rem;width:100%;}fieldset{border-radius:0.3rem;margin:0px;}</style>
[980] Set CustomsHeadElement to : <style>html{filter: invert(10%);}</style>
Expand Down Expand Up @@ -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).
Expand Down Expand Up @@ -3186,14 +3195,15 @@ 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

<table>
<tr>
<td align="center"><a href="https://github.com/me-no-dev"><img src="https://github.com/me-no-dev.png" width="100px;" alt="me-no-dev"/><br /><sub><b>⭐️⭐️ me-no-dev</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/lorol"><img src="https://github.com/lorol.png" width="100px;" alt="lorol"/><br /><sub><b>⭐️ lorol</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/thorathome"><img src="https://github.com/thorathome.png" width="100px;" alt="thorathome"/><br /><sub><b>⭐️ Thor Johnson</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/tcpipchip"><img src="https://github.com/tcpipchip.png" width="100px;" alt="tcpipchip"/><br /><sub><b>tcpipchip</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/jjskaife"><img src="https://github.com/jjskaife.png" width="100px;" alt="jjskaife"/><br /><sub><b>komaneko</b></sub></a><br /></td>
</tr>
</table>

Expand Down
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -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":
{
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Blynk_Async_WM
version=1.4.0
version=1.4.1
author=Khoi Hoang
license=MIT
maintainer=Khoi Hoang <khoih.prog@gmail.com>
Expand Down
7 changes: 4 additions & 3 deletions src/BlynkSimpleEsp32_Async_WM.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@date Jan 2015
@brief
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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) )
{
Expand Down
7 changes: 4 additions & 3 deletions src/BlynkSimpleEsp32_SSL_Async_WM.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@date Jan 2015
@brief
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -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
Expand All @@ -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[] =
Expand Down Expand Up @@ -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) )
{
Expand Down
5 changes: 3 additions & 2 deletions src/BlynkSimpleEsp8266_Async_WM.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@date Jan 2015
@brief
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -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
Expand All @@ -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 <version.h>

Expand Down
5 changes: 3 additions & 2 deletions src/BlynkSimpleEsp8266_SSL_Async_WM.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@date Jan 2015
@brief
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -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
Expand All @@ -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 <version.h>

Expand Down

0 comments on commit 07b871f

Please sign in to comment.