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

Unable to connect to open networks... #114

Open
iPzard opened this issue Aug 27, 2017 · 1 comment
Open

Unable to connect to open networks... #114

iPzard opened this issue Aug 27, 2017 · 1 comment

Comments

@iPzard
Copy link

iPzard commented Aug 27, 2017

It seems like "" is not accepted in the event of no password. I've tried the following w/o success:

var config = WifiWizard.formatWifiConfig("xfinitywifi", "");
WifiWizard.addNetwork(config, function() {
WifiWizard.connectNetwork("xfinitywifi");
});

Also, how would I declare a wildcard for the network name? I'd like my app to connect to any open network available if possible.

@Steve-3d
Copy link

You can leave out the password completely - internally the WifiWizard will handle this correctly using "NONE" as authentication method. Passing "NONE" and an empty password into formatWifiConfig is not supported, though.

To pick an existing SSID, you need to start a scan and then retrieve the results using getScanResults.
The returned list can then be filtered using a regular expression and a matching SSID can be chosen.

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

2 participants