MQTT with Mosquitto
Using Mosquitto as a Message Broker
Updated: 03 September 2023
MQTT makes use of a publish/subscribe model in which a client will either publish messages to a topic or subscribe to messages on the topic
Help
We can run the following to get the mosquitto
help menus
General
Publisher
Subscriber
Starting a Server
We can start an MQTT Broker Server with mosquitto
in verbose mode as follows
This will allow us to publish and subscribe message
Subscribe to a Topic
We can subscribe to a topic with the following
Publish to a Topic
We can publish messages to a topic with the following