| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
# _ ___ ___ _ ___ ___ ___ ___ ___ ___ ___ _____ # /_\ | _ | __| /_\ / _ \| __| | __| __| __| __/ __|_ _| # / _ \| | _| / _ \ | (_) | _| | _|| _|| _|| _| (__ | | # /_/ \_|_|_|___/_/ \_\ \___/|_| |___|_| |_| |___\___| |_| # # I N T E L L I G E N T O B J E C T S W O R K S H O P #
##Hardware
####Led Setup
##Software ###Installating MQTT on OSX
pip install paho-mqtt
virtualenv paho-mqtt
source paho-mqtt/bin/activate brew install mosquitto
mosquitto_sub -h xx.xx.xxx.xxx -t topic
###Installing MQTT on Raspberry Pi
#####Do a bunch of commands.
wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key sudo apt-key add mosquitto-repo.gpg.key cd /etc/apt/sources.list.d/ sudo wget http://repo.mosquitto.org/debian/mosquitto-wheezy.list sudo apt-cache search mosquitto sudo apt-get install mosquitto python-mosquitto mosquitto-clients
#####Open port 1883
sudo iptables -A INPUT -p tcp -m tcp --dport 1883 -j ACCEPT
sudo apt-get install python-pip sudo pip install paho-mqtt
##Messages Examples #####Testing via command line
mosquitto_sub -d -t hello/world mosquitto_pub -d -t hello/world -m "Hello World" mosquitto_sub -h YOUR_HOST_IP_ADDRESS -d -t hello/world
mosquitto_sub -d -t topic
This one subscribes to the channel 'AoE' and publishes the message "Testing 123"
mosquitto_pub -h xx.xx.xxx.xxx -t AoE -m "Testing 123"
This one subscribes to the channel 'NewLab' and publishes the message "Hi Bruno"
mosquitto_pub -h xx.xx.xxx.xxx -t topic -m "Hi Bruno"
| Back | FazBrowse Home | New Git URL |