MQTT_StatePublisher (FB)ΒΆ
FUNCTION_BLOCK MQTT_StatePublisher
Function Block to publish device State
- InOut:
Scope
Name
Type
Comment
Inout
MQTTBridgeInstance of the MQTT Bridge
Input
xExecuteBOOLPublishes a message
uiPublisherTimeOutUINTPublisher TimeOut in [ms]
pbPayloadPOINTER TO BYTE
Pointer to State Payload
uiPayloadSizeUINTSize of State Payload
eQoSMQTT.MQTT_QOSQuality of Service of the State Publisher
Output
eErrorOutput Error
eMQTTErrorMQTT.MQTT_ERRORError from MQTT
xBusyBOOLxDoneBOOLxErrorBOOL