-
Notifications
You must be signed in to change notification settings - Fork 0
Home
SeventhSERGIO edited this page Jun 28, 2018
·
31 revisions
git clone https://github.com/SeventhSERGIO/intel_edison.git
https://ricveal.com/blog/primeros-pasos-mqtt/
opkg install coreutils
opkg remove paho-mqtt-dev
opkg remove paho-mqtt --force-depends
git clone https://github.com/eclipse/paho.mqtt.c.git
cd paho.mqtt.c
export prefix=/usr; make install
Subscribe
gcc -L/home/root/paho.mqtt.c/build/output mqtt_asynchronous_sub.c -lpaho-mqtt3c -o mqtt_asynchronous_sub
Publish
gcc -L/home/root/paho.mqtt.c/build/output mqtt_asynchronous_pub.c -lpaho-mqtt3c -o mqtt_asynchronous_pub
Publish A0 with mraa
pip install paho-mqtt
Subscribe
python sub.py
Publish
python mqtt_pub.py
Subscribe and toggle a relay
python rele_mqtt.py
Subscribe - LCD