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 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 - 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