I am trying to run the following code to update the ESP32
Code: Select all
void update_fwm(void)
{
esp_http_client_config_t config = {
.url = "https://abc.com/ESP32/Device1/fmw.bin",
//.cert_pem = (char *)server_cert_pem_start,
};
esp_err_t ret = esp_https_ota(&config);
if (ret == ESP_OK) {
esp_restart();
} else {
return ESP_FAIL;
}
return ESP_OK;
}
I get the following
Code: Select all
../main/azure_iot_freertos_esp32_main.c:23:11: fatal error: esp_ota_ops.h: No such file or directory
#include "esp_https_ota.h"
^~~~~~~~~~~~~~~
SHouldent this be all in ESP32 folder?