Add root CA cert bundle to src

This commit is contained in:
fvanroie 2024-02-08 16:35:44 +01:00
parent af6576b402
commit ce11627308

View File

@ -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);