Embedded Webserver Library
Embedded Webserver Library
This software library allows you to generate a webserver that communicates using the XMOS TCP/IP server component.
Features
- Automatically package a file tree of web pages into data that be accessed on the device
- Store web pages in either program memory or on an attached SPI flash
- Call C/XC functions from within web page templates to access dynamic content
- Handle GET and POST HTTP requests
- Separate the handling of TCP traffic and the access of flash into different tasks passing data over XC channels. Allowing you to integrate the webserver in other applications that already handle TCP or access flash.
Typical Resource Usage
This following table shows typical resource usage in some different configurations. Exact resource usage will depend on the particular use of the library by the application.
Configuration |
Pins |
Ports |
Clocks |
Ram |
Logical cores |
---|---|---|---|---|---|
Default |
0 |
0 |
0 |
~5.8K |
1 |
Note that this does not include the TCP/IP stack (which is a separate library) or any web-pages stored in memory.
Software version and dependencies
This document pertains to version 2.0.1 of this library. It is known to work on version 14.1.1 of the xTIMEcomposer tools suite, it may work on other versions.
This library depends on the following other libraries:
- lib_xtcp (>=4.0.0)
Related application notes
The following application notes use this library:
- AN00122 - Using the XMOS embedded webserver library