diff --git a/README.md b/README.md index e03c786..35311e6 100644 --- a/README.md +++ b/README.md @@ -820,23 +820,32 @@ The terminal output of **WT32_ETH01** running [UdpNTPClient example](examples/Ud ``` Starting UdpNTPClient on ESP32_DEV with ETH_PHY_LAN8720 -WebServer_WT32_ETH01 v1.4.1 for core v2.0.0+ -ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps +WebServer_WT32_ETH01 v1.4.0 for core v2.0.0+ +ETH Started +ETH Connected +ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.95 +FULL_DUPLEX, 100Mbps +UDP Packet received, size 48 +From 132.163.96.4, port 123 +Seconds since Jan 1 1900 = 3847154050 +Unix time = 1638165250 +The UTC time is 5:54:10 UDP Packet received, size 48 -From 132.163.97.1, port 123 -Seconds since Jan 1 1900 = 3834534291 -Unix time = 1625545491 -The UTC time is 4:24:51 +From 132.163.96.4, port 123 +Seconds since Jan 1 1900 = 3847154062 +Unix time = 1638165262 +The UTC time is 5:54:22 UDP Packet received, size 48 -From 132.163.97.1, port 123 -Seconds since Jan 1 1900 = 3834534303 -Unix time = 1625545503 -The UTC time is 4:25:03 +From 132.163.96.4, port 123 +Seconds since Jan 1 1900 = 3847154074 +Unix time = 1638165274 +The UTC time is 5:54:34 UDP Packet received, size 48 -From 132.163.97.1, port 123 -Seconds since Jan 1 1900 = 3834534315 -Unix time = 1625545515 -The UTC time is 4:25:15 +From 132.163.96.4, port 123 +Seconds since Jan 1 1900 = 3847154086 +Unix time = 1638165286 +The UTC time is 5:54:46 + ``` --- diff --git a/src/WebServer_WT32_ETH01.h b/src/WebServer_WT32_ETH01.h index b7fe49c..ce4ceb8 100644 --- a/src/WebServer_WT32_ETH01.h +++ b/src/WebServer_WT32_ETH01.h @@ -12,7 +12,7 @@ @file Esp8266WebServer.h @author Ivan Grokhotkov - Version: 1.4.0 + Version: 1.4.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -21,6 +21,7 @@ 1.2.0 K Hoang 12/07/2021 Add common code to library. Working only with core v1.0.6- 1.3.0 K Hoang 23/10/2021 Making compatible with breaking core v2.0.0+ 1.4.0 K Hoang 27/11/2021 Auto detect ESP32 core version + 1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time *****************************************************************************************************************************/ #pragma once @@ -31,10 +32,17 @@ //#if !defined(USING_CORE_ESP32_CORE_V200_PLUS) #if ( ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) ) && ( ARDUINO_ESP32_GIT_VER != 0x46d5afb1 ) ) #define USING_CORE_ESP32_CORE_V200_PLUS true - //#warning Using code for ESP32 core v2.0.0+ in WebServer_WT32_ETH01.h + + #if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2) + #warning Using code for ESP32 core v2.0.0+ in WebServer_WT32_ETH01.h + #endif + #define WEBSERVER_WT32_ETH01_VERSION "WebServer_WT32_ETH01 v1.4.0 for core v2.0.0+" #else - //#warning Using code for ESP32 core v1.0.6- in WebServer_WT32_ETH01.h + #if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2) + #warning Using code for ESP32 core v1.0.6- in WebServer_WT32_ETH01.h + #endif + #define WEBSERVER_WT32_ETH01_VERSION "WebServer_WT32_ETH01 v1.4.0 for core v1.0.6-" #endif diff --git a/src/WebServer_WT32_ETH01_Debug.h b/src/WebServer_WT32_ETH01_Debug.h index 0b6bc8b..be8b3a0 100644 --- a/src/WebServer_WT32_ETH01_Debug.h +++ b/src/WebServer_WT32_ETH01_Debug.h @@ -13,7 +13,7 @@ @file Esp8266WebServer.h @author Ivan Grokhotkov - Version: 1.4.0 + Version: 1.4.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -22,6 +22,7 @@ 1.2.0 K Hoang 12/07/2021 Add common code to library. Working only with core v1.0.6- 1.3.0 K Hoang 23/10/2021 Making compatible with breaking core v2.0.0+ 1.4.0 K Hoang 27/11/2021 Auto detect ESP32 core version + 1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time *****************************************************************************************************************************/ #pragma once diff --git a/src/WebServer_WT32_ETH01_Impl.h b/src/WebServer_WT32_ETH01_Impl.h index e5dad10..4474743 100644 --- a/src/WebServer_WT32_ETH01_Impl.h +++ b/src/WebServer_WT32_ETH01_Impl.h @@ -12,7 +12,7 @@ @file Esp8266WebServer.h @author Ivan Grokhotkov - Version: 1.4.0 + Version: 1.4.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -21,6 +21,7 @@ 1.2.0 K Hoang 12/07/2021 Add common code to library. Working only with core v1.0.6- 1.3.0 K Hoang 23/10/2021 Making compatible with breaking core v2.0.0+ 1.4.0 K Hoang 27/11/2021 Auto detect ESP32 core version + 1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time *****************************************************************************************************************************/ #pragma once