/* Web_Authentication.ino - Webduino Authentication example */ /* This example assumes that you're familiar with the basics * of the Ethernet library (particularly with setting MAC and * IP addresses) and with the basics of Webduino. If you * haven't had a look at the HelloWorld example you should * probably check it out first */ /* you can change the authentication realm by defining * WEBDUINO_AUTH_REALM before including WebServer.h */ #define WEBDUINO_AUTH_REALM "Weduino Authentication Example" // username = user // password = user #include "SPI.h" #include "Ethernet.h" #include "WebServer.h" #include "TextFinder.h" static uint8_t mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; static uint8_t ip[] = { 192, 168, 1, 177 }; /* This creates an instance of the webserver. By specifying a prefix * of "", all pages will be at the root of the server. */ #define PREFIX "" WebServer webserver(PREFIX, 80); void defaultCmd(WebServer &server, WebServer::ConnectionType type, char *, bool) { server.httpSuccess(); if (type != WebServer::HEAD) { P(helloMsg) = "