Permalink
Browse files

📝 Update README example to use getLogger

1 parent d502925 commit 0f0e4eb3c6c059642af4b7465e98a078bd6790bc @marvinroger committed Dec 1, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -42,7 +42,7 @@ bool lightOnHandler(const HomieRange& range, const String& value) {
bool on = (value == "true");
digitalWrite(PIN_RELAY, on ? HIGH : LOW);
lightNode.setProperty("on").send(value);
- Serial << "Light is " << (on ? "on" : "off") << endl;
+ Homie.getLogger() << "Light is " << (on ? "on" : "off") << endl;
return true;
}

0 comments on commit 0f0e4eb

Please sign in to comment.