File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,11 @@ void TLSClientMqtt::begin(ConnectionHandler & connection) {
60
60
*/
61
61
(void )connection;
62
62
#elif defined(ARDUINO_ARCH_ESP32)
63
- setCACertBundle (x509_crt_bundle);
63
+ #if (ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 4))
64
+ setCACertBundle (x509_crt_bundle, sizeof (x509_crt_bundle));
65
+ #else
66
+ setCACertBundle (x509_crt_bundle);
67
+ #endif
64
68
#elif defined(ARDUINO_ARCH_ESP8266)
65
69
setInsecure ();
66
70
#endif
Original file line number Diff line number Diff line change @@ -56,7 +56,11 @@ void TLSClientOta::begin(ConnectionHandler &connection) {
56
56
*/
57
57
(void )connection;
58
58
#elif defined(ARDUINO_ARCH_ESP32)
59
- setCACertBundle (x509_crt_bundle);
59
+ #if (ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 4))
60
+ setCACertBundle (x509_crt_bundle, sizeof (x509_crt_bundle));
61
+ #else
62
+ setCACertBundle (x509_crt_bundle);
63
+ #endif
60
64
#elif defined(ARDUINO_ARCH_ESP8266)
61
65
setInsecure ();
62
66
#endif
You can’t perform that action at this time.
0 commit comments