arduino-mqtt
arduino-mqtt copied to clipboard
Error Logging
To aid with debugging, an error/event reporting interface should be added. This should be configurable as the Serial
port might be used for something else. A rough sketch:
void logger(String &msg) {
Serial.println(msg);
}
void setup() {
client.setLogger(logger);
}