Skip to main content

MQTT ASGI Protocol Server

Project description

mqttasgi - MQTT ASGI Protocol Server

mqttasgi is an ASGI protocol server that implements an interface for MQTT.

Usage

mqttasgi -H localhost -p 1883 my_application.asgi:application

In your routing

application = ProtocolTypeRouter({
  'websocket': AllowedHostsOriginValidator(URLRouter([
      url('.*', WebsocketConsumer)
  ])),
  'mqtt': MqttConsumer,
  ....
})

Your consumer should inherit from MqttConsumer in mqttasgi.consumers. It implements helper functions such as publish and subscribe.

Project details


Download files

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

Source Distribution

mqttasgi-0.1.1.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

mqttasgi-0.1.1-py2-none-any.whl (6.7 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page