All Projects → edigiacomo → asgi-mqtt

edigiacomo / asgi-mqtt

Licence: GPL-2.0 License
Interface between MQTT and ASGI

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to asgi-mqtt

channels-asgi-mqtt
Interface between MQTT and ASGI and Channels 2.0 compatible
Stars: ✭ 36 (+5.88%)
Mutual labels:  mqtt, django-channels
asyncio-mqtt
Idomatic asyncio wrapper around paho-mqtt
Stars: ✭ 137 (+302.94%)
Mutual labels:  mqtt
roataway-web
Roataway web site
Stars: ✭ 15 (-55.88%)
Mutual labels:  mqtt
pioreactor
Hardware and software for accessible, extensible, and scalable bioreactors. Built on Raspberry Pi.
Stars: ✭ 28 (-17.65%)
Mutual labels:  mqtt
WeConnect-mqtt
MQTT Client that publishes data from Volkswagen WeConnect
Stars: ✭ 14 (-58.82%)
Mutual labels:  mqtt
AndrOBD-Plugin
AndrOBD plugin development project
Stars: ✭ 38 (+11.76%)
Mutual labels:  mqtt
ha-watermeter
Data provider for smartmeter watermeter.
Stars: ✭ 20 (-41.18%)
Mutual labels:  mqtt
django-channels-react-redux
No description or website provided.
Stars: ✭ 14 (-58.82%)
Mutual labels:  django-channels
as3MQTT
📢 Pure Action Script 3 that implements the MQTT (Message Queue Telemetry Transport) protocol, a lightweight protocol for publish/subscribe messaging.
Stars: ✭ 21 (-38.24%)
Mutual labels:  mqtt
mqttbeat
Elasticsearch beat to save messages received with the MQTT protocol.
Stars: ✭ 18 (-47.06%)
Mutual labels:  mqtt
metermon
Dockerized rtlamr wrapper that outputs formatted JSON messages over mqtt
Stars: ✭ 19 (-44.12%)
Mutual labels:  mqtt
dlibox
Home automation that does not depend on the internet
Stars: ✭ 26 (-23.53%)
Mutual labels:  mqtt
ESPecial
ESP32 automation with web interface and telegram bot
Stars: ✭ 77 (+126.47%)
Mutual labels:  mqtt
modbus4mqtt
Modbus TCP <-> MQTT glue. YAML configuration. Robust.
Stars: ✭ 21 (-38.24%)
Mutual labels:  mqtt
Farm-Data-Relay-System
A system that uses ESP-NOW, LoRa, and other protocols to transport sensor data in remote areas without relying on WiFi.
Stars: ✭ 97 (+185.29%)
Mutual labels:  mqtt
spring-boot-protocol
springboot功能扩充-netty动态协议,可以支持各种网络协议的动态切换(单端口支持多个网络协议).支持mmap,sendfile零拷贝,http请求批量聚合
Stars: ✭ 68 (+100%)
Mutual labels:  mqtt
micro-mqtt
A lightweight MQTT client with a complete feature set for embedded scenarios.
Stars: ✭ 13 (-61.76%)
Mutual labels:  mqtt
tradfri-mqtt
Mirrors Trådfri gateways endpoints into MQTT and send commands to the gateway from MQTT
Stars: ✭ 26 (-23.53%)
Mutual labels:  mqtt
emqx-rule-engine
EMQ X Rule Engine
Stars: ✭ 63 (+85.29%)
Mutual labels:  mqtt
meshquitto
A simple Arduino project, which aims to provide a gateway between a mesh network of ESP8266's and a remote MQTT broker.
Stars: ✭ 37 (+8.82%)
Mutual labels:  mqtt

asgimqtt

asgimqtt is a simple MQTT interface for ASGI.

Installation

Install with pip:

pip install asgimqtt

Usage

Connect the server to a running MQTT broker:

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

In your Django code:

# routing.py
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)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].