gmqtt: Python async MQTT client implementation
gmqtt gmqtt: Python async MQTT client implementation. Installation The latest stable version is available in the Python Package Index (PyPi) and can be installed using pip3 install gmqtt Usage Getting Started Here is a very simple example that subscribes to the broker TOPIC topic and prints out the resulting messages: import asyncio import os import signal import time from gmqtt import Client as MQTTClient # gmqtt also compatibility with uvloop import uvloop asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) STOP = asyncio.Event() def on_connect(client, flags, rc, […]
Read more