How to detect WiFi Connection with Python Script



  • Hello, I'm newbie.
    I want detect WiFi Connection if Omega not connected or disconnected WiFi create a AP.
    How to do this?



  • I use 2 methods:

    1. ping my webserver
    2. run ifconfig to check for existence of apclio and local IP address

    from result of both I could tell if I needed to call wifimanager to restart. Since b17* it's been stable enough to reconnect itself so I no longer use this and I cache data until I am able to connect again using urllib2.


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.