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

Commit c8bccad

Browse files
authored
v1.5.3 to use built-in ESP32 MAC
#### Releases v1.5.3 1. Using `SPI_DMA_CH_AUTO` and built-in ESP32 MAC 2. Improve library and examples code
1 parent d55c8a0 commit c8bccad

31 files changed

+172
-97
lines changed

.codespellrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See: https://github.com/codespell-project/codespell#using-a-config-file
2+
[codespell]
3+
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
4+
ignore-words-list = ,
5+
check-filenames =
6+
check-hidden =
7+
skip = ./.git,./src,./examples,./Packages_Patches,./LibraryPatches

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ 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/WebServer_ESP32_W5500/issues/new).
1212

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

1517
Please ensure to specify the following:
@@ -26,6 +28,8 @@ Please ensure to specify the following:
2628

2729
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

31+
---
32+
2933
### Example
3034

3135
```

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717

1818
* [Changelog](#changelog)
19+
* [Releases v1.5.3](#releases-v153)
1920
* [Releases v1.5.2](#releases-v152)
2021
* [Releases v1.5.1](#releases-v151)
2122

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

2526
## Changelog
2627

28+
#### Releases v1.5.3
29+
30+
1. Using `SPI_DMA_CH_AUTO` and built-in ESP32 MAC
31+
2. Improve library and examples code
32+
2733
#### Releases v1.5.2
2834

2935
1. Suppress compile error when using aggressive compile settings

examples/AdvancedWebServer/AdvancedWebServer.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,10 @@ void setup()
210210

211211
// start the ethernet connection and the server:
212212
// Use DHCP dynamic IP and random mac
213-
uint16_t index = millis() % NUMBER_OF_MAC;
214-
215213
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
216-
// int SPI_HOST, uint8_t *W5500_Mac = W5500_Default_Mac);
217-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
218-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[index] );
214+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
215+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
216+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
219217

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

examples/HelloServer/HelloServer.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,10 @@ void setup()
133133

134134
// start the ethernet connection and the server:
135135
// Use DHCP dynamic IP and random mac
136-
uint16_t index = millis() % NUMBER_OF_MAC;
137-
138136
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
139-
// int SPI_HOST, uint8_t *W5500_Mac = W5500_Default_Mac);
140-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
141-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_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, ETH_SPI_HOST );
139+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
142140

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

examples/HelloServer2/HelloServer2.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,10 @@ void setup()
133133

134134
// start the ethernet connection and the server:
135135
// Use DHCP dynamic IP and random mac
136-
uint16_t index = millis() % NUMBER_OF_MAC;
137-
138136
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
139-
// int SPI_HOST, uint8_t *W5500_Mac = W5500_Default_Mac);
140-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
141-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_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, ETH_SPI_HOST );
139+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
142140

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

examples/HttpBasicAuth/HttpBasicAuth.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,10 @@ void setup()
107107

108108
// start the ethernet connection and the server:
109109
// Use DHCP dynamic IP and random mac
110-
uint16_t index = millis() % NUMBER_OF_MAC;
111-
112110
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
113-
// int SPI_HOST, uint8_t *W5500_Mac = W5500_Default_Mac);
114-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
115-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[index] );
111+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
112+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
113+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
116114

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

examples/MQTTClient_Auth/MQTTClient_Auth.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,10 @@ void setup()
190190

191191
// start the ethernet connection and the server:
192192
// Use DHCP dynamic IP and random mac
193-
uint16_t index = millis() % NUMBER_OF_MAC;
194-
195193
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
196-
// int SPI_HOST, uint8_t *W5500_Mac = W5500_Default_Mac);
197-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
198-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[index] );
194+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
195+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
196+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
199197

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

examples/MQTTClient_Basic/MQTTClient_Basic.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,10 @@ void setup()
191191

192192
// start the ethernet connection and the server:
193193
// Use DHCP dynamic IP and random mac
194-
uint16_t index = millis() % NUMBER_OF_MAC;
195-
196194
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
197-
// int SPI_HOST, uint8_t *W5500_Mac = W5500_Default_Mac);
198-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
199-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[index] );
195+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
196+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
197+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
200198

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

examples/MQTT_ThingStream/MQTT_ThingStream.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,10 @@ void setup()
236236

237237
// start the ethernet connection and the server:
238238
// Use DHCP dynamic IP and random mac
239-
uint16_t index = millis() % NUMBER_OF_MAC;
240-
241239
//bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
242-
// int SPI_HOST, uint8_t *W5500_Mac = W5500_Default_Mac);
243-
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
244-
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[index] );
240+
// int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
241+
ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
242+
//ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );
245243

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

0 commit comments

Comments
 (0)