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
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
pbOutputPayload
POINTER TO BYTE
0
Pointer to output payload JSON-String e.g. POINTER TO STRING(255)
itfMethodInvoker
Method invoker
Inout
azureMQTTClient
Reference to AzureMQTTClient
Output
eError
MQTT.MQTT_ERROR
Error code
udiPayloadSize
UDINT
Length of the device twin