diff options
author | Mike Beattie <mike@ethernal.org> | 2012-03-28 06:56:59 +1300 |
---|---|---|
committer | Mike Beattie <mike@ethernal.org> | 2012-03-28 06:56:59 +1300 |
commit | c1a8e6f4704e62c2027779aae36f9090fd9ce66a (patch) | |
tree | d3bfd9ed0ef8a8e1f77479b24d79d3cdf126ef6c /HouseControl.ino | |
parent | 61d861d207bbe8214929b4de914d044e205ad6ad (diff) |
Awesome... Ethernet.begin() has changed
Signed-off-by: Mike Beattie <mike@ethernal.org>
Diffstat (limited to 'HouseControl.ino')
-rw-r--r-- | HouseControl.ino | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/HouseControl.ino b/HouseControl.ino index ce3a669..9a89275 100644 --- a/HouseControl.ino +++ b/HouseControl.ino @@ -47,6 +47,7 @@ struct st_config { byte def_ip[4]; byte def_netmask[4]; byte def_gateway[4]; + byte def_dnsserver[4]; byte ntpServer[4]; int UTC_offset; @@ -90,7 +91,7 @@ time_t blinkTime = 0; struct st_config config = { // Config version. Set to 0 to debug (doesn't read from eeprom) - 7, + 9, //0, // Ethernet MAC address @@ -100,6 +101,7 @@ struct st_config config = { 10, 113, 1, 160, // Default IP if no DHCP 255, 255, 255, 0, // Default Netmask if no DHCP 10, 113, 1, 254, // Default GW if no DHCP + 10, 113, 1, 1, // Default DNS if no DHCP 10, 113, 1, 1, // NTP Server 1300, // UTC offset @@ -494,7 +496,7 @@ void setup() { eepromRead(0, config); if(Ethernet.begin(config.mac) == 0) { - Ethernet.begin(config.mac, config.def_ip, config.def_gateway, config.def_netmask); + Ethernet.begin(config.mac, config.def_ip, config.def_dnsserver, config.def_gateway, config.def_netmask); } // Udp.begin(config.notifyPort); |