Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset after programming ! #148

Open
HoseinShirani opened this issue May 30, 2024 · 1 comment
Open

Reset after programming ! #148

HoseinShirani opened this issue May 30, 2024 · 1 comment

Comments

@HoseinShirani
Copy link

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
Copy link
Collaborator

tobozo commented Aug 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants