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

Not getting interfaces #36

Open
pierreSLA opened this issue Jan 23, 2018 · 0 comments
Open

Not getting interfaces #36

pierreSLA opened this issue Jan 23, 2018 · 0 comments

Comments

@pierreSLA
Copy link

Hi.
I'm polling the wifi status every 5s. After a while i don't get any interfaces.
Example:
private IEnumerable<WifiAdapterType> GetActiveWlanInterfacesAndSensors(string filter = "") { var client = new SimpleWifi.Win32.WlanClient(); if (client.Interfaces == null) yield break; foreach (var iface in client.Interfaces.Where(x => !InvalidStates.Contains(x.InterfaceState))) {
I come always into the break.
If i try the same in a new process at the same time (breaking in the debug), it works.

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