$ echo "<user>:<password>" > /etc/mosquitto/pwfile
$ mosquitto_passwd -U /etc/mosquitto/pwfile
Uncomment or Add : password_file /etc/mosquitto/pwfile
Uncomment or Add : allow_anonymous false
$ su service mosquitto start
OR
$ docker pull aghadge/mosquitto
$ docker run -it docker.io/aghadge/mosquitto
Send data to broker.
$ python publisher.py
Receive data from broker.
$ python subscriber.py