-->
Page 4 of 6

Re: Webserver on ESP8266, serving files from Flash

PostPosted: Fri May 05, 2017 11:48 am
by treii28
Tom, you still around? (or someone else)

Being unfamiliar with the more obfuscated variants of C/C++, I'm trying to figure out now how i can modify the Flash.h file to inject a new 'start' address -- essentially to push the address where it begins storing the files back a bit -- so I can also store some configuration information before loading compressed files into the flash with my modified version of your code.

I see it needs to be used in the various pgm_read_* lines so worst case scenario, I'll just hard code a constant in there for the time being. But I'm wondering how I would add an offset to the _FLASH_ARRAY definition or something similar to work with your code?

****EDIT****
Nevermind, I just realized where progmen is working and eeprom are working are two different types of memory/storage. So if I store my permanent settings in EEPROM, I guess it's not going to effect my use of the Flash.h

Re: Webserver on ESP8266, serving files from Flash

PostPosted: Tue May 09, 2017 5:56 am
by local_dani_21
Hi, thank you for your ideas and code. I put all required files for a well working server together (without the Neopixel-overhead) and set up a little site, where you can download them from. Good look with all your projects!
http://www.wunderwald.ch/esp. Dani

Re: Webserver on ESP8266, serving files from Flash

PostPosted: Wed May 10, 2017 9:11 am
by TomHab
Hi,
nice work!

I wanted to replicate your work.
Could you provide a ZIP File containing the folder structure and the INO& header and bash files ?

Kind regards and keep up the good work

Thomas

Re: Webserver on ESP8266, serving files from Flash

PostPosted: Thu May 11, 2017 3:35 pm
by local_dani_21
TomHab wrote:Hi,
nice work!

I wanted to replicate your work.
Could you provide a ZIP File containing the folder structure and the INO& header and bash files ?

Kind regards and keep up the good work

Thomas


I put a ZIP-archive under www.wunderwald.ch/esp.

Best regards, Dani