Summary
We covered a lot of content about MQTT in this chapter. This will help you a lot in the upcoming chapters, especially the two projects that we will be creating since you will be aware of how devices are communicating with the Raspberry Pi’s MQTT broker.
In this chapter, we started by introducing the communication protocol, and we explored the main components or building blocks of MQTT. Next, we understood how the protocol works and covered some important control packets, which are the building blocks of MQTT.
Finally, we explored a practical scenario and understood how the actual communication happens under the hood by using a packet capturing software called Wireshark on our Raspberry Pi.
In the next chapter, we will cover some popular development boards manufactured by Espressif – the ESP8266-based NodeMCU development board and the ESP32 development board. We will demonstrate how to use these boards as an MQTT client and communicate with our Pi....