Open SaimenSays opened 7 years ago
Hi. You can start by enabling LWIP_HTTPD_CUSTOM_FILES flag and implementing your own fs_open_custom()
and fs_close_custom()
functions in fs.c. I've been planning to add SPIFFS integration for quite a while, but never had enough free time..
This is not as easy as it looks on first sight!
The whole file needs to be in an RAM buffer, because there is no explicit read function. On fs_open_custom()
the whole file needs to be copied in a buffer. Because of known RAM problematic, this is not possible.
Also there is no file handle managed in struct fs_file
. Because you need one for spiffs handling an additional list needs to be build.
...
I think the only possible way to go, is rewriting httpd.c
for demands of spiffs.
Hi!
Is it possible to use extras/httpd with an existing spiffs easily? I cant' find any define switch which allows me to compile without files stored in fsdata.c?