SubscribeMQTTDeviceTwinDesiredProperties (FB)ΒΆ
FUNCTION_BLOCK SubscribeMQTTDeviceTwinDesiredProperties
Function block to subscribe for desired property changes of the device twin.
- InOut:
Scope
Name
Type
Initial
Comment
Input
xEnable
BOOL
TRUE: Subscribe for desired property changes
pbPayload
POINTER TO BYTE
Pointer to the receive buffer
udiMaxPayloadSize
UDINT
Maximum size of the receive buffer
Inout
azureMQTTClient
Reference to AzureMQTTClient
Output
xError
BOOL
TRUE, if an error occurred
xBusy
BOOL
TRUE, while the topic is subscribed
eError
MQTT.MQTT_ERROR
Error code
xReceived
BOOL
TRUE, if a message has been received (see |pbPayload|).
udiPayloadSize
UDINT
Length of the received message
xSubscribeActive
BOOL
FALSE
FALSE: When there is no active subscription, TRUE: Subscriber is listening