We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00e46c7 commit f732e66Copy full SHA for f732e66
src/ArduinoIoTCloudTCP.cpp
@@ -446,9 +446,10 @@ void ArduinoIoTCloudTCP::onOTARequest()
446
WiFiStorage.remove("/fs/UPDATE.BIN.LZSS.TMP");
447
448
/* Trigger direct download to nina module. */
449
- if (!WiFiStorage.downloadOTA(_ota_url.c_str()))
+ uint8_t nina_ota_err_code = 0;
450
+ if (!WiFiStorage.downloadOTA(_ota_url.c_str(), &nina_ota_err_code))
451
{
- DBG_ERROR("ArduinoIoTCloudTCP::%s download to NiNa failed", __FUNCTION__, _ota_req ? "true" : "false");
452
+ DBG_ERROR("ArduinoIoTCloudTCP::%s error download to nina: %d", __FUNCTION__, nina_ota_err_code);
453
_ota_error = static_cast<int>(OTAError::DownloadFailed);
454
return;
455
}
0 commit comments