Summary

In this chapter, we combined everything we learned in the previous chapters to build a web-based dashboard with freeboard that displayed data in gauges every second. We built the solution from scratch. First, we analyzed the requirements and we understood how the IoT board embedded in a surfboard was going to provide us with the necessary data.

We coded a surfboard sensor emulator to work in the same way that the IoT board was working. Then, we configured the PubNub MQTT interface and we coded a surfboard monitor that collected data from the surfboard sensor emulator and published the data to the cloud-based PubNub MQTT interface. We coded a Python program that worked with two MQTT clients with two threaded loop interfaces.

Finally, ...

Get Hands-On MQTT Programming with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.