I work on the system for the house, I need to recognize that the phone (iPhone) has entered the local network (connected) and also needs to know that it has left the local network (disconnected from WiFi).
I tried things like arp or nmap , but they are not suitable, because iOS can be disconnected from the network to save battery. Arp and nmap lose their mouth if it is in a dream. However, the router always knows for sure that the device is connected or disconnected, which means that you can somehow ... The question is how?
-r10, or even-r20, trying to "uncover" them. Everything seemed to work, but bad luck ... 10 minutes ago I lost the device again ... - Jacob Ling