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
/* If board is not configured for username and password login */
95
+
if(!_password.length())
96
+
{
97
+
#endif
98
+
99
+
#if defined(BOARD_HAS_SECURE_ELEMENT)
100
+
if (!_selement.begin())
101
+
{
102
+
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 !defined(BOARD_HAS_OFFLOADED_ECCX08)
116
+
if (!SElementArduinoCloudCertificate::read(_selement, _cert, SElementArduinoCloudSlot::CompressedCertificate))
117
+
{
118
+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device certificate.", __FUNCTION__);
/* If board is not configured for username and password login */
162
-
if(!_password.length())
163
-
{
164
-
#endif
165
-
166
-
#if defined(BOARD_HAS_SECURE_ELEMENT)
167
-
if (!_selement.begin())
168
-
{
169
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not initialize secure element.", __FUNCTION__);
170
-
#if defined(ARDUINO_UNOWIFIR4)
171
-
if (String(WiFi.firmwareVersion()) < String("0.4.1")) {
172
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s In order to read device certificate, WiFi firmware needs to be >= 0.4.1, current %s", __FUNCTION__, WiFi.firmwareVersion());
173
-
}
174
-
#endif
175
-
return0;
176
-
}
177
-
if (!SElementArduinoCloudDeviceId::read(_selement, getDeviceId(), SElementArduinoCloudSlot::DeviceId))
178
-
{
179
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device id.", __FUNCTION__);
180
-
return0;
181
-
}
182
-
#if !defined(BOARD_HAS_OFFLOADED_ECCX08)
183
-
if (!SElementArduinoCloudCertificate::read(_selement, _cert, SElementArduinoCloudSlot::CompressedCertificate))
184
-
{
185
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device certificate.", __FUNCTION__);
0 commit comments