Raspberry Pi MQTT Broker

From Flowcode Help
Revision as of 20:48, 14 October 2020 by BenR (talk | contribs) (Created page with "==Initial Setup== Raspbery Pi running Noobs or Raspbian Linux. To install the Mosquitto Broker enter these next commands: sudo apt update sudo apt install -y mosquitto mo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Initial Setup

Raspbery Pi running Noobs or Raspbian Linux.


To install the Mosquitto Broker enter these next commands:

sudo apt update

sudo apt install -y mosquitto mosquitto-clients


You may have to type Y and press Enter to confirm the installation.

To make Mosquitto auto start on boot up enter:

mosquitto -v


This returns the Mosquitto version that is currently running in your Raspberry Pi. It should be 1.4.X or above.


Raspberry Pi IP Address

To use Mosquitto broker later on your projects, you’ll need your Raspberry Pi IP address. To retrieve your Raspberry Pi IP address, type the next command in your Terminal window:

hostname -I


Testing the Broker

Securing the Broker with a Username and Password

Encrypting the Broker