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__);
103
-
#if defined(ARDUINO_UNOWIFIR4)
104
-
if (String(WiFi.firmwareVersion()) < String("0.4.1")) {
105
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s In order to read device certificate, WiFi firmware needs to be >= 0.4.1, current %s", __FUNCTION__, WiFi.firmwareVersion());
106
-
}
107
-
#endif
108
-
return0;
109
-
}
110
-
if (!SElementArduinoCloudDeviceId::read(_selement, getDeviceId(), SElementArduinoCloudSlot::DeviceId))
111
-
{
112
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device id.", __FUNCTION__);
113
-
return0;
114
-
}
115
-
if (!_writeCertOnConnect) {
116
-
/* No update pending read certificate stored in secure element */
117
-
if (!SElementArduinoCloudCertificate::read(_selement, _cert, SElementArduinoCloudSlot::CompressedCertificate))
118
-
{
119
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device certificate.", __FUNCTION__);
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not initialize secure element.", __FUNCTION__);
225
+
#if defined(ARDUINO_UNOWIFIR4)
226
+
if (String(WiFi.firmwareVersion()) < String("0.4.1")) {
227
+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s In order to read device certificate, WiFi firmware needs to be >= 0.4.1, current %s", __FUNCTION__, WiFi.firmwareVersion());
228
+
}
229
+
#endif
230
+
return0;
231
+
}
232
+
if (!SElementArduinoCloudDeviceId::read(_selement, getDeviceId(), SElementArduinoCloudSlot::DeviceId))
233
+
{
234
+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device id.", __FUNCTION__);
235
+
return0;
236
+
}
237
+
if (!_writeCertOnConnect) {
238
+
/* No update pending read certificate stored in secure element */
239
+
if (!SElementArduinoCloudCertificate::read(_selement, _cert, SElementArduinoCloudSlot::CompressedCertificate))
240
+
{
241
+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device certificate.", __FUNCTION__);
@@ -283,6 +302,7 @@ int ArduinoIoTCloudTCP::begin(bool const enableWatchdog, String brokerAddress, u
283
302
#if defined (ARDUINO_UNOWIFIR4)
284
303
if (String(WiFi.firmwareVersion()) < String("0.2.0")) {
285
304
DEBUG_ERROR("ArduinoIoTCloudTCP::%s In order to connect to Arduino IoT Cloud, WiFi firmware needs to be >= 0.2.0, current %s", __FUNCTION__, WiFi.firmwareVersion());
0 commit comments