ESP-OTA setup esp_ota_ops.h: No such file or directory
Posted: Mon Mar 14, 2022 4:26 pm
Hi All
I am trying to run the following code to update the ESP32
When I perform a build
I get the following
From my understanding, all the header files are dealt with by the compiler. Is there a reason why it's giving be this error? Do i need to add this file some specify it.
SHouldent this be all in ESP32 folder?
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?