1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-25 06:22:11 +03:00

Changed names of the Ethernet classes: Client -> EthernetClient, NetClient -> Client, and basic testing performed

This commit is contained in:
amcewen
2011-08-29 22:36:28 +01:00
parent b7533c1839
commit ad5dead85a
20 changed files with 89 additions and 89 deletions

View File

@ -30,7 +30,7 @@ IPAddress gateway(192,168,1, 1);
IPAddress subnet(255, 255, 0, 0);
// telnet defaults to port 23
Server server(23);
EthernetServer server(23);
boolean gotAMessage = false; // whether or not you got a message from the client yet
void setup() {
@ -59,7 +59,7 @@ void setup() {
void loop() {
// wait for a new client:
Client client = server.available();
EthernetClient client = server.available();
// when the client sends the first byte, say hello:
if (client) {