tutorials/nxp/frdm-rw612-xpresso-freertos-lwip/doc/readme.md
The wifi_httpsrv demo application demonstrates an HTTPServer on the lwIP TCP/IP stack with FreeRTOS. The user uses an Internet browser to send a request for connection. The board acts as an HTTP server and sends a Web page back to the PC
Before building the example application select Wi-Fi module macro in the app_config.h.
(see #define WIFI_<SoC Name>_BOARD_<Module Name>).
For more information about Wi-Fi module connection see:
Please note that your system may not support mDNS out-of-the-box as it is necessary to have an mDNS resolver installed. For instance Bonjour Print Services for Windows contain such resolver. In case of Linux nss-mdns serves this purpose. Username admin and password admin is required to access "Authorization example" section of the web page.
To modify content available through the web server you must complete following steps:
Modify, add or delete files in folder boards\<board_name>\lwip_examples\lwip_httpsrv_freertos\webpage.
Run the script file middleware\lwip\src\apps\httpsrv\mkfs\mkfs.pl <directory name> to generate new httpsrv_fs_data.c. Make sure to execute it from a folder where the file httpsrv_fs_data.c is. For example:
C:\sdk\boards\<board_name>\lwip_examples\lwip_httpsrv_freertos> C:\sdk\middleware\lwip\src\apps\httpsrv\mkfs\mkfs.pl webpage
Processing file webpage/auth.html
Processing file webpage/cgi.html
Processing file webpage/favicon.ico
Processing file webpage/help.html
Processing file webpage/httpsrv.css
Processing file webpage/index.html
Processing file webpage/NXP_logo.png
Processing file webpage/poll.html
Processing file webpage/request.js
Processing file webpage/ssi.shtml
Processing file webpage/welcome.html
Done.
Make sure the httpsrv_fs_data.c file has been overwritten with the newly generated content.
Re-compile the HTTP server application example and download it to your board.