Skip to content

Commit f0577e2

Browse files
author
fpr
committed
Example headers modified
Signed-off-by: fpr <[email protected]>
1 parent e4103ab commit f0577e2

File tree

8 files changed

+41
-18
lines changed

8 files changed

+41
-18
lines changed

Diff for: libraries/NativeEthernet/examples/AdvancedChatServer/AdvancedChatServer.ino

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
to all connected clients but the client the message comes from.
66
To use, telnet to your device's IP address and type.
77
You can see the client's input in the serial monitor as well.
8-
Using an Arduino Wiznet Ethernet shield.
98
109
Circuit:
11-
* Ethernet shield attached to pins 10, 11, 12, 13
10+
* STM32 board with Ethernet support
1211
1312
created 18 Dec 2009
1413
by David A. Mellis

Diff for: libraries/NativeEthernet/examples/ChatServer/ChatServer.ino

+18-2
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,32 @@
44
A simple server that distributes any incoming messages to all
55
connected clients. To use, telnet to your device's IP address and type.
66
You can see the client's input in the serial monitor as well.
7-
Using an Arduino Wiznet Ethernet shield.
87
98
Circuit:
10-
* Ethernet shield attached to pins 10, 11, 12, 13
9+
* STM32 board with Ethernet support
1110
1211
created 18 Dec 2009
1312
by David A. Mellis
1413
modified 9 Apr 2012
1514
by Tom Igoe
1615
16+
Workaround:
17+
* If you can't send a message after the server has accepted the connection,
18+
reject the 26 first bytes.
19+
20+
if (client.available() > 0) {
21+
// read the bytes incoming from the client:
22+
char thisChar = client.read();
23+
if(n++ > 26) {
24+
// echo the bytes back to the client:
25+
server.write(thisChar);
26+
// echo the bytes to the server as well:
27+
Serial.write(thisChar);
28+
}
29+
}
30+
31+
32+
1733
*/
1834

1935
#include <NativeEthernet.h>

Diff for: libraries/NativeEthernet/examples/DhcpAddressPrinter/DhcpAddressPrinter.ino

+16-2
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,31 @@
33
44
This sketch uses the DHCP extensions to the Ethernet library
55
to get an IP address via DHCP and print the address obtained.
6-
using an Arduino Wiznet Ethernet shield.
76
87
Circuit:
9-
Ethernet shield attached to pins 10, 11, 12, 13
8+
STM32 board with Ethernet support
109
1110
created 12 April 2011
1211
modified 9 Apr 2012
1312
by Tom Igoe
1413
modified 02 Sept 2015
1514
by Arturo Guadalupi
1615
16+
Workaround:
17+
* If you can't send a message after the server has accepted the connection,
18+
reject the 26 first bytes.
19+
20+
if (client.available() > 0) {
21+
// read the bytes incoming from the client:
22+
char thisChar = client.read();
23+
if(n++ > 26) {
24+
// echo the bytes back to the client:
25+
server.write(thisChar);
26+
// echo the bytes to the server as well:
27+
Serial.write(thisChar);
28+
}
29+
}
30+
1731
*/
1832

1933
#include <NativeEthernet.h>

Diff for: libraries/NativeEthernet/examples/DhcpChatServer/DhcpChatServer.ino

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
A simple server that distributes any incoming messages to all
55
connected clients. To use, telnet to your device's IP address and type.
66
You can see the client's input in the serial monitor as well.
7-
Using an Arduino Wiznet Ethernet shield.
87
98
THis version attempts to get an IP address using DHCP
109
1110
Circuit:
12-
* Ethernet shield attached to pins 10, 11, 12, 13
11+
* STM32 board with Ethernet support
1312
1413
created 21 May 2011
1514
modified 9 Apr 2012

Diff for: libraries/NativeEthernet/examples/TelnetClient/TelnetClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
http://processing.org/
1111
1212
Circuit:
13-
* Ethernet shield attached to pins 10, 11, 12, 13
13+
* STM32 board with Ethernet support
1414
1515
created 14 Sep 2010
1616
modified 9 Apr 2012

Diff for: libraries/NativeEthernet/examples/WebClient/WebClient.ino

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
Web client
33
44
This sketch connects to a website (http://www.google.com)
5-
using an Arduino Wiznet Ethernet shield.
65
76
Circuit:
8-
* Ethernet shield attached to pins 10, 11, 12, 13
7+
* STM32 board with Ethernet support
98
109
created 18 Dec 2009
1110
by David A. Mellis

Diff for: libraries/NativeEthernet/examples/WebClientRepeating/WebClientRepeating.ino

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
/*
22
Repeating Web client
33
4-
This sketch connects to a a web server and makes a request
5-
using a Wiznet Ethernet shield. You can use the Arduino Ethernet shield, or
6-
the Adafruit Ethernet shield, either one will work, as long as it's got
7-
a Wiznet Ethernet module on board.
4+
This sketch connects to a a web server and makes a request.
85
96
This example uses DNS, by assigning the Ethernet client with a MAC address,
107
IP address, and DNS address.
118
129
Circuit:
13-
* Ethernet shield attached to pins 10, 11, 12, 13
10+
* STM32 board with Ethernet support
1411
1512
created 19 Apr 2012
1613
by Tom Igoe

Diff for: libraries/NativeEthernet/examples/WebServer/WebServer.ino

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
Web Server
33
44
A simple web server that shows the value of the analog input pins.
5-
using an Arduino Wiznet Ethernet shield.
65
76
Circuit:
8-
* Ethernet shield attached to pins 10, 11, 12, 13
7+
* STM32 board with Ethernet support
98
* Analog inputs attached to pins A0 through A5 (optional)
109
1110
created 18 Dec 2009

0 commit comments

Comments
 (0)