Page 1 of 1

How to upgrade the code next time through the OTA?

Posted: Thu Mar 22, 2018 12:48 pm
by Daniel
Hi everyone,
Now I have upgrade my code through OTA like the demo,and it works.it is amazing.It downloads the bin file from the server and then updates it :D
hallo.jpg
hallo.jpg (39.21 KiB) Viewed 3792 times
https://github.com/espressif/esp-idf/tr ... system/ota.
And I created a new HTTP server like this .But I am confused that how can I upgrade the code next time through the OTA.How to trigger the device to download code by using wifi just like the first time (OTA)?It is also not possible to restart after power off. :( :(

This is the official figure.
11.jpg
11.jpg (33.48 KiB) Viewed 3792 times

Re: How to upgrade the code next time through the OTA?

Posted: Fri Mar 23, 2018 7:58 am
by -31253-
maybe can use nvs to storage the upgrade flag, software detect the flag and parameters in nvs when powerup, if detect need upgrade firmware then excute ota program, otherwise, start nomal sequence. :lol: