MQTT client blocks allow easy access to parameters and data of devices in IoT applications.
The Simulink blocks handle the data exchange between the connected MQTT broker and the application running on the real-time target computer. Publishing, as well as subscribing to MQTT topics, is supported by the blocks.
Get started by adding the MQTT blocks to your Simulink model. No additional tools are required to enable MQTT communication. MQTT is supported on the real-time target machines' native Ethernet interfaces and over Ethernet I/O modules.
- Supports publishing and subscribing to multiple topics
- Multiple clients can run on one target machine, connected with one or multiple broker devices
- TCP/IP communication layer allows update rates of up to 1 kHz
- Asynchronous data exchange saves computing time for real-time tasks
Hardware Selection Guide
All the Ethernet ports support MQTT. One port can handle the data transmission of multiple MQTT clients configured in the real-time application. Each MQTT client requires a runtime license. MQTT support is available with MATLAB R2020b and later.
MQTT is compatible with the following Ethernet I/O modules: