Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiFiControl().start_connecting() not working. The thread just executes. #16

Open
hash3liZer opened this issue Jul 10, 2018 · 0 comments

Comments

@hash3liZer
Copy link

Hello, I am trying to use this API to connect to a network. As of docs, i could use start_connecting() method to connect to the required wireless network. But control is just getting in and out. Here's what i am trying to do:

>>> cont = wificontrol.WiFiControl(interface="wlan1")
>>> cont.scan()
>>> cont.get_scan_results()
       [{'security': 'wpapsk', 'ssid': 'unknown', 'mac address': '34:bf:90:4a:bb:57'}]
>>> cont.add_network({'security': 'wpapsk', 'ssid': 'unknown', 'password': '786 5555', 'identity':''})
>>> cont.start_connecting({'ssid':'unknown'}, callback=callBack)

After the last statement, nothing happens. The first argument from callBack gives False as well as the interface doesn't get connected to the network. However, the configuration seems all right.

Currently, i am stuck at this place. Hope you got it.

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

No branches or pull requests

1 participant