From f6d31bcd4cb5ebe9cd0393466bd7ae9a204aae2e Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Tue, 24 Nov 2020 07:15:52 +0100 Subject: [PATCH] Improve error message when wrong thing id is configured. --- src/ArduinoIoTCloudTCP.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ArduinoIoTCloudTCP.cpp b/src/ArduinoIoTCloudTCP.cpp index 4a1ad4c0a..798be993c 100644 --- a/src/ArduinoIoTCloudTCP.cpp +++ b/src/ArduinoIoTCloudTCP.cpp @@ -224,6 +224,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_SubscribeMqttTopics() if (!_mqttClient.subscribe(_dataTopicIn)) { DBG_ERROR(F("ArduinoIoTCloudTCP::%s could not subscribe to %s"), __FUNCTION__, _dataTopicIn.c_str()); + DBG_ERROR(F("Check your thing configuration, and press the reset button on your board.")); return State::SubscribeMqttTopics; } @@ -232,6 +233,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_SubscribeMqttTopics() if (!_mqttClient.subscribe(_shadowTopicIn)) { DBG_ERROR(F("ArduinoIoTCloudTCP::%s could not subscribe to %s"), __FUNCTION__, _shadowTopicIn.c_str()); + DBG_ERROR(F("Check your thing configuration, and press the reset button on your board.")); return State::SubscribeMqttTopics; } }