Skip to content

Commit abda3d9

Browse files
Simple printing of IP address in DhcpChatServer example
1 parent ac84329 commit abda3d9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

examples/DhcpChatServer/DhcpChatServer.ino

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,10 @@ void setup() {
6464
}
6565
// print your local IP address:
6666
Serial.print("My IP address: ");
67-
ip = Ethernet.localIP();
68-
for (byte thisByte = 0; thisByte < 4; thisByte++) {
69-
// print the value of each byte of the IP address:
70-
Serial.print(ip[thisByte], DEC);
71-
Serial.print(".");
72-
}
73-
Serial.println();
67+
Serial.println(Ethernet.localIP());
68+
7469
// start listening for clients
7570
server.begin();
76-
7771
}
7872

7973
void loop() {

0 commit comments

Comments
 (0)