From efb5131baffec201e170895f25b185f2b53feb83 Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Wed, 26 Jan 2022 21:35:58 -0500 Subject: [PATCH] v1.5.1 to update and add support ### Release v1.5.1 1. Update to be compatible with new `FlashStorage_SAMD` 2. Use better `FlashStorage_STM32` or `FlashStorage_STM32F1` library for STM32 3. Add support to generic SAMD21 boards : `__SAMD21E1xA__`, `__SAMD21G1xA__` and `__SAMD21J1xA__` 4. Update `Packages' Patches` --- CONTRIBUTING.md | 7 +- README.md | 91 ++++++++++++++------------ changelog.md | 8 +++ examples/SAMD_ESP8266Shield/defines.h | 13 ++-- keywords.txt | 6 ++ library.json | 19 ++++-- library.properties | 4 +- platformio/platformio.ini | 18 ++--- src/Esp8266_AT_WM_Lite.h | 14 +++- src/Esp8266_AT_WM_Lite_DUE.h | 14 +++- src/Esp8266_AT_WM_Lite_Debug.h | 5 +- src/Esp8266_AT_WM_Lite_Mbed_RPi_Pico.h | 14 +++- src/Esp8266_AT_WM_Lite_RPi_Pico.h | 14 +++- src/Esp8266_AT_WM_Lite_SAMD.h | 30 ++++++--- src/Esp8266_AT_WM_Lite_STM32.h | 47 ++++++++----- src/Esp8266_AT_WM_Lite_nRF52.h | 14 +++- 16 files changed, 214 insertions(+), 104 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1bf3381..1cb38d2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,7 +15,7 @@ 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.19) or Platform.io version -* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, STM32 core v2.2.0, etc.) +* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP8266 core v3.0.2, ArduinoCore-mbed v2.6.1, etc.) * 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: @@ -27,9 +27,10 @@ Please ensure to specify the following: ``` Arduino IDE version: 1.8.19 -Arduino STM32 Core v2.2.0 +Nano_RP2040_Connect board +ArduinoCore-mbed v2.6.1 OS: Ubuntu 20.04 LTS -Linux xy-Inspiron-3593 5.4.0-92-generic #103-Ubuntu SMP Fri Nov 26 16:13:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux +Linux xy-Inspiron-3593 5.4.0-96-generic #109-Ubuntu SMP Wed Jan 12 16:49:16 UTC 2022 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 59841c2..783882a 100644 --- a/README.md +++ b/README.md @@ -192,23 +192,24 @@ This [**ESP_AT_WM_Lite** library](https://github.com/khoih-prog/ESP_AT_WM_Lite) 1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [![GitHub release](https://img.shields.io/github/release/arduino/Arduino.svg)](https://github.com/arduino/Arduino/releases/latest) 2. [`Arduino AVR core 1.8.3+`](https://github.com/arduino/ArduinoCore-avr) for Arduino (Use Arduino Board Manager) for AVR boards. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-avr.svg)](https://github.com/arduino/ArduinoCore-avr/releases/latest) 3. [`Arduino Core for STM32 v2.2.0+`](https://github.com/stm32duino/Arduino_Core_STM32) for STM32F/L/H/G/WB/MP1 boards (Nucleo-144 NUCLEO_F767ZI, Nucleo-64 NUCLEO_L053R8, etc.). [![GitHub release](https://img.shields.io/github/release/stm32duino/Arduino_Core_STM32.svg)](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest) - 4. [`Teensy core 1.55+`](https://www.pjrc.com/teensy/td_download.html) for Teensy (4.1, 4.0, 3.6, 3.5, 3,2, 3.1, 3.0, LC) boards + 4. [`Teensy core 1.56+`](https://www.pjrc.com/teensy/td_download.html) for Teensy (4.1, 4.0, 3.6, 3.5, 3,2, 3.1, 3.0, LC) boards 5. [`Arduino SAM DUE core v1.6.12+`](https://github.com/arduino/ArduinoCore-sam) for SAM DUE ARM Cortex-M3 boards. 6. [`Arduino SAMD core 1.8.12+`](https://github.com/arduino/ArduinoCore-samd) for SAMD ARM Cortex-M0+ boards. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-samd.svg)](https://github.com/arduino/ArduinoCore-samd/releases/latest) - 7. [`Adafruit SAMD core 1.7.5+`](https://github.com/adafruit/ArduinoCore-samd) for SAMD ARM Cortex-M0+ and M4 boards (Nano 33 IoT, etc.). [![GitHub release](https://img.shields.io/github/release/adafruit/ArduinoCore-samd.svg)](https://github.com/adafruit/ArduinoCore-samd/releases/latest) + 7. [`Adafruit SAMD core 1.7.7+`](https://github.com/adafruit/ArduinoCore-samd) for SAMD ARM Cortex-M0+ and M4 boards (Nano 33 IoT, etc.). [![GitHub release](https://img.shields.io/github/release/adafruit/ArduinoCore-samd.svg)](https://github.com/adafruit/ArduinoCore-samd/releases/latest) 8. [`Seeeduino SAMD core 1.8.2+`](https://github.com/Seeed-Studio/ArduinoCore-samd) for SAMD21/SAMD51 boards (XIAO M0, Wio Terminal, etc.). [![Latest release](https://img.shields.io/github/release/Seeed-Studio/ArduinoCore-samd.svg)](https://github.com/Seeed-Studio/ArduinoCore-samd/releases/latest/) - 9. [`Adafruit nRF52 v1.2.0+`](https://github.com/adafruit/Adafruit_nRF52_Arduino) for nRF52 boards such as Adafruit NRF52840_FEATHER, NRF52832_FEATHER, NRF52840_FEATHER_SENSE, NRF52840_ITSYBITSY, NRF52840_CIRCUITPLAY, NRF52840_CLUE, NRF52840_METRO, NRF52840_PCA10056, PARTICLE_XENON, **NINA_B302_ublox**, etc. [![GitHub release](https://img.shields.io/github/release/adafruit/Adafruit_nRF52_Arduino.svg)](https://github.com/adafruit/Adafruit_nRF52_Arduino/releases/latest) + 9. [`Adafruit nRF52 v1.3.0+`](https://github.com/adafruit/Adafruit_nRF52_Arduino) for nRF52 boards such as Adafruit NRF52840_FEATHER, NRF52832_FEATHER, NRF52840_FEATHER_SENSE, NRF52840_ITSYBITSY, NRF52840_CIRCUITPLAY, NRF52840_CLUE, NRF52840_METRO, NRF52840_PCA10056, PARTICLE_XENON, **NINA_B302_ublox**, etc. [![GitHub release](https://img.shields.io/github/release/adafruit/Adafruit_nRF52_Arduino.svg)](https://github.com/adafruit/Adafruit_nRF52_Arduino/releases/latest) 10. [`Arduino mbed_rp2040 core 2.6.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino RP2040-based boards, such as **Arduino Nano RP2040 Connect, RASPBERRY_PI_PICO, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest) -11. [`Earle Philhower's arduino-pico core v1.9.13+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest) -12. [`ESP8266_AT_WebServer library v1.5.2+`](https://github.com/khoih-prog/ESP8266_AT_WebServer) to be able to support ESP32-AT shields. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/ESP8266_AT_WebServer.svg?)](https://www.ardu-badge.com/ESP8266_AT_WebServer) -13. [`FlashStorage_SAMD library v1.2.1+`](https://github.com/khoih-prog/FlashStorage_SAMD) for SAMD21 and SAMD51 boards (ZERO, MKR, NANO_33_IOT, M0, M0 Pro, AdaFruit Itsy-Bitsy M4, etc.). To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/FlashStorage_SAMD.svg?)](https://www.ardu-badge.com/FlashStorage_SAMD) -14. [`FlashStorage_STM32 library v1.1.0+`](https://github.com/khoih-prog/FlashStorage_STM32) for STM32F/L/H/G/WB/MP1 boards. To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/FlashStorage_STM32.svg?)](https://www.ardu-badge.com/FlashStorage_STM32) -15. [`DueFlashStorage library v1.0.0+`](https://github.com/sebnil/DueFlashStorage) for SAM DUE. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/DueFlashStorage.svg?)](https://www.ardu-badge.com/DueFlashStorage) -16. [`Adafruit's LittleFS/InternalFS`](www.adafruit.com) for nRF52 -17. [`DoubleResetDetector_Generic v1.7.3+`](https://github.com/khoih-prog/DoubleResetDetector_Generic). To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/DoubleResetDetector_Generic.svg?)](https://www.ardu-badge.com/DoubleResetDetector_Generic) -18. [`Ai-Thinker AT Firmware v1.5.4`](https://github.com/khoih-prog/ESP8266_AT_WebServer/blob/master/AT_Firmwares/At_firmware_bin1.54.zip) or [`AT Firmware v1.7.4.0`](https://github.com/khoih-prog/ESP8266_AT_WebServer/blob/master/AT_Firmwares/AT_Firmware_bin_1.7.4.0.zip) for ESP8266-AT WiFi shields. -19. [`AT version_2.1.0.0_dev`](https://github.com/khoih-prog/ESP8266_AT_WebServer/blob/master/AT_Firmwares/AT_version_2.1.0.0_dev.zip) for ESP32-AT WiFi shields. -20. `AT version_1.1.4` for WIS600-01S and W600-AT WiFi shields. +11. [`Earle Philhower's arduino-pico core v1.9.14+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest) +12. [`ESP8266_AT_WebServer library v1.5.3+`](https://github.com/khoih-prog/ESP8266_AT_WebServer) to be able to support ESP32-AT shields. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/ESP8266_AT_WebServer.svg?)](https://www.ardu-badge.com/ESP8266_AT_WebServer) +13. [`FlashStorage_SAMD library v1.3.2+`](https://github.com/khoih-prog/FlashStorage_SAMD) for SAMD21 and SAMD51 boards (ZERO, MKR, NANO_33_IOT, M0, M0 Pro, AdaFruit Itsy-Bitsy M4, etc.). To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/FlashStorage_SAMD.svg?)](https://www.ardu-badge.com/FlashStorage_SAMD) +14. [`FlashStorage_STM32F1 library v1.1.0+`](https://github.com/khoih-prog/FlashStorage_STM32F1) for STM32F1/F3 boards. To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/FlashStorage_STM32F1.svg?)](https://www.ardu-badge.com/FlashStorage_STM32F1) +15. [`FlashStorage_STM32 library v1.2.0+`](https://github.com/khoih-prog/FlashStorage_STM32) for STM32F/L/H/G/WB/MP1 boards. To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/FlashStorage_STM32.svg?)](https://www.ardu-badge.com/FlashStorage_STM32) +16. [`DueFlashStorage library v1.0.0+`](https://github.com/sebnil/DueFlashStorage) for SAM DUE. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/DueFlashStorage.svg?)](https://www.ardu-badge.com/DueFlashStorage) +17. [`Adafruit's LittleFS/InternalFS`](www.adafruit.com) for nRF52 +18. [`DoubleResetDetector_Generic v1.8.0+`](https://github.com/khoih-prog/DoubleResetDetector_Generic). To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/DoubleResetDetector_Generic.svg?)](https://www.ardu-badge.com/DoubleResetDetector_Generic) +19. [`Ai-Thinker AT Firmware v1.5.4`](https://github.com/khoih-prog/ESP8266_AT_WebServer/blob/master/AT_Firmwares/At_firmware_bin1.54.zip) or [`AT Firmware v1.7.4.0`](https://github.com/khoih-prog/ESP8266_AT_WebServer/blob/master/AT_Firmwares/AT_Firmware_bin_1.7.4.0.zip) for ESP8266-AT WiFi shields. +20. [`AT version_2.1.0.0_dev`](https://github.com/khoih-prog/ESP8266_AT_WebServer/blob/master/AT_Firmwares/AT_version_2.1.0.0_dev.zip) for ESP32-AT WiFi shields. +21. `AT version_1.1.4` for WIS600-01S and W600-AT WiFi shields. --- @@ -309,19 +310,19 @@ You can also use this link [![arduino-library-badge](https://www.ardu-badge.com/ #### 1. For Adafruit nRF52840 and nRF52832 boards -**To be able to compile, run and automatically detect and display BOARD_NAME on nRF52840/nRF52832 boards**, you have to copy the whole [nRF52 Packages_Patches](Packages_Patches/adafruit/hardware/nrf52/1.2.0) directory into Adafruit nRF52 directory (~/.arduino15/packages/adafruit/hardware/nrf52/1.2.0). +**To be able to compile, run and automatically detect and display BOARD_NAME on nRF52840/nRF52832 boards**, you have to copy the whole [nRF52 Packages_Patches](Packages_Patches/adafruit/hardware/nrf52/1.3.0) directory into Adafruit nRF52 directory (~/.arduino15/packages/adafruit/hardware/nrf52/1.3.0). -Supposing the Adafruit nRF52 version is 1.2.0. These files must be copied into the directory: -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.2.0/platform.txt` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.2.0/boards.txt` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.2.0/cores/nRF5/Udp.h` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.2.0/cores/nRF5/Print.h` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.2.0/cores/nRF5/Print.cpp` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.2.0/variants/NINA_B302_ublox/variant.h` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.2.0/variants/NINA_B302_ublox/variant.cpp` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.2.0/variants/NINA_B112_ublox/variant.h` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.2.0/variants/NINA_B112_ublox/variant.cpp` -- **`~/.arduino15/packages/adafruit/hardware/nrf52/1.2.0/cores/nRF5/Udp.h`** +Supposing the Adafruit nRF52 version is 1.3.0. These files must be copied into the directory: +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.3.0/platform.txt` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.3.0/boards.txt` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.3.0/cores/nRF5/Udp.h` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.3.0/cores/nRF5/Print.h` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.3.0/cores/nRF5/Print.cpp` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.3.0/variants/NINA_B302_ublox/variant.h` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.3.0/variants/NINA_B302_ublox/variant.cpp` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.3.0/variants/NINA_B112_ublox/variant.h` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.3.0/variants/NINA_B112_ublox/variant.cpp` +- **`~/.arduino15/packages/adafruit/hardware/nrf52/1.3.0/cores/nRF5/Udp.h`** Whenever a new version is installed, remember to copy these files into the new version directory. For example, new version is x.yy.z These files must be copied into the directory: @@ -371,13 +372,13 @@ This file must be copied into the directory: #### 4. For Arduino SAMD boards - ***To be able to compile, run and automatically detect and display BOARD_NAME on Arduino SAMD (Nano-33-IoT, etc) boards***, you have to copy the whole [Arduino SAMD Packages_Patches](Packages_Patches/arduino/hardware/samd/1.8.11) directory into Arduino SAMD directory (~/.arduino15/packages/arduino/hardware/samd/1.8.11). + ***To be able to compile, run and automatically detect and display BOARD_NAME on Arduino SAMD (Nano-33-IoT, etc) boards***, you have to copy the whole [Arduino SAMD Packages_Patches](Packages_Patches/arduino/hardware/samd/1.8.12) directory into Arduino SAMD directory (~/.arduino15/packages/arduino/hardware/samd/1.8.12). #### For core version v1.8.10+ -Supposing the Arduino SAMD version is 1.8.11. Now only one file must be copied into the directory: +Supposing the Arduino SAMD version is 1.8.12. Now only one file must be copied into the directory: -- `~/.arduino15/packages/arduino/hardware/samd/1.8.11/platform.txt` +- `~/.arduino15/packages/arduino/hardware/samd/1.8.12/platform.txt` Whenever a new version is installed, remember to copy this files into the new version directory. For example, new version is x.yy.zz @@ -410,13 +411,13 @@ Whenever the above-mentioned compiler error issue is fixed with the new Arduino #### 5. For Adafruit SAMD boards - ***To be able to compile, run and automatically detect and display BOARD_NAME on Adafruit SAMD (Itsy-Bitsy M4, etc) boards***, you have to copy the whole [Adafruit SAMD Packages_Patches](Packages_Patches/adafruit/hardware/samd/1.7.5) directory into Adafruit samd directory (~/.arduino15/packages/adafruit/hardware/samd/1.7.5). + ***To be able to compile, run and automatically detect and display BOARD_NAME on Adafruit SAMD (Itsy-Bitsy M4, etc) boards***, you have to copy the whole [Adafruit SAMD Packages_Patches](Packages_Patches/adafruit/hardware/samd/1.7.7) directory into Adafruit samd directory (~/.arduino15/packages/adafruit/hardware/samd/1.7.7). -Supposing the Adafruit SAMD core version is 1.7.5. This file must be copied into the directory: +Supposing the Adafruit SAMD core version is 1.7.7. This file must be copied into the directory: -- `~/.arduino15/packages/adafruit/hardware/samd/1.7.5/platform.txt` -- `~/.arduino15/packages/adafruit/hardware/samd/1.7.5/cores/arduino/Print.h` -- `~/.arduino15/packages/adafruit/hardware/samd/1.7.5/cores/arduino/Print.cpp` +- `~/.arduino15/packages/adafruit/hardware/samd/1.7.7/platform.txt` +- `~/.arduino15/packages/adafruit/hardware/samd/1.7.7/cores/arduino/Print.h` +- `~/.arduino15/packages/adafruit/hardware/samd/1.7.7/cores/arduino/Print.cpp` Whenever a new version is installed, remember to copy this file into the new version directory. For example, new version is x.yy.zz This file must be copied into the directory: @@ -1465,7 +1466,7 @@ This is the terminal output when running [nRF52_ESP8266Shield](examples/nRF52_ES ``` Start nRF52_ESP8266Shield on NRF52840_FEATHER -ESP_AT_WM_Lite v1.5.0 +ESP_AT_WM_Lite v1.5.1 Debug Level = 3 [ESP_AT] Use ES8266-AT Command LittleFS Flag read = 0xd0d01234 @@ -1505,7 +1506,7 @@ FFFF ``` Start nRF52_ESP8266Shield on NRF52840_FEATHER -ESP_AT_WM_Lite v1.5.0 +ESP_AT_WM_Lite v1.5.1 Debug Level = 3 [ESP_AT] Use ES8266-AT Command LittleFS Flag read = 0xd0d04321 @@ -1541,7 +1542,7 @@ HHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH ``` Start nRF52_ESP8266Shield on NRF52840_FEATHER -ESP_AT_WM_Lite v1.5.0 +ESP_AT_WM_Lite v1.5.1 Debug Level = 3 [ESP_AT] Use ES8266-AT Command LittleFS Flag read = 0xd0d04321 @@ -1585,7 +1586,7 @@ This is the terminal output when running [SAMD_ESP8266Shield](examples/SAMD_ESP8 ``` Start SAMD_ESP8266Shield on ITSYBITSY_M4 -ESP_AT_WM_Lite v1.5.0 +ESP_AT_WM_Lite v1.5.1 Debug Level = 3 [ESP_AT] Use ES8266-AT Command Flag read = 0xffffffff @@ -1625,7 +1626,7 @@ FFFF[ESP_AT] h:UpdFlash ``` Start SAMD_ESP8266Shield on ITSYBITSY_M4 -ESP_AT_WM_Lite v1.5.0 +ESP_AT_WM_Lite v1.5.1 Debug Level = 3 [ESP_AT] Use ES8266-AT Command Flag read = 0xd0d04321 @@ -1653,7 +1654,7 @@ HHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH ``` Start SAMD_ESP8266Shield on ITSYBITSY_M4 -ESP_AT_WM_Lite v1.5.0 +ESP_AT_WM_Lite v1.5.1 Debug Level = 3 [ESP_AT] Use ES8266-AT Command Flag read = 0xd0d04321 @@ -1693,7 +1694,7 @@ This is the terminal output when running [RPi_Pico_ESP8266Shield](examples/RPi_P ``` Start RPi_Pico_ESP8266Shield on RASPBERRY_PI_PICO -ESP_AT_WM_Lite v1.5.0 +ESP_AT_WM_Lite v1.5.1 Debug Level = 3 [ESP_AT] Use ES8266-AT Command LittleFS Flag read = 0xd0d04321 @@ -1735,7 +1736,7 @@ FFFFFFFFF FFFF ``` Start RPi_Pico_ESP8266Shield on RASPBERRY_PI_PICO -ESP_AT_WM_Lite v1.5.0 +ESP_AT_WM_Lite v1.5.1 Debug Level = 4 [ESP_AT] Use ES8266-AT Command LittleFS Flag read = 0xd0d04321 @@ -1802,7 +1803,7 @@ This is the terminal output when running [RPi_Pico_ESP8266Shield](examples/RPi_P ``` Start RPi_Pico_ESP8266Shield on MBED RASPBERRY_PI_PICO -ESP_AT_WM_Lite v1.5.0 +ESP_AT_WM_Lite v1.5.1 Debug Level = 3 [ESP_AT] Use ES8266-AT Command LittleFS size (KB) = 64 @@ -1846,7 +1847,7 @@ FFFFFFFFF FFFF ``` Start RPi_Pico_ESP8266Shield on MBED RASPBERRY_PI_PICO -ESP_AT_WM_Lite v1.5.0 +ESP_AT_WM_Lite v1.5.1 Debug Level = 4 [ESP_AT] Use ES8266-AT Command LittleFS size (KB) = 64 @@ -1953,6 +1954,10 @@ Submit issues to: [ESP_AT_WM_Lite issues](https://github.com/khoih-prog/ESP_AT_W 17. Add support to RP2040-based boards, such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, using [**Arduino-mbed RP2040** core](https://github.com/arduino/ArduinoCore-mbed) 18. Add support to **Arduino Nano RP2040 Connect** using [**Arduino mbed OS for Nano boards**](https://github.com/arduino/ArduinoCore-mbed). 19. Fix the blocking issue in loop() with configurable `WIFI_RECON_INTERVAL` +20. Update to be compatible with new `FlashStorage_SAMD` +21. Use better `FlashStorage_STM32` or `FlashStorage_STM32F1` library for STM32 +22. Add support to generic SAMD21 boards : `__SAMD21E1xA__`, `__SAMD21G1xA__` and `__SAMD21J1xA__` + --- --- diff --git a/changelog.md b/changelog.md index 53bfdb6..47433ad 100644 --- a/changelog.md +++ b/changelog.md @@ -12,6 +12,7 @@ ## Table of Contents * [Changelog](#changelog) + * [Release v1.5.1](#release-v151) * [Release v1.5.0](#release-v150) * [Release v1.4.1](#release-v141) * [Major Release v1.4.0](#major-release-v140) @@ -28,6 +29,13 @@ ## Changelog +### Release v1.5.1 + +1. Update to be compatible with new `FlashStorage_SAMD` +2. Use better `FlashStorage_STM32` or `FlashStorage_STM32F1` library for STM32 +3. Add support to generic SAMD21 boards : `__SAMD21E1xA__`, `__SAMD21G1xA__` and `__SAMD21J1xA__` +4. Update `Packages' Patches` + ### Release v1.5.0 1. Fix the blocking issue in loop(). Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/18) diff --git a/examples/SAMD_ESP8266Shield/defines.h b/examples/SAMD_ESP8266Shield/defines.h index c7aa2a0..ad62451 100644 --- a/examples/SAMD_ESP8266Shield/defines.h +++ b/examples/SAMD_ESP8266Shield/defines.h @@ -28,11 +28,14 @@ // Uncomment to use ESP32-AT commands //#define USE_ESP32_AT true -#if ( defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_SAMD_MKRWIFI1010) \ - || defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRFox1200) || defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310) \ - || defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_SAMD_MKRVIDOR4000) || defined(__SAMD21G18A__) \ - || defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS) || defined(__SAMD21E18A__) || defined(__SAMD51__) || defined(__SAMD51J20A__) || defined(__SAMD51J19A__) \ - || defined(__SAMD51G19A__) || defined(__SAMD21G18A__) ) +#if ( defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_SAMD_MKRWIFI1010) \ + || defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRFox1200) || defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310) \ + || defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_SAMD_MKRVIDOR4000) \ + || defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS) || defined(__SAMD51__) || defined(__SAMD51J20A__) \ + || defined(__SAMD51J19A__) || defined(__SAMD51G19A__) || defined(__SAMD51P19A__) \ + || defined(__SAMD21E15A__) || defined(__SAMD21E16A__) || defined(__SAMD21E17A__) || defined(__SAMD21E18A__) \ + || defined(__SAMD21G15A__) || defined(__SAMD21G16A__) || defined(__SAMD21G17A__) || defined(__SAMD21G18A__) \ + || defined(__SAMD21J15A__) || defined(__SAMD21J16A__) || defined(__SAMD21J17A__) || defined(__SAMD21J18A__) ) #if defined(ESP8266_AT_USE_SAMD) #undef ESP8266_AT_USE_SAMD #endif diff --git a/keywords.txt b/keywords.txt index a70bea5..e0ccf4c 100644 --- a/keywords.txt +++ b/keywords.txt @@ -39,6 +39,12 @@ IPAddressToString KEYWORD2 # LITERAL1 +ESP_AT_WM_LITE_VERSION LITERAL1 +ESP_AT_WM_LITE_VERSION_MAJOR LITERAL1 +ESP_AT_WM_LITE_VERSION_MINOR LITERAL1 +ESP_AT_WM_LITE_VERSION_PATCH LITERAL1 +ESP_AT_WM_LITE_VERSION_INT LITERAL1 + CONFIG_DATA_SIZE LITERAL1 NUM_MENU_ITEMS LITERAL1 ESP_AT_HTML_HEAD LITERAL1 diff --git a/library.json b/library.json index df3edbc..178c192 100644 --- a/library.json +++ b/library.json @@ -1,8 +1,8 @@ { "name": "ESP_AT_WM_Lite", - "version": "1.5.0", + "version": "1.5.1", "keywords": "wifi, MultiWiFi, ESP8266-AT, ESP32-AT, SAM DUE, SAMD, nRF52, STM32, rpi-pico, rp2040, nano-rp2040-connect, Credentials, config-portal, dynamic-params, EEPROM, FlashStorage-SAMD, FlashStorage-STM32, LittleFS, DueFlashStorage, AVR Mega, Double-Reset, FlashStorage, light-weight", - "description": "Light-Weight WiFi/Credentials Manager for AVR Mega, SAM DUE, SAMD21, SAMD51, nRF52, STM32, RP2040-based Nano_RP2040_connect, RASPBERRY_PI_PICO boards, etc. using ESP8266/ESP32-AT-command shields with web configuration portal. Powerful-yet-simple-to-use feature to enable adding dynamic custom parameters. You can also specify static AP and STA IP. Use much less memory compared to full-fledge WiFiManager. Config Portal will be auto-adjusted to match the number of dynamic custom parameters. Credentials and dynamic custom parameters are saved in EPROM, FlashStorage_SAMD, FlashStorage_STM32, DueFlashStorage or nRF52/RP2040 LittleFS.", + "description": "Light-Weight WiFi/Credentials Manager for AVR Mega, SAM DUE, SAMD21, SAMD51, nRF52, STM32, RP2040-based Nano_RP2040_connect, RASPBERRY_PI_PICO boards, etc. using ESP8266/ESP32-AT-command shields with web configuration portal. Powerful-yet-simple-to-use feature to enable adding dynamic custom parameters. You can also specify static AP and STA IP. Use much less memory compared to full-fledge WiFiManager. Config Portal will be auto-adjusted to match the number of dynamic custom parameters. Credentials and dynamic custom parameters are saved in EPROM, FlashStorage_SAMD, FlashStorage_STM32, FlashStorage_STM32F1, DueFlashStorage or nRF52/RP2040 LittleFS.", "authors": { "name": "Khoi Hoang", @@ -27,19 +27,25 @@ { "owner": "khoih-prog", "name": "DoubleResetDetector_Generic", - "version": ">=1.7.3", + "version": ">=1.8.0", "platforms": ["*"] }, { "owner": "khoih-prog", "name": "FlashStorage_STM32", - "version": ">=1.1.0", + "version": ">=1.2.0", + "platforms": ["*"] + }, + { + "owner": "khoih-prog", + "name": "FlashStorage_STM32F1", + "version": "^1.1.0", "platforms": ["*"] }, { "owner": "khoih-prog", "name": "FlashStorage_SAMD", - "version": "^1.2.1", + "version": "^1.3.2", "platforms": ["*"] }, { @@ -51,10 +57,11 @@ { "owner": "khoih-prog", "name": "ESP8266_AT_WebServer", - "version": "^1.5.2", + "version": "^1.5.3", "platforms": ["*"] } ], + "license": "MIT", "frameworks": "*", "platforms": "*", "examples": "examples/*/*/*.ino" diff --git a/library.properties b/library.properties index 720835e..6680ba5 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ESP_AT_WM_Lite -version=1.5.0 +version=1.5.1 author=Khoi Hoang maintainer=Khoi Hoang license=MIT @@ -8,4 +8,4 @@ paragraph=Light-Weight WiFi/Credentials Manager for AVR Mega, SAM DUE, SAMD21, S category=Communication url=https://github.com/khoih-prog/ESP_AT_WM_Lite architectures=* -depends=ESP8266_AT_WebServer,DoubleResetDetector_Generic,FlashStorage_SAMD,FlashStorage_STM32,DueFlashStorage +depends=ESP8266_AT_WebServer,DoubleResetDetector_Generic,FlashStorage_SAMD,FlashStorage_STM32,FlashStorage_STM32F1,DueFlashStorage diff --git a/platformio/platformio.ini b/platformio/platformio.ini index cced953..c0d5ea7 100644 --- a/platformio/platformio.ini +++ b/platformio/platformio.ini @@ -38,17 +38,19 @@ lib_compat_mode = strict lib_deps = ; PlatformIO 4.x -; ESP8266_AT_WebServer@~1.5.2 -; DoubleResetDetector_Generic@~1.7.3 -; FlashStorage_STM32@~1.1.0 -; FlashStorage_SAMD@~1.2.1 +; ESP8266_AT_WebServer@~1.5.3 +; DoubleResetDetector_Generic@~1.8.0 +; FlashStorage_STM32@~1.2.0 +; FlashStorage_STM32F1@~1.1.0 +; FlashStorage_SAMD@~1.32 ; DueFlashStorage@~1.0.0 ; PlatformIO 5.x - khoih-prog/ESP8266_AT_WebServer@~1.5.2 - khoih-prog/DoubleResetDetector_Generic@~1.7.3 - khoih-prog/FlashStorage_STM32@~1.1.0 - khoih-prog/FlashStorage_SAMD@~1.2.1 + khoih-prog/ESP8266_AT_WebServer@~1.5.3 + khoih-prog/DoubleResetDetector_Generic@~1.8.0 + khoih-prog/FlashStorage_STM32@~1.2.0 + khoih-prog/FlashStorage_STM32F1@~1.1.0 + khoih-prog/FlashStorage_SAMD@~1.3.2 sebnil/DueFlashStorage@~1.0.0 build_flags = diff --git a/src/Esp8266_AT_WM_Lite.h b/src/Esp8266_AT_WM_Lite.h index cdba822..751ed27 100644 --- a/src/Esp8266_AT_WM_Lite.h +++ b/src/Esp8266_AT_WM_Lite.h @@ -8,7 +8,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/ESP_AT_WM_Lite Licensed under MIT license - Version: 1.5.0 + Version: 1.5.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -26,6 +26,7 @@ 1.4.0 K Hoang 01/06/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using RP2040 Arduino mbed core 1.4.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` 1.5.0 K Hoang 08/01/2022 Fix the blocking issue in loop() with configurable WIFI_RECON_INTERVAL + 1.5.1 K Hoang 26/01/2022 Update to be compatible with new FlashStorage libraries. Add support to more SAMD/STM32 boards ***************************************************************************************************************************************/ #ifndef Esp8266_AT_WM_Lite_h @@ -39,7 +40,16 @@ #error This code is intended to run on the Mega2560 platform! Please check your Tools->Board setting. #endif -#define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.0" +#ifndef ESP_AT_WM_LITE_VERSION + #define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.1" + + #define ESP_AT_WM_LITE_VERSION_MAJOR 1 + #define ESP_AT_WM_LITE_VERSION_MINOR 5 + #define ESP_AT_WM_LITE_VERSION_PATCH 1 + + #define ESP_AT_WM_LITE_VERSION_INT 1005001 + +#endif #define DEFAULT_BOARD_NAME "AVR-MEGA" diff --git a/src/Esp8266_AT_WM_Lite_DUE.h b/src/Esp8266_AT_WM_Lite_DUE.h index 5c536dd..08b4126 100644 --- a/src/Esp8266_AT_WM_Lite_DUE.h +++ b/src/Esp8266_AT_WM_Lite_DUE.h @@ -8,7 +8,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/ESP_AT_WM_Lite Licensed under MIT license - Version: 1.5.0 + Version: 1.5.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -26,6 +26,7 @@ 1.4.0 K Hoang 01/06/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using RP2040 Arduino mbed core 1.4.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` 1.5.0 K Hoang 08/01/2022 Fix the blocking issue in loop() with configurable WIFI_RECON_INTERVAL + 1.5.1 K Hoang 26/01/2022 Update to be compatible with new FlashStorage libraries. Add support to more SAMD/STM32 boards ***************************************************************************************************************************************/ #ifndef Esp8266_AT_WM_Lite_DUE_h @@ -41,7 +42,16 @@ #error This code is intended to run on the SAM DUE platform! Please check your Tools->Board setting. #endif -#define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.0" +#ifndef ESP_AT_WM_LITE_VERSION + #define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.1" + + #define ESP_AT_WM_LITE_VERSION_MAJOR 1 + #define ESP_AT_WM_LITE_VERSION_MINOR 5 + #define ESP_AT_WM_LITE_VERSION_PATCH 1 + + #define ESP_AT_WM_LITE_VERSION_INT 1005001 + +#endif #define DEFAULT_BOARD_NAME "SAM-DUE" diff --git a/src/Esp8266_AT_WM_Lite_Debug.h b/src/Esp8266_AT_WM_Lite_Debug.h index 17c3477..cee79c2 100644 --- a/src/Esp8266_AT_WM_Lite_Debug.h +++ b/src/Esp8266_AT_WM_Lite_Debug.h @@ -8,7 +8,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/ESP_AT_WM_Lite Licensed under MIT license - Version: 1.5.0 + Version: 1.5.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -25,7 +25,8 @@ 1.3.0 K Hoang 12/05/2021 Add support to RASPBERRY_PI_PICO using Arduino-pico core 1.4.0 K Hoang 01/06/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using RP2040 Arduino mbed core 1.4.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` - 1.5.0 K Hoang 08/01/2022 Fix the blocking issue in loop() with configurable WIFI_RECON_INTERVAL + 1.5.0 K Hoang 08/01/2022 Fix the blocking issue in loop() with configurable WIFI_RECON_INTERVAL + 1.5.1 K Hoang 26/01/2022 Update to be compatible with new FlashStorage libraries. Add support to more SAMD/STM32 boards ***************************************************************************************************************************************/ #ifndef Esp8266_AT_WM_Lite_Debug_h diff --git a/src/Esp8266_AT_WM_Lite_Mbed_RPi_Pico.h b/src/Esp8266_AT_WM_Lite_Mbed_RPi_Pico.h index 10e2421..55f97a9 100644 --- a/src/Esp8266_AT_WM_Lite_Mbed_RPi_Pico.h +++ b/src/Esp8266_AT_WM_Lite_Mbed_RPi_Pico.h @@ -8,7 +8,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/ESP_AT_WM_Lite Licensed under MIT license - Version: 1.5.0 + Version: 1.5.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -26,6 +26,7 @@ 1.4.0 K Hoang 01/06/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using RP2040 Arduino mbed core 1.4.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` 1.5.0 K Hoang 08/01/2022 Fix the blocking issue in loop() with configurable WIFI_RECON_INTERVAL + 1.5.1 K Hoang 26/01/2022 Update to be compatible with new FlashStorage libraries. Add support to more SAMD/STM32 boards ***************************************************************************************************************************************/ #ifndef Esp8266_AT_WM_Lite_Mbed_RPi_Pico_h @@ -41,7 +42,16 @@ #error This code is intended to run on the RP2040 platform! Please check your Tools->Board setting. #endif -#define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.0" +#ifndef ESP_AT_WM_LITE_VERSION + #define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.1" + + #define ESP_AT_WM_LITE_VERSION_MAJOR 1 + #define ESP_AT_WM_LITE_VERSION_MINOR 5 + #define ESP_AT_WM_LITE_VERSION_PATCH 1 + + #define ESP_AT_WM_LITE_VERSION_INT 1005001 + +#endif #define DEFAULT_BOARD_NAME "MBED-RP2040" diff --git a/src/Esp8266_AT_WM_Lite_RPi_Pico.h b/src/Esp8266_AT_WM_Lite_RPi_Pico.h index ae56537..44a5051 100644 --- a/src/Esp8266_AT_WM_Lite_RPi_Pico.h +++ b/src/Esp8266_AT_WM_Lite_RPi_Pico.h @@ -8,7 +8,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/ESP_AT_WM_Lite Licensed under MIT license - Version: 1.5.0 + Version: 1.5.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -26,6 +26,7 @@ 1.4.0 K Hoang 01/06/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using RP2040 Arduino mbed core 1.4.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` 1.5.0 K Hoang 08/01/2022 Fix the blocking issue in loop() with configurable WIFI_RECON_INTERVAL + 1.5.1 K Hoang 26/01/2022 Update to be compatible with new FlashStorage libraries. Add support to more SAMD/STM32 boards ***************************************************************************************************************************************/ #ifndef Esp8266_AT_WM_Lite_RPi_Pico_h @@ -41,7 +42,16 @@ #error This code is intended to run on the RP2040 platform! Please check your Tools->Board setting. #endif -#define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.0" +#ifndef ESP_AT_WM_LITE_VERSION + #define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.1" + + #define ESP_AT_WM_LITE_VERSION_MAJOR 1 + #define ESP_AT_WM_LITE_VERSION_MINOR 5 + #define ESP_AT_WM_LITE_VERSION_PATCH 1 + + #define ESP_AT_WM_LITE_VERSION_INT 1005001 + +#endif #define DEFAULT_BOARD_NAME "RP2040" diff --git a/src/Esp8266_AT_WM_Lite_SAMD.h b/src/Esp8266_AT_WM_Lite_SAMD.h index 9f8b5a6..0297588 100644 --- a/src/Esp8266_AT_WM_Lite_SAMD.h +++ b/src/Esp8266_AT_WM_Lite_SAMD.h @@ -8,7 +8,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/ESP_AT_WM_Lite Licensed under MIT license - Version: 1.5.0 + Version: 1.5.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -26,16 +26,20 @@ 1.4.0 K Hoang 01/06/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using RP2040 Arduino mbed core 1.4.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` 1.5.0 K Hoang 08/01/2022 Fix the blocking issue in loop() with configurable WIFI_RECON_INTERVAL + 1.5.1 K Hoang 26/01/2022 Update to be compatible with new FlashStorage libraries. Add support to more SAMD/STM32 boards ***************************************************************************************************************************************/ #ifndef Esp8266_AT_WM_Lite_SAMD_h #define Esp8266_AT_WM_Lite_SAMD_h -#if ( defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_SAMD_MKRWIFI1010) \ - || defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRFox1200) || defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310) \ - || defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_SAMD_MKRVIDOR4000) || defined(__SAMD21G18A__) \ - || defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS) || defined(__SAMD21E18A__) || defined(__SAMD51__) || defined(__SAMD51J20A__) || defined(__SAMD51J19A__) \ - || defined(__SAMD51G19A__) || defined(__SAMD21G18A__) ) +#if ( defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_SAMD_MKRWIFI1010) \ + || defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRFox1200) || defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310) \ + || defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_SAMD_MKRVIDOR4000) \ + || defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS) || defined(__SAMD51__) || defined(__SAMD51J20A__) \ + || defined(__SAMD51J19A__) || defined(__SAMD51G19A__) || defined(__SAMD51P19A__) \ + || defined(__SAMD21E15A__) || defined(__SAMD21E16A__) || defined(__SAMD21E17A__) || defined(__SAMD21E18A__) \ + || defined(__SAMD21G15A__) || defined(__SAMD21G16A__) || defined(__SAMD21G17A__) || defined(__SAMD21G18A__) \ + || defined(__SAMD21J15A__) || defined(__SAMD21J16A__) || defined(__SAMD21J17A__) || defined(__SAMD21J18A__) ) #if defined(ESP8266_AT_USE_SAMD) #undef ESP8266_AT_USE_SAMD #endif @@ -44,7 +48,16 @@ #error This code is intended to run on the SAMD platform! Please check your Tools->Board setting. #endif -#define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.0" +#ifndef ESP_AT_WM_LITE_VERSION + #define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.1" + + #define ESP_AT_WM_LITE_VERSION_MAJOR 1 + #define ESP_AT_WM_LITE_VERSION_MINOR 5 + #define ESP_AT_WM_LITE_VERSION_PATCH 1 + + #define ESP_AT_WM_LITE_VERSION_INT 1005001 + +#endif #define DEFAULT_BOARD_NAME "SAMD" @@ -52,8 +65,7 @@ #include // Include EEPROM-like API for FlashStorage -//#include //https://github.com/cmaglie/FlashStorage -#include //https://github.com/khoih-prog/FlashStorage_SAMD +#include //https://github.com/khoih-prog/FlashStorage_SAMD #include ////////////////////////////////////////////// diff --git a/src/Esp8266_AT_WM_Lite_STM32.h b/src/Esp8266_AT_WM_Lite_STM32.h index 6076b7a..71e06e3 100644 --- a/src/Esp8266_AT_WM_Lite_STM32.h +++ b/src/Esp8266_AT_WM_Lite_STM32.h @@ -8,7 +8,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/ESP_AT_WM_Lite Licensed under MIT license - Version: 1.5.0 + Version: 1.5.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -26,6 +26,7 @@ 1.4.0 K Hoang 01/06/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using RP2040 Arduino mbed core 1.4.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` 1.5.0 K Hoang 08/01/2022 Fix the blocking issue in loop() with configurable WIFI_RECON_INTERVAL + 1.5.1 K Hoang 26/01/2022 Update to be compatible with new FlashStorage libraries. Add support to more SAMD/STM32 boards ***************************************************************************************************************************************/ #ifndef Esp8266_AT_WM_Lite_STM32_h @@ -42,7 +43,16 @@ #error This code is intended to run on STM32 platform! Please check your Tools->Board setting. #endif -#define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.0" +#ifndef ESP_AT_WM_LITE_VERSION + #define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.1" + + #define ESP_AT_WM_LITE_VERSION_MAJOR 1 + #define ESP_AT_WM_LITE_VERSION_MINOR 5 + #define ESP_AT_WM_LITE_VERSION_PATCH 1 + + #define ESP_AT_WM_LITE_VERSION_INT 1005001 + +#endif #define DEFAULT_BOARD_NAME "STM32" @@ -51,7 +61,6 @@ #include #include -//#include #include ////////////////////////////////////////////// @@ -830,21 +839,27 @@ class ESP_AT_WiFiManager_Lite ////////////////////////////////////////////// #if defined(DATA_EEPROM_BASE) - // For STM32 devices having integrated EEPROM. - #include - #warning STM32 devices have integrated EEPROM. Not using buffered API. -#else - /** - Most STM32 devices don't have an integrated EEPROM. To emulate a EEPROM, the STM32 Arduino core emulated - the operation of an EEPROM with the help of the embedded flash. - Writing to a flash is very expensive operation, since a whole flash page needs to be written, even if you only - want to access the flash byte-wise. - The STM32 Arduino core provides a buffered access API to the emulated EEPROM. The library has allocated the - buffer even if you don't use the buffered API, so it's strongly suggested to use the buffered API anyhow. - */ + // For STM32 devices having integrated EEPROM. + #include + #warning STM32 devices have integrated EEPROM. Not using buffered API. +#else + /** + Most STM32 devices don't have an integrated EEPROM. To emulate a EEPROM, the STM32 Arduino core emulated + the operation of an EEPROM with the help of the embedded flash. + Writing to a flash is very expensive operation, since a whole flash page needs to be written, even if you only + want to access the flash byte-wise. + The STM32 Arduino core provides a buffered access API to the emulated EEPROM. The library has allocated the + buffer even if you don't use the buffered API, so it's strongly suggested to use the buffered API anyhow. + */ + #if ( defined(STM32F1xx) || defined(STM32F3xx) ) + #include // https://github.com/khoih-prog/FlashStorage_STM32F1 + #warning STM32F1/F3 devices have no integrated EEPROM. Using buffered API with FlashStorage_STM32F1 library + #else #include // https://github.com/khoih-prog/FlashStorage_STM32 #warning STM32 devices have no integrated EEPROM. Using buffered API with FlashStorage_STM32 library -#endif // #if defined(DATA_EEPROM_BASE) + #endif +#endif // #if defined(DATA_EEPROM_BASE) + ////////////////////////////////////////////// #if USE_DYNAMIC_PARAMETERS diff --git a/src/Esp8266_AT_WM_Lite_nRF52.h b/src/Esp8266_AT_WM_Lite_nRF52.h index 9b0935f..1dab967 100644 --- a/src/Esp8266_AT_WM_Lite_nRF52.h +++ b/src/Esp8266_AT_WM_Lite_nRF52.h @@ -8,7 +8,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/ESP_AT_WM_Lite Licensed under MIT license - Version: 1.5.0 + Version: 1.5.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -26,6 +26,7 @@ 1.4.0 K Hoang 01/06/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using RP2040 Arduino mbed core 1.4.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` 1.5.0 K Hoang 08/01/2022 Fix the blocking issue in loop() with configurable WIFI_RECON_INTERVAL + 1.5.1 K Hoang 26/01/2022 Update to be compatible with new FlashStorage libraries. Add support to more SAMD/STM32 boards ***************************************************************************************************************************************/ #ifndef Esp8266_AT_WM_Lite_nRF52_h @@ -43,7 +44,16 @@ #error This code is intended to run on the nRF52 platform! Please check your Tools->Board setting. #endif -#define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.0" +#ifndef ESP_AT_WM_LITE_VERSION + #define ESP_AT_WM_LITE_VERSION "ESP_AT_WM_Lite v1.5.1" + + #define ESP_AT_WM_LITE_VERSION_MAJOR 1 + #define ESP_AT_WM_LITE_VERSION_MINOR 5 + #define ESP_AT_WM_LITE_VERSION_PATCH 1 + + #define ESP_AT_WM_LITE_VERSION_INT 1005001 + +#endif #define DEFAULT_BOARD_NAME "nRF52"