In this tutorial we’ll learn how to install Mosquitto on a Raspberry Pi. The goal is to use the Raspberry Pi as a MQTT broker in an IoT application. We’ll install Mosquitto, configure it and test it to make sure everything was correctly set up.
As we’ve seen in the tutorial about creating a distance sensor for your garage, it’s important to have a convenient method to debug the systems we’re developing. This allows us to quickly access the values of variables, and lets us know the state of our program. In the distance sensor tutorial we used a LCD display, which is very user-friendly, but not the most efficient as it uses many pins of the PIC, and a lot of space on the board. In this tutorial, we’ll learn how to use one of the easiest and most lightweight embedded communication interface, the UART interface.