Koed00 / django-q

A multiprocessing distributed task queue for Django
https://django-q.readthedocs.org
MIT License
1.83k stars 290 forks source link

manage mqtt IoT #174

Open SummerSeaSun opened 8 years ago

SummerSeaSun commented 8 years ago

I've just discovered mqtt protocol (http://mqtt.org/) and looking to manage it from django. Looking at docs it appear that use a subscriber/publisher schema, so a broker like mosquitto is needed.

Creating a Custom Broker with a paho-client in django-q would make a chance to access mosquitto broker as a subscriber?

Just wondering if anyone already has done this, am I on the right way or totally wrong?

Koed00 commented 8 years ago

Someone, or me, would have to write a paho-mqtt broker. I looked at https://github.com/eclipse/paho.mqtt.python and it seems to be compatible. The challenge would be to write and setup the tests for it. I'll definitely consider it if my time permits it.

SummerSeaSun commented 8 years ago

That would be great! I'm available for testing. To understand how this works, I'm triyng emqtt.io as broker this one already support websocket allowing to connect as client also from the paho JavaScript Client.