MQTT_SendTopicInteger (FUN)ΒΆ
FUNCTION MQTT_SendTopicInteger : WORD
This function publishes an integer 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_SendTopicIntegerWORDStatus code returned by the runtime (0 means "no errors").
Inout
idWORDOperation identifier used by the runtime.
Input
topicSTRING(127)MQTT topic name.
payloadDWORDInteger value to publish.
qosWORDQuality of Service level.
flagsWORDPublish options: 0-none, 1-retain.
Output
sentBOOLTRUEwhen the publish operation has been completed.