Update to Homie V3
This commit is contained in:
@ -8,7 +8,7 @@ const int PIN_RELAY = D1;
|
||||
#define OUTPUT_SET(x) digitalWrite(PIN_RELAY, x ? LOW : HIGH);
|
||||
unsigned int timer = 0;
|
||||
unsigned int next_timer_update = 0;
|
||||
HomieNode powerNode("power", "switch");
|
||||
HomieNode powerNode("power", "Power", "switch");
|
||||
|
||||
bool powerStateHandler(const HomieRange& range, const String& value) {
|
||||
if (value != "on" && value != "off") return false;
|
||||
|
Reference in New Issue
Block a user