From e322b5ddcdc117f9d7801482af227c70b14ab317 Mon Sep 17 00:00:00 2001 From: Jens Christian True Date: Mon, 15 Jul 2019 15:19:15 +0200 Subject: [PATCH] Feature fork --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 022586c..f52a415 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,6 +20,9 @@ bool powerOnHandler(const HomieRange& range, const String& value) { return true; } +bool powerTimerHandler(const HomieRange& range, const String& value); + + void setupHandler() { pinMode(PIN_RELAY, OUTPUT); digitalWrite(PIN_RELAY, HIGH); @@ -65,7 +68,6 @@ void onHomieEvent(const HomieEvent& event) { break; case HomieEventType::WIFI_DISCONNECTED: // Do whatever you want when Wi-Fi is disconnected in normal mode - // You can use event.wifiReason break; case HomieEventType::MQTT_READY: