This article introduces how to use Python to write a simple MQTT client on Raspberry Pi to implement the connection, subscribe, messaging, etc.
We will use Raspberry Pi + (EMQX Edge & Kuiper) to build a private smart home hub for implementing the edge computing of device data and reducing leaking the home data.