From 37c5e87d46d85eb8cb6b0da463657f868fe3c62e Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 7 May 2024 13:23:38 +0100 Subject: [PATCH] Return MQTT error reason --- src/Wippersnapper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Wippersnapper.cpp b/src/Wippersnapper.cpp index 86d1a8d47..d702b9158 100644 --- a/src/Wippersnapper.cpp +++ b/src/Wippersnapper.cpp @@ -2430,6 +2430,9 @@ void Wippersnapper::runNetFSM() { fsmNetwork = FSM_NET_CHECK_MQTT; break; } + WS_DEBUG_PRINT("MQTT Connection Error: "); + WS_DEBUG_PRINTLN(mqttRC); + WS_DEBUG_PRINTLN(WS._mqtt->connectErrorString(mqttRC)); WS_DEBUG_PRINTLN( "Unable to connect to Adafruit IO MQTT, retrying in 3 seconds..."); delay(3000);