- Posted on
Mon Feb 24, 2014 10:33 am
-
dstrickler
offline
-
- Posts: 340
- Joined: Oct 08, 2010
- Location: Boston, MA
In my trials and tribulations of sensing an iPhone's presence on the network, I've found a little secret. Check if port 62078 is responding. It won't 100% of the time, but check it twice, once a minute apart. The iPhone will respond more reliably than with a ping.
I use this to control "presence" in my house, and I've been very happy with it. But remember to check it twice! I have my polls set to once a minute, 24x7, and if I don't see the phone in 2 polls, I consider it not on the network, and within 5 polls, I tell Indigo "Dave is not on the network". I use 5 polls just make sure.
And no, the 24x7 polling doesn't drain the battery noticeably, although I'm sure it does a little on my iPhone 5 running iOS 7
Dave