1👍
Instead of hand coding sockets, I would suggest using HTTP with BASIC authentication to communicate between the device and the web server. You can uniquely assign an id/pwd to each device, and BASIC authentication is well supported by all web servers and client side libraries.
There are some security concerns with BASIC authentication even if you use HTTPS, but it maybe acceptable in your particular case here.
- [Answer]-Django rest framework, how to restrict the list of data a user can see?
- [Answer]-HTML Nav isn't working as expected
- [Answer]-Invalid response of JSON data from Django QuerySet
- [Answer]-ObtaI n url of page which fired ajax request in ajax view
Source:stackexchange.com