user23271: I am working on wifi based LED project which involves various ESP to be connected to router. Basically grouping of ESP has to be done. The android app sends HTTP command to IP address which is given by router to the ESPs, the IP are not static and expires after some time. Now my question is how can mobile app can get the IP of all the ESP connected to router?
Does using HTTP protocol complicates the process? Shall I switch to multicast UDP? or use UnPn Protocol for scanning (Sounds complicated though).
Please help!

user25643: The best protocol for these kind of applications is MQTT.
Read more here

user23271: You can go with UDP Multicast.

user28583: Yes, Multicast is the only option.

23271: <p>I am working on wifi based LED project which involves various ESP to be connected to router. Basically grouping of ESP has to be done. The android app sends HTTP command to IP address which is given by router to the ESPs, the IP are not static and expires after some time. Now my question is how can mobile app can get the IP of all the ESP connected to router?</p>

<p>Does using HTTP protocol complicates the process? Shall I switch to multicast UDP? or use UnPn Protocol for scanning (Sounds complicated though).</p>

<p>Please help!</p>
 25643: <p>The best protocol for these kind of applications is MQTT.</p>

<p>Read more <a href="http://mqtt.org/" rel="nofollow noreferrer">here</a></p>
 23271: <p>You can go with UDP Multicast.</p>
 28583: <p>Yes, Multicast is the only option.</p>
