An OTA updater wrapper for ESP32 that also works over SSL
MIT License
EOTAUpdate is a library for ESP32 that can periodically check for available updates, fetch and flash them with minimal configuration.
Copy the file ota/cfg.txt to a server that can be reached by your ESP32 and update the fields as needed.
The file contains four lines, the URL to the firmware to install, a number representing its version, an optional MD5 of the binary and an optional description of the version. If not including optional field, leave an empty line in its place.
Add the following lines to the beginning your main.cpp
#include <EOTAUpdate.h>
const unsigned VERSION_NUMBER = 1;
const String UPDATE_URL = "https://myserver/ota/cfg.txt";
EOTAUpdate updater(UPDATE_URL, VERSION_NUMBER);
And in the loop() function call:
updater.CheckAndUpdate();
When releasing an update remember to