|
|
@ -81,10 +81,10 @@ void lwdtFeed(void) { |
|
|
|
void handle_message(enum rooms room, const String &message) |
|
|
|
{ |
|
|
|
Serial.println(message); |
|
|
|
if (message == "off") { |
|
|
|
if (message.equals("0") || message.equalsIgnoreCase("off") || message.equalsIgnoreCase("false")) { |
|
|
|
heater_off(heaters[room].pin); |
|
|
|
} |
|
|
|
if (message == "on") { |
|
|
|
if (message.equals("1") || message.equalsIgnoreCase("on") || message.equalsIgnoreCase("true")) { |
|
|
|
heater_on(heaters[room].pin); |
|
|
|
} |
|
|
|
reset_timer(room); |
|
|
|