I'm having problems with MQTT, how do I debug the connection?

In the Adafruit_MQTT library folder, find the file Adafruit_MQTT.h

Near the top of the file is a line:

// Uncomment/comment to turn on/off debug output messages.
//#define MQTT_DEBUG

Uncomment that #define and recompile/upload your Adafruit_MQTT example to get full debug output - its *very* detailed but shows all the packets sent and received

This guide was first published on Jan 14, 2016. It was last updated on Oct 22, 2015.

This page (HELP!) was last updated on Jun 22, 2016.

Text editor powered by tinymce.