MQTT_SendTopicString (FUN)ΒΆ
FUNCTION MQTT_SendTopicString : WORD
This function publishes a string value to the specified MQTT topic.
The output sent is set to TRUE when the publish operation has been
completed.
- InOut:
Scope
Name
Type
Comment
Return
MQTT_SendTopicStringWORDStatus code returned by the runtime (0 means "no errors").
Inout
idWORDOperation identifier used by the runtime.
Input
topicSTRING(127)MQTT topic name.
payloadSTRING(244)String value to publish.
qosWORDQuality of Service level.
flagsWORDPublish options: 0-none, 1-retain.
Output
sentBOOLTRUEwhen the publish operation has been completed.