SubscribeMQTTMethods (FB)ΒΆ
FUNCTION_BLOCK SubscribeMQTTMethods EXTENDS CBML.LCon
Function block to subscribe MQTT methods.
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xEnable
BOOL
TRUE
: Activates the defined operationFALSE
: Aborts/resets the defined operationLCon
Output
xDone
BOOL
TRUE
: Ready condition reachedLCon
xBusy
BOOL
TRUE
: Operation is runningLCon
xError
BOOL
TRUE
: Error condition reachedLCon
Input
pbMethodPayload
POINTER TO BYTE
Pointer to method input payload buffer
udiMaxMethodPayloadSize
UDINT
Maximum size of pbMethodPayload
itfMethodInvoker
Method invoker
Inout
azureMQTTClient
Reference to AzureMQTTClient
Output
eError
MQTT.MQTT_ERROR
Error code
udiPayloadSize
UDINT
Length of the device twin