-
-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add latest docu of blockly features of M2 (#2297)
* add latest docu of blockly features of M2 Signed-off-by: Stefan Höhn <mail@stefanhoehn.com> --------- Signed-off-by: Stefan Höhn <mail@stefanhoehn.com> Co-authored-by: Florian Hotze <florianh_dev@icloud.com>
- Loading branch information
1 parent
29f5334
commit a3accd8
Showing
44 changed files
with
253 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
layout: documentation | ||
title: Rules Blockly - Logging | ||
--- | ||
<!-- markdownlint-disable MD036 --> | ||
|
||
# HTTP | ||
|
||
[return to Blockly Reference](index.html#http) | ||
|
||
## Introduction | ||
|
||
This section explains the blocks that allow sending HTTP requests. | ||
|
||
## HTTP Requests | ||
|
||
There is one block that handles all type of requests. | ||
Depending on the required functionality it changes its design. | ||
|
||
![http-overview](../images/blockly/blockly-http-overview.png) | ||
|
||
### Option Toggles | ||
|
||
There are two toggle buttons that allow the block to be small for simple requests and add further options to be used: | ||
|
||
![http-toggle](../images/blockly/blockly-http-toggles.png) | ||
|
||
- Clock: enables the timeout option | ||
- H: enables the header option and allows to provide headers during the request via a [Dictionary](rules-blockly-standard-ext.md#dictionary-for-managing-key--value-pairs) | ||
|
||
### HTTP Request GET | ||
|
||
_Function:_ Send an HTTP GET request to a server and receive the response | ||
|
||
The simplest form is shown by default and accepts the destination URI as String. | ||
|
||
![http-get-simple](../images/blockly/blockly-http-get-simple.png) | ||
|
||
By activating the toggles the timeout and request headers can be provided. | ||
See the [POST-Request](#http-request-post) below for an example showing these additional fields. | ||
|
||
### HTTP Request POST | ||
|
||
_Function:_ Send an HTTP POST request to a server and receive the response | ||
|
||
The simplest form is shown by default and accepts the destination URI as String and in comparison to the [GET-Request](#http-request-get) adds a section for the payload which takes two parameters: | ||
|
||
- the MIME-type of the content to be sent | ||
- the content to be sent to the destination | ||
|
||
![http-post-simple](../images/blockly/blockly-http-post-simple.png) | ||
|
||
Here is a more complex example that additionally sets a header and the timeout: | ||
|
||
![http-post-complex](../images/blockly/blockly-http-post-complex.png) | ||
|
||
### HTTP Request PUT | ||
|
||
_Function:_ Send an HTTP PUT request to a server and receive the response | ||
|
||
The simplest form is shown by default and accepts the destination URI as String and is similar in functionality to the [POST-Request](#http-request-post): | ||
|
||
- the MIME-type of the content to be sent | ||
- the content to be sent to the destination | ||
|
||
![http-put-simple](../images/blockly/blockly-http-put-simple.png) | ||
|
||
### HTTP Request DELETE | ||
|
||
_Function:_ Send an HTTP DELETE request to a server and receive the response | ||
|
||
The simplest form is shown by default and accepts the destination URI as String. | ||
|
||
![http-delete-simple](../images/blockly/blockly-http-delete-simple.png) | ||
|
||
## Return to Blockly Reference | ||
|
||
[return to Blockly Reference](index.html#http) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-5.96 KB
(72%)
configuration/images/blockly/blockly-afterperiod-timer-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.24 KB
(86%)
configuration/images/blockly/blockly-afterperiod-timer-options-block.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.28 KB
(100%)
configuration/images/blockly/blockly-afterperiod-timer-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-6.37 KB
(87%)
configuration/images/blockly/blockly-items-and-things-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7.15 KB
(70%)
configuration/images/blockly/blockly-persistence-get-previous.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-37.6 KB
(55%)
configuration/images/blockly/blockly-persistence-get-previousValue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+30.9 KB
(130%)
configuration/images/blockly/blockly-persistence-get-statistical-value.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+23.8 KB
(150%)
configuration/images/blockly/blockly-timer-comprehensive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-816 Bytes
(95%)
configuration/images/blockly/blockly-timer-example-shared-1.png
Oops, something went wrong.
Binary file modified
BIN
+3.99 KB
(110%)
configuration/images/blockly/blockly-timers-and-delays-small.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.