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

lib retruns "invalid password" irrespective of what i do #25

Open
opeolluwa opened this issue May 13, 2024 · 0 comments
Open

lib retruns "invalid password" irrespective of what i do #25

opeolluwa opened this issue May 13, 2024 · 0 comments

Comments

@opeolluwa
Copy link

Hello there!

I was hoping to check the stability of this package, the application returns "Invalid password" irrespective of what I do, and this includes running the examples.

My environment

Rust version: rustc 1.77.1
OS type: macOS ( Ventura Version 13.6.4)

The Implementation

use wifi_rs::{prelude::*, WiFi};

fn main() -> Result<(), WifiConnectionError> {
    let config = Some(Config {
        interface: Some("wlo1"),
    });

    let mut wifi = WiFi::new(config);

    match wifi.connect("snowflakes", "@opeolluwa") {
        Ok(result) => println!(
            "{}",
            if result == true {
                "Connection Successful."
            } else {
                "Invalid password."
            }
        ),
        Err(err) => println!("The following error occurred: {:?}", err),
    }

    Ok(())
}
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