root@galileo:~# wget http://mosquitto.org/files/source/mosquitto-1.3.5.tar.gz
root@galileo:~# tar xvf mosquitto-1.3.5.tar.gz
root@galileo:~# cd mosquitto-1.3.5
root@galileo:~# make -j3 WITH_SRV=no
root@galileo:~# adduser mosquitto
root@galileo:~# cd test/broker
root@galileo:~# make -j3 test
root@galileo:~# cd ../../
root@galileo:~# cp client/mosquitto_pub /usr/bin
root@galileo:~# cp client/mosquitto_sub /usr/bin
root@galileo:~# cp lib/libmosquitto.so.1 /usr/lib
root@galileo:~# cp src/mosquitto /usr/bin
Mosquitto Applications
root@board:~# mosquitto
1462105305: Error: Invalid user 'mosquitto'.
root@board:~# mosquitto_sub
Error: You must specify a topic to subscribe to.
mosquitto_sub is a simple mqtt client that will subscribe to a single topic and print all messages it .
...
root@board:~# mosquitto_pub
Error: You must specify a topic to subscribe to.
mosquitto_sub is a simple mqtt client that will subscribe to a single topic and print all messages it .
...