Instructions
400Libraries
© 2013 Conrad Electronic
5.27.6 WEB_StartServer
Ethernet Functions
Syntax
void WEB_StartServer(word port, byte ramaddr[], word dynvar_cnt, word
flags);
Sub WEB_StartServer(port As Word, ByRef ramaddr As Byte, dynvar_cnt As
Word, flags As Word)
Description
Starts the web server on TCP/IP port port. The parameter dynvar_cnt defines how many dynamic
variables can be used. The user should provide a global variable as a buffer. In this buffer, the work-
ing state of the web server is stored and there is memory for copy operations. For the size of the buf-
fer, there exists a #define WEB_BUF. If you want to define a byte array with space for dynamic vari-
ables X, one writes "byte buf [WEB_BUF (X)];". You can specify multiple flags simultaneously by
ORing the values.
The user-supplied RAM buffer must be reserved during the entire use of the web server. Since
local variables are released after leaving the function, it is strongly recommended to declare the buf-
fer as a global variable.
Parameter
port TCP/IP Port the web server listens
ramaddr buffer address
dynvar_cnt number of dynamic variables
flags webserver options
Flagsdefinitionen
Definition
Meaning
WEB_CACHE_NORM
HTML and Text pages are not cached
WEB_CACHE_HTML
HTML pages are cached
WEB_CACHE_TEXT
Text pages are cached
5.27.7 WEB_StopServer
Ethernet Functions
Syntax
void WEB_StopServer(void);
Sub WEB_StopServer()