2018-04-21 02:07 PM
i have a html page that excute js functions so i add the needed file to fsdata.c but i can't manage to find the problem why it won't work
FsData.C
#include 'lwip/apps/fs.h'#include 'lwip/def.h'#define file_NULL (struct fsdata_file *) NULLstatic const unsigned int dummy_align__samples_pie_html = 0;static const unsigned char data__samples_pie_html[] = {/* /samples/pie.html (18 chars) */0x2f,0x73,0x61,0x6d,0x70,0x6c,0x65,0x73,0x2f,0x70,0x69,0x65,0x2e,0x68,0x74,0x6d,0x6c,0x00,0x00,0x00,/* HTTP header */
/* 'HTTP/1.0 200 OK' (17 bytes) */........ etc ...........0x0a,0x0a,0x0a,0x0a,0x0a,0x7d,0x29,0x2e,0x63,0x61,0x6c,0x6c,0x28,0x74,0x68,0x69,0x73,0x29,0x3b,0x0a,};const struct fsdata_file file__samples_pie_html[] = { {
file_NULL,data__samples_pie_html,data__samples_pie_html + 20,sizeof(data__samples_pie_html) - 20,1,}};const struct fsdata_file file__404_html[] = { {
file__samples_pie_html,data__404_html,data__404_html + 12,sizeof(data__404_html) - 12,1,}};const struct fsdata_file file__Chart_js[] = { {
file__404_html,data__Chart_js,data__Chart_js + 12,sizeof(data__Chart_js) - 12,1,}};#define FS_ROOT file__Chart_js
#define FS_NUMFILES 3