-->
Page 1 of 2

Need Some Suggestions

PostPosted: Thu Nov 17, 2016 4:04 pm
by anujmattoo
I am working on a commercial design which is basically a WiFi based LED Light. I have ESP8266 WiFi module as my main controller. I have used simple HTTP Protocol to communicate the Light With Application. It Works smooth without any delay. The issue is, I want the group of 10-15 similar lights to glow or respond as one single light would do. I know this is the part of mobile app, but App can't handle 10-15 lights, send commands to these many lights at once and any delay would defeat the purpose. I know, a central hub would solve the problem, creating mesh network with others, but that's too much for my budget. I have seen some of the lights with this feature and can handle upto 8-9 Lights in a group.

How can I solve my problem? Do I need to change the Protocol to Websockets or mDNS? (Coz they have small overheads as compare to HTTP). Or Switch to Multicast Routing (mDNS).?

Re: Need Some Suggestions

PostPosted: Thu Nov 17, 2016 4:15 pm
by martinayotte
Yes, plain TCP sockets would be more efficient than HTTP requests.
(BTW, mDNS has nothing to do with Multicast routing, it is multicast Domain Name System)

Re: Need Some Suggestions

PostPosted: Sat Nov 19, 2016 12:44 am
by anujmattoo
The HTTP uses the TCP protocol by the way? You are talking about UDP?

Re: Need Some Suggestions

PostPosted: Sat Nov 19, 2016 8:54 am
by martinayotte
Of course, I know that HTTP is also using TCP sockets ... :ugeek:
I've just said that Plain TCP sockets are much more efficient than HTTP Request.