chrisjoyce911 / esp32FOTA

Experiments in firmware OTA updates for ESP32 dev boards
The Unlicense
356 stars 86 forks source link

Reset after programming ! #148

Open HoseinShirani opened 3 months ago

HoseinShirani commented 3 months ago

Hello and courtesy I have a question : When I update the firmware through this library, it is reset once by esp library and the new program received from the server is executed, but after the micro power is disconnected and connected once, the same firmware update program is executed again. Any new program that has already been downloaded will be lost.

What is the solution to this issue?

tobozo commented 1 month ago

hi,

usually when an unintended rollback happens after an OTA update, this means the new firmware is invalid

you can prevent the automatic restart (and the console flood that follows) by setting the second argument of execOTA() to false, this will let you read the actual error message.