Skip to content

Commit 583ec5b

Browse files
committed
Add DEBUG_ERROR if device is not receiving a valid thing_id from the cloud
1 parent 4a121ae commit 583ec5b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/AIoTC_Config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
# if defined(ARDUINO_AVR_UNO_WIFI_REV2)
6363
# define DEBUG_VERBOSE(fmt, ...)
6464
# else
65-
# define DEBUG_VERBOSE(fmt, ...) //Debug.print(DBG_VERBOSE, fmt, ## __VA_ARGS__)
65+
# define DEBUG_VERBOSE(fmt, ...) Debug.print(DBG_VERBOSE, fmt, ## __VA_ARGS__)
6666
# endif
6767
#endif
6868

src/ArduinoIoTCloudTCP.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_WaitDeviceConfig()
469469
/* Configuration not received or device not attached to a valid thing. Try to resubscribe */
470470
if (_mqttClient.unsubscribe(_deviceTopicIn))
471471
{
472+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s device waiting for valid thing_id", __FUNCTION__);
472473
return State::SubscribeDeviceTopic;
473474
}
474475
}

0 commit comments

Comments
 (0)