Skip to content

Commit 66f8a94

Browse files
committed
Configure BearSSLClient profile
1 parent 32abb0b commit 66f8a94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ArduinoIoTCloudTCP.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#endif
3030

3131
#ifdef BOARD_HAS_ECCX08
32+
#include "tls/BearSSLClientProfile.h"
3233
#include "tls/BearSSLTrustAnchors.h"
3334
#endif
3435

@@ -173,6 +174,7 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
173174
#elif defined(BOARD_HAS_ECCX08)
174175
ArduinoBearSSL.onGetTime(getTime);
175176
_sslClient.setClient(_connection->getClient());
177+
_sslClient.setProfile(aiotc_client_profile_init);
176178
#elif defined(ARDUINO_PORTENTA_C33)
177179
_sslClient.setClient(_connection->getClient());
178180
_sslClient.setCACert(AIoTSSCert);

0 commit comments

Comments
 (0)