rockymeza / wifi

[unmaintained] WiFi tools for linux
http://pypi.python.org/pypi/wifi
BSD 2-Clause "Simplified" License
305 stars 151 forks source link

Can not verify if and which connected with. #79

Open Erf- opened 9 years ago

Erf- commented 9 years ago

Hi Rocky. It seems the app does not have any command or class method to return connection state. It would be nice to have it done with the eventual network ssid we are connected with. Do you want me to open a pull requestfor that? I have some ideas I could apply. PS: I have just noticed scheme.activate() issue has not been fixed yet.

rockymeza commented 9 years ago

Hey @Erf-,

Definitely want to have this functionality.

I have started some functionality like that in #44, if you want some inspiration. I'm not a huge fan of using iwgetid as I don't know which distros it's available on and I'm not super happy about adding more external dependencies.

Erf- commented 9 years ago

You are right. I suggest having the current scheme written in a config file. Then we could extend the config file to any running config data. I am looking for an existing file you would have already created that is used as I described. Do you have any suggestions about it ?