move file from SPIFFS to OTA partition

kbaud1
Posts: 71
Joined: Wed Jan 17, 2018 11:55 pm

move file from SPIFFS to OTA partition

Postby kbaud1 » Thu May 14, 2020 4:33 pm

Our product has a customer pc (usually windows 10) that connects wirelessly to an esp32. We want to be able to update the firmware from time to time without having to run a ftp or web server on the customer machine (and all the problems that entails).

Our windows application already has a tcp connection to the esp32 for 2-way comms. I should be able to write to a file in the SPIFFS partition on the WROOM module's flash. Can I then move that file to the OTA partitions and trigger select parts of the OTA process so that I can reboot into the new image, have the rollback and other safety features?

the main question: can I move a file between partitions?

thanks!

bnp117
Posts: 17
Joined: Fri Jun 15, 2018 3:08 am

Re: move file from SPIFFS to OTA partition

Postby bnp117 » Tue May 19, 2020 10:32 pm

checkout my project here:

https://github.com/BrianPugh/cookiecutt ... -webserver

if you don't want to use the entire template, look mostly at the OTA route. Essentially it allows you to perform an OTA by making a POST request.

Who is online

Users browsing this forum: No registered users and 65 guests