From 5a8cf07bdbf95c7a9af4dccf0fd2ab6c7f347550 Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Sat, 9 Oct 2021 17:31:55 -0400 Subject: [PATCH] v1.262 to update PIO ### Releases v1.6.2 1. Update `platform.ini` and `library.json` to use original `khoih-prog` instead of `khoih.prog` after PIO fix 2. Update ESP8266_CORE_VERSION for ESP8266 core v3.0.2+ --- CONTRIBUTING.md | 10 +- README.md | 437 +++----------------------- changelog.md | 114 +++++++ library.json | 6 +- library.properties | 2 +- platformio/platformio.ini | 69 +++- src/BlynkSimpleEsp32_Async_WM.h | 5 +- src/BlynkSimpleEsp32_SSL_Async_WM.h | 5 +- src/BlynkSimpleEsp8266_Async_WM.h | 10 +- src/BlynkSimpleEsp8266_SSL_Async_WM.h | 10 +- 10 files changed, 243 insertions(+), 425 deletions(-) create mode 100644 changelog.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b932fe0..7a7772f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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.15) or Platform.io version -* `ESP8266` or `ESP32` Core Version (e.g. ESP8266 core v3.0.1 or ESP32 v1.0.6) +* Arduino IDE version (e.g. 1.8.16) or Platform.io version +* `ESP8266` or `ESP32` Core Version (e.g. ESP8266 core v3.0.2 or ESP32 v2.0.0) * 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: @@ -26,10 +26,10 @@ Please ensure to specify the following: ### Example ``` -Arduino IDE version: v1.8.15 -ESP8266 Core Version v3.0.1 +Arduino IDE version: v1.8.16 +ESP8266 Core Version v3.0.2 OS: Ubuntu 20.04 LTS -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 +Linux Inspiron 5.4.0-86-generic #97-Ubuntu SMP Fri Sep 17 19:19:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Context: The board couldn't autoreconnect to Local Blynk Server after router power recycling. diff --git a/README.md b/README.md index 396893c..0648a4f 100644 --- a/README.md +++ b/README.md @@ -17,40 +17,11 @@ * [Why using Async](#why-using-async) * [Why using SSL insecured mode now](#why-using-ssl-insecured-mode-now) * [Currently supported Boards](#currently-supported-boards) -* [Changelog](#changelog) - * [Releases v1.6.1](#releases-v161) - * [Major Releases v1.6.0](#major-releases-v160) - * [Major Releases v1.5.0](#major-releases-v150) - * [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) - * [Releases v1.2.2](#releases-v122) - * [Releases v1.2.1](#releases-v121) - * [Major Releases v1.2.0](#major-releases-v120) - * [Releases v1.1.0](#releases-v110) - * [Releases v1.0.16](#releases-v1016) +* [Changelog](changelog.md) * [Prerequisites](#prerequisites) * [Installation](#installation) * [I) For Arduino IDE](#i-for-arduino-ide) * [II) For VS Code & PlatformIO:](#ii-for-vs-code--platformio) -* [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) - * [1. Save the original esp32 core](#1-save-the-original-esp32-core) - * [2. Install esp32 core v1.0.6](#2-install-esp32-core-v106) - * [2.1 Install esp32 core](#21-install-esp32-core) - * [2.2 Download latest zip with esp32-s2 support](#22-download-latest-zip-with-esp32-s2-support) - * [2.3 Unzip](#23-unzip) - * [2.3 Update esp32 core directories](#24-update-esp32-core-directories) - * [3. Download tools for ESP32-S2](#3-download-tools-for-esp32-s2) - * [3.1 Download Toolchain for Xtensa (ESP32-S2) based on GCC](#31-download-toolchain-for-xtensa-esp32-s2-based-on-gcc) - * [3.2 Download esptool](#32-download-esptool) - * [3.3 Unzip](#33-unzip) - * [4. Update tools](#4-update-tools) - * [4.1 Update Toolchain](#41-update-toolchain) - * [4.2 Update esptool](#42-update-esptool) - * [5. Download tools for ESP32-C3](#5-download-tools-for-esp32-c3) - * [6. esp32-s2 WebServer Library Patch](#6-esp32-s2-webserver-library-patch) - * [7. esp32-c3 ESPAsyncWebServer Library Patch](#7-esp32-c3-espasyncwebserver-library-patch) * [Note for Platform IO using ESP32 LittleFS](#note-for-platform-io-using-esp32-littlefs) * [HOWTO Use analogRead() with ESP32 running WiFi and/or BlueTooth (BT/BLE)](#howto-use-analogread-with-esp32-running-wifi-andor-bluetooth-btble) * [1. ESP32 has 2 ADCs, named ADC1 and ADC2](#1--esp32-has-2-adcs-named-adc1-and-adc2) @@ -133,10 +104,9 @@ * [7. Async_ESP32WM_MRD_ForcedConfig using LITTLEFS with SSL on ESP32_DEV to demo WiFi Scan](#7-async_esp32wm_mrd_forcedconfig-using-littlefs-with-ssl-on-esp32_dev-to-demo-wifi-scan) * [7.1 MRD/DRD => Open Config Portal](#71-mrddrd--open-config-portal) * [7.2 Config Data Saved => Connection to Blynk](#72-config-data-saved--connection-to-blynk) - * [8. Async_ESP8266WM_MRD_Config using LITTLEFS with SSL on ESP8266_NODEMCU_ESP12E using new ESP8266 core v3.0.1](#8-async_esp8266wm_mrd_config-using-littlefs-with-ssl-on-esp8266_nodemcu_esp12e-using-new-esp8266-core-v301) + * [8. Async_ESP8266WM_MRD_Config using LITTLEFS with SSL on ESP8266_NODEMCU_ESP12E using new ESP8266 core v3.0.2](#8-async_esp8266wm_mrd_config-using-littlefs-with-ssl-on-esp8266_nodemcu_esp12e-using-new-esp8266-core-v301) * [Debug](#debug) * [Troubleshooting](#troubleshooting) -* [Releases](#releases) * [Issues](#issues) * [TO DO](#to-do) * [DONE](#done) @@ -161,7 +131,7 @@ Thanks to this [**Blynk_Async_WM library**](https://github.com/khoih-prog/Blynk_ With version `v1.6.0` or later, you can use: -1. `New ESP8266 core v3.0.0` +1. `New ESP8266 core v3.0.0+` #### Why using Async @@ -202,99 +172,19 @@ This [**Blynk_Async_WM** library](https://github.com/khoih-prog/Blynk_Async_WM) --- --- -## Changelog - -### Releases v1.6.1 - -1. Add configurable connectMultiWiFi parameters. Check [Minimize blocking during multi-wifi reconnect #6](https://github.com/khoih-prog/Blynk_Async_WM/issues/6) -2. Update ESP8266_CORE_VERSION for 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. -2. Fix SSL issue caused by breaking ESP8266 core v3.0.0. Now the better **BearSSL** is used in both ESP32 and ESP8266 to replace the ESP8266 deprecated `axTLS`. Check [Remove axTLS from code and documentation #7437](https://github.com/esp8266/Arduino/pull/7437) -3. Fix the `BLYNK_INFO_DEVICE`displaying the generic ESP8266 board with Blynk logo. Caused by new ESP8266 core changes of `build.board`. For example from `ESP8266_NODEMCU` in core v2.7.4 to `ESP8266_NODEMCU_ESP12E` in core v3.0.0 -4. Fix many warnings only displayed in new core ESP8266 v3.0.0 -5. Make code compatible for either new ESP8266 core v3.0.0+ or ealier cores v2.7.4- - -### 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](https://github.com/khoih-prog/WiFiManager_NINA_Lite/pull/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 - -### 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). -2. Add **EEPROM and SPIFFS** support to new **ESP32-C3** 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). -3. Fix SSL issue with Blynk Cloud Server -4. Update examples - -### Major Releases v1.3.0 - -1. Configurable **Customs HTML Headers**, including Customs Style, Customs Head Elements, CORS Header. -2. Add support to **ESP32-S2 (ESP32-S2 Saola and AI-Thinker ESP-12K)**. Currently using EEPROM only. To add support to LittleFS and SPIFFS in future releases. -3. Fix Config Portal Bug. -4. Tested with [**Latest ESP32 Core 1.0.5**](https://github.com/espressif/arduino-esp32) for ESP32-based boards. -5. Update examples - -### Releases v1.2.3 - -1. To permit auto-reset after configurable timeout if DRD/MRD or non-persistent forced-CP. Check [**Good new feature: Blynk.resetAndEnterConfigPortal() Thanks & question #27**](https://github.com/khoih-prog/Blynk_WM/issues/27) - -### Releases v1.2.2 - -1. Fix rare Config Portal bug not updating Config and dynamic Params data successfully in very noisy or weak WiFi situation - -### 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](https://github.com/khoih-prog/Blynk_WM/issues/25) -2. Add examples to demo the new Virtual ConfigPortal SW feature -3. Optimize code - -### Major Releases v1.2.0 - -1. Add support to LittleFS for ESP32 using [LITTLEFS](https://github.com/lorol/LITTLEFS) Library -2. Add support to MultiDetectDetector. **MultiDetectDetector** feature to force Config Portal when configurable multi-reset is detected within predetermined time. -3. Clean-up all compiler warnings possible. -4. Add Table of Contents -5. Modify Version String -6. Add MRD-related examples. - - -### Releases v1.1.0 - -1. Add examples using RTOS MultiTask to avoid blocking in operation. -2. Add Version String. - - -### Releases v1.0.16 - -1. Initial coding to use [ESPAsyncWebServer](https://github.com/me-no-dev/ESPAsyncWebServer) instead of (ESP8266)WebServer. -2. Bump up to v1.0.16 to sync with [Blynk_WiFiManager library](https://github.com/khoih-prog/Blynk_WM) v1.0.16. - ---- ---- ## Prerequisites - 1. [`Arduino IDE 1.8.15+` for Arduino](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.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). - 9. [`ESPAsyncWebServer v1.2.3+`](https://github.com/me-no-dev/ESPAsyncWebServer). -10. [`ESPAsyncTCP v1.2.2+`](https://github.com/me-no-dev/ESPAsyncTCP) for ESP8266. -11. [`AsyncTCP v1.1.1+`](https://github.com/me-no-dev/AsyncTCP) for ESP32. + 1. [`Arduino IDE 1.8.16+` for Arduino](https://www.arduino.cc/en/Main/Software) + 2. [`Blynk library 1.0.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 2.0.0+`](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. [`ESP8266 Core 3.0.2+`](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. [`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). + 6. [`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). + 7. [`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). + 8. [`ESPAsyncWebServer v1.2.3+`](https://github.com/me-no-dev/ESPAsyncWebServer). + 9. [`ESPAsyncTCP v1.2.2+`](https://github.com/me-no-dev/ESPAsyncTCP) for ESP8266. +10. [`AsyncTCP v1.1.1+`](https://github.com/me-no-dev/AsyncTCP) for ESP32. --- @@ -337,189 +227,12 @@ This [**Blynk_Async_WM** library](https://github.com/khoih-prog/Blynk_Async_WM) 1. Install [VS Code](https://code.visualstudio.com/) 2. Install [PlatformIO](https://platformio.org/platformio-ide) -3. Install [**Blynk_Async_WM** library](https://platformio.org/lib/show/11085/Blynk_Async_WM) or [**Blynk_Async_WM** library](https://platformio.org/lib/show/11511/Blynk_Async_WM) by using [Library Manager](https://platformio.org/lib/show/11085/Blynk_Async_WM/installation). Search for **Blynk_Async_WM** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22) +3. Install [**Blynk_Async_WM** library](https://platformio.org/lib/show/11085/Blynk_Async_WM) by using [Library Manager](https://platformio.org/lib/show/11085/Blynk_Async_WM/installation). Search for **Blynk_Async_WM** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22) 4. Use included [platformio.ini](platformio/platformio.ini) file from examples to ensure that all dependent libraries will installed automatically. Please visit documentation for the other options and examples at [Project Configuration File](https://docs.platformio.org/page/projectconf.html) --- --- -## HOWTO Install esp32 core for ESP32-S2 (Saola, AI-Thinker ESP-12K) and ESP32-C3 boards into Arduino IDE - - -These are instructions demonstrating the steps to install esp32-s2/c3 core on Ubuntu machines. For Windows or other OS'es, just follow the the similar principles and steps. - -* Windows 10, follows these steps in [Steps to install Arduino ESP32 support on Windows](https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/windows.md) - -* Mac OS, follows these steps in [Installation instructions for Mac OS](https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/mac.md) - -* Fedora, follows these steps in [Installation instructions for Fedora](https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/fedora.md) - -* openSUSE, follows these steps in [Installation instructions for openSUSE](https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/opensuse.md) - -* You can also try to add [package_esp32_dev_index.json](https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json) into Arduino IDE `File - Preferences - Additional Boards Manager URLs` - - -``` -https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json -``` - -and have Board Manager auto-install the **development** esp32 core. For example : esp32 core `v2.0.0-alpha1` - - ---- - -If you're already successful in testing the core, after installing by using the above procedures, you don't need to follows the hereafter manual steps. - ---- - -Assuming you already installed Arduino IDE ESP32 core and the installed directory is - -`/home/your_account/.arduino15/packages/esp32` - - -### 1. Save the original esp32 core - -First, copy the whole original esp32 core to another safe place. Then delete all the sub-directories of - -`/home/your_account/.arduino15/packages/esp32/hardware/esp32/1.0.4` - ---- - - -### 2. Install esp32 core v1.0.6 - -#### 2.1 Install esp32 core - -Just use Arduino IDE Board Manager to install [ESP32 Arduino Release 1.0.6 based on ESP-IDF v3.3.5](https://github.com/espressif/arduino-esp32/releases/tag/1.0.6). This official v1.06 core doesn't have esp32-s2/s3 support. You have to download and use the latest master branch. - - -#### 2.2 Download latest zip with esp32-s2 support - -As of **April 16th 2021**, the **esp32-s2/c3** board support has been included in master branch of esp32 core. Download [**esp32 core, master branch**](https://github.com/espressif/arduino-esp32) in the zip format. - -#### 2.3 Unzip - -

