Hi Sabuhi,

I wrote something similar a couple years ago, not involving Arduinos but using 
MQTT anyway.

The selected approach consisted in having a MQTT listener, based on paho-mqtt 
lib (https://pypi.org/project/paho-mqtt/), acting as a gateway to a REST API on 
the Django side, based on Django REST Framework. It worked pretty well and I 
have no special remembering of difficulties or trouble.

Hope this helps.

Eric

________________________________
From: django-users@googlegroups.com <django-users@googlegroups.com> on behalf 
of Sabuhi Shukurov <sabuhi.shuku...@gmail.com>
Sent: Monday, May 20, 2019 15:01
To: Django users
Subject: Django-MQTT

Hello Python Community!
I would like to to create a connection between the device(Arduino) and web 
server by using the MQTT protocol. As tools, we will use RabbitMQ, Django, and  
Django-channels for web socket. The device should communicate to the server by 
means of message broker in order to pass data to interface and should be 
possible to get back subscription by in case of any change on the interface.
I know them theoretically and cannot apply practically to Django.

--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
django-users+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/53b73716-5aeb-4b86-9240-5af2a0be4275%40googlegroups.com<https://groups.google.com/d/msgid/django-users/53b73716-5aeb-4b86-9240-5af2a0be4275%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/HE1P193MB025000E7F0313B4087BB6F4B8C070%40HE1P193MB0250.EURP193.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.

Reply via email to