I am trying to connect to wifi through python and linux terminal but in both cases it is not working with me. For python, I am using this library https://wifi.readthedocs.org/en/latest/scanning.html scanning and saving the scheme is working fine but whenever I type this line of code scheme.activate() and I get no output Any ideas what is wrong with the library and if you have used it before or not?? I tried also to connect to WiFi networks using the CLI. I Googled and found that I should do these three statements 1- iwlist wlan0 scan // to scan the wireess networks 2- iwconfig wlan0 essid "Mywirelessnetwork" // to associate with the network 3- dhclient wla0 // To get an UP Whenever I do step 2 and then check iwconfig wlan0 I found that the wireless interface is not associated !! Any ideas ??? What I am trying to do is to have a library of a way to connect to the wifi preferably through a python function or a library and tested on raspberry PI because I am building some applications that require network connection. Continue reading...