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
3)Execute the following command to install mosquitto broker
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
5)Execute the following command to check Mosquitto version.
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.