Page 1 of 1

move file from SPIFFS to OTA partition

Posted: Thu May 14, 2020 4:33 pm
by kbaud1
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!

Re: move file from SPIFFS to OTA partition

Posted: Tue May 19, 2020 10:32 pm
by bnp117
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.