MQTT Client Publish
Libraries:
Industrial Communication Toolbox /
MQTT
Description
The MQTT Client Publish block publishes messages to one or more MQTT topics.
Each input port publishes messages to a corresponding MQTT topic specified in the Topics to publish parameter.
Note
You need a license for Industrial Communication Toolbox™ and Simulink® to use this block.
Note
You must associate the MQTT Client Publish block with an MQTT Client. You can create the client to connect to the MQTT broker using the MQTT pane in the Configuration Parameters dialog box of the model. You must add at least one MQTT Client Subscribe or MQTT Client Publish block in the model to enable this pane. For more information, see Configure MQTT Client in Simulink.
Examples
Ports
Input
Parameters
Version History
Introduced in R2025a