Simple MQTT client in Python

MQTT is a lightweight protocol that’s ideal for the Internet of Things. MQTT is based on the publish-subscribe model. This is quite different from the typical network protocol models where a connection is established, after which the client requests the server for information directly, and the server sends back information to the client’s IP address…