Skip to content Skip to sidebar Skip to footer

Django App Ssl Socket Connection To Firmware

I have a Django app created using Django rest framework. Below is the configuration that my setup is using: Django 1.9 mongoDB as backend gunicorn nginx Now I have created an API t

Solution 1:

It looks like you require socket library provided with python. But using this is not recommended since you will have to take care of lot of low level networking stuff and your program will get complicated.

You should instead keep your REST api and run your nginx server on https. You can then write the code on firmware to send and receive data from the server using https.

If for some reason you don't want to use https then you should use requests library to write your server.

Post a Comment for "Django App Ssl Socket Connection To Firmware"