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

fix: get network gateway SSID and signal strength using Windows APIs #125

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

SebasF1349
Copy link
Contributor

Zebar was using netsh to get wifi data and then parse it using regex. That lead to some issues (#96) as netsh translates the data to the os language.

I have rewritten the whole wifi_hotspot.rs file to use the Windows API instead. This should be less error prone, but I had to use some unsafe functions and pointers that needed to be freed. After handling those I don't see any memory leaks in my tests, but it may be worth testing that again. Also, it should work with any Windows version that Tauri works on, but I can only test in Windows 10.

Let me know of any question or suggestion.

Closes #96

Side note: I have removed the Win32_System_Threading feature as it doesn't seem to be used anywhere else.

@SebasF1349
Copy link
Contributor Author

Fixed requested changes.

@lars-berger lars-berger changed the title fix: get network data using winapi fix: get network gateway SSID and signal strength using Windows APIs Oct 14, 2024
@lars-berger lars-berger merged commit 097e3c2 into glzr-io:main Oct 14, 2024
1 check passed
@lars-berger
Copy link
Member

Perfect!! Thanks a bunch 🙌

Copy link

🎉 This PR is included in version 2.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Bug] netsh's output is localized and causes missing SSID & signal strength on non-English systems
2 participants