Update to Homie V3
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Jens Christian True
2019-08-13 11:56:59 +02:00
parent dc91211889
commit 847dda81be
3 changed files with 3 additions and 2 deletions

View File

@ -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;