GetMQTTDeviceTwin (FB)¶
FUNCTION_BLOCK GetMQTTDeviceTwin EXTENDS CBML.ETrigTo
Function block to read the device twin of the connected device.
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xExecuteBOOLRising edge: Starts defined operationFALSE: Resets the defined operation after ready condition was reachedETrigTo
udiTimeOutUDINTMax. operating time for executing [µs], 0: No operating time limit
ETrigTo
Output
xDoneBOOLReady condition reached
ETrigTo
xBusyBOOLOperation is running
ETrigTo
xErrorBOOLError condition reached
ETrigTo
Input
pbPayloadPOINTER TO BYTE
Pointer to the receive buffer (device twin)
udiMaxPayloadSizeUDINTMaximum size of the receive buffer
Inout
azureMQTTClientReference to AzureMQTTClient
Output
eErrorMQTT.MQTT_ERRORError code
udiPayloadSizeUDINTLength of the device twin