Logging
By default, Homie for ESP8266 will output a lot of useful debug messages on the Serial. You may want to disable this behavior if you want to use the Serial line for anything else.
void setup() {
Homie.disableLogging(); // before Homie.setup()
// ...
}
Warning
It's up to you to call Serial.begin();, whether logging is enabled or not.
You can also change the Print instance to log to:
void setup() {
Homie.setLoggingPrinter(&Serial2); // before Homie.setup()
// ...
}
You can use the logger from your code with the getLogger() client:
Homie.getLogger() << "Hey!" << endl;