Execute

This method must be called cyclically in order to ensure the background communication with the MQTT broker.
Possible errors are output at the outputs bError and hrErrorCode of the function block instance.
Syntax
METHOD Execute
VAR_INPUT
bConnect : BOOL;
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
bConnect | BOOL | The connection to the broker is established when bConnect is set to TRUE. bConnect must remain set to maintain the connection. |