SubscribeMQTTMethods (FB)ΒΆ

FUNCTION_BLOCK SubscribeMQTTMethods EXTENDS CBML.LCon

Function block to subscribe MQTT methods.

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Input

xEnable

BOOL

TRUE: Activates the defined operation FALSE: Aborts/resets the defined operation

LCon

Output

xDone

BOOL

TRUE: Ready condition reached

LCon

xBusy

BOOL

TRUE: Operation is running

LCon

xError

BOOL

TRUE: Error condition reached

LCon

Input

pbMethodPayload

POINTER TO BYTE

Pointer to method input payload buffer

udiMaxMethodPayloadSize

UDINT

Maximum size of pbMethodPayload

itfMethodInvoker

IMethodInvoker

Method invoker

eMqttQoS

MQTT_QOS

MQTT_QOS.QoS0

The QoS used in MQTT message

Inout

azureMQTTClient

AzureMQTTClient

Reference to AzureMQTTClient

Output

eError

MQTT.MQTT_ERROR

Error code

udiPayloadSize

UDINT

Length of the device twin