SubscribeMQTTMethods2 (FB)ΒΆ
FUNCTION_BLOCK SubscribeMQTTMethods2 EXTENDS CBML.LCon
Function block to subscribe MQTT methods. This function blocks can return payload of methods.
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
xEnableBOOLTRUE: Activates the defined operationFALSE: Aborts/resets the defined operationLCon
Output
xDoneBOOLTRUE: Ready condition reachedLCon
xBusyBOOLTRUE: Operation is runningLCon
xErrorBOOLTRUE: Error condition reachedLCon
Input
pbMethodPayloadPOINTER TO BYTE
Pointer to method input payload buffer
udiMaxMethodPayloadSizeUDINTMaximum size of pbMethodPayload
pbOutputPayloadPOINTER TO BYTE
0
Pointer to output payload JSON-String e.g. POINTER TO STRING(255)
itfMethodInvokerMethod invoker
Inout
azureMQTTClientReference to AzureMQTTClient
Output
eErrorMQTT.MQTT_ERRORError code
udiPayloadSizeUDINTLength of the device twin