Subscribe to MQTT protocol messages. MQTT is a lightweight messaging protocol. The brokerHost and brokerPort parameters specify the IP address and port of an MQTT broker, such as Mosquito. When a connection to the broker is established, a message will be produced on the connection output. To subscribe to a topic, provide the topic name to the subscribe input. If you send multiple topics to this input, it will subscribe to all the specified topics. To subscribe to all topics provided by the broker, give # as the topic name. To unsubscribe to a topic, provide the topics name to the unsubscribe input.
This accessor requires the 'mqtt' module.
||The topic name to which to subscribe. Use # to subscribe to all topics.|
||A topic to unsubscribe from.|
||Output on which a string is sent when a connection to the broker has been established.|
||Output on which a string is sent when a subscription is initiated or terminated.|
||Output on which received data is produced.|
||Output indicating the topic of received data.|