From the course: Raspberry Pi Weekly

Unlock this course with a free trial

Join today to access over 22,700 courses taught by industry experts.

Build an MQTT broker

Build an MQTT broker

- With MQTT, a publisher sends a message with a topic to a broker, then sends that message to other clients which have subscribed to a particular topic. In the last two weeks, we created an MQTT publisher and a client using Raspberry Pis. This week, let's complete the trio with a Raspberry Pi MQTT broker. Hi, I'm Mark Niemann-Ross and welcome to this week's edition of Raspberry Pi Weekly. Every week, we explore the Raspberry Pi and share useful tips. To create a Raspberry Pi MQTT broker, first update and install some software. Use Sudo apt-get update. And then Sudo apt-get upgrade. When you've updated your Raspberry Pi, be sure to go ahead and reboot. After you've rebooted, install the mosquitto broker software. Notice that this is a different software than used for MQTT client and publishers. After you've installed the mosquitto broker software, go ahead and reboot your computer again. The MQTT broker runs as…

Contents