Improving on our IoT button with the Raspberry Pi Pico W
As our IoT alarm system becomes more complex, the limitations of the public MQTTHQ server become increasingly evident. Given that it’s a public platform, its reliability can be inconsistent. Transitioning to a reliable, private server would significantly enhance our development process and system dependability.
In this section, we will build an improved IoT button using a Raspberry Pi Pico W, a buzzer, an arcade-style pushbutton, a switch, an LED, and an OLED screen (Figure 7.11). We’re enhancing our project’s reliability and efficiency by moving to a private MQTT server using CloudAMQP.
Figure 7.11 – Enhanced IoT button
While using a private server is optional, it stands as a significant upgrade over continuing with the public MQTTHQ server. The code in this section will still work with the public MQTTHQ server (with configuration changes); however, by opting for CloudAMQP...