Django-MQTT

693 views
Skip to first unread message

Sabuhi Shukurov

unread,
May 20, 2019, 1:31:59 PM5/20/19
to Django users
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.

PASCUAL Eric

unread,
May 21, 2019, 8:20:21 AM5/21/19
to Django users
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...@googlegroups.com <django...@googlegroups.com> on behalf of Sabuhi Shukurov <sabuhi....@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...@googlegroups.com.
To post to this group, send email to django...@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.
For more options, visit https://groups.google.com/d/optout.

Sabuhi Shukurov

unread,
Jun 24, 2019, 6:06:14 PM6/24/19
to Django users
Hello Eric!

Thanks for your reply, sorry for late response I was busy with another project.
I am doing the same job currently, I should transfer datas real-time using websockets (django channels) involves here. Do you have any suggestion for this? subscibed topic should print datas all in real time.

On Tuesday, 21 May 2019 12:20:21 UTC+4, PASCUAL Eric wrote:
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...@googlegroups.com <django...@googlegroups.com> on behalf of Sabuhi Shukurov <sabuhi....@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...@googlegroups.com.
To post to this group, send email to djang...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages