Friday, October 14, 2016

End to End Publish/Subscribe from Laptop to Arduino over MQTT

A small demo of how I was able to communicate from my laptop using a python code sending commands to the Arduino Uno using a Cloud broker called cloudmqtt.com and turn on and off a LED.

https://github.com/kiranshashiny/python-cloudmqtt-example

This uses the Paho MQTT library on the laptop to publish commands like ON and OFF.

The code to run on the laptop as well as the Arduino sketch is in the repo.

No comments:

Post a Comment