This article introduces how to use MQTT in the Flask project and implements the connection and other functions between the MQTT client and the MQTT broker.
This article mainly introduces how to connect, subscribe, unsubscribe, and send and receive messages between MQTT clients and brokers in the Django project.