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

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
### Major Releases v1.2.0

1. Fix Config Portal Bug. 
2. Add functions to control Config Portal from software or Virtual Switches. Check [How to trigger a Config Portal from code #25](khoih-prog/Blynk_WM#25)
3. Use more efficient [FlashStorage_SAMD v1.1.0](https://github.com/khoih-prog/FlashStorage_SAMD).
  • Loading branch information
khoih-prog authored Jan 30, 2021
1 parent ca3672e commit 663e72e
Show file tree
Hide file tree
Showing 61 changed files with 2,577 additions and 3,063 deletions.
41 changes: 23 additions & 18 deletions examples/AM2315_W5500/AM2315_W5500.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Library modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/BlynkEthernet_WM
Licensed under MIT license
Version: 1.1.0
Version: 1.2.0
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -29,6 +29,7 @@
1.0.17 K Hoang 25/07/2020 New logic for USE_DEFAULT_CONFIG_DATA. Add support to Seeeduino SAMD21/SAMD51 boards.
1.0.18 K Hoang 15/09/2020 Add support to new EthernetENC library for ENC28J60.
1.1.0 K Hoang 13/01/2021 Add support to new NativeEthernet library for Teensy 4.1. Fix compiler warnings.
1.2.0 K Hoang 29/01/2021 Fix bug. Add feature. Use more efficient FlashStorage_STM32 and FlashStorage_SAMD.
*****************************************************************************************************************************/
#include "defines.h"
#include "Credentials.h"
Expand Down Expand Up @@ -81,12 +82,16 @@ void setup()
Serial.begin(115200);
while (!Serial);

delay(200);

#if ( USE_LITTLEFS || USE_SPIFFS)
Serial.println("\nStart AM2315_W5500 using " + String(CurrentFileFS) + " on " + String(BOARD_NAME));
Serial.print(F("\nStart AM2315_W5500 using ")); Serial.print(CurrentFileFS);
Serial.print(F(" on ")); Serial.print(BOARD_NAME);
#else
Serial.println("\nStart AM2315_W5500 on " + String(BOARD_NAME));
Serial.print(F("\nStart AM2315_W5500 on ")); Serial.print(BOARD_NAME);
#endif

Serial.print(F(" with ")); Serial.println(SHIELD_TYPE);
Serial.println(BLYNK_ETHERNET_WM_VERSION);

pinMode(SDCARD_CS, OUTPUT);
Expand All @@ -104,33 +109,33 @@ void setup()
#else

#if USE_ETHERNET
LOGWARN(F("=========== USE_ETHERNET ==========="));
ET_LOGWARN(F("=========== USE_ETHERNET ==========="));
#elif USE_ETHERNET2
LOGWARN(F("=========== USE_ETHERNET2 ==========="));
ET_LOGWARN(F("=========== USE_ETHERNET2 ==========="));
#elif USE_ETHERNET3
LOGWARN(F("=========== USE_ETHERNET3 ==========="));
ET_LOGWARN(F("=========== USE_ETHERNET3 ==========="));
#elif USE_ETHERNET_LARGE
LOGWARN(F("=========== USE_ETHERNET_LARGE ==========="));
ET_LOGWARN(F("=========== USE_ETHERNET_LARGE ==========="));
#elif USE_ETHERNET_ESP8266
LOGWARN(F("=========== USE_ETHERNET_ESP8266 ==========="));
ET_LOGWARN(F("=========== USE_ETHERNET_ESP8266 ==========="));
#else
LOGWARN(F("========================="));
ET_LOGWARN(F("========================="));
#endif

LOGWARN(F("Default SPI pinout:"));
LOGWARN1(F("MOSI:"), MOSI);
LOGWARN1(F("MISO:"), MISO);
LOGWARN1(F("SCK:"), SCK);
LOGWARN1(F("SS:"), SS);
LOGWARN(F("========================="));
ET_LOGWARN(F("Default SPI pinout:"));
ET_LOGWARN1(F("MOSI:"), MOSI);
ET_LOGWARN1(F("MISO:"), MISO);
ET_LOGWARN1(F("SCK:"), SCK);
ET_LOGWARN1(F("SS:"), SS);
ET_LOGWARN(F("========================="));

#if defined(ESP8266)
// For ESP8266, change for other boards if necessary
#ifndef USE_THIS_SS_PIN
#define USE_THIS_SS_PIN D2 // For ESP8266
#endif

LOGWARN1(F("ESP8266 setCsPin:"), USE_THIS_SS_PIN);
ET_LOGWARN1(F("ESP8266 setCsPin:"), USE_THIS_SS_PIN);

#if ( USE_ETHERNET || USE_ETHERNET_LARGE || USE_ETHERNET2 )
// For ESP8266
Expand Down Expand Up @@ -170,7 +175,7 @@ void setup()
#define USE_THIS_SS_PIN 22 // For ESP32
#endif

LOGWARN1(F("ESP32 setCsPin:"), USE_THIS_SS_PIN);
ET_LOGWARN1(F("ESP32 setCsPin:"), USE_THIS_SS_PIN);

// For other boards, to change if necessary
#if ( USE_ETHERNET || USE_ETHERNET_LARGE || USE_ETHERNET2 )
Expand Down Expand Up @@ -198,7 +203,7 @@ void setup()
#define USE_THIS_SS_PIN 10 // For other boards
#endif

LOGWARN1(F("Unknown board setCsPin:"), USE_THIS_SS_PIN);
ET_LOGWARN1(F("Unknown board setCsPin:"), USE_THIS_SS_PIN);

// For other boards, to change if necessary
#if ( USE_ETHERNET || USE_ETHERNET_LARGE || USE_ETHERNET2 )
Expand Down
21 changes: 0 additions & 21 deletions examples/AM2315_W5500/Credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,6 @@
Library modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/BlynkEthernet_WM
Licensed under MIT license
Version: 1.1.0
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.4 K Hoang 14/01/2020 Initial coding
1.0.5 K Hoang 24/01/2020 Change Synch XMLHttpRequest to Async (https://xhr.spec.whatwg.org/)
1.0.6 K Hoang 20/02/2020 Add support to ENC28J60 Ethernet shields
1.0.7 K Hoang 20/02/2020 Add support to SAM DUE and SAMD boards
1.0.8 K Hoang 03/03/2020 Fix bug. Change default macAddress for boards
1.0.9 K Hoang 10/03/2020 Reduce html and code size. Enhance GUI.
1.0.10 K Hoang 11/04/2020 Add MultiBlynk, dynamic parameters, special chars input
1.0.11 K Hoang 14/04/2020 Fix bug
1.0.12 K Hoang 15/04/2020 Drop W5100 and AVR Mega support because of not enough memory. Add SAMD51 support.
1.0.13 K Hoang 29/04/2020 Add ESP32, including u-blox NINA-W10 series (ESP32) and ESP8266 support.
Add Configurable Config Portal Title, Default Config Data and DRD. Update examples.
1.0.14 K Hoang 01/05/2020 Add support to Adafruit nRF522, including NINA_B302_ublox.
1.0.15 K Hoang 12/05/2020 Fix bug and Update to use LittleFS for ESP8266 core 2.7.1+.
1.0.16 K Hoang 15/05/2020 Sync with EthernetWebServer v.1.0.9 to use 25MHz for W5x00 and EthernetWrapper feature.
1.0.17 K Hoang 25/07/2020 New logic for USE_DEFAULT_CONFIG_DATA. Add support to Seeeduino SAMD21/SAMD51 boards.
1.0.18 K Hoang 15/09/2020 Add support to new EthernetENC library for ENC28J60.
1.1.0 K Hoang 13/01/2021 Add support to new NativeEthernet library for Teensy 4.1. Fix compiler warnings.
*****************************************************************************************************************************/

#ifndef Credentials_h
Expand Down
Loading

0 comments on commit 663e72e

Please sign in to comment.