Skip to content

Commit 94a0339

Browse files
authored
Produce warning when running with inferior version of nina-fw (#188)
1 parent 5bdc209 commit 94a0339

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: src/ArduinoIoTCloudTCP.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,14 @@ int ArduinoIoTCloudTCP::begin(String brokerAddress, uint16_t brokerPort)
146146
addPropertyReal(_ota_req, "OTA_REQ", Permission::ReadWrite).onSync(DEVICE_WINS).onUpdate(ArduinoIoTCloudTCP::on_OTA_REQ_Update);
147147
#endif /* OTA_ENABLED */
148148

149+
#if OTA_STORAGE_SNU
150+
String const nina_fw_version = WiFi.firmwareVersion();
151+
if (nina_fw_version < "1.4.1") {
152+
DBG_ERROR("ArduinoIoTCloudTCP::%s error nina firmware needs to be >= 1.4.1, current %s", __FUNCTION__, nina_fw_version.c_str());
153+
return 0;
154+
}
155+
#endif /* OTA_STORAGE_SNU */
156+
149157
return 1;
150158
}
151159

0 commit comments

Comments
 (0)