From the course: Raspberry Pi Weekly

Unlock this course with a free trial

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

Build an MQTT publisher

Build an MQTT publisher - Raspberry Pi Tutorial

From the course: Raspberry Pi Weekly

Build an MQTT publisher

- MQTT or Message Queuing Telemetry Transport is a protocol used by the Internet of Things to exchange messages and notify other devices of important changes. With MQTT, a publisher sends a message to a broker. The MQTT broker then sends messages to MQTT clients that have subscribed to an appropriate topic. This week, let's build an MQTT publisher with the Raspberry Pi and then publish a message about a connected switch. 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 publisher, you'll need to update and install some software. Open a terminal window and then start by updating your existing software. Use sudo, A-P-T, dash, get update. When the update is finished, use sudo, A-P-T, dash, G-E-T, apt-get, upgrade. When the upgrade is finished, you'll need to reboot your Raspberry…

Contents