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

Commit

Permalink
v1.6.1 to fix issue with ESP8266 core v3.0.1
Browse files Browse the repository at this point in the history
### Releases v1.6.1

1. Fix issue with new **ESP8266 core v3.0.1**
  • Loading branch information
khoih-prog authored Jun 29, 2021
1 parent 33447b6 commit 915529e
Show file tree
Hide file tree
Showing 24 changed files with 128 additions and 322 deletions.
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p

Please ensure to specify the following:

* Arduino IDE version (e.g. 1.8.13) or Platform.io version
* `ESP8266` or `ESP32` Core Version (e.g. ESP8266 core v3.0.0 or ESP32 v1.0.6)
* Arduino IDE version (e.g. 1.8.15) or Platform.io version
* `ESP8266` or `ESP32` Core Version (e.g. ESP8266 core v3.0.1 or ESP32 v1.0.6)
* Contextual information (e.g. what you were trying to achieve)
* Simplest possible steps to reproduce
* Anything that might be relevant in your opinion, such as:
Expand All @@ -26,10 +26,10 @@ Please ensure to specify the following:
### Example

```
Arduino IDE version: v1.8.13
ESP8266 Core Version v3.0.0
Arduino IDE version: v1.8.15
ESP8266 Core Version v3.0.1
OS: Ubuntu 20.04 LTS
Linux Inspiron 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Linux Inspiron 5.4.0-77-generic #86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Context:
The board couldn't autoreconnect to Local Blynk Server after router power recycling.
Expand Down
70 changes: 40 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* [Features](#features)
* [Currently supported Boards](#currently-supported-boards)
* [Changelog](#changelog)
* [Releases v1.6.1](#releases-v161)
* [Major Releases v1.6.0](#major-releases-v160)
* [Releases v1.5.0](#releases-v150)
* [Major Releases v1.4.0](#major-releases-v140)
Expand Down Expand Up @@ -178,7 +179,7 @@ This library is designed to help you to eliminate `hardcoding` your Wifi and Bly

With version `v1.6.0` or later, you can use:

1. `New ESP8266 core v3.0.0`
1. `New ESP8266 core v3.0.0+`

With version `v1.1.0` or later, you can use:

Expand Down Expand Up @@ -209,6 +210,11 @@ This [**Blynk_WM** library](https://github.com/khoih-prog/Blynk_WM) currently su

## Changelog

### Releases v1.6.1

1. Fix issue with new **ESP8266 core v3.0.1**


### Major Releases v1.6.0

1. Fix AP connect issue caused by **breaking ESP8266 core v3.0.0**. Caused by multiple core changes, but the new solution results a better and faster connection to AP.
Expand Down Expand Up @@ -321,11 +327,11 @@ Thanks to [Thor Johnson](https://github.com/thorathome) to test, suggest and enc

## Prerequisites

1. [`Arduino IDE 1.8.13+`](https://www.arduino.cc/en/Main/Software)
1. [`Arduino IDE 1.8.15+`](https://www.arduino.cc/en/Main/Software)
2. [`Blynk library 0.6.1+`](https://github.com/blynkkk/blynk-library/releases). [![Latest release](https://img.shields.io/github/release/blynkkk/blynk-library.svg)](https://github.com/blynkkk/blynk-library/releases/latest/). Never use the `Blynk beta` versions.
3. [`ESP32 Core 1.0.6+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/)
4. [`ESP32-S2/C3 Core 1.0.6+`](https://github.com/espressif/arduino-esp32) for ESP32-S2/C3-based boards. Must follow [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).
5. [`ESP8266 Core 3.0.0+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [![Latest release](https://img.shields.io/github/release/esp8266/Arduino.svg)](https://github.com/esp8266/Arduino/releases/latest/). To use ESP8266 core 2.7.1+ for LittleFS.
5. [`ESP8266 Core 3.0.1+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [![Latest release](https://img.shields.io/github/release/esp8266/Arduino.svg)](https://github.com/esp8266/Arduino/releases/latest/). To use ESP8266 core 2.7.1+ for LittleFS.
6. [`ESP_DoubleResetDetector library 1.1.1+`](https://github.com/khoih-prog/ESP_DoubleResetDetector) to use DRD feature. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/ESP_DoubleResetDetector.svg?)](https://www.ardu-badge.com/ESP_DoubleResetDetector).
7. [`ESP_MultiResetDetector library 1.1.1+`](https://github.com/khoih-prog/ESP_MultiResetDetector) to use MRD feature. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/ESP_MultiResetDetector.svg?)](https://www.ardu-badge.com/ESP_MultiResetDetector).
8. [`LittleFS_esp32 v1.0.6+`](https://github.com/lorol/LITTLEFS) for ESP32-based boards using LittleFS. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/LittleFS_esp32.svg?)](https://www.ardu-badge.com/LittleFS_esp32). **Notice**: This [`LittleFS_esp32 library`](https://github.com/lorol/LITTLEFS) has been integrated to Arduino [esp32 core v1.0.6](https://github.com/espressif/arduino-esp32/tree/master/libraries/LITTLEFS).
Expand Down Expand Up @@ -1682,8 +1688,8 @@ The following is the sample terminal output when running example [ESP8266WM_MRD_

```
Starting ESP8266WM_MRD_Config using LittleFS with SSL on ESP8266_NODEMCU
Blynk_WM SSL for ESP8266 v1.6.0
ESP8266 core v2.7.4
Blynk_WM SSL for ESP8266 v1.6.1
ESP8266 core v3.0.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFD0002
multiResetDetectorFlag = 0xFFFD0002
Expand Down Expand Up @@ -1763,8 +1769,8 @@ BBBBBB

```
Starting ESP8266WM_MRD_Config using LittleFS with SSL on ESP8266_NODEMCU
Blynk_WM SSL for ESP8266 v1.6.0
ESP8266 core v2.7.4
Blynk_WM SSL for ESP8266 v1.6.1
ESP8266 core v3.0.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFC0003
multiResetDetectorFlag = 0xFFFC0003
Expand Down Expand Up @@ -1826,8 +1832,8 @@ The following is the sample terminal output when running example [DHT11ESP8266_S

```
Starting DHT11ESP8266_SSL using LittleFS with SSL on ESP8266_NODEMCU
Blynk_WM SSL for ESP8266 v1.6.0
ESP8266 core v2.7.4
Blynk_WM SSL for ESP8266 v1.6.1
ESP8266 core v3.0.1
ESP_DoubleResetDetector v1.1.1
[293] Hostname=ESP8266-DHT11-SSL
[316] LoadCfgFile
Expand Down Expand Up @@ -1885,7 +1891,7 @@ The following is the sample terminal output when running example [ESP32WM_MRD_Co

```
Starting ESP32WM_MRD_Config using LITTLEFS without SSL on ESP32_DEV
Blynk_WM for ESP32 v1.6.0
Blynk_WM for ESP32 v1.6.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
Expand Down Expand Up @@ -1962,7 +1968,7 @@ BBBBBB

```
Starting ESP32WM_MRD_Config using LITTLEFS without SSL on ESP32_DEV
Blynk_WM for ESP32 v1.6.0
Blynk_WM for ESP32 v1.6.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFC0003
multiResetDetectorFlag = 0xFFFC0003
Expand Down Expand Up @@ -2020,7 +2026,7 @@ ets Jun 8 2016 00:22:57

```
Starting ESP32WM_MRD_Config using LITTLEFS without SSL on ESP32_DEV
Blynk_WM for ESP32 v1.6.0
Blynk_WM for ESP32 v1.6.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
Expand Down Expand Up @@ -2144,7 +2150,7 @@ The following is the sample terminal output when running example [DHT11ESP8266_S

```
Starting DHT11ESP32_SSL using LITTLEFS with SSL on ESP32_DEV
Blynk_WM SSL for ESP32 v1.6.0
Blynk_WM SSL for ESP32 v1.6.1
ESP_DoubleResetDetector v1.1.1
[346] Hostname=ESP32-DHT11-SSL
[385] LoadCfgFile
Expand Down Expand Up @@ -2208,8 +2214,8 @@ Blynk.resetAndEnterConfigPortal();

```
Starting ESP8266WM_MRD_ForcedConfig using LittleFS without SSL on ESP8266_NODEMCU
Blynk_WM for ESP8266 v1.6.0
ESP8266 core v2.7.4
Blynk_WM for ESP8266 v1.6.1
ESP8266 core v3.0.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
Expand Down Expand Up @@ -2295,8 +2301,8 @@ Non-Persistent CP will be removed after first reset, even you didn't enter the C

```
Starting ESP8266WM_MRD_ForcedConfig using LittleFS without SSL on ESP8266_NODEMCU
Blynk_WM for ESP8266 v1.6.0
ESP8266 core v2.7.4
Blynk_WM for ESP8266 v1.6.1
ESP8266 core v3.0.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
Expand Down Expand Up @@ -2378,8 +2384,8 @@ Blynk.resetAndEnterConfigPortalPersistent();

```
Starting ESP8266WM_MRD_ForcedConfig using LittleFS without SSL on ESP8266_NODEMCU
Blynk_WM for ESP8266 v1.6.0
ESP8266 core v2.7.4
Blynk_WM for ESP8266 v1.6.1
ESP8266 core v3.0.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
Expand Down Expand Up @@ -2466,8 +2472,8 @@ Persistent CP will remain after resets. The only way to get rid of Config Portal

```
Starting ESP8266WM_MRD_ForcedConfig using LittleFS without SSL on ESP8266_NODEMCU
Blynk_WM for ESP8266 v1.6.0
ESP8266 core v2.7.4
Blynk_WM for ESP8266 v1.6.1
ESP8266 core v3.0.1
ESP_MultiResetDetector v1.1.1
LittleFS Flag read = 0xFFFE0001
multiResetDetectorFlag = 0xFFFE0001
Expand Down Expand Up @@ -2535,8 +2541,8 @@ The following is the sample terminal output when running example [ESP8266WM_MRD_

```
Starting ESP8266WM_MRD_ForcedConfig using LittleFS with SSL on ESP8266_NODEMCU
Blynk_WM SSL for ESP8266 v1.6.0
ESP8266 core v2.7.4
Blynk_WM SSL for ESP8266 v1.6.1
ESP8266 core v3.0.1
ESP_MultiResetDetector v1.1.1
[267] 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>
[289] Set CustomsHeadElement to : <style>html{filter: invert(10%);}</style>
Expand Down Expand Up @@ -2624,7 +2630,7 @@ The following is the sample terminal output when running example [ESP32WM_MRD_Co

```
Starting ESP32WM_MRD_Config using LITTLEFS with SSL on ESP32S2_DEV
Blynk_WM SSL for ESP32 v1.6.0
Blynk_WM SSL for ESP32 v1.6.1
ESP_MultiResetDetector v1.1.1
[134394] 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>
[134417] Set CustomsHeadElement to : <style>html{filter: invert(10%);}</style>
Expand Down Expand Up @@ -2713,7 +2719,7 @@ The following is the sample terminal output when running example [ESP32WM_MRD_Fo

```
Starting ESP32WM_MRD_ForcedConfig using LITTLEFS with SSL on ESP32_DEV
Blynk_WM SSL for ESP32 v1.6.0
Blynk_WM SSL for ESP32 v1.6.1
ESP_MultiResetDetector v1.1.1
[228] 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>
[250] Set CustomsHeadElement to : <style>html{filter: invert(10%);}</style>
Expand Down Expand Up @@ -2836,7 +2842,7 @@ Pubs Topics = default-mqtt-PubTopic

```
Starting ESP32WM_MRD_ForcedConfig using LITTLEFS with SSL on ESP32_DEV
Blynk_WM SSL for ESP32 v1.6.0
Blynk_WM SSL for ESP32 v1.6.1
ESP_MultiResetDetector v1.1.1
[227] 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>
[249] Set CustomsHeadElement to : <style>html{filter: invert(10%);}</style>
Expand Down Expand Up @@ -2920,13 +2926,13 @@ RBRBRBRBRBRBRBRB

### 10. ESP8266WM_MRD_Config using LITTLEFS with SSL on ESP8266_NODEMCU_ESP12E using new ESP8266 core v3.0.0

The following is the sample terminal output when running example [ESP8266WM_MRD_Config](examples/ESP8266WM_MRD_Config) on **ESP8266_NODEMCU_ESP12E** using new **ESP8266 core v3.0.0**
The following is the sample terminal output when running example [ESP8266WM_MRD_Config](examples/ESP8266WM_MRD_Config) on **ESP8266_NODEMCU_ESP12E** using new **ESP8266 core v3.0.0+**


```
Starting ESP8266WM_MRD_Config using LittleFS with SSL on ESP8266_NODEMCU_ESP12E
ESP8266 core v3.0.0
Blynk_WM SSL for ESP8266 v1.6.0
ESP8266 core v3.0.1
Blynk_WM SSL for ESP8266 v1.6.1
ESP_MultiResetDetector v1.1.1
[274] 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>
[296] Set CustomsHeadElement to : <style>html{filter: invert(10%);}</style>
Expand Down Expand Up @@ -3044,6 +3050,10 @@ Sometimes, the library will only work if you update the board core to the latest

## Releases

### Releases v1.6.1

1. Fix issue with new **ESP8266 core v3.0.1**

### Major Releases v1.6.0

1. Fix AP connect issue caused by breaking ESP8266 core v3.0.0. Caused by multiple core changes, but the new solution results a better and faster connection to AP.
Expand Down Expand Up @@ -3269,7 +3279,7 @@ Submit issues to: [Blynk_WM issues](https://github.com/khoih-prog/Blynk_WM/issue
31. Permit optionally inputting one set of WiFi SSID/PWD by using `REQUIRE_ONE_SET_SSID_PW == true`
32. Enforce WiFi PWD minimum length of 8 chars
33. Enable **scan of WiFi networks** for selection in Configuration Portal
34. Drastically update code to work with either ESP8266 new breaking ESP8266 core v3.0.0 or old core ESP8266 v2.7.4-
34. Drastically update code to work with either ESP8266 new breaking ESP8266 core v3.0.0+ or old core ESP8266 v2.7.4-
35. Make SSL working using `BearSSL`, not deprecated `axTLS`

---
Expand Down
20 changes: 3 additions & 17 deletions examples/AM2315_ESP32_SSL/AM2315_ESP32_SSL.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,12 @@
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.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 28/10/2019 Initial coding
1.0.1 K Hoang 28/10/2019 Add features
1.0.2 K Hoang 21/11/2019 Fix bug. Add features.
1.0.3 K Hoang 31/11/2019 Fix compiler errors for ESP8266 core pre-2.5.2. Add examples.
1.0.4 K Hoang 07/01/2020 Add configurable personalized RFC-952 DHCP hostname
1.0.5 K Hoang 20/01/2020 Add configurable static IP, GW, SN, DNS1, DNS2 and Config Portal static IP and Credentials
1.0.6 K Hoang 05/02/2020 Optimize, fix EEPROM size to 2K from 4K, shorten code size, add functions
1.0.7 K Hoang 18/02/2020 Add checksum, enable AutoConnect to configurable MultiWiFi and MultiBlynk Credentials
1.0.8 K Hoang 24/02/2020 Fix AP-staying-open bug. Add clearConfigData()
1.0.9 K Hoang 12/03/2020 Enhance Config Portal GUI
1.0.10 K Hoang 08/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
1.0.11 K Hoang 09/04/2020 Enable adding dynamic custom parameters from sketch
1.0.12 K Hoang 13/04/2020 Fix MultiWiFi/Blynk bug introduced in broken v1.0.11
1.0.13 K Hoang 25/04/2020 Add Configurable Config Portal Title, Default Config Data and DRD. Update examples.
1.0.14 K Hoang 03/05/2020 Fix bug and change feature in dynamicParams.
1.0.15 K Hoang 12/05/2020 Fix bug and Update to use LittleFS for ESP8266 core 2.7.1+. Add example.
1.0.16 K Hoang 25/06/2020 Fix bug and logic of USE_DEFAULT_CONFIG_DATA. Auto format SPIFFS/LittleFS.
...
1.1.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
1.1.1 K Hoang 16/01/2021 Add functions to control Config Portal from software or Virtual Switches
1.1.2 K Hoang 28/01/2021 Fix Config Portal and Dynamic Params bugs
Expand All @@ -39,6 +24,7 @@
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
1.5.0 K Hoang 25/04/2021 Fix bug. Optimize and sync with Blynk_Async_WM library v1.5.0
1.6.0 K Hoang 19/05/2021 Fix AP connect and SSL issues caused by breaking ESP8266 core v3.0.0
1.6.1 K Hoang 29/06/2021 Fix issue with ESP8266 core v3.0.1
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
20 changes: 3 additions & 17 deletions examples/AM2315_ESP8266/AM2315_ESP8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,12 @@
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.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 28/10/2019 Initial coding
1.0.1 K Hoang 28/10/2019 Add features
1.0.2 K Hoang 21/11/2019 Fix bug. Add features.
1.0.3 K Hoang 31/11/2019 Fix compiler errors for ESP8266 core pre-2.5.2. Add examples.
1.0.4 K Hoang 07/01/2020 Add configurable personalized RFC-952 DHCP hostname
1.0.5 K Hoang 20/01/2020 Add configurable static IP, GW, SN, DNS1, DNS2 and Config Portal static IP and Credentials
1.0.6 K Hoang 05/02/2020 Optimize, fix EEPROM size to 2K from 4K, shorten code size, add functions
1.0.7 K Hoang 18/02/2020 Add checksum, enable AutoConnect to configurable MultiWiFi and MultiBlynk Credentials
1.0.8 K Hoang 24/02/2020 Fix AP-staying-open bug. Add clearConfigData()
1.0.9 K Hoang 12/03/2020 Enhance Config Portal GUI
1.0.10 K Hoang 08/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
1.0.11 K Hoang 09/04/2020 Enable adding dynamic custom parameters from sketch
1.0.12 K Hoang 13/04/2020 Fix MultiWiFi/Blynk bug introduced in broken v1.0.11
1.0.13 K Hoang 25/04/2020 Add Configurable Config Portal Title, Default Config Data and DRD. Update examples.
1.0.14 K Hoang 03/05/2020 Fix bug and change feature in dynamicParams.
1.0.15 K Hoang 12/05/2020 Fix bug and Update to use LittleFS for ESP8266 core 2.7.1+. Add example.
1.0.16 K Hoang 25/06/2020 Fix bug and logic of USE_DEFAULT_CONFIG_DATA. Auto format SPIFFS/LittleFS.
...
1.1.0 K Hoang 01/01/2021 Add support to ESP32 LittleFS. Remove possible compiler warnings. Update examples. Add MRD
1.1.1 K Hoang 16/01/2021 Add functions to control Config Portal from software or Virtual Switches
1.1.2 K Hoang 28/01/2021 Fix Config Portal and Dynamic Params bugs
Expand All @@ -39,6 +24,7 @@
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
1.5.0 K Hoang 25/04/2021 Fix bug. Optimize and sync with Blynk_Async_WM library v1.5.0
1.6.0 K Hoang 19/05/2021 Fix AP connect and SSL issues caused by breaking ESP8266 core v3.0.0
1.6.1 K Hoang 29/06/2021 Fix issue with ESP8266 core v3.0.1
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
Loading

0 comments on commit 915529e

Please sign in to comment.