UpdateMQTTDeviceTwin (FB)¶
FUNCTION_BLOCK UpdateMQTTDeviceTwin EXTENDS CBML.ETrigTo
Function block to update 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
pbPayloadUpdate
POINTER TO BYTE
Pointer to the device twin update data (JSON)
udiMaxPayloadUpdateSize
UDINT
Maximum size of pbPayloadUpdate
Inout
azureMQTTClient
Reference to AzureMQTTClient
Output
eError
MQTT.MQTT_ERROR
Error code