arduino-mqtt icon indicating copy to clipboard operation
arduino-mqtt copied to clipboard

Error Logging

Open 256dpi opened this issue 4 years ago • 0 comments

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);
}

256dpi avatar Apr 29 '20 08:04 256dpi