Add files to FAT during building
Posted: Thu Dec 15, 2022 9:36 am
Hello,
I have a project where I host an Angular application from the ESP32. This is based around this example:
https://github.com/espressif/esp-idf/tr ... le_serving
Right now, I flash the ESP32 with my project. Then I upload all the Angular files through the browser. After this I browse to the Angular application and all seems to be working fine.
The drawback of this approach is that the files have to be uploaded later. I would prefer to prepare the FAT partition during the build process, so the Angular files are contained within the image. (I flash all partitions during production, not just the OTA) This way the application is already placed on the ESP32 after the production stage. I don't want to do this in static flash, so I will still be able to change individual files through the web server later on.
Any suggestions how to achieve this?
Regards,
Bas
I have a project where I host an Angular application from the ESP32. This is based around this example:
https://github.com/espressif/esp-idf/tr ... le_serving
Right now, I flash the ESP32 with my project. Then I upload all the Angular files through the browser. After this I browse to the Angular application and all seems to be working fine.
The drawback of this approach is that the files have to be uploaded later. I would prefer to prepare the FAT partition during the build process, so the Angular files are contained within the image. (I flash all partitions during production, not just the OTA) This way the application is already placed on the ESP32 after the production stage. I don't want to do this in static flash, so I will still be able to change individual files through the web server later on.
Any suggestions how to achieve this?
Regards,
Bas