Skip to content

Commit 2cbafb0

Browse files
author
fpr
committed
Use the same MAC address in all sketches and remove comments outdated.
Signed-off-by: fpr <[email protected]>
1 parent e641f84 commit 2cbafb0

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

examples/DhcpAddressPrinter/DhcpAddressPrinter.ino

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020
#include <STM32Ethernet.h>
2121

2222
// Enter a MAC address for your controller below.
23-
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
2423
byte mac[] = {
25-
0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02
24+
0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
2625
};
2726

2827
// Initialize the Ethernet client library

examples/DhcpChatServer/DhcpChatServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
// The IP address will be dependent on your local network.
2929
// gateway and subnet are optional:
3030
byte mac[] = {
31-
0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02
31+
0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
3232
};
3333
IPAddress ip(192, 168, 1, 177);
3434
IPAddress myDns(192,168,1, 1);

examples/UdpNtpClient/UdpNtpClient.ino

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <EthernetUdp.h>
2626

2727
// Enter a MAC address for your controller below.
28-
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
2928
byte mac[] = {
3029
0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
3130
};

examples/WebClient/WebClient.ino

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@
1414
by Wi6Labs
1515
1616
*/
17-
17+
1818
#include <LwIP.h>
1919
#include <STM32Ethernet.h>
2020

2121
// Enter a MAC address for your controller below.
22-
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
2322
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
2423
// if you don't want to use DNS (and reduce your sketch size)
2524
// use the numeric IP instead of the name for the server:

0 commit comments

Comments
 (0)