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

Commit 47558b2

Browse files
authored
v1.2.0 for LwIP W6100 Ethernet
### Releases v1.2.0 1. Add support to `ESP32/S2/S3/C3` using `LwIP W6100 Ethernet`
1 parent 0dc963e commit 47558b2

File tree

33 files changed

+2010
-235
lines changed

33 files changed

+2010
-235
lines changed

Diff for: CONTRIBUTING.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,33 @@ However, before reporting a bug please check through the following:
1010

1111
If you don't find anything, please [open a new issue](https://github.com/khoih-prog/AsyncDNSServer_ESP32_Ethernet/issues/new).
1212

13+
---
14+
1315
### How to submit a bug report
1416

1517
Please ensure to specify the following:
1618

1719
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18-
* Board Type (e.g. ESP32S3_DEV, ESP32S2_DEV, ESP32C3_DEV)
19-
* Board Core Version (e.g. ESP32 core v2.0.5)
20+
* Board Type (e.g. ESP32_DEV, ESP32S3_DEV, ESP32S2_DEV, ESP32C3_DEV)
21+
* Board Core Version (e.g. ESP32 core v2.0.6)
2022
* Contextual information (e.g. what you were trying to achieve)
2123
* Simplest possible steps to reproduce
2224
* Anything that might be relevant in your opinion, such as:
2325
* Operating system (Windows, Ubuntu, etc.) and the output of `uname -a`
2426
* Network configuration
2527

2628

