You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not initialize secure element.", __FUNCTION__);
593
+
#if defined(ARDUINO_UNOWIFIR4)
594
+
if (String(WiFi.firmwareVersion()) < String("0.4.1")) {
595
+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s In order to read device certificate, WiFi firmware needs to be >= 0.4.1, current %s", __FUNCTION__, WiFi.firmwareVersion());
596
+
}
597
+
#endif
598
+
return0;
599
+
}
600
+
if (!SElementArduinoCloudDeviceId::read(_selement, getDeviceId(), SElementArduinoCloudSlot::DeviceId))
601
+
{
602
+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device id.", __FUNCTION__);
603
+
return0;
604
+
}
605
+
/* read certificate stored in secure element to compare AUTHORITY_KEY_ID */
606
+
if (!SElementArduinoCloudCertificate::read(_selement, _cert, SElementArduinoCloudSlot::CompressedCertificate))
607
+
{
608
+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device certificate.", __FUNCTION__);
609
+
return0;
610
+
}
611
+
/* check if we need to update 0 = equal <0 = error skip rebuild */
0 commit comments