mqttConnect
Establish or release a MQTT connection.
Inputs
Input |
Data Type |
Description |
IN |
BOOL |
Triggers the connection. |
CnxID |
STRING |
Identifier of the connection in the fieldbus configuration. |
Outputs
Output |
Data Type |
Description |
OK |
BOOL |
True if the connection is established. |
Error |
BOOL |
True in case of a failed or lost connection. |
Remarks
The connection is established on a rising edge of the IN input, and release on a falling edge of IN. Both outputs are reset to FALSE when the IN input becomes TRUE. The output, either OK or Error, becomes TRUE.
In case of a failed or lost connection, there is no automatic retry of connection. You will have to trigger again the IN input for a new trial.
mqttConnect |
IEC 61131-3 Automation platform > Programming - Reference guide > Driver specific function blocks > MQTT > mqttConnect |
Created with the Personal Edition of HelpNDoc: Produce electronic books easily