MQTT Publish
R2026bLibraries:
Simulink Support Package for Android Devices /
Communication
Description
Add-On Required: This feature requires the Simulink Support Package for Android Devices add-on.
Use the MQTT Publish block to publish messages from your publisher (hardware) to the MQTT broker on the topic you specify in the Topic parameter.
Ports
Input
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"androidcommunicationlib/MQTT Publish"
Example: add_block("androidcommunicationlib/MQTT Publish","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2023a