diff --git a/src/hasp/hasp_attribute.cpp b/src/hasp/hasp_attribute.cpp index f99a6e14..c40063d0 100644 --- a/src/hasp/hasp_attribute.cpp +++ b/src/hasp/hasp_attribute.cpp @@ -19,6 +19,9 @@ LV_FONT_DECLARE(unscii_8_icon); extern const char** btnmatrix_default_map; // memory pointer to lvgl default btnmatrix map extern const char* msgbox_default_map[]; // memory pointer to lvgl default btnmatrix map +extern const uint8_t rootca_crt_bundle_start[] asm("_binary_data_cert_x509_crt_bundle_bin_start"); +extern const uint8_t rootca_crt_bundle_end[] asm("_binary_data_cert_x509_crt_bundle_bin_end"); + void my_image_release_resources(lv_obj_t* obj) { if(!obj) return; @@ -1345,7 +1348,7 @@ static hasp_attribute_type_t special_attribute_src(lv_obj_t* obj, const char* pa #if defined(ARDUINO) && defined(ARDUINO_ARCH_ESP32) #if HASP_USE_WIFI > 0 || HASP_USE_ETHERNET > 0 HTTPClient http; - http.begin(payload); + http.begin(payload, (const char*)rootca_crt_bundle_start); http.setTimeout(5000); http.setConnectTimeout(5000);