SubscribeMQTTDeviceTwinDesiredProperties (FB)ΒΆ
FUNCTION_BLOCK SubscribeMQTTDeviceTwinDesiredProperties
Function block to subscribe for desired property changes of the device twin.
- InOut:
Scope
Name
Type
Initial
Comment
Input
xEnableBOOLTRUE: Subscribe for desired property changes
pbPayloadPOINTER TO BYTE
Pointer to the receive buffer
udiMaxPayloadSizeUDINTMaximum size of the receive buffer
Inout
azureMQTTClientReference to AzureMQTTClient
Output
xErrorBOOLTRUE, if an error occurred
xBusyBOOLTRUE, while the topic is subscribed
eErrorMQTT.MQTT_ERRORError code
xReceivedBOOLTRUE, if a message has been received (see |pbPayload|).
udiPayloadSizeUDINTLength of the received message
xSubscribeActiveBOOLFALSE
FALSE: When there is no active subscription, TRUE: Subscriber is listening