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

Commit 30c1be7

Browse files
authored
v2.0.1
### Releases v2.0.1 1. Update to use WebServer_WT32_ETH01 v1.2.0
1 parent 76a70fe commit 30c1be7

File tree

12 files changed

+62
-48
lines changed

12 files changed

+62
-48
lines changed

README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* [Why Async is better](#why-async-is-better)
1818
* [Currently supported Boards](#currently-supported-boards)
1919
* [Changelog](#changelog)
20+
* [Releases v2.0.1](#initial-releases-v201)
2021
* [Initial Releases v2.0.0](#initial-releases-v200)
2122
* [Prerequisites](#prerequisites)
2223
* [Installation](#installation)
@@ -87,6 +88,9 @@ to apply the better and faster **asynchronous** feature of the **powerful** [Asy
8788

8889
## Changelog
8990

91+
### Releases v2.0.1
92+
93+
1. Update to use WebServer_WT32_ETH01 v1.2.0
9094

9195
### Initial Releases v2.0.0
9296

@@ -104,6 +108,7 @@ to apply the better and faster **asynchronous** feature of the **powerful** [Asy
104108
1. [`Arduino IDE 1.8.15+` for Arduino](https://www.arduino.cc/en/Main/Software)
105109
2. [`ESP32 Core 1.0.6+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/)
106110

111+
3. [`WebServer_WT32_ETH01 library 1.2.0+`](https://github.com/khoih-prog/WebServer_WT32_ETH01). To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WebServer_WT32_ETH01.svg?)](https://www.ardu-badge.com/WebServer_WT32_ETH01).
107112
---
108113

109114
### Installation
@@ -415,10 +420,9 @@ void setup()
415420
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);
416421
ETH.config(myIP, myGW, mySN, myDNS);
417422
418-
WiFi.onEvent(WT32_ETH01_Event);
423+
WT32_ETH01_onEvent();
419424
420-
while (!eth_connected)
421-
delay(100);
425+
WT32_ETH01_waitForConnect();
422426
423427
// Client address
424428
Serial.print("AsyncUdpNTPClient started @ IP address: ");
@@ -457,8 +461,10 @@ This is terminal debug output when running [AsyncUdpNTPClient](https://github.co
457461

458462
```
459463
Starting AsyncUdpNTPClient on ESP32_DEV with ETH_PHY_LAN8720
460-
WebServer_WT32_ETH01 v1.1.0
461-
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
464+
WebServer_WT32_ETH01 v1.2.0
465+
AsyncUdp_WT32_ETH01 v2.0.1
466+
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232
467+
FULL_DUPLEX, 100Mbps
462468
AsyncUdpNTPClient started @ IP address: 192.168.2.232
463469
UDP connected
464470
============= createNTPpacket =============
@@ -479,8 +485,10 @@ The UTC/GMT time is Sun 2021-07-11 03:21:06 GMT
479485

480486
```
481487
Starting AsyncUdpNTPClient on ESP32_DEV with ETH_PHY_LAN8720
482-
WebServer_WT32_ETH01 v1.1.0
483-
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
488+
WebServer_WT32_ETH01 v1.2.0
489+
AsyncUdp_WT32_ETH01 v2.0.1
490+
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232
491+
FULL_DUPLEX, 100Mbps
484492
AsyncUdpNTPClient started @ IP address: 192.168.2.232
485493
UDP connected
486494
============= createNTPpacket =============
@@ -499,9 +507,10 @@ This is terminal debug output when running [AsyncUDPSendReceive](https://github.
499507

500508
```
501509
Starting AsyncUDPSendReceive on ESP32_DEV with ETH_PHY_LAN8720
502-
WebServer_WT32_ETH01 v1.1.0
503-
AsyncUdp_WT32_ETH01 v2.0.0
504-
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
510+
WebServer_WT32_ETH01 v1.2.0
511+
AsyncUdp_WT32_ETH01 v2.0.1
512+
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232
513+
FULL_DUPLEX, 100Mbps
505514
AsyncUDPSendReceive started @ IP address: 192.168.2.232
506515
507516
Starting connection to server...
@@ -558,6 +567,9 @@ Sometimes, the library will only work if you update the `STM32` core to the late
558567

559568
## Releases
560569

570+
### Releases v2.0.1
571+
572+
1. Update to use WebServer_WT32_ETH01 v1.2.0
561573

562574
### Initial Releases v2.0.0
563575

examples/AsyncUDPClient/AsyncUDPClient.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_WT32_ETH01
88
Licensed under MIT license
99
10-
Version: 2.0.0
10+
Version: 2.0.1
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
14-
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
14+
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
15+
2.0.1 K Hoang 12/07/2021 Update to use WebServer_WT32_ETH01 v1.2.0
1516
*****************************************************************************************************************************/
1617
#include <Arduino.h>
1718

@@ -82,10 +83,9 @@ void setup()
8283
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);
8384
ETH.config(myIP, myGW, mySN, myDNS);
8485

85-
WiFi.onEvent(WT32_ETH01_Event);
86+
WT32_ETH01_onEvent();
8687

87-
while (!eth_connected)
88-
delay(100);
88+
WT32_ETH01_waitForConnect();
8989

9090
// Client address
9191
Serial.print("Async_UDPClient started @ IP address: ");

examples/AsyncUDPMulticastServer/AsyncUDPMulticastServer.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_WT32_ETH01
88
Licensed under MIT license
99
10-
Version: 2.0.0
10+
Version: 2.0.1
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
14-
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
14+
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
15+
2.0.1 K Hoang 12/07/2021 Update to use WebServer_WT32_ETH01 v1.2.0
1516
*****************************************************************************************************************************/
1617

1718
#include <Arduino.h>
@@ -79,10 +80,9 @@ void setup()
7980
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);
8081
ETH.config(myIP, myGW, mySN, myDNS);
8182

82-
WiFi.onEvent(WT32_ETH01_Event);
83+
WT32_ETH01_onEvent();
8384

84-
while (!eth_connected)
85-
delay(100);
85+
WT32_ETH01_waitForConnect();
8686

8787
// Client address
8888
Serial.print("Async_UDPClient started @ IP address: ");

examples/AsyncUDPServer/AsyncUDPServer.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_WT32_ETH01
88
Licensed under MIT license
99
10-
Version: 2.0.0
10+
Version: 2.0.1
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
14-
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
14+
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
15+
2.0.1 K Hoang 12/07/2021 Update to use WebServer_WT32_ETH01 v1.2.0
1516
*****************************************************************************************************************************/
1617
#include <Arduino.h>
1718

@@ -57,10 +58,9 @@ void setup()
5758
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);
5859
ETH.config(myIP, myGW, mySN, myDNS);
5960

60-
WiFi.onEvent(WT32_ETH01_Event);
61+
WT32_ETH01_onEvent();
6162

62-
while (!eth_connected)
63-
delay(100);
63+
WT32_ETH01_waitForConnect();
6464

6565
// Client address
6666
Serial.print("AsyncUDPServer started @ IP address: ");

examples/AsyncUdpNTPClient/AsyncUdpNTPClient.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_WT32_ETH01
88
Licensed under MIT license
99
10-
Version: 2.0.0
10+
Version: 2.0.1
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
14-
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
14+
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
15+
2.0.1 K Hoang 12/07/2021 Update to use WebServer_WT32_ETH01 v1.2.0
1516
*****************************************************************************************************************************/
1617

1718
#define ASYNC_UDP_WT32_ETH01_DEBUG_PORT Serial
@@ -149,10 +150,9 @@ void setup()
149150
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);
150151
ETH.config(myIP, myGW, mySN, myDNS);
151152

152-
WiFi.onEvent(WT32_ETH01_Event);
153+
WT32_ETH01_onEvent();
153154

154-
while (!eth_connected)
155-
delay(100);
155+
WT32_ETH01_waitForConnect();
156156

157157
// Client address
158158
Serial.print("AsyncUdpNTPClient started @ IP address: ");

examples/AsyncUdpSendReceive/AsyncUdpSendReceive.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_WT32_ETH01
88
Licensed under MIT license
99
10-
Version: 2.0.0
10+
Version: 2.0.1
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
14-
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
14+
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
15+
2.0.1 K Hoang 12/07/2021 Update to use WebServer_WT32_ETH01 v1.2.0
1516
*****************************************************************************************************************************/
1617

1718
#define ASYNC_UDP_WT32_ETH01_DEBUG_PORT Serial
@@ -165,10 +166,9 @@ void setup()
165166
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);
166167
ETH.config(myIP, myGW, mySN, myDNS);
167168

168-
WiFi.onEvent(WT32_ETH01_Event);
169+
WT32_ETH01_onEvent();
169170

170-
while (!eth_connected)
171-
delay(100);
171+
WT32_ETH01_waitForConnect();
172172

173173
// Client address
174174
Serial.print("AsyncUDPSendReceive started @ IP address: ");

library.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"AsyncUDP_WT32_ETH01",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description":"Fully Asynchronous UDP Library for WT32_ETH01 (ESP32 + LAN8720). The library is easy to use and includes support for Unicast, Broadcast and Multicast environments.",
55
"keywords":"communication, data, async, udp, ntp, time, time-server, server, client, multicast, broadcast, webserver, esp32, esp32-s2, esp32-c3, wt32-eth01, lan8720",
66
"authors":
@@ -35,7 +35,7 @@
3535
{
3636
"owner": "khoih.prog",
3737
"name": "WebServer_WT32_ETH01",
38-
"version": "^1.1.0",
38+
"version": "^1.2.0",
3939
"platforms": "espressif32"
4040
}
4141
],

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=AsyncUDP_WT32_ETH01
2-
version=2.0.0
2+
version=2.0.1
33
author=Hristo Gochkov,Khoi Hoang
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
sentence=Fully Asynchronous UDP Library for WT32_ETH01 (ESP32 + LAN8720).

platformio/platformio.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ upload_speed = 921600
2727

2828
lib_deps =
2929
; PlatformIO 4.x
30-
; WebServer_WT32_ETH01@~1.1.0
30+
; WebServer_WT32_ETH01@~1.2.0
3131
; PlatformIO 5.x
32-
khoih.prog/WebServer_WT32_ETH01@~1.1.0
32+
khoih.prog/WebServer_WT32_ETH01@~1.2.0
3333

3434
build_flags =
3535
; set your debug output (default=Serial)

src/AsyncUDP_WT32_ETH01.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,20 @@
77
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_WT32_ETH01
88
Licensed under MIT license
99
10-
Version: 2.0.0
10+
Version: 2.0.1
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
14-
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
14+
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
15+
2.0.1 K Hoang 12/07/2021 Update to use WebServer_WT32_ETH01 v1.2.0
1516
*****************************************************************************************************************************/
1617

1718
#pragma once
1819

1920
#ifndef ASYNC_UDP_WT32_ETH01_H
2021
#define ASYNC_UDP_WT32_ETH01_H
2122

22-
#define ASYNC_UDP_WT32_ETH01_VERSION "AsyncUdp_WT32_ETH01 v2.0.0"
23+
#define ASYNC_UDP_WT32_ETH01_VERSION "AsyncUdp_WT32_ETH01 v2.0.1"
2324

2425
#include "IPAddress.h"
2526
#include "IPv6Address.h"

src/AsyncUDP_WT32_ETH01_Debug.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_WT32_ETH01
88
Licensed under MIT license
99
10-
Version: 2.0.0
10+
Version: 2.0.1
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
14-
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
14+
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
15+
2.0.1 K Hoang 12/07/2021 Update to use WebServer_WT32_ETH01 v1.2.0
1516
*****************************************************************************************************************************/
1617

1718
#pragma once

src/AsyncUDP_WT32_ETH01_Impl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_WT32_ETH01
88
Licensed under MIT license
99
10-
Version: 2.0.0
10+
Version: 2.0.1
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
14-
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
14+
2.0.0 K Hoang 10/07/2021 Initial coding for WT32_ETH01. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
15+
2.0.1 K Hoang 12/07/2021 Update to use WebServer_WT32_ETH01 v1.2.0
1516
*****************************************************************************************************************************/
1617

1718
#pragma once
@@ -1439,5 +1440,4 @@ void WT32_ETH01_Event(WiFiEvent_t event)
14391440
break;
14401441
}
14411442
}
1442-
14431443
#endif // ASYNC_UDP_WT32_ETH01_IMPL_H

0 commit comments

Comments
 (0)