Download Smart & Mobile Embedded Web Server User Guide

Transcript
out c(char c)
to be used in the doGet callback, thus adding the c byte to the HTTP response that
is currently generated
out uint(uint16 t i)
to be used in the doGet callback, thus adding the i integer to the HTTP response
that is currently generated
out str(const char str[])
to be used in the doGet callback, thus adding the str string to the HTTP response
that is currently generated
short in()
to be used in the doPostIn callback, thus receiving post data
trigger channel(const struct output handler t *handler)
usable in any function, it triggers a Comet channel, useful for alert or stream interaction
modes
set timer(timer func t callback, uint16 t period millis)
usable in any function, it allows to automatically call the callback function every
period millis milliseconds
Table 3.3: Functions provided by Smews
21