android - How to find all the esp8266 connected to a router -
hi want connect multiple esp8266 devices router , create mobile app can find devices , send messages them using udp. plan let esp devices listen port , app send message on port, esp respond , app store ip.
is there better way that? friend of mine told me approach fail if routers's gateway changed. true?
i calling wifi.begin(ssid, password); connect wifi without doing changes wifi.conf().
i using arduino sdk.
one way check mac addresses on network. first 6 digits unique code company made wifi dongle.
this assuming not have other devices on network using same dongle , aren't you're trying search for.
you can find mac addresses on network performing arp request on each ip.
but devices have on same subnet.
if devices remote, go original plan, friend correct if gateway changes require little more robust. use dynamic dns service along domain name. dynamic dns update dns records in real time if gateway address changes.
Comments
Post a Comment