MQTT Publish
Publish messages to MQTT broker on specified topic
Libraries:
Raspberry Pi Blockset /
Internet Of Things
Description
The MQTT Publish block publishes messages from your hardware (publisher) to the Message Queuing Telemetry Transport (MQTT) broker on the specified topic.
The block has a Message input port and a Status output port. The Message port accepts the message to be published to the broker. The Status port outputs the status of the publish request. The string topic/level on the block icon is specified by the Topic parameter.
For more information on MQTT, see Publish MQTT Messages and Subscribe to Message Topics.
Note
The MQTT Publish block supports MQTT only over TCP/IP sockets.
To generate code C/C++ code for this block, you must have an Embedded Coder® license.
Examples
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2018b

