I'm looking for a way to detect if I'm actually connected to the WiFi, I don't care if I have an active connection to anyone, I just need to be sure someone can connect to me.
I'm using this to drive a little RC robot, so I want the robot to stop it's motors if it has lost WiFi signal.