Hello !
I try to create a web server on my Arduino Yun.
That's why I need to use Bridge's Libraries (usefull for Yun users).
But when I connect to my arduino, it sends me a web page directly formated in code (I see on my browser the html code !)
I would like not to see "<!Doctype html>" on my webpage !!!
What is wrong on my code ?
#include <Bridge.h>
#include <BridgeServer.h>
#include <BridgeClient.h>
BridgeServer server;
void setup() {
Bridge.begin();
server.begin();
}
void loop() {
BridgeClient client = server.accept();
if (client) {
// Process request
client.println("<!Doctype html>");
client.println("<html>");
client.println("<head>");
client.println("<title>Arduino Web Page</title>");
client.println("</head>");
client.println("<body>");
client.println("<h1>Hello from Arduino grr !!!</h1>");
client.println("<p>A web page from the Arduino server</p>");
client.println("</body>");
client.println("</html>");
// Close connection and free resources.
client.stop();
}
}
Thanks for your help !!