Thanks for your replies. Let me describe a little better what I'm trying to do.
I built a simple data logger, that I want to be smart enough to turn only attempt to transfer data to my server when it's "home". If I'm out driving in my car with it, I don't want it to be trying constantly to get to it's server. Heck, I could even turn wifi off at that point and conserve battery.
Does this make sense?