This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user