I'm working on a project based on Intel Edison(Running Debian based Ubilinux). I need Edison to execute some code whenever my android phone(running CM11) connects to the same WiFi as the Edison. How can I detect the presence of my phone in Edison? I have tried the following.
1.Pinging: But the problem is that the router assigns different IP's every time because of DHCP.So,I will not be knowing the IP address of my phone. Is there any way to ping based on the device's MAC address?
2. I thought of broadcasting a special discovery packet from my phone, whenever it gets connected to the WiFi.But,I don't know where to start with this approach.