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

Commit

Permalink
v1.4.1 to fix examples' bug
Browse files Browse the repository at this point in the history
#### Releases v1.4.1

1. Fix bug in examples to reduce connection time
  • Loading branch information
khoih-prog authored Nov 29, 2021
1 parent dccec6b commit 434731d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 19 deletions.
37 changes: 23 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

---
Expand Down
14 changes: 11 additions & 3 deletions src/WebServer_WT32_ETH01.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -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
Expand All @@ -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

Expand Down
3 changes: 2 additions & 1 deletion src/WebServer_WT32_ETH01_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/WebServer_WT32_ETH01_Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -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
Expand Down

0 comments on commit 434731d

Please sign in to comment.