HELP!

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:

Download: file
// 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 Jan 14, 2016. This page (HELP!) was last updated on Nov 17, 2019.