MQTT Subscribe
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 Subscribe block to receive messages from the message queuing telemetry transport (MQTT) broker on the specified topic.
Ports
Output
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 Subscribe"
Example: add_block("androidcommunicationlib/MQTT Subscribe","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2023a