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