11/*
2- WiFi Web Server LED Blink
2+ WiFi Web Server LED Blink
33
44 A simple web server that lets you blink an LED via the web.
55 This sketch will print the IP address of your WiFi Shield (once connected)
@@ -54,7 +54,7 @@ void setup()
5454 }
5555
5656 Serial.println (" " );
57- Serial.println (" WiFi connected" );
57+ Serial.println (" WiFi connected. " );
5858 Serial.println (" IP address: " );
5959 Serial.println (WiFi.localIP ());
6060
@@ -68,7 +68,7 @@ void loop(){
6868 WiFiClient client = server.available (); // listen for incoming clients
6969
7070 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
7272 String currentLine = " " ; // make a String to hold incoming data from the client
7373 while (client.connected ()) { // loop while the client's connected
7474 if (client.available ()) { // if there's bytes to read from the client,
@@ -86,8 +86,8 @@ void loop(){
8686 client.println ();
8787
8888 // 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>" );
9191
9292 // The HTTP response ends with another blank line:
9393 client.println ();
@@ -111,6 +111,6 @@ void loop(){
111111 }
112112 // close the connection:
113113 client.stop ();
114- Serial.println (" client disonnected " );
114+ Serial.println (" Client Disconnected. " );
115115 }
116116}
0 commit comments