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

Fixed Wifi example

This commit is contained in:
Cristian Maglie
2013-03-29 12:04:36 +01:00
parent d88236a033
commit 0e7a434fe8

View File

@ -1,5 +1,5 @@
/* /*
Web Server WiFi Web Server
A simple web server that shows the value of the analog input pins. A simple web server that shows the value of the analog input pins.
using a WiFi shield. using a WiFi shield.
@ -15,7 +15,9 @@
by dlf (Metodo2 srl) by dlf (Metodo2 srl)
modified 31 May 2012 modified 31 May 2012
by Tom Igoe by Tom Igoe
*/ */
#include <SPI.h> #include <SPI.h>
#include <WiFi.h> #include <WiFi.h>
@ -76,7 +78,7 @@ void loop() {
// send a standard http response header // send a standard http response header
client.println("HTTP/1.1 200 OK"); client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html"); client.println("Content-Type: text/html");
client.println("Connnection: close"); client.println("Connection: close");
client.println(); client.println();
client.println("<!DOCTYPE HTML>"); client.println("<!DOCTYPE HTML>");
client.println("<html>"); client.println("<html>");