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
Release history Release notifications | RSS feed
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)