You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2023. It is now read-only.
#### Releases v1.3.0
##### Warning: Can be used for either EP32 core v2.0.0+ or v1.0.6-. Default is v2.0.0+ now
1. Making compatible either with breaking core v2.0.0+ or core v1.0.6-
2. Renew examples
### Why do we need this [WebServer_WT32_ETH01 library](https://github.com/khoih-prog/WebServer_WT32_ETH01)
102
100
101
+
#### Important notes
102
+
103
+
ESP32 Core v2.0.0 introduces new enum breaking almost all `WT32_ETH01` codes written for core v1.0.6-.
104
+
105
+
It's really strange to define a breaking enum `arduino_event_id_t` in [**WiFiGeneric.h**#L36-L78](https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/src/WiFiGeneric.h#L36-L78), compared to the old `system_event_id_t`, now placed in [**esp_event_legacy.h**#L29-L63](https://github.com/espressif/arduino-esp32/blob/master/tools/sdk/esp32/include/esp_event/include/esp_event_legacy.h#L29-L63)
106
+
107
+
It's better to preserve the old enum order and just adding new items **to do no harm to pre-2.0.0 codes**
108
+
109
+
- Releases v1.2.0 to be used for EP32 core v1.0.6- only
110
+
- Releases v1.3.0 can be used for either EP32 core v2.0.0+ or v1.0.6-. **Default is using core v2.0.0+**
111
+
112
+
To use with core v1.0.6-, just define in your sketch
113
+
114
+
```
115
+
#define USING_CORE_ESP32_CORE_V200_PLUS false
116
+
```
117
+
103
118
#### Features
104
119
105
120
This [**WebServer_WT32_ETH01 library**](https://github.com/khoih-prog/WebServer_WT32_ETH01) is a simple yet complete WebServer wrapper library for **ESP32-based WT32_ETH01** boards using LAN8720 Ethernet. The functions are similar and compatible to those of [`ESP32 WebServer`](https://github.com/espressif/arduino-esp32/tree/master/libraries/WebServer) and [`ESP8266WebServer`](https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer) libraries to make life much easier to port sketches from ESP8266/ESP32.
@@ -129,32 +144,16 @@ This [**WebServer_WT32_ETH01** library](https://github.com/khoih-prog/WebServer_
129
144
---
130
145
---
131
146
132
-
## Changelog
133
147
134
-
#### Releases v1.2.0
135
-
136
-
1. Add common code to library
137
-
2. Renew examples
138
-
139
-
#### Releases v1.1.0
140
-
141
-
1. Add SSL support
142
-
2. Add HTTPS and MQTTS examples
143
-
144
-
#### Releases v1.0.0
145
-
146
-
1. Initial coding to support WT32_ETH01 boards
147
-
148
-
149
-
---
150
-
---
151
148
152
149
## Prerequisites
153
150
154
-
1.[`Arduino IDE 1.8.15+` for Arduino](https://www.arduino.cc/en/Main/Software)
155
-
2.[`ESP32 Core 1.0.6+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [](https://github.com/espressif/arduino-esp32/releases/latest/)
151
+
1.[`Arduino IDE 1.8.16+` for Arduino](https://www.arduino.cc/en/Main/Software)
152
+
2.[`ESP32 Core 2.0.0+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards using release v1.3.0+. [](https://github.com/espressif/arduino-esp32/releases/latest/)
153
+
2.[`ESP32 Core 1.0.6-`](https://github.com/espressif/arduino-esp32) for ESP32-based boards using release v1.2.0- [](https://github.com/espressif/arduino-esp32/releases/latest/)
156
154
157
155
---
156
+
---
158
157
159
158
## Installation
160
159
@@ -672,7 +671,7 @@ The following are debug terminal output and screen shot when running example [Ad
672
671
673
672
```
674
673
Starting AdvancedWebServer on ESP32_DEV with ETH_PHY_LAN8720
675
-
WebServer_WT32_ETH01 v1.2.0
674
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
676
675
677
676
ETH Started
678
677
ETH Connected
@@ -690,7 +689,7 @@ The terminal output of **WT32_ETH01** running [ESP32_FS_EthernetWebServer](examp
690
689
691
690
```cpp
692
691
Starting ESP32_FS_EthernetWebServer on ESP32_DEV with ETH_PHY_LAN8720
693
-
WebServer_WT32_ETH01 v1.2.0
692
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
694
693
695
694
ETH Started
696
695
ETH Connected
@@ -740,7 +739,7 @@ The terminal output of **WT32_ETH01** running [MQTT_ThingStream example](example
740
739
741
740
```
742
741
Starting MQTT_ThingStream on ESP32_DEV with ETH_PHY_LAN8720
743
-
WebServer_WT32_ETH01 v1.2.0
742
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
744
743
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
745
744
***************************************
746
745
esp32-sniffer/12345678/ble
@@ -764,7 +763,7 @@ The terminal output of **WT32_ETH01** running [MQTTClient_Auth example](examples
764
763
765
764
```
766
765
Starting MQTTClient_Auth on ESP32_DEV with ETH_PHY_LAN8720
767
-
WebServer_WT32_ETH01 v1.2.0
766
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
768
767
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
769
768
Attempting MQTT connection to broker.emqx.io...connected
770
769
Message Send : MQTT_Pub => Hello from MQTTClient_Auth on WT32-ETH01 with ETH_PHY_LAN8720
@@ -781,7 +780,7 @@ The terminal output of **WT32_ETH01** running [MQTTClient_Basic example](example
781
780
782
781
```
783
782
Starting MQTTClient_Basic on ESP32_DEV with ETH_PHY_LAN8720
784
-
WebServer_WT32_ETH01 v1.2.0
783
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
785
784
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
786
785
Attempting MQTT connection to broker.emqx.io...connected
787
786
Message Send : MQTT_Pub => Hello from MQTTClient_Basic on WT32-ETH01 with ETH_PHY_LAN8720
@@ -801,7 +800,7 @@ The terminal output of **WT32_ETH01** running [WebClient example](examples/WebCl
801
800
802
801
```
803
802
Starting WebClient on ESP32_DEV with ETH_PHY_LAN8720
804
-
WebServer_WT32_ETH01 v1.2.0
803
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
805
804
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
806
805
807
806
Starting connection to server...
@@ -869,7 +868,7 @@ The terminal output of **WT32_ETH01** running [UdpNTPClient example](examples/Ud
869
868
870
869
```
871
870
Starting UdpNTPClient on ESP32_DEV with ETH_PHY_LAN8720
872
-
WebServer_WT32_ETH01 v1.2.0
871
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
873
872
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
874
873
UDP Packet received, size 48
875
874
From 132.163.97.1, port 123
@@ -898,7 +897,7 @@ The terminal output of **WT32_ETH01** running [BasicHttpClient example](examples
898
897
899
898
```
900
899
Starting BasicHttpClient on ESP32_DEV with ETH_PHY_LAN8720
901
-
WebServer_WT32_ETH01 v1.2.0
900
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
902
901
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
903
902
[HTTP] begin...
904
903
[HTTP] GET...
@@ -960,7 +959,7 @@ The terminal output of **WT32_ETH01** running [BasicHttpsClient example](example
960
959
961
960
```
962
961
Starting BasicHttpsClient on ESP32_DEV with ETH_PHY_LAN8720
963
-
WebServer_WT32_ETH01 v1.2.0
962
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
964
963
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
965
964
Waiting for NTP time sync: .
966
965
Current time: Tue Jul 6 05:29:39 2021
@@ -1005,7 +1004,7 @@ The terminal output of **WT32_ETH01** running [WebClientMulti_SSL example](examp
1005
1004
1006
1005
```
1007
1006
Starting WebClientMulti_SSL on ESP32_DEV with ETH_PHY_LAN8720
1008
-
WebServer_WT32_ETH01 v1.2.0
1007
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
1009
1008
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
1010
1009
Waiting for NTP time sync: .
1011
1010
Current time: Tue Jul 6 19:58:27 2021
@@ -1119,7 +1118,7 @@ The terminal output of **WT32_ETH01** running [MQTTClient_SSL_Complex example](e
1119
1118
1120
1119
```
1121
1120
Starting MQTTClient_SSL_Complex on ESP32_DEV with ETH_PHY_LAN8720
1122
-
WebServer_WT32_ETH01 v1.2.0
1121
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
1123
1122
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
1124
1123
Waiting for NTP time sync: .
1125
1124
Current time: Tue Jul 6 18:14:02 2021
@@ -1139,7 +1138,7 @@ The terminal output of **WT32_ETH01** running [MQTTS_ThingStream example](exampl
1139
1138
1140
1139
```
1141
1140
Starting MQTTS_ThingStream on ESP32_DEV with ETH_PHY_LAN8720
1142
-
WebServer_WT32_ETH01 v1.2.0
1141
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
1143
1142
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
1144
1143
Waiting for NTP time sync: .
1145
1144
Current time: Tue Jul 6 18:38:22 2021
@@ -1165,7 +1164,7 @@ The terminal output of **WT32_ETH01** running [MQTTClient_SSL example](examples/
1165
1164
1166
1165
```
1167
1166
Starting MQTTClient_SSL on ESP32_DEV with ETH_PHY_LAN8720
1168
-
WebServer_WT32_ETH01 v1.2.0
1167
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
1169
1168
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
1170
1169
Waiting for NTP time sync: .
1171
1170
Current time: Tue Jul 6 17:11:00 2021
@@ -1190,7 +1189,7 @@ The terminal output of **WT32_ETH01** running [MQTTClient_SSL_Auth example](exam
1190
1189
1191
1190
```
1192
1191
Starting MQTTClient_SSL_Auth on ESP32_DEV with ETH_PHY_LAN8720
1193
-
WebServer_WT32_ETH01 v1.2.0
1192
+
WebServer_WT32_ETH01 v1.3.0 for core v2.0.0+
1194
1193
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
1195
1194
Waiting for NTP time sync: .
1196
1195
Current time: Tue Jul 6 18:05:14 2021
@@ -1231,32 +1230,6 @@ If you get compilation errors, more often than not, you may need to install a ne
1231
1230
---
1232
1231
---
1233
1232
1234
-
## Releases
1235
-
1236
-
#### Releases v1.2.0
1237
-
1238
-
1. Add common code to library
1239
-
2. Renew examples
1240
-
1241
-
#### Releases v1.1.0
1242
-
1243
-
1. Add SSL support
1244
-
2. Add HTTPS and MQTTS examples
1245
-
1246
-
#### Releases v1.0.0
1247
-
1248
-
1. Initial coding to support WT32_ETH01 boards
1249
-
1250
-
---
1251
-
1252
-
#### Supported Boards
1253
-
1254
-
This [**WebServer_WT32_ETH01** library](https://github.com/khoih-prog/WebServer_WT32_ETH01) currently supports these following boards:
1255
-
1256
-
1.**WT32_ETH01 boards** using ESP32-based boards and LAN8720 Ethernet
1257
-
1258
-
---
1259
-
---
1260
1233
1261
1234
### Issues ###
1262
1235
@@ -1273,6 +1246,7 @@ Submit issues to: [WebServer_WT32_ETH01 issues](https://github.com/khoih-prog/We
1273
1246
1. Add support to ESP32-based **WT32_ETH01** using LAN8720 Ethernet
1274
1247
2. Add SSL support
1275
1248
3. Add HTTPS and MQTTS examples
1249
+
4. Support breaking ESP32 core v2.0.0+ as well as v1.0.6-
0 commit comments