Summary

In this chapter, we combined many cloud-based services that allowed us to easily publish data collected from sensors and visualize it in a web-based dashboard. We realized that there is always a Python API, and therefore, it is easy to write Python code that interacts with popular cloud-based services.

We worked with the MQTT protocol and its publish/subscribe model to process commands in our board and indicate when the commands were successfully processed through messages. First, we worked with the PubNub cloud that works with the MQTT protocol under the hoods. Then, we developed the same example with Mosquitto and Eclipse Paho. Now, we know how we can write applications that can establish bi-directional communications with our IoT devices. ...

Get Internet of Things 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.