I have many ESP32 devices distributed to my client but not easy to update the code manually. The best is to let let the Arduino to download(by instruction) the .bin file through http and update bythemself which is using OTA. Can any one give me code axample of
- Downloading the .bin file through http (NOT ESP AS WEB SERVER please)
- Extract the .bin file and update the code
Thank you
Here are some links to tutorials that answer yours need.
Some Renzo Mischianti's tutorials.
"ESP32 self OTA update in HTTPS (SSL/TLS) with trusted self-signed certificate – 3" https://mischianti.org/esp32-self-ota-update-in-https-ssl-tls-with-trusted-self-signed-certificate-3/
"ESP32 firmware and filesystem update with FTP client – 2" https://mischianti.org/esp32-firmware-and-filesystem-update-with-ftp-client-2/
Another example could be the AutoConnect library for ESP8266/ESP32 In the section "OTA updates" -> "OTA using Update Server" https://hieromon.github.io/AutoConnect/otaupdate.html
And finally there are the Espressif Arduino-esp32 update library examples: https://github.com/espressif/arduino-esp32/tree/master/libraries/Update/examples