Web - Webserver

Web server

With these blocks the senseBox can be used as a web server.

BlockFunction
/images/2020-04-08-blockly-web/blockly-Web-Web-1-en.svg - Logo
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.
/images/2020-04-08-blockly-web/blockly-Web-Web-2-en.svg - Logo
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
/images/2020-04-08-blockly-web/blockly-Web-Web-3-en.svg - Logo
This block returns the IP address of your senseBox in the network.
/images/2020-04-08-blockly-web/blockly-Web-Web-4.svg - Logo
This block returns the method.
/images/2020-04-08-blockly-web/blockly-Web-Web-5-en.svg - Logo
This block returns the URI.
/images/2020-04-08-blockly-web/blockly-Web-Web-6-en.svg - Logo
This block returns the HTTP-version.
/images/2020-04-08-blockly-web/blockly-Web-Web-7-en.svg - Logo
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.
/images/2020-04-08-blockly-web/blockly-Web-Web-8-en.svg - Logo
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.
/images/2020-04-08-blockly-web/blockly-Web-Web-9-en.svg - Logo
This block can be sent as a possible HTTP response when a faulty page is called.
/images/2020-04-08-blockly-web/blockly-Web-Web-10-en.svg - Logo
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.
/images/2020-04-08-blockly-web/blockly-Web-Web-11-en.svg - Logo
With the tags you can build your HTML page directly via Blockly.
/images/2020-04-08-blockly-web/blockly-Web-Web-12-en.svg - Logo
You can append this block to the basic HTML code and load a .html file from SD card
×

Subscribe

The latest tutorials sent straight to your inbox.