FastApi-MQTT¶
Extension¶
MQTT is a lightweight publish/subscribe messaging protocol designed for M2M (machine to machine) telemetry in low bandwidth environments. Fastapi-mqtt is the client for working with MQTT.
For more information about MQTT, please refer to here: MQTT
Fatapi-mqtt wraps around gmqtt module. Gmqtt Python async client for MQTT client implementation. The module has the support of MQTT version 5.0 protocol
Badges¶
Available Features¶
MQTT specification avaliable with help decarator methods using callbacks:
on_connect()
on_disconnect()
on_subscribe()
on_message()
MQTT Settings available with pydantic
class:
Authentication
to broker with credentialsunsubscribe
certain topics andpublish
to certain topics