MQTT_ReadTopicBool (FUN)ΒΆ
FUNCTION MQTT_ReadTopicBool : WORD
This function subscribes to the specified MQTT topic and returns published messages as booleans.
The output valid is set to TRUE when a publication occurs
on the topic and the message payload is copied into value.
- InOut:
Scope
Name
Type
Comment
Return
MQTT_ReadTopicBoolWORDStatus code returned by the runtime (0 means "no errors").
Inout
idWORDOperation identifier used by the runtime.
Input
topicSTRING(127)MQTT topic name.
qosWORDQuality of Service level.
Output
valueBOOLBoolean value received from the topic.
validBOOLTRUEwhen a valid value has been received.