Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit 434731d

Browse files
authored
v1.4.1 to fix examples' bug
#### Releases v1.4.1 1. Fix bug in examples to reduce connection time
1 parent dccec6b commit 434731d

File tree

4 files changed

+38
-19
lines changed

4 files changed

+38
-19
lines changed

README.md

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -820,23 +820,32 @@ The terminal output of **WT32_ETH01** running [UdpNTPClient example](examples/Ud
820820

821821
```
822822
Starting UdpNTPClient on ESP32_DEV with ETH_PHY_LAN8720
823-
WebServer_WT32_ETH01 v1.4.1 for core v2.0.0+
824-
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
823+
WebServer_WT32_ETH01 v1.4.0 for core v2.0.0+
824+
ETH Started
825+
ETH Connected
826+
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.95
827+
FULL_DUPLEX, 100Mbps
828+
UDP Packet received, size 48
829+
From 132.163.96.4, port 123
830+
Seconds since Jan 1 1900 = 3847154050
831+
Unix time = 1638165250
832+
The UTC time is 5:54:10
825833
UDP Packet received, size 48
826-
From 132.163.97.1, port 123
827-
Seconds since Jan 1 1900 = 3834534291
828-
Unix time = 1625545491
829-
The UTC time is 4:24:51
834+
From 132.163.96.4, port 123
835+
Seconds since Jan 1 1900 = 3847154062
836+
Unix time = 1638165262
837+
The UTC time is 5:54:22
830838
UDP Packet received, size 48
831-
From 132.163.97.1, port 123
832-
Seconds since Jan 1 1900 = 3834534303
833-
Unix time = 1625545503
834-
The UTC time is 4:25:03
839+
From 132.163.96.4, port 123
840+
Seconds since Jan 1 1900 = 3847154074
841+
Unix time = 1638165274
842+
The UTC time is 5:54:34
835843
UDP Packet received, size 48
836-
From 132.163.97.1, port 123
837-
Seconds since Jan 1 1900 = 3834534315
838-
Unix time = 1625545515
839-
The UTC time is 4:25:15
844+
From 132.163.96.4, port 123
845+
Seconds since Jan 1 1900 = 3847154086
846+
Unix time = 1638165286
847+
The UTC time is 5:54:46
848+
840849
```
841850

842851
---

src/WebServer_WT32_ETH01.h

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.4.0
15+
Version: 1.4.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -21,6 +21,7 @@
2121
1.2.0 K Hoang 12/07/2021 Add common code to library. Working only with core v1.0.6-
2222
1.3.0 K Hoang 23/10/2021 Making compatible with breaking core v2.0.0+
2323
1.4.0 K Hoang 27/11/2021 Auto detect ESP32 core version
24+
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
2425
*****************************************************************************************************************************/
2526

2627
#pragma once
@@ -31,10 +32,17 @@
3132
//#if !defined(USING_CORE_ESP32_CORE_V200_PLUS)
3233
#if ( ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) ) && ( ARDUINO_ESP32_GIT_VER != 0x46d5afb1 ) )
3334
#define USING_CORE_ESP32_CORE_V200_PLUS true
34-
//#warning Using code for ESP32 core v2.0.0+ in WebServer_WT32_ETH01.h
35+
36+
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2)
37+
#warning Using code for ESP32 core v2.0.0+ in WebServer_WT32_ETH01.h
38+
#endif
39+
3540
#define WEBSERVER_WT32_ETH01_VERSION "WebServer_WT32_ETH01 v1.4.0 for core v2.0.0+"
3641
#else
37-
//#warning Using code for ESP32 core v1.0.6- in WebServer_WT32_ETH01.h
42+
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2)
43+
#warning Using code for ESP32 core v1.0.6- in WebServer_WT32_ETH01.h
44+
#endif
45+
3846
#define WEBSERVER_WT32_ETH01_VERSION "WebServer_WT32_ETH01 v1.4.0 for core v1.0.6-"
3947
#endif
4048

src/WebServer_WT32_ETH01_Debug.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@file Esp8266WebServer.h
1414
@author Ivan Grokhotkov
1515
16-
Version: 1.4.0
16+
Version: 1.4.1
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -22,6 +22,7 @@
2222
1.2.0 K Hoang 12/07/2021 Add common code to library. Working only with core v1.0.6-
2323
1.3.0 K Hoang 23/10/2021 Making compatible with breaking core v2.0.0+
2424
1.4.0 K Hoang 27/11/2021 Auto detect ESP32 core version
25+
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
2526
*****************************************************************************************************************************/
2627

2728
#pragma once

src/WebServer_WT32_ETH01_Impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.4.0
15+
Version: 1.4.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -21,6 +21,7 @@
2121
1.2.0 K Hoang 12/07/2021 Add common code to library. Working only with core v1.0.6-
2222
1.3.0 K Hoang 23/10/2021 Making compatible with breaking core v2.0.0+
2323
1.4.0 K Hoang 27/11/2021 Auto detect ESP32 core version
24+
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
2425
*****************************************************************************************************************************/
2526

2627
#pragma once

0 commit comments

Comments
 (0)