WiFi MQTT Publish
Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.
Libraries:
Simulink Support Package for Arduino Hardware /
WiFi
Description
Use the WiFi MQTT Publish block to publish messages from your publisher (hardware) to the MQTT broker on the topic you specify in the Topic parameter.
Note
The WiFi MQTT Publish block supports MQTT over TCP/IP sockets only.
The WiFi MQTT Publish block supports these hardware boards.
Arduino MKR WiFi 1010
Arduino MKR 1000
Arduino Nano 33 IoT
Arduino® compatible ESP32 – WROOM board
Arduino compatible ESP32 – WROVER board
Ports
Input
Output
Parameters
Version History
Introduced in R2022b
See Also
MQTT properties | MQTT Basics (ThingSpeak) | WiFi MQTT Subscribe | Publish MQTT Messages and Subscribe to Message Topics