- -

- -#### 2.4 Update esp32 core directories - -Copy all subdirectories of esp32 core into `/home/your_account/.arduino15/packages/esp32/hardware/esp32/1.0.6` - - ---- - -### 3 Download tools for ESP32-S2 - - -#### 3.1 Download Toolchain for Xtensa (ESP32-S2) based on GCC - -Download [**esp32-s2 Toolchain**](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-guides/tools/idf-tools.html#xtensa-esp32s2-elf) corresponding to your environment (linux-amd64, win64, etc.). - -For example `xtensa-esp32s2-elf-gcc8_4_0-esp-2020r3-linux-amd64.tar.gz`, then un-archive. - - -

- -

- -#### 3.2 Download esptool - - -Download [esptool](https://github.com/espressif/esptool/releases) int the `zip` format: - -`esptool-3.0.zip` - -#### 3.3 Unzip - -

- -

- ---- - -### 4. Update tools - -#### 4.1 Update Toolchain - -Copy whole `xtensa-esp32s2-elf` directory into `/home/your_account/.arduino15/packages/esp32/hardware/esp32/1.0.6/tools` - - -#### 4.2 Update esptool - -Rename `esptool-3.0` directory to `esptool` - - -Copy whole `esptool` directory into `/home/your_account/.arduino15/packages/esp32/hardware/esp32/1.0.6/tools` - - -

