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

SimpleWifi fails to detect connection to unsecured WifiHotspot #21

Open
anikiforov opened this issue Oct 14, 2016 · 0 comments
Open

SimpleWifi fails to detect connection to unsecured WifiHotspot #21

anikiforov opened this issue Oct 14, 2016 · 0 comments

Comments

@anikiforov
Copy link

First of all, thanks for the library!

It works well for me, except for the case when I connect to the hotspot created on my Android device with security set to None. In this case SimpleWifi fails to find connected AccessPoint - IsConnected property on the corresponding AccessPoint instance incorrectly returns 'false'.

I wonder if AccessPoint.IsConnected property implementation should be changed so that it tries to match AccessPoint._interface.CurrentConnection.Name to SSID (accessible via AccessPoint.Name) whenever AccessPoint._network.profileName is an empty string?

In my case that would solve the issue. I can submit pull request if you think the fix makes sense.

Here is a screenshot from VS debugging session, to clarify the issue:
simplewifi_cannot_detect_ap_connection

Thanks!

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