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: