Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Interface between MQTT broker and ASGI

Project Description

asgimqtt is a simple MQTT interface for ASGI.


Connect the server to a running MQTT broker:

asgimqtt --host localhost --port 1883 django_project.asgi:channel_layer

In your Django code:

channels_routing = [
    route("mqtt.sub", mqtt_consumer),

Note: you can only receive messages published in MQTT broker (channel mqtt.sub).

The keys are:

  • host: host of the MQTT broker
  • port: port of the MQTT broker
  • topic: topic of the MQTT message
  • payload: payload of the MQTT message
  • qos: quality of service of the MQTT message (0, 1 or 2)

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.3 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 Nov 11, 2017
(3.3 kB) Copy SHA256 Hash SHA256
Source None Nov 11, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate