Raspberry Pi MQTT Broker
From Flowcode Help
Jump to navigationJump to search
Contents
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