summaryrefslogtreecommitdiff
path: root/HouseControl.ino
diff options
context:
space:
mode:
Diffstat (limited to 'HouseControl.ino')
-rw-r--r--HouseControl.ino6
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);