- -

- - -### 5 Download tools for ESP32-C3 - -Download [**esp32-c3 Toolchain**](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-guides/tools/idf-tools.html#riscv32-esp-elf) corresponding to your environment (linux-amd64, win64, etc.). - -For example`riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz`, then un-archive. - -Then using the similar steps as in - -* [3. Download tools for ESP32-S2](#3-download-tools-for-esp32-s2) - * [3.1 Download Toolchain for Xtensa (ESP32-S2) based on GCC](#31-download-toolchain-for-xtensa-esp32-s2-based-on-gcc) - * [3.2 Download esptool](#32-download-esptool) - * [3.3 Unzip](#33-unzip) -* [4. Update tools](#4-update-tools) - * [4.1 Update Toolchain](#41-update-toolchain) - * [4.2 Update esptool](#42-update-esptool) - -then copy whole `riscv32-esp-elf` directory into `/home/your_account/.arduino15/packages/esp32/hardware/esp32/1.0.6/tools` - -

- -

- - -### 6. esp32-s2 WebServer Library Patch - -#### Necessary only for esp32 core v1.0.6- - -If you haven't installed a new version with [WebServer.handleClient delay PR #4350](https://github.com/espressif/arduino-esp32/pull/4350) or haven't applied the above mentioned PR, you have to use the following patch. - - -**To be able to run Config Portal on ESP32-S2 boards**, you have to copy the files in [esp32-s2 WebServer Patch](esp32s2_WebServer_Patch/) directory into esp32-s2 WebServer library directory (~/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WebServer). - -Supposing the esp32-s2 version is 1.0.4, these files `WebServer.h/cpp` must be copied into the directory to replace: - -- `~/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WebServer/src/WebServer.h` -- `~/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WebServer/src/WebServer.cpp` - -### 7. esp32-c3 ESPAsyncWebServer Library Patch - - -If you haven't installed a new version with [Fix compiler error for ESP32-C3 #970](https://github.com/me-no-dev/ESPAsyncWebServer/pull/970) or haven't applied the above mentioned PR, you have to use the following patch. - - -**To be able to compile on ESP32-C3 boards**, you have to copy the file in [AsyncWebSocket.cpp](esp32c3_ESPAsyncWebServer_Patch/AsyncWebSocket.cpp) directory into Arduino ESPAsyncWebServer library directory (~/Arduino/libraries/ESPAsyncWebServer/src/AsyncWebSocket.cpp) - -Not fixing the file, you'll receive the compile error as follows : - -``` -/home/aa/Arduino/libraries/ESPAsyncWebServer-master/src/AsyncWebSocket.cpp: In member function 'IPAddress AsyncWebSocketClient::remoteIP()': -/home/aa/Arduino/libraries/ESPAsyncWebServer-master/src/AsyncWebSocket.cpp:843:28: error: call of overloaded 'IPAddress(unsigned int)' is ambiguous - return IPAddress(0U); - ^ -``` - - ---- - -That's it. You're now ready to compile and test for ESP32-S2 now - ---- ---- ### Note for Platform IO using ESP32 LittleFS @@ -1677,8 +1390,8 @@ The following is the sample terminal output when running example [Async_ESP8266W ``` Starting Async_ESP8266WM_MRD_Config using LittleFS with SSL on ESP8266_NODEMCU_ESP12E -ESP8266 core v3.0.1 -Blynk_Async_WM SSL for ESP8266 v1.6.1 +ESP8266 core v3.0.2 +Blynk_Async_WM SSL for ESP8266 v1.6.2 ESP_MultiResetDetector v1.1.1 LittleFS Flag read = 0xFFFE0001 multiResetDetectorFlag = 0xFFFE0001 @@ -1758,8 +1471,8 @@ BBBBBB ``` Starting Async_ESP8266WM_MRD_Config using LittleFS with SSL on ESP8266_NODEMCU_ESP12E -ESP8266 core v3.0.1 -Blynk_Async_WM SSL for ESP8266 v1.6.1 +ESP8266 core v3.0.2 +Blynk_Async_WM SSL for ESP8266 v1.6.2 ESP_MultiResetDetector v1.1.1 LittleFS Flag read = 0xFFFC0003 multiResetDetectorFlag = 0xFFFC0003 @@ -1870,8 +1583,8 @@ F[229521] id: = HueNet1 ``` Starting Async_ESP8266WM_MRD_Config using LittleFS with SSL on ESP8266_NODEMCU_ESP12E -ESP8266 core v3.0.1 -Blynk_Async_WM SSL for ESP8266 v1.6.1 +ESP8266 core v3.0.2 +Blynk_Async_WM SSL for ESP8266 v1.6.2 ESP_MultiResetDetector v1.1.1 LittleFS Flag read = 0xFFFE0001 multiResetDetectorFlag = 0xFFFE0001 @@ -1957,7 +1670,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.6.1 +Blynk_Async_WM SSL for ESP32 v1.6.2 ESP_MultiResetDetector v1.1.1 LittleFS Flag read = 0xFFFE0001 multiResetDetectorFlag = 0xFFFE0001 @@ -2036,7 +1749,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.6.1 +Blynk_Async_WM SSL for ESP32 v1.6.2 ESP_MultiResetDetector v1.1.1 LittleFS Flag read = 0xFFFC0003 multiResetDetectorFlag = 0xFFFC0003 @@ -2141,7 +1854,7 @@ RFRFRF[188660] id: = HueNet1 ``` Starting Async_ESP32WM_MRD_Config using LittleFS with SSL on ESP32_DEV -Blynk_Async_WM SSL for ESP32 v1.6.1 +Blynk_Async_WM SSL for ESP32 v1.6.2 ESP_MultiResetDetector v1.1.1 LittleFS Flag read = 0xFFFE0001 multiResetDetectorFlag = 0xFFFE0001 @@ -2278,7 +1991,7 @@ The following is the sample terminal output when running example [Async_ESP32_Mu ``` Starting Async_ESP32_MultiTask using LittleFS without SSL on ESP32_DEV -Blynk_Async_WM for ESP32 v1.6.1 +Blynk_Async_WM for ESP32 v1.6.2 ESP_DoubleResetDetector v1.1.1 [1431] Hostname=ESP32-Async-MTask [1517] LoadCfgFile @@ -2490,7 +2203,7 @@ Blynk.resetAndEnterConfigPortal(); ``` Starting Async_ESP32WM_MRD_ForcedConfig using LittleFS with SSL on ESP32_DEV -Blynk_Async_WM SSL for ESP32 v1.6.1 +Blynk_Async_WM SSL for ESP32 v1.6.2 ESP_MultiResetDetector v1.1.1 LittleFS Flag read = 0xFFFE0001 multiResetDetectorFlag = 0xFFFE0001 @@ -2581,7 +2294,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.6.1 +Blynk_Async_WM SSL for ESP32 v1.6.2 ESP_MultiResetDetector v1.1.1 LittleFS Flag read = 0xFFFE0001 multiResetDetectorFlag = 0xFFFE0001 @@ -2696,7 +2409,7 @@ RF[66298] id: = HueNet1 ``` Starting Async_ESP32WM_MRD_ForcedConfig using LittleFS with SSL on ESP32_DEV -Blynk_Async_WM SSL for ESP32 v1.6.1 +Blynk_Async_WM SSL for ESP32 v1.6.2 ESP_MultiResetDetector v1.1.1 LittleFS Flag read = 0xFFFE0001 multiResetDetectorFlag = 0xFFFE0001 @@ -2795,7 +2508,7 @@ Blynk.resetAndEnterConfigPortalPersistent(); ``` Starting Async_ESP32WM_MRD_ForcedConfig using LittleFS with SSL on ESP32_DEV -Blynk_Async_WM SSL for ESP32 v1.6.1 +Blynk_Async_WM SSL for ESP32 v1.6.2 ESP_MultiResetDetector v1.1.1 LittleFS Flag read = 0xFFFE0001 multiResetDetectorFlag = 0xFFFE0001 @@ -2886,7 +2599,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.6.1 +Blynk_Async_WM SSL for ESP32 v1.6.2 ESP_MultiResetDetector v1.1.1 LittleFS Flag read = 0xFFFE0001 multiResetDetectorFlag = 0xFFFE0001 @@ -2998,7 +2711,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.6.1 +Blynk_Async_WM SSL for ESP32 v1.6.2 ESP_MultiResetDetector v1.1.1 LittleFS Flag read = 0xFFFE0001 multiResetDetectorFlag = 0xFFFE0001 @@ -3084,7 +2797,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.6.1 +Blynk_Async_WM SSL for ESP32 v1.6.2 ESP_DoubleResetDetector v1.1.1 [958] Set CustomsStyle to : [980] Set CustomsHeadElement to : @@ -3164,7 +2877,7 @@ The following is the sample terminal output when running example [Async_ESP32WM_ ``` Starting Async_ESP32WM_MRD_ForcedConfig using LittleFS with SSL on ESP32_DEV -Blynk_Async_WM SSL for ESP32 v1.6.1 +Blynk_Async_WM SSL for ESP32 v1.6.2 ESP_MultiResetDetector v1.1.1 [228] Set CustomsStyle to : [250] Set CustomsHeadElement to : @@ -3248,7 +2961,7 @@ Pubs Topics = default-mqtt-PubTopic ``` Starting Async_ESP32WM_MRD_ForcedConfig using LittleFS with SSL on ESP32_DEV -Blynk_Async_WM SSL for ESP32 v1.6.1 +Blynk_Async_WM SSL for ESP32 v1.6.2 ESP_MultiResetDetector v1.1.1 [229] Set CustomsStyle to : [251] Set CustomsHeadElement to : @@ -3313,14 +3026,14 @@ RBRBRBRBRBRBRBRB --- -### 8. Async_ESP8266WM_MRD_Config using LITTLEFS with SSL on ESP8266_NODEMCU_ESP12E using new ESP8266 core v3.0.1 +### 8. Async_ESP8266WM_MRD_Config using LITTLEFS with SSL on ESP8266_NODEMCU_ESP12E using new ESP8266 core v3.0.2 -The following is the sample terminal output when running example [Async_ESP8266WM_MRD_Config](examples/Async_ESP8266WM_MRD_Config) on **ESP8266_NODEMCU_ESP12E** using new **ESP8266 core v3.0.1** +The following is the sample terminal output when running example [Async_ESP8266WM_MRD_Config](examples/Async_ESP8266WM_MRD_Config) on **ESP8266_NODEMCU_ESP12E** using new **ESP8266 core v3.0.2** ``` Starting Async_ESP8266WM_MRD_Config using LittleFS with SSL on ESP8266_NODEMCU_ESP12E -ESP8266 core v3.0.1 -Blynk_Async_WM SSL for ESP8266 v1.6.1 +ESP8266 core v3.0.2 +Blynk_Async_WM SSL for ESP8266 v1.6.2 ESP_MultiResetDetector v1.1.1 [268] Set CustomsStyle to : [290] Set CustomsHeadElement to : @@ -3437,82 +3150,6 @@ Sometimes, the library will only work if you update the board core to the latest --- --- -## Releases - -### Releases v1.6.1 - -1. Add configurable connectMultiWiFi parameters. Check [Minimize blocking during multi-wifi reconnect #6](https://github.com/khoih-prog/Blynk_Async_WM/issues/6) -2. Update ESP8266_CORE_VERSION for 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. -2. Fix SSL issue caused by breaking ESP8266 core v3.0.0. Now the better **BearSSL** is used in both ESP32 and ESP8266 to replace the ESP8266 deprecated `axTLS`. Check [Remove axTLS from code and documentation #7437](https://github.com/esp8266/Arduino/pull/7437) -3. Fix the `BLYNK_INFO_DEVICE`displaying the generic ESP8266 board with Blynk logo. Caused by new ESP8266 core changes of `build.board`. For example from `ESP8266_NODEMCU` in core v2.7.4 to `ESP8266_NODEMCU_ESP12E` in core v3.0.0 -4. Fix many warnings only displayed in new core ESP8266 v3.0.0 -5. Make code compatible for either new ESP8266 core v3.0.0+ or ealier cores v2.7.4- - -### 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](https://github.com/khoih-prog/WiFiManager_NINA_Lite/pull/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 - -### 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). -2. Add **EEPROM and SPIFFS** support to new **ESP32-C3** 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). -3. Fix SSL issue with Blynk Cloud Server -4. Update examples - -### Major Releases v1.3.0 - -1. Configurable **Customs HTML Headers**, including Customs Style, Customs Head Elements, CORS Header. -2. Add support to **ESP32-S2 (ESP32-S2 Saola and AI-Thinker ESP-12K)**. Currently using EEPROM only. To add support to LittleFS and SPIFFS in future releases. -3. Fix Config Portal Bug. -4. Tested with [**Latest ESP32 Core 1.0.5**](https://github.com/espressif/arduino-esp32) for ESP32-based boards. -5. Update examples - -### Releases v1.2.3 - -1. To permit auto-reset after configurable timeout if DRD/MRD or non-persistent forced-CP. Check [**Good new feature: Blynk.resetAndEnterConfigPortal() Thanks & question #27**](https://github.com/khoih-prog/Blynk_WM/issues/27) - -### Releases v1.2.2 - -1. Fix rare Config Portal bug not updating Config and dynamic Params data successfully in very noisy or weak WiFi situation - -### 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](https://github.com/khoih-prog/Blynk_WM/issues/25) -2. Add examples to demo the new Virtual ConfigPortal SW feature -3. Optimize code - -### Major Releases v1.2.0 - -1. Add support to LittleFS for ESP32 using [LITTLEFS](https://github.com/lorol/LITTLEFS) Library -2. Add support to MultiDetectDetector. **MultiDetectDetector** feature to force Config Portal when configurable multi-reset is detected within predetermined time. -3. Clean-up all compiler warnings possible. -4. Add Table of Contents -5. Modify Version String -6. Add MRD-related examples. - -### Releases v1.1.0 - -1. Add examples using RTOS MultiTask to avoid blocking in operation. -2. Add Version String. - -### Releases v1.0.16 - -1. Initial coding to use [ESPAsyncWebServer](https://github.com/me-no-dev/ESPAsyncWebServer) instead of (ESP8266)WebServer. -2. Bump up to v1.0.16 to sync with [Blynk_WiFiManager library](https://github.com/khoih-prog/Blynk_WM) v1.0.16. - ---- ### Issues ### diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..65e74c0 --- /dev/null +++ b/changelog.md @@ -0,0 +1,114 @@ +## Blynk_Async_WM + +[![arduino-library-badge](https://www.ardu-badge.com/badge/Blynk_Async_WM.svg?)](https://www.ardu-badge.com/Blynk_Async_WM) +[![GitHub release](https://img.shields.io/github/release/khoih-prog/Blynk_Async_WM.svg)](https://github.com/khoih-prog/Blynk_Async_WM/releases) +[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/khoih-prog/Blynk_Async_WM/blob/master/LICENSE) +[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](#Contributing) +[![GitHub issues](https://img.shields.io/github/issues/khoih-prog/Blynk_Async_WM.svg)](http://github.com/khoih-prog/Blynk_Async_WM/issues) +[![star this repo](https://githubbadges.com/star.svg?user=khoih-prog&repo=Blynk_Async_WM)](https://github.com/khoih-prog/Blynk_Async_WM) + +--- +--- + +## Table of Contents + +* [Changelog](#changelog) + * [Releases v1.6.2](#releases-v162) + * [Releases v1.6.1](#releases-v161) + * [Major Releases v1.6.0](#major-releases-v160) + * [Major Releases v1.5.0](#major-releases-v150) + * [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) + * [Releases v1.2.2](#releases-v122) + * [Releases v1.2.1](#releases-v121) + * [Major Releases v1.2.0](#major-releases-v120) + * [Releases v1.1.0](#releases-v110) + * [Releases v1.0.16](#releases-v1016) + +--- +--- + +## Changelog + +### Releases v1.6.2 + +1. Update `platform.ini` and `library.json` to use original `khoih-prog` instead of `khoih.prog` after PIO fix +2. Update ESP8266_CORE_VERSION for ESP8266 core v3.0.2+ + +### Releases v1.6.1 + +1. Add configurable connectMultiWiFi parameters. Check [Minimize blocking during multi-wifi reconnect #6](https://github.com/khoih-prog/Blynk_Async_WM/issues/6) +2. Update ESP8266_CORE_VERSION for 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. +2. Fix SSL issue caused by breaking ESP8266 core v3.0.0. Now the better **BearSSL** is used in both ESP32 and ESP8266 to replace the ESP8266 deprecated `axTLS`. Check [Remove axTLS from code and documentation #7437](https://github.com/esp8266/Arduino/pull/7437) +3. Fix the `BLYNK_INFO_DEVICE`displaying the generic ESP8266 board with Blynk logo. Caused by new ESP8266 core changes of `build.board`. For example from `ESP8266_NODEMCU` in core v2.7.4 to `ESP8266_NODEMCU_ESP12E` in core v3.0.0 +4. Fix many warnings only displayed in new core ESP8266 v3.0.0 +5. Make code compatible for either new ESP8266 core v3.0.0+ or ealier cores v2.7.4- + +### 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](https://github.com/khoih-prog/WiFiManager_NINA_Lite/pull/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 + +### 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). +2. Add **EEPROM and SPIFFS** support to new **ESP32-C3** 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). +3. Fix SSL issue with Blynk Cloud Server +4. Update examples + +### Major Releases v1.3.0 + +1. Configurable **Customs HTML Headers**, including Customs Style, Customs Head Elements, CORS Header. +2. Add support to **ESP32-S2 (ESP32-S2 Saola and AI-Thinker ESP-12K)**. Currently using EEPROM only. To add support to LittleFS and SPIFFS in future releases. +3. Fix Config Portal Bug. +4. Tested with [**Latest ESP32 Core 1.0.5**](https://github.com/espressif/arduino-esp32) for ESP32-based boards. +5. Update examples + +### Releases v1.2.3 + +1. To permit auto-reset after configurable timeout if DRD/MRD or non-persistent forced-CP. Check [**Good new feature: Blynk.resetAndEnterConfigPortal() Thanks & question #27**](https://github.com/khoih-prog/Blynk_WM/issues/27) + +### Releases v1.2.2 + +1. Fix rare Config Portal bug not updating Config and dynamic Params data successfully in very noisy or weak WiFi situation + +### 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](https://github.com/khoih-prog/Blynk_WM/issues/25) +2. Add examples to demo the new Virtual ConfigPortal SW feature +3. Optimize code + +### Major Releases v1.2.0 + +1. Add support to LittleFS for ESP32 using [LITTLEFS](https://github.com/lorol/LITTLEFS) Library +2. Add support to MultiDetectDetector. **MultiDetectDetector** feature to force Config Portal when configurable multi-reset is detected within predetermined time. +3. Clean-up all compiler warnings possible. +4. Add Table of Contents +5. Modify Version String +6. Add MRD-related examples. + + +### Releases v1.1.0 + +1. Add examples using RTOS MultiTask to avoid blocking in operation. +2. Add Version String. + + +### Releases v1.0.16 + +1. Initial coding to use [ESPAsyncWebServer](https://github.com/me-no-dev/ESPAsyncWebServer) instead of (ESP8266)WebServer. +2. Bump up to v1.0.16 to sync with [Blynk_WiFiManager library](https://github.com/khoih-prog/Blynk_WM) v1.0.16. + diff --git a/library.json b/library.json index 9db60f6..3de1334 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Blynk_Async_WM", - "version": "1.6.1", + "version": "1.6.2", "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. Now with scanning of WiFi networks for selection in Configuration Portal and working with new ESP8266 core v3.0.1 and ESP32 core v1.0.6", "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": @@ -31,13 +31,13 @@ "platforms": ["espressif8266", "espressif32"] }, { - "owner": "khoih.prog", + "owner": "khoih-prog", "name": "ESP_DoubleResetDetector", "version": "^1.1.1", "platforms": ["espressif8266", "espressif32"] }, { - "owner": "khoih.prog", + "owner": "khoih-prog", "name": "ESP_MultiResetDetector", "version": "^1.1.1", "platforms": ["espressif8266", "espressif32"] diff --git a/library.properties b/library.properties index eb115b7..5c0476c 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Blynk_Async_WM -version=1.6.1 +version=1.6.2 author=Khoi Hoang license=MIT maintainer=Khoi Hoang diff --git a/platformio/platformio.ini b/platformio/platformio.ini index 98eba10..8a997d9 100644 --- a/platformio/platformio.ini +++ b/platformio/platformio.ini @@ -11,9 +11,11 @@ [platformio] ; ============================================================ ; chose environment: +; ESP8266 ; ESP32 ; ============================================================ -default_envs = ESP32 +default_envs = ESP8266 +;default_envs = ESP32 [env] ; ============================================================ @@ -30,11 +32,21 @@ lib_compat_mode = strict lib_deps = ; PlatformIO 4.x - Blynk@>=0.6.1 - ESP_DoubleResetDetector@>=1.1.1 + Blynk@~0.6.1 + ESP_DoubleResetDetector@~1.1.1 + ESP_MultiResetDetector@~1.1.1 + ESP Async WebServer@~1.2.3 + ESPAsyncTCP@~1.2.2 + AsyncTCP@~1.1.1 + LittleFS_esp32@>=1.0.6 ; PlatformIO 5.x -; blynkkk/Blynk@>=0.6.1 -; khoih.prog/ESP_DoubleResetDetector@>=1.1.1 +; blynkkk/Blynk@~0.6.1 +; khoih-prog/ESP_DoubleResetDetector@~1.1.1 +; khoih-prog/ESP_MultiResetDetector@~1.1.1 +; me-no-dev/ESP Async WebServer@~1.2.3 +; me-no-dev/ESPAsyncTCP@~1.2.2 +; me-no-dev/AsyncTCP@~1.1.1 +; lorol/LittleFS_esp32@>=1.0.6 build_flags = ; set your debug output (default=Serial) @@ -42,9 +54,54 @@ build_flags = ; comment the folowing line to enable WiFi debugging -D NDEBUG +[env:ESP8266] +platform = espressif8266 +framework = arduino +; ============================================================ +; Board configuration +; choose your board by uncommenting one of the following lines +; ============================================================ +;board = gen4iod +;board = huzzah +;board = oak +;board = esp_wroom_02 +;board = espduino +;board = espectro +;board = espino +;board = espresso_lite_v1 +;board = espresso_lite_v2 +;board = esp12e +;board = esp01_1m +;board = esp01 +;board = esp07 +;board = esp8285 +;board = heltec_wifi_kit_8 +;board = inventone +;board = nodemcu +board = nodemcuv2 +;board = modwifi +;board = phoenix_v1 +;board = phoenix_v2 +;board = sparkfunBlynk +;board = thing +;board = thingdev +;board = esp210 +;board = espinotee +;board = d1 +;board = d1_mini +;board = d1_mini_lite +;board = d1_mini_pro +;board = wifi_slot +;board = wifiduino +;board = wifinfo +;board = wio_link +;board = wio_node +;board = xinabox_cw01 +;board = esp32doit-devkit-v1 + [env:ESP32] platform = espressif32 -framework = arduino +framework = arduino, espidf ; ============================================================ ; Board configuration ; choose your board by uncommenting one of the following lines diff --git a/src/BlynkSimpleEsp32_Async_WM.h b/src/BlynkSimpleEsp32_Async_WM.h index 95cf94c..bbd4b69 100644 --- a/src/BlynkSimpleEsp32_Async_WM.h +++ b/src/BlynkSimpleEsp32_Async_WM.h @@ -17,7 +17,7 @@ @date Jan 2015 @brief - Version: 1.6.1 + Version: 1.6.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,6 +35,7 @@ 1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal 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 15/07/2021 Add configurable connectMultiWiFi parameters. Update for ESP8266 core v3.0.1 + 1.6.1 K Hoang 13/08/2021 Update `platform.ini` and `library.json` ********************************************************************************************************************************/ #pragma once @@ -46,7 +47,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.6.1" +#define BLYNK_ASYNC_WM_VERSION "Blynk_Async_WM for ESP32 v1.6.2" ////////////////////////////////////////////// // From v1.6.0 to display correct BLYNK_INFO_DEVICE diff --git a/src/BlynkSimpleEsp32_SSL_Async_WM.h b/src/BlynkSimpleEsp32_SSL_Async_WM.h index 432d63f..c8ffbcf 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.6.1 + Version: 1.6.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,6 +35,7 @@ 1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal 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 15/07/2021 Add configurable connectMultiWiFi parameters. Update for ESP8266 core v3.0.1 + 1.6.1 K Hoang 13/08/2021 Update `platform.ini` and `library.json` ********************************************************************************************************************************/ #pragma once @@ -46,7 +47,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.6.1" +#define BLYNK_ASYNC_WM_VERSION "Blynk_Async_WM SSL for ESP32 v1.6.2" ////////////////////////////////////////////// // From v1.6.0 to display correct BLYNK_INFO_DEVICE diff --git a/src/BlynkSimpleEsp8266_Async_WM.h b/src/BlynkSimpleEsp8266_Async_WM.h index f613965..e30fb80 100644 --- a/src/BlynkSimpleEsp8266_Async_WM.h +++ b/src/BlynkSimpleEsp8266_Async_WM.h @@ -17,7 +17,7 @@ @date Jan 2015 @brief - Version: 1.6.1 + Version: 1.6.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,6 +35,7 @@ 1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal 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 15/07/2021 Add configurable connectMultiWiFi parameters. Update for ESP8266 core v3.0.1 + 1.6.1 K Hoang 13/08/2021 Update `platform.ini` and `library.json` ********************************************************************************************************************************/ #pragma once @@ -52,9 +53,12 @@ ///////////////////////////////////////////// -#if (ARDUINO_ESP8266_GIT_VER == 0xcbf44fb3) +#if (ARDUINO_ESP8266_GIT_VER == 0xcf6ff4c4) + #define USING_ESP8266_CORE_VERSION 30002 + #define ESP8266_CORE_VERSION "ESP8266 core v3.0.2" +#elif (ARDUINO_ESP8266_GIT_VER == 0xcbf44fb3) #define USING_ESP8266_CORE_VERSION 30001 - #define ESP8266_CORE_VERSION "ESP8266 core v3.0.1" + #define ESP8266_CORE_VERSION "ESP8266 core v3.0.1" #elif (ARDUINO_ESP8266_GIT_VER == 0xefb0341a) #define USING_ESP8266_CORE_VERSION 30000 #define ESP8266_CORE_VERSION "ESP8266 core v3.0.0" diff --git a/src/BlynkSimpleEsp8266_SSL_Async_WM.h b/src/BlynkSimpleEsp8266_SSL_Async_WM.h index c436bde..c25c707 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.6.1 + Version: 1.6.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,6 +35,7 @@ 1.5.0 K Hoang 25/04/2021 Enable scan of WiFi networks for selection in Configuration Portal 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 15/07/2021 Add configurable connectMultiWiFi parameters. Update for ESP8266 core v3.0.1 + 1.6.1 K Hoang 13/08/2021 Update `platform.ini` and `library.json` ********************************************************************************************************************************/ #pragma once @@ -52,9 +53,12 @@ ///////////////////////////////////////////// -#if (ARDUINO_ESP8266_GIT_VER == 0xcbf44fb3) +#if (ARDUINO_ESP8266_GIT_VER == 0xcf6ff4c4) + #define USING_ESP8266_CORE_VERSION 30002 + #define ESP8266_CORE_VERSION "ESP8266 core v3.0.2" +#elif (ARDUINO_ESP8266_GIT_VER == 0xcbf44fb3) #define USING_ESP8266_CORE_VERSION 30001 - #define ESP8266_CORE_VERSION "ESP8266 core v3.0.1" + #define ESP8266_CORE_VERSION "ESP8266 core v3.0.1" #elif (ARDUINO_ESP8266_GIT_VER == 0xefb0341a) #define USING_ESP8266_CORE_VERSION 30000 #define ESP8266_CORE_VERSION "ESP8266 core v3.0.0"