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
xExecute
BOOL
Rising edge: Starts defined operationFALSE
: Resets the defined operation after ready condition was reachedETrigTo
udiTimeOut
UDINT
Max. operating time for executing [µs], 0: No operating time limit
ETrigTo
Output
xDone
BOOL
Ready condition reached
ETrigTo
xBusy
BOOL
Operation is running
ETrigTo
xError
BOOL
Error condition reached
ETrigTo
Input
pbPayload
POINTER TO BYTE
Pointer to the receive buffer (device twin)
udiMaxPayloadSize
UDINT
Maximum size of the receive buffer
Inout
azureMQTTClient
Reference to AzureMQTTClient
Output
eError
MQTT.MQTT_ERROR
Error code
udiPayloadSize
UDINT
Length of the device twin