Closed LiorKirsch closed 10 years ago
Hey @LiorKirsch,
I'm having a little trouble understanding what it is that you are doing, but have you seen the configuration
function in wifi/scheme.py
? I think it might do what you are thinking, but I'm not sure.
Are you trying to save a scheme before getting a Cell object? I suppose we could make that possible, but it would mean changing how wifi saves things completely--which is something I'm not completely opposed to. I was wondering if we could get rid of the whole saving a scheme requirement altogether.
:) I forgot I made a change to my code.
In my case I have a bunch of network names and password in advanced and I wanted to add the schemes even if I am not around the cell. So I created a dummy cell and sent it to a scheme
newCell = wifi.Cell.from_string( dummy_network_string)
scheme = wifi.Scheme.for_cell(network_interface, name, newCell, passkey=passkey_ascii)
This is exactly like you said I wanted to save a scheme without getting a Cell object.
I guess what I will do now is instead of the saving the scheme in advance is to store the (SSID,PASS) somewhere until I scan for the cell, only than I will add the scheme.
Many thanks, Lior
This is a good use case that is not at all easy with the code as it is now. I'm going to be very busy for the next couple of weeks, but I want to think about how to support this well. I'm going to keep thinking about this for a while, k?
-rocky
:) I forgot I made a change to my code.
In my case I have a bunch of network names and password in advanced and I wanted to add the schemes even if I am not around the cell. So I created a dummy cell and sent it to a scheme
newCell = wifi.Cell.from_string( dummy_network_string) scheme = wifi.Scheme.for_cell(network_interface, name, newCell, passkey=passkey_ascii)
This is exactly like you said I wanted to save a scheme without getting a Cell object.
I guess what I will do now is instead of the saving the scheme in advance is to store the (SSID,PASS) somewhere until I scan for the cell, only than I will add the scheme.
Many thanks, Lior
— Reply to this email directly or view it on GitHubhttps://github.com/rockymeza/wifi/issues/36#issuecomment-40864198 .
Let say I know the network name and the password in advance but I am not sure exactly what type of security it uses (WEP or WPA).
Is it possible to add such a scheme without providing the security type ? Than let the computer identify the security type when it scans and recognize the network.
Thanks Lior