HTTP Web Server Example
Note: This demo has a dependency on the FreeRTOS+FAT code base and is
therefore currently only available in the FreeRTOS Labs download.
FreeRTOS+TCP and FreeRTOS+FAT Examples
Not all demo projects will include this example. If this example is included in a demo project then it may be necessary to set mainCREATE_HTTP_SERVER to 1 at the top of the project’s main.c source file to include the example in the build.
This example uses FreeRTOS+TCP to implement a basic web (HTTP) server that accesses files from a file system implemented by FreeRTOS+FAT. Some demo projects store files on a RAM disk, while others store files on non-volatile media such as an SD card.
The base directory used by the web server is set by the configHTTP_ROOT constant in FreeRTOSConfig.h. If a RAM disk is used then a default and very basic HTML file called “freertos.html” is created in the base directory after it is mounted. The FTP server can be used to overwrite the default HTML file with different web content.
NOTE: Performance will be limited when using the FreeRTOS Windows port.