MQTT_StatePublisher (FB)ΒΆ
FUNCTION_BLOCK MQTT_StatePublisher
Function Block to publish device State
- InOut:
Scope
Name
Type
Comment
Inout
MQTTBridge
Instance of the MQTT Bridge
Input
xExecute
BOOL
Publishes a message
uiPublisherTimeOut
UINT
Publisher TimeOut in [ms]
pbPayload
POINTER TO BYTE
Pointer to State Payload
uiPayloadSize
UINT
Size of State Payload
eQoS
MQTT.MQTT_QOS
Quality of Service of the State Publisher
Output
eError
Output Error
eMQTTError
MQTT.MQTT_ERROR
Error from MQTT
xBusy
BOOL
xDone
BOOL
xError
BOOL