1
1
/*
2
- WiFi Web Server LED Blink
2
+ WiFi Web Server LED Blink
3
3
4
4
A simple web server that lets you blink an LED via the web.
5
5
This sketch will print the IP address of your WiFi Shield (once connected)
@@ -54,7 +54,7 @@ void setup()
54
54
}
55
55
56
56
Serial.println (" " );
57
- Serial.println (" WiFi connected" );
57
+ Serial.println (" WiFi connected. " );
58
58
Serial.println (" IP address: " );
59
59
Serial.println (WiFi.localIP ());
60
60
@@ -68,7 +68,7 @@ void loop(){
68
68
WiFiClient client = server.available (); // listen for incoming clients
69
69
70
70
if (client) { // if you get a client,
71
- Serial.println (" new client " ); // print a message out the serial port
71
+ Serial.println (" New Client. " ); // print a message out the serial port
72
72
String currentLine = " " ; // make a String to hold incoming data from the client
73
73
while (client.connected ()) { // loop while the client's connected
74
74
if (client.available ()) { // if there's bytes to read from the client,
@@ -86,8 +86,8 @@ void loop(){
86
86
client.println ();
87
87
88
88
// the content of the HTTP response follows the header:
89
- client.print (" Click <a href=\" /H\" >here</a> turn the LED on pin 5 on<br>" );
90
- client.print (" Click <a href=\" /L\" >here</a> turn the LED on pin 5 off<br>" );
89
+ client.print (" Click <a href=\" /H\" >here</a> to turn the LED on pin 5 on. <br>" );
90
+ client.print (" Click <a href=\" /L\" >here</a> to turn the LED on pin 5 off. <br>" );
91
91
92
92
// The HTTP response ends with another blank line:
93
93
client.println ();
@@ -111,6 +111,6 @@ void loop(){
111
111
}
112
112
// close the connection:
113
113
client.stop ();
114
- Serial.println (" client disonnected " );
114
+ Serial.println (" Client Disconnected. " );
115
115
}
116
116
}
0 commit comments