Skip to content

Commit 5e7a18c

Browse files
authored
Merge pull request #210 from arduino-libraries/improve-err-message
Improve error message when wrong thing id is configured.
2 parents fcb4a7d + f6d31bc commit 5e7a18c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_SubscribeMqttTopics()
224224
if (!_mqttClient.subscribe(_dataTopicIn))
225225
{
226226
DBG_ERROR(F("ArduinoIoTCloudTCP::%s could not subscribe to %s"), __FUNCTION__, _dataTopicIn.c_str());
227+
DBG_ERROR(F("Check your thing configuration, and press the reset button on your board."));
227228
return State::SubscribeMqttTopics;
228229
}
229230

@@ -232,6 +233,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_SubscribeMqttTopics()
232233
if (!_mqttClient.subscribe(_shadowTopicIn))
233234
{
234235
DBG_ERROR(F("ArduinoIoTCloudTCP::%s could not subscribe to %s"), __FUNCTION__, _shadowTopicIn.c_str());
236+
DBG_ERROR(F("Check your thing configuration, and press the reset button on your board."));
235237
return State::SubscribeMqttTopics;
236238
}
237239
}

0 commit comments

Comments
 (0)