File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 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) {
6060 */
6161 (void )connection;
6262#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);
65+ #else
66+ setCACertBundle (x509_crt_bundle, sizeof (x509_crt_bundle));
67+ #endif
6468#elif defined(ARDUINO_ARCH_ESP8266)
6569 setInsecure ();
6670#endif
Original file line number Diff line number Diff line change @@ -56,7 +56,11 @@ void TLSClientOta::begin(ConnectionHandler &connection) {
5656 */
5757 (void )connection;
5858#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);
61+ #else
62+ setCACertBundle (x509_crt_bundle, sizeof (x509_crt_bundle));
63+ #endif
6064#elif defined(ARDUINO_ARCH_ESP8266)
6165 setInsecure ();
6266#endif
You can’t perform that action at this time.
0 commit comments