Skip to content

Commit fde634d

Browse files
committed
Adding error message containing number of reconnection attempts as well as the next tick time.
1 parent 75abde6 commit fde634d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_ConnectMqttBroker()
362362
_next_connection_attempt_tick = millis() + reconnection_retry_delay;
363363

364364
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not connect to %s:%d", __FUNCTION__, _brokerAddress.c_str(), _brokerPort);
365+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s %d connection attempt at tick time %d", __FUNCTION__, _last_connection_attempt_cnt, _next_connection_attempt_tick);
365366
return State::ConnectPhy;
366367
}
367368

0 commit comments

Comments
 (0)