Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By brutzler
#25469
I'm not really understanding your question

OK, looks like my english is not the best..... :D perhaps it is genglish :D

- not needing additional hardware is my aim too.
- I know the way, with arduino+sd-card. -> Generate a html-file, take the sd-card into the computer, store it on the card, put it into the arduino-sdcard-slot and read it out with the program. -> like here... https://startingelectronics.org/tutorials/arduino/ethernet-shield-web-server-tutorial/SD-card-web-server/

- But I do not know how to save a html-file in the SPIFFS-Filesystem. Is there any way, to burn it into a defined part of the SPIFFs-flash with a thirdparty software? Or do you write the code during normal program. (This I think makes no sense, because you must hold the HTML-code in program-flash to save it once into the SPIFFS-Flashpart).
If you could show me a matching code-example....?

Hope this was better explained. If not tell me. I will try another round.

..but SPIFFS has much smaller space than SDCard, considering that you can get several GB for few bucks

This I do not understand. Do we talk from the same? I thought SPIFFS is a software, with this, I can use e.g. the rest of the 4M of an ESP-12E for storing files?
User avatar
By martinayotte
#25479
brutzler wrote:- But I do not know how to save a html-file in the SPIFFS-Filesystem. Is there any way, to burn it into a defined part of the SPIFFs-flash with a thirdparty software? Or do you write the code during normal program. (This I think makes no sense, because you must hold the HTML-code in program-flash to save it once into the SPIFFS-Flashpart).
If you could show me a matching code-example....?


There is tool called "spiffy" on Linux (maybe there is a way to get it compile on Windows, but I don't know)
This tools allows to generate a spiffy_rom.bin that can be upload into ESP using esptool.py.

Unfortunately, I've just tried it few minutes ago and I couldn't make it work yet.
But I'm confident that is only question of learning about that. ;)

There is also the possibility that your web server provides an UpLoad mecanism and save the received files into the SPIFFS partition.

brutzler wrote:This I do not understand. Do we talk from the same? I thought SPIFFS is a software, with this, I can use e.g. the rest of the 4M of an ESP-12E for storing files?

Yes, SPIFFS is software, but I means the size is limited. If you need bigger storage, than it is better to add SDCard hardware.