Skip to content

Commit 4a121ae

Browse files
committed
Add DEBUG_ERROR if device fails to subscribe to _deviceTopicIn
1 parent d373405 commit 4a121ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ArduinoIoTCloudTCP.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_SubscribeDeviceTopic()
430430

431431
if (!_mqttClient.subscribe(_deviceTopicIn))
432432
{
433+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not subscribe to %s", __FUNCTION__, _deviceTopicIn.c_str());
433434
return State::SubscribeDeviceTopic;
434435
}
435436

0 commit comments

Comments
 (0)