OnMqtt5ConnAck

Callback method

OnMqtt5ConnAck 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 receive a notification via this callback, if the message broker has sent a CONNACK as response to a Connect.

Syntax

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

OnMqtt5ConnAck 2: Return value

Name

Type

Description

OnMqtt5ConnAck

HRESULT

 

OnMqtt5ConnAck 3: Inputs

Name

Type

Description

pProps

POINTER TO MqttConnAckProperties

MQTT properties received in case of CONNACK.