MQTT_Disconnect block
Short summary
Name |
|
→POU type |
|
Category |
more system blocks, MQTT, block with internal error diagnostic |
Graphical interface |
|
Available since |
version 2.0.17 (for library This block is supported for the built-in PLC and →Raspberry Pi. |
Functionality
The block disconnects from a →MQTT broker using the connection handler received earlier by calling the MQTT_Connect block.
The data is transferred by means of an already existing MQTT broker (see "Preparing/Realizing data transfer via MQTT").
Inputs, outputs, return value
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
connection handler (as obtained by the MQTT_Connect block) |
Outputs: |
|
|
return code of involved MQTT functions as specified in data type |
Input EN
and output ENO
are available when →calling the block. See "Execution control: EN, ENO" for information on input EN
and output ENO
.
See:
-
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
-
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic.
Internal error diagnostic for block
The block checks the following error cases and – if they occur – the block sets the output ENO
of the block to the value FALSE
(or an equivalent):
-
An internal error occurred while sending a notification to the →runtime system.
-
The functionality of the block could not be executed.
Example for usage within ST-editor
|
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.