How to upgrade the code next time through the OTA?

Daniel
Posts: 28
Joined: Tue Jan 09, 2018 12:55 pm

How to upgrade the code next time through the OTA?

Postby Daniel » Thu Mar 22, 2018 12:48 pm

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 3362 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 3362 times

-31253-
Posts: 3
Joined: Fri Mar 23, 2018 7:44 am

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

Postby -31253- » Fri Mar 23, 2018 7:58 am

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:

Who is online

Users browsing this forum: Baidu [Spider] and 115 guests