Execute
This method must be called cyclically in order to ensure the background communication with the MQTT broker.
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. The connection to the broker is cut off by calling the Execute() method with FALSE as the input. |
Any errors are reported at the outputs bError, hrErrorCode and eConnectionState of the function block instance.