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

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
asgimqtt-0.2.0-py2.py3-none-any.whl (5.3 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Nov 11, 2017
asgimqtt-0.2.0.tar.gz (3.3 kB) Copy SHA256 Checksum SHA256 Source Nov 11, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting