Remote Office Building data aq/control ServerBecause sometimes going there in person is a pain in the ass.Some testing links: Unicorn, Rainbow, Finger perpetual motion kludge, very large and slow loading Fusor silver activation run Server Hardware board Sample CGI page Hardware info page at Digilent Inc. The HTTP Server uses a highly cooperative embedded programming model where multiple connections and pages can be processed concurrently. To ensure this works reliably, any code written for the server’s loop() function or composing pages
should be written as a state machine, with each state only doing a small portion of
work. The HTTP server loops repeatedly, calling your code as well as the HTTP server
code. As part of the HTTP server code, it listens for connections. When a
connection is made, the appropriate compose() function is called based
on the URL. If no URL matches a compose page, the
default compose() function is called. Typically, the SD file system
compose function is used as the default compose() function, as this will
look on the SD file system for a matching file. If no file exists, the
SD compose() function will return an “HTTP File Not Found
(404)” error to the browser.The above is dead wrong, you just get a blank page. At least it's fast. For specific information on how to set up this example server, goto SrvSetup.htm. |