Skip to content

Commit 27f536b

Browse files
committed
UNO R4 WiFi: add error message about fw version and device certificate
1 parent 37442d2 commit 27f536b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
143143
if (!_crypto.begin())
144144
{
145145
DEBUG_ERROR("_crypto.begin() failed.");
146+
#if defined(ARDUINO_UNOWIFIR4)
147+
if (String(WiFi.firmwareVersion()) < String("0.4.1")) {
148+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s In order to read device certificate, WiFi firmware needs to be >= 0.4.1, current %s", __FUNCTION__, WiFi.firmwareVersion());
149+
}
150+
#endif
146151
return 0;
147152
}
148153
if (!SElementArduinoCloudDeviceId::read(_crypto, getDeviceId(), SElementArduinoCloudSlot::DeviceId))

0 commit comments

Comments
 (0)