Skip to content

Commit

Permalink
Updated comments. Fixed some bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
edvler committed Mar 13, 2013
1 parent 168ad89 commit 871af35
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions examples/Web_Net_Setup/Web_Net_Setup.pde
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Author: Matthias Maderer
Date: 07.03.2013
Version: 1.0.1
web: www.edvler-blog.de
web: www.edvler-blog.de/arduino_networksetup_webinterface_with_eeprom
This is a sample Sketch for Webduino!
More informations about Webduino can be found at https://github.com/sirleech/Webduino
Expand All @@ -12,19 +12,22 @@ For more informations about EEPROMAnything.h look at http://playground.arduino.c

/*
* With this example its possible to configure the network configuration of the
* Arduino board over a webinterface. Imagine like your router setup.
* Arduino Ethernet Shield with a webinterface. Imagine like your router setup.
*
* It's possible to configure the following network settings:
* - MAC address
* - IP address
* - Subnet
* - Gateway
* - DNS Server
* - Webserver port
* - USE DHCP YES/NO
* - USE DHCP YES/NO (if you use DHCP connect per serial port - 9600 baud - on powerup to see which ip address is assigned)
* - DHCP renew interval
*
* Other functions:
* - Display DHCP renew status
* - Display DHCP renew timestamp
* - Display Arduino uptime
* - Display used RAM
*
* You can configure default settings. This settings are used wenn no configuration is present.
Expand Down Expand Up @@ -63,6 +66,7 @@ For more informations about EEPROMAnything.h look at http://playground.arduino.c
#define WEBDUINO_FAVICON_DATA "" // no favicon
//#define DEBUG //uncomment for serial debug output
#define USE_SYSTEM_LIBRARY //comment out if you want to save some space (about 1 Byte). You wouldn't see uptime and free RAM if it's commented out.
#define SERIAL_BAUD 9600


#include "SPI.h" // new include
Expand Down Expand Up @@ -730,9 +734,7 @@ void errorHTML(WebServer &server, WebServer::ConnectionType type, char *url_tail
*/
void setup()
{
#ifdef DEBUG
Serial.begin(9600);
#endif
Serial.begin(SERIAL_BAUD);

/* initialize the Ethernet adapter with the settings from eeprom */
delay(200); // some time to settle
Expand Down

0 comments on commit 871af35

Please sign in to comment.