Skip to content

Commit 1298c20

Browse files
authored
Merge pull request #580 from adafruit/print_mqtt_error
Return MQTT error reason
2 parents c403ce3 + 37c5e87 commit 1298c20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Wippersnapper.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,6 +2430,9 @@ void Wippersnapper::runNetFSM() {
24302430
fsmNetwork = FSM_NET_CHECK_MQTT;
24312431
break;
24322432
}
2433+
WS_DEBUG_PRINT("MQTT Connection Error: ");
2434+
WS_DEBUG_PRINTLN(mqttRC);
2435+
WS_DEBUG_PRINTLN(WS._mqtt->connectErrorString(mqttRC));
24332436
WS_DEBUG_PRINTLN(
24342437
"Unable to connect to Adafruit IO MQTT, retrying in 3 seconds...");
24352438
delay(3000);

0 commit comments

Comments
 (0)