Connect to MQTT compliant brokers over TCP or websocket protocols. After connection, subscribe to topics or wildcards on the broker. Define custom functions to evaluate on receiving messages on subscribed topics. Publish messages to topics on the broker. All QoS levels supported for both publish and subscribe functions.
You can also establish a secure connection to a broker using TLS v1.2 over both TCP and websocket.
After installation, run the following command to learn more about the functions:
>> help mqtt
Hi, how to get subscribe msg in real-time ?
Hello, use the read or readall functions on the subscription to retrieve the messages from the subscription. For eg: mySub = subscribe(myMQTT, 'TestTopic'); read(mySub)
Hello. Everything works fine but how can I retrieve the message from a subscription? The counter increases after a message is published, but the message itself I don't find
Does this MQTT toolbox support older version of Matlab (e.g R2016a)?
Updated image in description.