Skip to content

Commit

Permalink
馃摑 Update README example to use getLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinroger committed Dec 1, 2016
1 parent d502925 commit 0f0e4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0f0e4eb

Please sign in to comment.