27-
Please be educated, civilized and constructive. Disrespective posts against [GitHub Code of Conduct](https://docs.github.com/en/site-policy/github-terms/github-event-code-of-conduct) will be ignored and deleted.
29+
Please be educated, civilized and constructive as you've always been. Disrespective posts against [GitHub Code of Conduct](https://docs.github.com/en/site-policy/github-terms/github-event-code-of-conduct) will be ignored and deleted.
2830

2931

3032
### Example
3133

3234
```
3335
Arduino IDE version: 1.8.19
3436
ESP32S3_DEV board
35-
ESP32 core v2.0.5
37+
ESP32 core v2.0.6
3638
OS: Ubuntu 20.04 LTS
37-
Linux xy-Inspiron-3593 5.15.0-56-generic #62~20.04.1-Ubuntu SMP Tue Nov 22 21:24:20 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
39+
Linux xy-Inspiron-3593 5.15.0-57-generic #63~20.04.1-Ubuntu SMP Wed Nov 30 13:40:16 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3840
3941
Context:
4042
I encountered a crash while using this library

Diff for: Images/W6100.png

116 KB
Loading

Diff for: changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
## Table of Contents
1717

1818
* [Changelog](#changelog)
19+
* [Releases v1.2.0](#releases-v120)
1920
* [Releases v1.1.0](#releases-v110)
2021
* [Initial Releases v1.0.0](#initial-releases-v100)
2122

@@ -24,6 +25,10 @@
2425

2526
## Changelog
2627

28+
### Releases v1.2.0
29+
30+
1. Add support to `ESP32/S2/S3/C3` using `LwIP W6100 Ethernet`
31+
2732
### Releases v1.1.0
2833

2934
1. Add support to `ESP32S2/C3` boards using `LwIP W5500 or ENC28J60 Ethernet`

Diff for: examples/ESP32_ENC/AsyncCaptivePortalAdvanced_ESP32_ENC/AsyncCaptivePortalAdvanced_ESP32_ENC.ino

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/****************************************************************************************************************************
22
AsyncCaptivePortalAdvanced_ESP32_ENC.ino
33
4-
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
4+
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
55
6-
AsyncDNSServer_ESP32_Ethernet is a Async DNS Server library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
6+
AsyncDNSServer_ESP32_Ethernet is a library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
77
88
Based on and modified from ESPAsyncDNSServer Library (https://github.com/devyte/ESPAsyncDNSServer)
99
Built by Khoi Hoang https://github.com/khoih-prog/AsyncDNSServer_ESP32_Ethernet
@@ -23,6 +23,7 @@
2323
#endif
2424

2525
#define USING_W5500 false
26+
#define USING_W6100 false
2627
#define USING_ENC28J60 true
2728

2829
#define ASYNC_DNS_ESP32_ETHERNET_DEBUG_PORT Serial
@@ -242,12 +243,10 @@ void setup()
242243

243244
// start the ethernet connection and the server:
244245
// Use DHCP dynamic IP and random mac
245-
uint16_t index = millis() % NUMBER_OF_MAC;
246-
247246
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
248-
// int SPI_HOST, uint8_t *ENC28J60_Mac = ENC28J60_Default_Mac);
249-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST );
250-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST, mac[index] );
247+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
248+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST );
249+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
251250

252251
// Static IP, leave without this line to get IP via DHCP
253252
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);

Diff for: examples/ESP32_ENC/AsyncCaptivePortal_ESP32_ENC/AsyncCaptivePortal_ESP32_ENC.ino

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/****************************************************************************************************************************
22
AsyncCaptivePortal_ESP32_ENC.ino
33
4-
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
4+
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
55
6-
AsyncDNSServer_ESP32_Ethernet is a Async DNS Server library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
6+
AsyncDNSServer_ESP32_Ethernet is a library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
77
88
Based on and modified from ESPAsyncDNSServer Library (https://github.com/devyte/ESPAsyncDNSServer)
99
Built by Khoi Hoang https://github.com/khoih-prog/AsyncDNSServer_ESP32_Ethernet
@@ -15,6 +15,7 @@
1515
#endif
1616

1717
#define USING_W5500 false
18+
#define USING_W6100 false
1819
#define USING_ENC28J60 true
1920

2021
#define ASYNC_DNS_ESP32_ETHERNET_DEBUG_PORT Serial
@@ -132,12 +133,10 @@ void setup()
132133

133134
// start the ethernet connection and the server:
134135
// Use DHCP dynamic IP and random mac
135-
uint16_t index = millis() % NUMBER_OF_MAC;
136-
137136
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
138-
// int SPI_HOST, uint8_t *ENC28J60_Mac = ENC28J60_Default_Mac);
139-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST );
140-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST, mac[index] );
137+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
138+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST );
139+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
141140

142141
// Static IP, leave without this line to get IP via DHCP
143142
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);

Diff for: examples/ESP32_ENC/AsyncDNSServer_ESP32_ENC/AsyncDNSServer_ESP32_ENC.ino

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/****************************************************************************************************************************
22
AsyncDNSServer_ESP32_ENC.ino
33
4-
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
4+
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
55
6-
AsyncDNSServer_ESP32_Ethernet is a Async DNS Server library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
6+
AsyncDNSServer_ESP32_Ethernet is a library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
77
88
Based on and modified from ESPAsyncDNSServer Library (https://github.com/devyte/ESPAsyncDNSServer)
99
Built by Khoi Hoang https://github.com/khoih-prog/AsyncDNSServer_ESP32_Ethernet
@@ -15,6 +15,7 @@
1515
#endif
1616

1717
#define USING_W5500 false
18+
#define USING_W6100 false
1819
#define USING_ENC28J60 true
1920

2021
#define ASYNC_DNS_ESP32_ETHERNET_DEBUG_PORT Serial
@@ -131,12 +132,10 @@ void setup()
131132

132133
// start the ethernet connection and the server:
133134
// Use DHCP dynamic IP and random mac
134-
uint16_t index = millis() % NUMBER_OF_MAC;
135-
136135
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
137-
// int SPI_HOST, uint8_t *ENC28J60_Mac = ENC28J60_Default_Mac);
138-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST );
139-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST, mac[index] );
136+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
137+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST );
138+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
140139

141140
// Static IP, leave without this line to get IP via DHCP
142141
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);

Diff for: examples/ESP32_ENC/AsyncDNServerFull_ESP32_ENC/AsyncDNServerFull_ESP32_ENC.ino

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/****************************************************************************************************************************
22
AsyncDNSServerFull_ESP32_ENC.ino
33
4-
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
4+
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
55
6-
AsyncDNSServer_ESP32_Ethernet is a Async DNS Server library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
6+
AsyncDNSServer_ESP32_Ethernet is a library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
77
88
Based on and modified from ESPAsyncDNSServer Library (https://github.com/devyte/ESPAsyncDNSServer)
99
Built by Khoi Hoang https://github.com/khoih-prog/AsyncDNSServer_ESP32_Ethernet
@@ -15,6 +15,7 @@
1515
#endif
1616

1717
#define USING_W5500 false
18+
#define USING_W6100 false
1819
#define USING_ENC28J60 true
1920

2021
#define ASYNC_DNS_ESP32_ETHERNET_DEBUG_PORT Serial
@@ -130,12 +131,10 @@ void setup()
130131

131132
// start the ethernet connection and the server:
132133
// Use DHCP dynamic IP and random mac
133-
uint16_t index = millis() % NUMBER_OF_MAC;
134-
135134
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
136-
// int SPI_HOST, uint8_t *ENC28J60_Mac = ENC28J60_Default_Mac);
137-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST );
138-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST, mac[index] );
135+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
136+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST );
137+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
139138

140139
// Static IP, leave without this line to get IP via DHCP
141140
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);

Diff for: examples/ESP32_SC_ENC/AsyncCaptivePortalAdvanced_ESP32_SC_ENC/AsyncCaptivePortalAdvanced_ESP32_SC_ENC.ino

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/****************************************************************************************************************************
22
AsyncCaptivePortalAdvanced_ESP32_ENC.ino
33
4-
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
4+
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
55
6-
AsyncDNSServer_ESP32_Ethernet is a Async DNS Server library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
6+
AsyncDNSServer_ESP32_Ethernet is a library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
77
88
Based on and modified from ESPAsyncDNSServer Library (https://github.com/devyte/ESPAsyncDNSServer)
99
Built by Khoi Hoang https://github.com/khoih-prog/AsyncDNSServer_ESP32_Ethernet
@@ -22,6 +22,8 @@
2222
#error This code is designed for (ESP32 + LwIP ENC28J60) to run on ESP32 platform! Please check your Tools->Board setting.
2323
#endif
2424

25+
#define USING_W5500 false
26+
#define USING_W6100 false
2527
#define USING_ENC28J60 true
2628

2729
#define ASYNC_DNS_ESP32_ETHERNET_DEBUG_PORT Serial
@@ -256,12 +258,10 @@ void setup()
256258

257259
// start the ethernet connection and the server:
258260
// Use DHCP dynamic IP and random mac
259-
uint16_t index = millis() % NUMBER_OF_MAC;
260-
261261
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
262-
// int SPI_HOST, uint8_t *ENC28J60_Mac = ENC28J60_Default_Mac);
263-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
264-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[index] );
262+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
263+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
264+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
265265

266266
// Static IP, leave without this line to get IP via DHCP
267267
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);

Diff for: examples/ESP32_SC_ENC/AsyncCaptivePortal_ESP32_SC_ENC/AsyncCaptivePortal_ESP32_SC_ENC.ino

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/****************************************************************************************************************************
22
AsyncCaptivePortal_ESP32_ENC.ino
33
4-
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
4+
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
55
6-
AsyncDNSServer_ESP32_Ethernet is a Async DNS Server library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
6+
AsyncDNSServer_ESP32_Ethernet is a library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
77
88
Based on and modified from ESPAsyncDNSServer Library (https://github.com/devyte/ESPAsyncDNSServer)
99
Built by Khoi Hoang https://github.com/khoih-prog/AsyncDNSServer_ESP32_Ethernet
@@ -14,6 +14,8 @@
1414
#error This code is designed for (ESP32 + LwIP ENC28J60) to run on ESP32 platform! Please check your Tools->Board setting.
1515
#endif
1616

17+
#define USING_W5500 false
18+
#define USING_W6100 false
1719
#define USING_ENC28J60 true
1820

1921
#define ASYNC_DNS_ESP32_ETHERNET_DEBUG_PORT Serial
@@ -146,12 +148,10 @@ void setup()
146148

147149
// start the ethernet connection and the server:
148150
// Use DHCP dynamic IP and random mac
149-
uint16_t index = millis() % NUMBER_OF_MAC;
150-
151151
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
152-
// int SPI_HOST, uint8_t *ENC28J60_Mac = ENC28J60_Default_Mac);
153-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
154-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[index] );
152+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
153+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
154+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
155155

156156
// Static IP, leave without this line to get IP via DHCP
157157
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);

Diff for: examples/ESP32_SC_ENC/AsyncDNSServer_ESP32_SC_ENC/AsyncDNSServer_ESP32_SC_ENC.ino

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/****************************************************************************************************************************
22
AsyncDNSServer_ESP32_ENC.ino
33
4-
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
4+
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
55
6-
AsyncDNSServer_ESP32_Ethernet is a Async DNS Server library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
6+
AsyncDNSServer_ESP32_Ethernet is a library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
77
88
Based on and modified from ESPAsyncDNSServer Library (https://github.com/devyte/ESPAsyncDNSServer)
99
Built by Khoi Hoang https://github.com/khoih-prog/AsyncDNSServer_ESP32_Ethernet
@@ -14,6 +14,8 @@
1414
#error This code is designed for (ESP32 + LwIP ENC28J60) to run on ESP32 platform! Please check your Tools->Board setting.
1515
#endif
1616

17+
#define USING_W5500 false
18+
#define USING_W6100 false
1719
#define USING_ENC28J60 true
1820

1921
#define ASYNC_DNS_ESP32_ETHERNET_DEBUG_PORT Serial
@@ -145,12 +147,10 @@ void setup()
145147

146148
// start the ethernet connection and the server:
147149
// Use DHCP dynamic IP and random mac
148-
uint16_t index = millis() % NUMBER_OF_MAC;
149-
150150
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
151-
// int SPI_HOST, uint8_t *ENC28J60_Mac = ENC28J60_Default_Mac);
152-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
153-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[index] );
151+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
152+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
153+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
154154

155155
// Static IP, leave without this line to get IP via DHCP
156156
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);

Diff for: examples/ESP32_SC_ENC/AsyncDNServerFull_ESP32_SC_ENC/AsyncDNServerFull_ESP32_SC_ENC.ino

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/****************************************************************************************************************************
22
AsyncDNSServerFull_ESP32_ENC.ino
33
4-
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
4+
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
55
6-
AsyncDNSServer_ESP32_Ethernet is a Async DNS Server library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
6+
AsyncDNSServer_ESP32_Ethernet is a library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W6100 / W6100 / ENC28J60)
77
88
Based on and modified from ESPAsyncDNSServer Library (https://github.com/devyte/ESPAsyncDNSServer)
99
Built by Khoi Hoang https://github.com/khoih-prog/AsyncDNSServer_ESP32_Ethernet
@@ -14,6 +14,8 @@
1414
#error This code is designed for (ESP32 + LwIP ENC28J60) to run on ESP32 platform! Please check your Tools->Board setting.
1515
#endif
1616

17+
#define USING_W5500 false
18+
#define USING_W6100 false
1719
#define USING_ENC28J60 true
1820

1921
#define ASYNC_DNS_ESP32_ETHERNET_DEBUG_PORT Serial
@@ -144,12 +146,10 @@ void setup()
144146

145147
// start the ethernet connection and the server:
146148
// Use DHCP dynamic IP and random mac
147-
uint16_t index = millis() % NUMBER_OF_MAC;
148-
149149
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
150-
// int SPI_HOST, uint8_t *ENC28J60_Mac = ENC28J60_Default_Mac);
151-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
152-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[index] );
150+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
151+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
152+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
153153

154154
// Static IP, leave without this line to get IP via DHCP
155155
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);

Diff for: examples/ESP32_SC_W5500/AsyncCaptivePortalAdvanced_ESP32_SC_W5500/AsyncCaptivePortalAdvanced_ESP32_SC_W5500.ino

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/****************************************************************************************************************************
22
AsyncCaptivePortalAdvanced_ESP32_SC_W5500.ino
33
4-
For ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
5-
6-
AsyncDNSServer_ESP32_Ethernet is a Async DNS Server library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / ENC28J60)
4+
AsyncDNSServer_ESP32_Ethernet is a library for the ESP32_Ethernet (ESP32/S2/S3/C3 + LwIP W5500 / W6100 / ENC28J60)
75
86
Based on and modified from ESPAsyncDNSServer Library (https://github.com/devyte/ESPAsyncDNSServer)
97
Built by Khoi Hoang https://github.com/khoih-prog/AsyncDNSServer_ESP32_Ethernet
@@ -23,6 +21,7 @@
2321
#endif
2422

2523
#define USING_W5500 true
24+
#define USING_W6100 false
2625
#define USING_ENC28J60 false
2726

2827
#define ASYNC_DNS_ESP32_ETHERNET_DEBUG_PORT Serial
@@ -257,12 +256,10 @@ void setup()
257256

258257
// start the ethernet connection and the server:
259258
// Use DHCP dynamic IP and random mac
260-
uint16_t index = millis() % NUMBER_OF_MAC;
261-
262259
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
263260
// int SPI_HOST, uint8_t *W5500_Mac = W5500_Default_Mac);
264-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
265-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[index] );
261+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
262+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
266263

267264
// Static IP, leave without this line to get IP via DHCP
268265
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);

0 commit comments

Comments
 (0)