Summary
In this chapter, we enhanced the code of our smart productivity cube, added MQTT to the mix, and learned how to make use of two popular MQTT smartphone apps.
First, we added a stopwatch functionality to our cube. Each side of the cube has its own timer and can be used as an individual stopwatch.
We then learned how to integrate the Arduino MQTT library into our code and how to periodically publish the current side the cube is resting on, as well as the resting time, for example Watching TV: 123 minutes.
Last but not least, we learned how to receive this information on our smartphones, using the third-party apps MQTT Dash and IoT OnOff. Once set up, they can be used to interact with your MQTT prototypes very easily.
I hope you don't ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access