Comments (2)
Hi all, let me provide some logs
Two subscribers with the same qos level:
INFO [mqttasgi][connection][connected] - Connected to 172.31.17.149:1883
DEBUG [mqttasgi][app][subscribe] - Subscription to networks/+/devices/gateways/+/properties/+:2
DEBUG [mqttasgi][app][subscribe] - Subscription to networks/+/devices/gateways/+/properties/+:2 has 2 listeners
Two subscribers with different qos level:
INFO [mqttasgi][connection][connected] - Connected to 172.31.17.149:1883
DEBUG [mqttasgi][app][subscribe] - Subscription to networks/+/devices/gateways/+/properties/+:1
DEBUG [mqttasgi][app][subscribe] - Subscription to networks/+/devices/gateways/+/properties/+ must be updated to QOS: 2
ERROR [mqttasgi][app][send] - Exception of diagnosticsConsumer-app-0
Traceback (most recent call last):
File "server.py", line 296, in _application_send
await action_map[msg['type']](app_id, msg)
File "server.py", line 185, in mqtt_subscribe
status = (qos, status[1])
KeyError: 1
from mqttasgi.
With the fix the subscription with higher qos succeeds:
INFO [mqttasgi][connection][connected] - Connected to 172.31.17.149:1883
DEBUG [mqttasgi][app][subscribe] - Subscription to networks/+/devices/gateways/+/properties/+:1
DEBUG [mqttasgi][app][subscribe] - Subscription to networks/+/devices/gateways/+/properties/+ must be updated to QOS: 2
from mqttasgi.
Related Issues (19)
- ImportError: cannot import name 'main' from 'mqttasgi.cli' HOT 2
- Support for Django and Channels 3.x
- Support for windows
- TypeError: __call__() missing 2 required positional arguments: 'receive' and 'send' HOT 5
- MQTTAsgi queues deleted on unit / script reset HOT 4
- Issue when trying to connect to mqtt with user and password.
- Clarify Worker API usage HOT 3
- Error when importing models in consumers.py - Apps aren't loaded yet HOT 1
- Cant run mqttasgi on docker container HOT 6
- MqttConsumers not given a chance to shutdown on SIGINT and SIGTERM
- Contacto
- MQTT lost subscription when connect_max_retries is set to 0 HOT 4
- Issues specifying daphne arguments HOT 1
- problem with running app with mqttasgi HOT 2
- [Question] Channels 4.x support ? HOT 3
- CONNECTION_ERROR HOT 1
- Breaking change with paho-mqtt release 2.0 HOT 1
- MQTT Subscription Disappears
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqttasgi.