diff options
Diffstat (limited to 'HouseControl.ino')
-rw-r--r-- | HouseControl.ino | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/HouseControl.ino b/HouseControl.ino index 5638cfa..de0b394 100644 --- a/HouseControl.ino +++ b/HouseControl.ino @@ -415,42 +415,6 @@ void loop() { readDoorState(&garageDoor1); readDoorState(&garageDoor2); -/* - if ((time - lastStatTime) > 10) { - lastStatTime = time; - - Serial.println(); - Serial.print("Time:\t"); - PrintDateTime(now()); - Serial.println(); - - Serial.print("Bytes free in SRAM: "); - Serial.println(freeMemory(),DEC); - - Serial.print("Front door: "); - if (frontDoor.closed) { - Serial.print("closed"); - } else { - Serial.print("open"); - } - if (frontDoor.controlActive) { - Serial.println(" UNLOCKED!"); - } else { - Serial.println(); - } - - Serial.print("Garage door: "); - if (garageDoor1.open) { - Serial.println("open"); - } else if (garageDoor1.closed) { - Serial.println("closed"); - } else { - Serial.println(".. moving .."); - } - - } -*/ - if ((time - lastNTPtime) >= 600) sendNTPpacket(); @@ -458,32 +422,13 @@ void loop() { parseNTPresponse(); if (frontDoor.controlActive && ((time - frontDoor.controlTime) >= 10) ) { -// Serial.println("De-activating Front Door strike"); toggleDoorControl(&frontDoor); } if (garageDoor1.controlActive && ((time - garageDoor1.controlTime) >= 1) ) { -// Serial.println("De-toggling garage door switch"); toggleDoorControl(&garageDoor1); } -/* - if (Serial.available() > 0) { - byte inByte = Serial.read(); - if (inByte == 'D') { - Serial.println("Activating Garage door"); - toggleDoorControl(&garageDoor1); - PrintDateTime(garageDoor1.controlTime); - } else if (inByte == 'F') { - Serial.println("Activating Front door strike..."); - toggleDoorControl(&frontDoor); - PrintDateTime(frontDoor.controlTime); - } else { - Serial.print("Unknown command: "); - Serial.println(inByte, BYTE); - } - } -*/ httpServer.processConnection(); |