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