Skip to content

Commit 8596b6f

Browse files
committed
Provide error message when NINA firmware is < 1.4.3 if the user wants to take advantage of SSL offloading.
1 parent 91eddf0 commit 8596b6f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,16 +253,22 @@ int ArduinoIoTCloudTCP::begin(String brokerAddress, uint16_t brokerPort)
253253
#endif
254254

255255
#if OTA_STORAGE_SNU && OTA_ENABLED
256-
String const nina_fw_version = WiFi.firmwareVersion();
257-
if (nina_fw_version < "1.4.1") {
256+
if (String(WiFi.firmwareVersion()) < String("1.4.1")) {
258257
_ota_cap = false;
259-
DEBUG_WARNING("ArduinoIoTCloudTCP::%s In order to be ready for cloud OTA, NINA firmware needs to be >= 1.4.1, current %s", __FUNCTION__, nina_fw_version.c_str());
258+
DEBUG_WARNING("ArduinoIoTCloudTCP::%s In order to be ready for cloud OTA, NINA firmware needs to be >= 1.4.1, current %s", __FUNCTION__, WiFi.firmwareVersion());
260259
}
261260
else {
262261
_ota_cap = true;
263262
}
264263
#endif /* OTA_STORAGE_SNU */
265264

265+
#ifdef BOARD_HAS_OFFLOADED_ECCX08
266+
if (String(WiFi.firmwareVersion()) < String("1.4.3")) {
267+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s In order to connect to Arduino IoT Cloud, NINA firmware needs to be >= 1.4.3, current %s", __FUNCTION__, WiFi.firmwareVersion());
268+
return 0;
269+
}
270+
#endif /* BOARD_HAS_OFFLOADED_ECCX08 */
271+
266272
#ifdef ARDUINO_ARCH_SAMD
267273
/* Since we do not control what code the user inserts
268274
* between ArduinoIoTCloudTCP::begin() and the first

0 commit comments

Comments
 (0)