Skip to content

Latest commit

 

History

History
executable file
·
47 lines (40 loc) · 808 Bytes

README.md

File metadata and controls

executable file
·
47 lines (40 loc) · 808 Bytes

MQTT client

pip install paho-mqtt

Mongodb client

pip install pymongo

Websocket server

pip install websockets

#influxDB client

pip install influxdb

MQTT broquer

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