AWSIoTGetDeviceShadow (FB)¶
FUNCTION_BLOCK AWSIoTGetDeviceShadow EXTENDS CBML.ETrigTo
Function block to read the device shadow of the connected device.
- InOut:
Scope
Name
Type
Initial
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 shadow)
udiMaxPayloadSizeUDINTMaximum size of the receive buffer
eQoSQuality of service level (QoS)
sClientIdREFERENCE TO STRING(255)
0
The name of another thing. The input sClientId can be used to access device shadows of other things. if 0, then the clientId from AWSIoTClient will be used.
Inout
awsIoTClientReference to AWSIoTClient
Output
eErrorMQTT.MQTT_ERRORError code
udiPayloadSizeUDINTLength of the device shadow
mQTTPublishPropertiesLast received publish properties