Adafruit_MQTT_Library/examples/mqtt_arbitrary_buffer
Stuart Feichtinger b002526690 Tweak 2016-01-31 19:03:23 -06:00
..
python_subscriber Clean up 2016-01-31 18:57:31 -06:00
README.md Tweak 2016-01-31 19:03:23 -06:00
mqtt_arbitrary_buffer.ino Tweaks 2016-01-31 18:43:14 -06:00

README.md

Adafruit MQTT Library example with support

This example illustrates Publish an arbitrary data packet using the Adafruit MQTT library to an MQTT feed which can then be parsed by the included python subscriber client.

Installing and running Mosquitto

####On a Raspberry Pi:

sudo apt-get install mosquitto

####On a Mac:

brew install mosquitto

Using Example Python Subscriber:

Install dependents if haven't already

cd ../Adafruit_MQTT_Library/examples/mqtt_arbitrary_buffer/python_subscriber
pip install -r requirements.txt

Run python script with default values

python subscriber.py

Use help to see a list of modifiable options

python subscriber.py -h