move file from SPIFFS to OTA partition
Posted: 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!
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!