Skip to content

Commit 81a1ef0

Browse files
committed
Fix secure element slot configuration
1 parent b5e5481 commit 81a1ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
157157
DEBUG_ERROR("Cryptography certificate reconstruction failure.");
158158
return 0;
159159
}
160+
_sslClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
160161
#endif
161162
#endif
162163
#if defined(BOARD_HAS_SECRET_KEY)
@@ -167,7 +168,6 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
167168

168169
#elif defined(BOARD_HAS_ECCX08)
169170
_sslClient.setClient(_connection->getClient());
170-
_sslClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
171171
#elif defined(ARDUINO_PORTENTA_C33)
172172
_sslClient.setClient(_connection->getClient());
173173
_sslClient.setCACert(AIoTSSCert);

0 commit comments

Comments
 (0)