lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] httpserver(-raw) and large files


From: Louis Wells
Subject: Re: [lwip-users] httpserver(-raw) and large files
Date: Thu, 21 Feb 2013 08:41:43 -0800

Hello,

I have the webserver up and running using my own html files. 

I do not believe that it is necessary to even use fs_custom in this situation.

Are you attempting to read the html files directly without converting them to hex arrays like in fsdata.c ? I Am not completely sure, but I doubt it will work in that scenario.

You need to either use the makefsdata.c or the makefsdata.pl tool(these are in the contrib file) in order to convert your html files into a form that can be used by the flat file system. Look at the fsdata.c that is included for a reference on what you want the output to look like. 

I use a somewhat modified version of the perl script that generates the headers as well as the actual file data, along with the non custom fs functions and it works fine.

Hope that helps 

On Wed, Feb 20, 2013 at 9:57 AM, Philipp Tölke <address@hidden> wrote:
Hi everyone,

we use lwIP on a Stellaris microcontroller. I am currently integrating a
webserver into our firmware. Using the in ROM filesystem this works as
intended using the httpserver-raw.

Now I am trying to get the httpserver to read the .html-files from
external Flash-Memory.

I enabled LWIP_HTTPD_CUSTOM_FILES and LWIP_HTTPD_DYNAMIC_FILE_READ and
implemented the functions fs_open_custom and fs_close_custom.

But what function do I need to implement to actually read the file? The
only candidate I find is fs_wait_read_custom which reads asynchronisly
which I do not need.

Is somebody using the httpserver-raw and "real" files? If yes: What is
the correct API to use?

Regards,
--
Philipp Tölke, M.Sc. - Software-Developer - fos4X GmbH - www.fos4x.de
Thalkirchner Str. 210, Geb. 6 - D-81371 München; AG München HRB 189 218
T +49 89 999 542 58 - F +49 89 999 542 01
Managing Directors: Dr. Lars Hoffmann, Dr. Mathias Müller

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]