- using mosquitto as MQTT broquer
- using paho as mqtt client for python https://pypi.python.org/pypi/paho-mqtt
pip install paho-mqtt
pip install pymongo
pip install websockets
#influxDB client
pip install influxdb
sudo apt-get install Mosquitto
config file: /etc/mosquitto/mosquitto.conf
/usr/share/doc/mosquitto/examples/mosquitto.conf.example
config should be placed in /etc/mosquitto/conf.d/
##mosquitto service sudo service mosquitto stop
##Test with command line ###Install sudo apt-get install mosquitto-clients ###Run in one window
mosquitto_sub -t 'test/topic' -v
in another window
mosquitto_pub -t 'test/topic' -m 'hello world5' -h 10.0.0.2