MQTT Publish Block

The MQTT Publish block publishes messages on the specified topic from your hardware to the Message Queuing Telemetry Transport (MQTT) broker. The broker is primarily responsible for receiving all messages, filtering messages, deciding who is interested in the messages, and publishing the messages to all subscribed clients. This block has two input pins, Enable and Data.
Figure 1.


Enable
When the enable pin is high, the values entering the data pin are presented to the transmit queue. When the enable pin is 0, the values entering the data pin are ignored.
Data
Accepts a JSON string to be published to the cloud.