。
如果用mupgrade 可以什樣寫以下的config?
Code: Select all
esp_http_client_config_t config_image = {
.event_handler = _http_event_handler,
.cert_pem = (char *)ca_cert_file,
.transport_type = HTTP_TRANSPORT_OVER_SSL};
esp_http_client_handle_t client_image;
char image_url[IMAGE_URL_SIZE];
esp_err_t ret_image = -1;
while (1)
{
version_check = true;
config_image.url = LATEST_URL;
client_image = esp_http_client_init(&config_image);
ret_image = esp_http_client_perform(client_image);