课程: Raspberry Pi Weekly

免费学习该课程!

今天就开通帐号,24,600 门业界名师课程任您挑!

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…

内容