Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I'm looking for a small, thin example of the ESP32 hosting a webserver to accept firmware update files for OTA updates. There's a handful of Arduino libraries that do exactly this (e.g. https://github.com/ayushsharma82/ElegantOTA) but I haven't come across anything clean that's just built around IDF.
https://github.com/espressif/esp-idf/tree/master/examples/system/ota ?
Here's are the two main files of interest. The OTA interface. https://github.com/mill1000/i2s-upnp-bridge/blob/main/main/ota_interface.cpp
If you are up to reading Pascal, look at this example: https://github.com/ccrause/fpc-esp-freertos/blob/master/examples/otatest/otatest.pp
I overcame my laziness and threw something together. In case anyone needs similar functionality in the future: here ya go. There's some cruft in there and things could be renamed, but this should still save you a few hours.
Related posts
- how can i make my esp32 autonomous ?
- ESP32 C3 firmware upgrade over UART to select partition
- I now have a fully smart bedroom thanks to HomeSpan HomeKit! This was a fun project I even had to do some modifications to the code.
- How do I connect an esp8266 to wifi without WPS
- Is there an example in the RTOS SDK that lets you enter the wifi name and pass from another device? (instead of hardcoding?)