
Perform OTA Updates on ESP32 With esp_https_ota
Update ESP32 firmware over HTTPS with esp_https_ota: partition table, certificate, the one-call and advanced APIs, and testing with a local server.
Tag
11 posts

Update ESP32 firmware over HTTPS with esp_https_ota: partition table, certificate, the one-call and advanced APIs, and testing with a local server.

Run a web server on an ESP32 with esp_http_server in ESP-IDF v5.4: register GET and POST handlers, embed an HTML file and return JSON.

Package ESP-IDF code as a reusable component: folder layout, idf_component_register, idf_component.yml dependencies and sharing it.

Connect an ESP32 to Wi-Fi in station mode with ESP-IDF v5.4: set up netif and the event loop, handle STA events, retry and wait for an IP.

Use idf.py menuconfig, sdkconfig and sdkconfig.defaults to set ESP-IDF options, add your own Kconfig.projbuild entries and read them as CONFIG_ macros in C.

Install ESP-IDF v5.4 on Linux or macOS, source export.sh, build the hello_world example with idf.py and flash it to an ESP32 board over USB.

Enter ESP32 deep sleep with esp_deep_sleep_start, wake on a timer and an ext0 GPIO, keep a counter in RTC memory, and read the wake-up cause on boot.

Create an I2C bus with i2c_new_master_bus, attach a device with i2c_master_bus_add_device, and read registers with i2c_master_transmit_receive in ESP-IDF 5.3.

Run a USB CDC serial port on the ESP32-S3 native USB pins with esp_tinyusb in ESP-IDF 5, and know what happens to the built-in USB serial and JTAG.

Configure ESP32 outputs and a button input with gpio_config in ESP-IDF 5.x, then add a falling-edge interrupt with gpio_install_isr_service and a queue.

Learn ESP32 firmware with ESP-IDF v5.4: install the toolchain, build a project, use FreeRTOS tasks, GPIO, NVS, Wi-Fi, HTTP, OTA and debugging, with code.