Monthly Archives: March 2017

MQTT – Mosquitto for Raspberry Pi / Feather Huzzah / HIMS

I’ve primarily been using a mysql database for my home intelligent management system along with some system messages to communicate between Raspberry Pis. This has been a simple enough arrangement but to really get into more of the low power internet of things, I need a way to send messages amongst several hardware platforms. From looking online, MQTT, seems to be a decent IOT protocol that can accomplish my goals for the home intelligent management system.

This post will look at setting up the basics to support MQTT and get the basics working utilizing information available on the internet.

Here’s a great MQTT introduction and tutorial by BaldEngineer.

With the above introduction in mind. I plan on using a Raspberry Pi as the MQTT broker. I’ll likely migrate this function over to my CENTOS box running Apache/mysql but for now, I want to wait become more familiar with MQTT. In addition to using the Raspberry Pi as the broker, it looks like there’s quite a bit of instructions out there for using Mosquitto as the broker code so I’m going to start there.

Guide to installing Mosquitto as a MQTT broker for Raspberry Pi.

After following the guide above, I have confirmed the broker and client are installed and functioning on the Raspberry Pi. Next step, to get the client installed on my Feather Huzzah.

I had to get things setup to use the Arduino IDE for the Feather Huzzah. I followed the Adafruit guide found here.