OnMqtt5Disconnected

Callback method

OnMqtt5Disconnected 1:

This method must not be called by the user. Instead, the function block FB_IotMqtt5ClientBase can be used to derive information and overwrite this method. During the call of the Execute() method the responsible TwinCAT driver has the possibility to call the OnMqtt5Disconnected() method in case of a disconnection with the message broker.

Syntax

METHOD OnMqtt5Disconnected : HRESULT
VAR_INPUT
    pProps : POINTER TO MqttDisconnectProperties;
END_VAR

OnMqtt5Disconnected 2: Return value

Name

Type

Description

OnMqtt5Disconnect

HRESULT

 

OnMqtt5Disconnected 3: Inputs

Name

Type

Description

pProps

POINTER TO MqttDisconnectProperties

MQTT properties received in case of Disconnect.