Changes to the code structure
Hello,
I am working on a project which requires wifi connectivity Instead of creating my own code for it I decide to use wifi-rs and fill in any missing functionality.
I would like to know if you have no problem with a few changes I would like to make PRs for:
- add a known ssids variable inside the platform struct so that when we want to connect we can do so without password since right now we can only connect via ssid and pass
- add related code to check if an ssid is preset, I made a PR with network info, we can include in it also if that ssid is cached or not so that we can connect without needing a pass
- if interface is none instead of using a default value (on linux wlan0) just make the connect disconnect functions instead pass params without any specific interface and let the os handle it
hey, thanks for reaching out. i like the suggestions.
- for 1, how about exposing a separate function to connect via known SSID. thereby leaving the caller with the option to fallback to user/pass if the former fails? this should make things a lot more flexible for varying use cases.
- for 2 & 3, yes, this sounds like a solid addition.
thanks for the suggestions. btw, i'd like to eventually move away from running commands to calling the underlying platform apis, so if you've got some bandwidth for that, feel free to pick it up. happy to provide guidance on how to accomplish this.
Okay would love to, especially for using something other than commands. I will start soon once I finished the main tests for the project and will see how things go.