Next week I will be heading to O’Reilly Fluent out in San Francisco where I will be giving a session on MQTT and IoT as well as manning the IBM booth in the expo hall. Given the session is not a sponsored session, the content presented in the session will be mostly vendor agnostic, but obviously all the concepts presented will apply directly to how you use MQTT as part of the IBM Internet of Things Foundation.

Since I only have 30 minutes total for the session I wanted to build a demo that uses MQTT that was quick and easy. I turned to my favorite IoT device, the TI SensorTag. I love the SensorTag because it is cheap, only $30, and it packs so many sensors into a tiny package. TI recently released a new version of the SensorTag which has even more sensors, so if you don’t have the latest version I suggest you check it out, again its only $30. In addition to the new version of the SensorTag there is also a new version of the iOS and Android application which has some nice integration with the IBM IoT Foundation out of the box! You can read more about the new app on developerWorks.

For my demo at Fluent I decided to take advantage of one of the new sensors on the SensorTag, the luxometer. A luxometer is a sensor which measures the amount of light exposed to the sensor. I wanted to visualize the luxometer data in a creative way and I eventually came across this blog post which showed how to build and HTML 5 luxometer in the browser. Adapting the code provided in the blog post I was able to come up with a demo that used the HTML 5 luxometer to display in real time the data coming from the luxometer on the SensorTag using the power of MQTT! Below is a short video on how it all works. If you happen to be at Fluent please stop by my session or the IBM booth to check out the demo yourself!


Ryan J Baxter

Husband, Father, Software Engineer