I have tested a solution and I have problems with FileX. I just try opening the file index.html, 0 errors at compile the program but when I go to the web page, nothing appears ( without the added lines of code, everything works fine). I used this documentation : www.rtos.com/.../filex.pdf (page 120) FX_MEDIA my_html; FX_FILE my_page; UINT status2; status2 = fx_file_open(&my_html,&my_page,(CHAR*) "index.html",FX_OPEN_FOR_READ); if (status2 == FX_SUCCESS) {status += htmlwrite(resp_packet_ptr, "OK"); } else{ status += htmlwrite(resp_packet_ptr, "Erreur");} htmlwrite is used to write HTML code into the packet. Certainly a synthax error but I have never used FileX before and the example on documentation doesn't help me for this application.
↧