ns=2;s=DEPRAG Smart/Network/MQTT/ActiveClients/0/IsStarted
Indicates whether the MQTT client is started.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bMqttIsStarted : BOOL;
OutputMqttIsStarted : BOOL;
hrMqttIsStarted : HRESULT;
fbMqtt : FB_Mqtt;
END_VAR
hrMqttIsStarted := fbMqtt.IsStarted(
bExecute := bMqttIsStarted,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
Output => OutputMqttIsStarted);
IF hrMqttIsStarted <> S_FALSE THEN
bMqttIsStarted := FALSE;
END_IF
For examples and explanations regarding the calls of nodes via Siemens TIA Portal please refer to the sub-menu "Siemens TIA Portal" in section "Getting Started".