rockymeza/wifi

scheme activate troubles

Opened this issue · 2 comments

Hi, rockymeza
I written on the http://stackoverflow.com/ about some problem that I can't connect to wifi using this lib: http://stackoverflow.com/questions/32783466/problems-with-connection-to-wifi-from-debian-using-python-wifi
I tried a lot of time to do it, but ineffectually.

Hi,

What is your operating system?

Scheme#activate just calls out the ifup. If you want to see what it's doing, you can just run the background command yourself:

https://github.com/rockymeza/wifi/blob/master/wifi/scheme.py#L167-L176

You can find out what wifi calls in the background with this:

scheme = Scheme.for_cell("wlan0", name, cell, password)
print '/sbin/idown wlan0'
print '/sbin/ifup' + ' '.join(scheme.as_args())