Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

FreeRTOS Webserver new Webpage

FreeRTOS Webserver new Webpage

2005-11-04 by lpc_peter

Hi

it is an olimex LPC 2124 i am working on. Using the rowley compiler 
and the webserver example i bulid the webserver. Now at the end i 
need one (or more) own Webpage.
So i bulid one own called test.html  made a hex file and added it to 
fsdata.c also i added:
const struct fsdata_file file_Test_html[] = {{file_Test_html, 
data_control_html, data_control_html + 14, sizeof(data_control_html) -
 14}};
I think this is for linking the page
also i increments FS_NUMFILES +1.
The page ist there but i cannot find it using the testlink.
If i use e.g. 404 link to the testpage it is allright. To i know the 
page is allright but the link is not working. So i was looking for an 
other file linking the pages but only founf httpd.c but there is only 
start index.html and if it not there 404.html.


So i hope somebody has an idee where i can find a place for my link 
that it will be working

regards

Re: FreeRTOS Webserver new Webpage

2005-11-05 by nospam@FreeRTOS.org

>So i bulid one own called test.html  made a hex file and added it to 
>fsdata.c also i added:
>const struct fsdata_file file_Test_html[] = {{file_Test_html, 
>data_control_html, data_control_html + 14, sizeof(data_control_html) -
>14}};
 

You do not need to do this manually.  There is a script file called 
makefsdata.  This takes all the html files from the fs (file system) 
directory and automatically generates the hex file structures for you. 

Simply place your html in the correct directory and run makefsdata - then 
rebuild your application and your new WEB pages will be included in the 
build. 

makefsdata is a Linux script, but I run it very successfully from a Win32 
host using a Cygwin bash shell. 

Regards,
Richard. 


http://www.FreeRTOS.org

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.