Web server
With these blocks the senseBox can be used as a web server.
Block | Function |
---|
| Use this block in Setup() to initialize the HTTP server. With the field Port you can set the port on which the server should be accessible in the browser. By default, this is set to 80. |
| This block is connected to the loop. In the free block section you insert the blocks that should be executed when a client (e.g. a user via the browser) accesses the server |
| This block returns the IP address of your senseBox in the network. |
| This block returns the method. |
| This block returns the URI. |
| This block returns the HTTP-version. |
| With this block you can send an HTTP response to the client when it accesses the server. The response is the HTML code, which can be assembled from different blocks. |
| With this block you can send a HTTP response to the client when it accesses the server. The response is the HTML code, which can be assembled from different blocks. |
| This block can be sent as a possible HTTP response when a faulty page is called. |
| This is the basic building block for the HTML code. On the body you attach your HTML code, which describes the structure of the website. |
| With the tags you can build your HTML page directly via Blockly. |
| You can append this block to the basic HTML code and load a .html file from SD card |