From 78ff2dbda8caaa10266eb93acd286641aba7dd27 Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Sun, 10 Apr 2022 23:16:14 -0400 Subject: [PATCH] v1.7.1 to use `Ethernet_Generic` library ### Releases v1.7.1 1. Use new [Ethernet_Generic library](https://github.com/khoih-prog/Ethernet_Generic) as default for W5x00. 2. Support SPI2 for ESP32 3. Add support to SPI1 for RP2040 using [arduino-pico core](https://github.com/earlephilhower/arduino-pico) 4. Use new function `waitForLink()` for Teensy 4.1 QNEthernet library v0.14.0+ 5. Rewrite all the examples to support those new features 6. Update `Packages' Patches` --- .../Basic_Insert_WT32_ETH01/Basic_Insert_WT32_ETH01.ino | 2 +- .../Basic_Select_WT32_ETH01/Basic_Select_WT32_ETH01.ino | 2 +- .../Complex_Insert_WT32_ETH01/Complex_Insert_WT32_ETH01.ino | 2 +- .../Complex_Select_WT32_ETH01/Complex_Select_WT32_ETH01.ino | 2 +- .../Connect_Default_Database_WT32_ETH01.ino | 2 +- .../Connect_Disconnect_WT32_ETH01.ino | 2 +- examples/WT32_ETH01/Connect_WT32_ETH01/Connect_WT32_ETH01.ino | 2 +- .../Query_Progmem_WT32_ETH01/Query_Progmem_WT32_ETH01.ino | 2 +- .../Query_Results_WT32_ETH01/Query_Results_WT32_ETH01.ino | 2 +- examples/WT32_ETH01/Reboot_WT32_ETH01/Reboot_WT32_ETH01.ino | 2 +- .../multiFileProject_WT32_ETH01/multiFileProject_WT32_ETH01.ino | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/WT32_ETH01/Basic_Insert_WT32_ETH01/Basic_Insert_WT32_ETH01.ino b/examples/WT32_ETH01/Basic_Insert_WT32_ETH01/Basic_Insert_WT32_ETH01.ino index 343eecaa..d78f5b2b 100644 --- a/examples/WT32_ETH01/Basic_Insert_WT32_ETH01/Basic_Insert_WT32_ETH01.ino +++ b/examples/WT32_ETH01/Basic_Insert_WT32_ETH01/Basic_Insert_WT32_ETH01.ino @@ -92,7 +92,7 @@ MySQL_Query *query_mem; void setup() { Serial.begin(115200); - while (!Serial); + while (!Serial && millis() < 5000); // wait for serial port to connect MYSQL_DISPLAY1("\nStarting Basic_Insert_WT32_ETH01 on", BOARD_NAME); MYSQL_DISPLAY(WEBSERVER_WT32_ETH01_VERSION); diff --git a/examples/WT32_ETH01/Basic_Select_WT32_ETH01/Basic_Select_WT32_ETH01.ino b/examples/WT32_ETH01/Basic_Select_WT32_ETH01/Basic_Select_WT32_ETH01.ino index 21dbaf5e..3ee3efb7 100644 --- a/examples/WT32_ETH01/Basic_Select_WT32_ETH01/Basic_Select_WT32_ETH01.ino +++ b/examples/WT32_ETH01/Basic_Select_WT32_ETH01/Basic_Select_WT32_ETH01.ino @@ -98,7 +98,7 @@ MySQL_Query sql_query = MySQL_Query(&conn); void setup() { Serial.begin(115200); - while (!Serial); + while (!Serial && millis() < 5000); // wait for serial port to connect MYSQL_DISPLAY1("\nStarting Basic_Select_WT32_ETH01 on", BOARD_NAME); MYSQL_DISPLAY(WEBSERVER_WT32_ETH01_VERSION); diff --git a/examples/WT32_ETH01/Complex_Insert_WT32_ETH01/Complex_Insert_WT32_ETH01.ino b/examples/WT32_ETH01/Complex_Insert_WT32_ETH01/Complex_Insert_WT32_ETH01.ino index 8802c562..622b605b 100644 --- a/examples/WT32_ETH01/Complex_Insert_WT32_ETH01/Complex_Insert_WT32_ETH01.ino +++ b/examples/WT32_ETH01/Complex_Insert_WT32_ETH01/Complex_Insert_WT32_ETH01.ino @@ -125,7 +125,7 @@ char *dtostrf(double val, signed char width, unsigned char prec, char *sout) void setup() { Serial.begin(115200); - while (!Serial); + while (!Serial && millis() < 5000); // wait for serial port to connect MYSQL_DISPLAY1("\nStarting Complex_Insert_WT32_ETH01 on", BOARD_NAME); MYSQL_DISPLAY(WEBSERVER_WT32_ETH01_VERSION); diff --git a/examples/WT32_ETH01/Complex_Select_WT32_ETH01/Complex_Select_WT32_ETH01.ino b/examples/WT32_ETH01/Complex_Select_WT32_ETH01/Complex_Select_WT32_ETH01.ino index 81fef5fa..6ec18527 100644 --- a/examples/WT32_ETH01/Complex_Select_WT32_ETH01/Complex_Select_WT32_ETH01.ino +++ b/examples/WT32_ETH01/Complex_Select_WT32_ETH01/Complex_Select_WT32_ETH01.ino @@ -98,7 +98,7 @@ MySQL_Connection conn((Client *)&client); void setup() { Serial.begin(115200); - while (!Serial); + while (!Serial && millis() < 5000); // wait for serial port to connect MYSQL_DISPLAY1("\nStarting Complex_Select_WT32_ETH01 on", BOARD_NAME); MYSQL_DISPLAY(WEBSERVER_WT32_ETH01_VERSION); diff --git a/examples/WT32_ETH01/Connect_Default_Database_WT32_ETH01/Connect_Default_Database_WT32_ETH01.ino b/examples/WT32_ETH01/Connect_Default_Database_WT32_ETH01/Connect_Default_Database_WT32_ETH01.ino index eb3a0d22..70259a34 100644 --- a/examples/WT32_ETH01/Connect_Default_Database_WT32_ETH01/Connect_Default_Database_WT32_ETH01.ino +++ b/examples/WT32_ETH01/Connect_Default_Database_WT32_ETH01/Connect_Default_Database_WT32_ETH01.ino @@ -81,7 +81,7 @@ MySQL_Connection conn((Client *)&client); void setup() { Serial.begin(115200); - while (!Serial); + while (!Serial && millis() < 5000); // wait for serial port to connect MYSQL_DISPLAY1("\nStarting Connect_Default_Database_WT32_ETH01 on", BOARD_NAME); MYSQL_DISPLAY(WEBSERVER_WT32_ETH01_VERSION); diff --git a/examples/WT32_ETH01/Connect_Disconnect_WT32_ETH01/Connect_Disconnect_WT32_ETH01.ino b/examples/WT32_ETH01/Connect_Disconnect_WT32_ETH01/Connect_Disconnect_WT32_ETH01.ino index 30125115..12523f73 100644 --- a/examples/WT32_ETH01/Connect_Disconnect_WT32_ETH01/Connect_Disconnect_WT32_ETH01.ino +++ b/examples/WT32_ETH01/Connect_Disconnect_WT32_ETH01/Connect_Disconnect_WT32_ETH01.ino @@ -81,7 +81,7 @@ MySQL_Query query = MySQL_Query(&conn); void setup() { Serial.begin(115200); - while (!Serial); + while (!Serial && millis() < 5000); // wait for serial port to connect MYSQL_DISPLAY1("\nStarting Connect_Disconnect_WT32_ETH01 on", BOARD_NAME); MYSQL_DISPLAY(WEBSERVER_WT32_ETH01_VERSION); diff --git a/examples/WT32_ETH01/Connect_WT32_ETH01/Connect_WT32_ETH01.ino b/examples/WT32_ETH01/Connect_WT32_ETH01/Connect_WT32_ETH01.ino index 8bbd82de..c8447b14 100644 --- a/examples/WT32_ETH01/Connect_WT32_ETH01/Connect_WT32_ETH01.ino +++ b/examples/WT32_ETH01/Connect_WT32_ETH01/Connect_WT32_ETH01.ino @@ -81,7 +81,7 @@ MySQL_Connection conn((Client *)&client); void setup() { Serial.begin(115200); - while (!Serial); + while (!Serial && millis() < 5000); // wait for serial port to connect MYSQL_DISPLAY1("\nStarting Connect_WT32_ETH01 on", BOARD_NAME); MYSQL_DISPLAY(WEBSERVER_WT32_ETH01_VERSION); diff --git a/examples/WT32_ETH01/Query_Progmem_WT32_ETH01/Query_Progmem_WT32_ETH01.ino b/examples/WT32_ETH01/Query_Progmem_WT32_ETH01/Query_Progmem_WT32_ETH01.ino index 251c1515..1df80379 100644 --- a/examples/WT32_ETH01/Query_Progmem_WT32_ETH01/Query_Progmem_WT32_ETH01.ino +++ b/examples/WT32_ETH01/Query_Progmem_WT32_ETH01/Query_Progmem_WT32_ETH01.ino @@ -83,7 +83,7 @@ MySQL_Connection conn((Client *)&client); void setup() { Serial.begin(115200); - while (!Serial); + while (!Serial && millis() < 5000); // wait for serial port to connect MYSQL_DISPLAY1("\nStarting Query_Progmem_WT32_ETH01 on", BOARD_NAME); MYSQL_DISPLAY(WEBSERVER_WT32_ETH01_VERSION); diff --git a/examples/WT32_ETH01/Query_Results_WT32_ETH01/Query_Results_WT32_ETH01.ino b/examples/WT32_ETH01/Query_Results_WT32_ETH01/Query_Results_WT32_ETH01.ino index 5e2f65cf..d5824e8a 100644 --- a/examples/WT32_ETH01/Query_Results_WT32_ETH01/Query_Results_WT32_ETH01.ino +++ b/examples/WT32_ETH01/Query_Results_WT32_ETH01/Query_Results_WT32_ETH01.ino @@ -83,7 +83,7 @@ MySQL_Connection conn((Client *)&client); void setup() { Serial.begin(115200); - while (!Serial); + while (!Serial && millis() < 5000); // wait for serial port to connect MYSQL_DISPLAY1("\nStarting Query_Results_WT32_ETH01 on", BOARD_NAME); MYSQL_DISPLAY(WEBSERVER_WT32_ETH01_VERSION); diff --git a/examples/WT32_ETH01/Reboot_WT32_ETH01/Reboot_WT32_ETH01.ino b/examples/WT32_ETH01/Reboot_WT32_ETH01/Reboot_WT32_ETH01.ino index f9e22759..503030e4 100644 --- a/examples/WT32_ETH01/Reboot_WT32_ETH01/Reboot_WT32_ETH01.ino +++ b/examples/WT32_ETH01/Reboot_WT32_ETH01/Reboot_WT32_ETH01.ino @@ -78,7 +78,7 @@ MySQL_Query query = MySQL_Query(&conn); void setup() { Serial.begin(115200); - while (!Serial); + while (!Serial && millis() < 5000); // wait for serial port to connect MYSQL_DISPLAY1("\nStarting Reboot_WT32_ETH01 on", BOARD_NAME); MYSQL_DISPLAY(WEBSERVER_WT32_ETH01_VERSION); diff --git a/examples/WT32_ETH01/multiFileProject_WT32_ETH01/multiFileProject_WT32_ETH01.ino b/examples/WT32_ETH01/multiFileProject_WT32_ETH01/multiFileProject_WT32_ETH01.ino index 9dbabc54..c6859a6c 100644 --- a/examples/WT32_ETH01/multiFileProject_WT32_ETH01/multiFileProject_WT32_ETH01.ino +++ b/examples/WT32_ETH01/multiFileProject_WT32_ETH01/multiFileProject_WT32_ETH01.ino @@ -36,7 +36,7 @@ void setup() { Serial.begin(115200); - while (!Serial); + while (!Serial && millis() < 5000); // wait for serial port to connect Serial.println("\nStart multiFileProject_WT32_ETH01"); Serial.println(MYSQL_MARIADB_GENERIC_VERSION);