Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

scheme activate troubles #82

Open
crazyministr opened this issue Oct 1, 2015 · 2 comments
Open

scheme activate troubles #82

crazyministr opened this issue Oct 1, 2015 · 2 comments

Comments

@crazyministr
Copy link

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.

@rockymeza
Copy link
Owner

Hi,

What is your operating system?

@rockymeza
Copy link
Owner

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())

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants