Commit 722782e3 authored by Jason Williams's avatar Jason Williams

Bugfix: Continual uopdates of door status to MQTT server

The periodic update function wasn't updating the time of the last update, causing it to be called on every loop.
parent 8c93f786
......@@ -162,6 +162,8 @@ void loop() {
else if (state_door == 1) client.publish(topic_doorstate, "MOVING");
else if (state_door == 2) client.publish(topic_doorstate, "OPEN");
else client.publish(topic_doorstate, "ERROR");
periodic_update = millis();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment