Steps to Install MQTT Broker on Raspberry Pi

If you don’t have any idea about what is MQTT protocol. please click on the following link.
What is MQTT Protocol

Follow the following steps to install MQTT Broker on Raspberry Pi:
1)Open Raspberry Pi Terminal

2)Execute the following command to update the existing Packages

sudo apt-get update

3)Execute the following command to install mosquitto broker

sudo apt-get install mosquitto

While Installing if its asking for Do you want to continue? [Y/n] enter Y and hit ENTER

4)Execute the following command to install MQTT Clients such as publishers and subscribers

sudo apt-get install mosquitto-clients

5)Execute the following command to check Mosquitto version.

mosquitto -v

If its showing mosquitto version 1.4.10 or higher , means broker is installed sucessfully.

Please click on the below link to become master in MQTT.

Master MQTT Protocol

You may also like...

Leave a Reply