Update of "Webserver"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.


Artifact ID: 2c4379797683ce0e15edf3dd782cea7c84c8d814
Page Name:Webserver
Date: 2013-02-10 13:19:14
Original User: jim
Parent: 1038851e5daef1bde39a70b6f730b5861dc562a1

Web Server Software

The web server software is actually a Lua interpreter with a Web server extension. The extension is libmicrohttp written and maintained by Christian Grothoff. The Lua interpreter is standard Lua 5.1 and the webserver is activated by running scripts that interpret the REST commands.

The RESTful command structure is shown here:

These commands are sent as a URI with the base part the web server address then rest/<command>. In Firenet we use GET and POST. Get is used for a simple command with no extra data and POST is used along with a JSON representation of the data.

For example to fire channel 3 on node 5 and if we assume the web server is at the RESTful command URI would be:

As detailed in the Network section Firenet is normally connected via USB connection to a Serial device. That would then connect to real hardware. In addition a simulation mode is added so if you connect to a port named X and tell it the number of Firenet nodes it will simulate the network and the nodes. This allows you to run the system and try out shows with no hardware.