WiFi-rs

A rust crate to interface and manage Wi-Fi networks.

How it works

Currently supported network types

Note that only open, WEP and WPA-PSK networks are supported at the moment.

It is also supposed that IP configuration is obtained via DHCP.

Supported Operating Systems

Example

```RUST extern crate wifirs; use wifirs::prelude::*; use wifi_rs::{WiFi, Config};

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

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

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

Ok(())

} ```

Features

Windows

Linux

OsX

General

Contribution

Any feature you feel is missing, why not send in a Pull Request, and let's help make this project better. Or are there any bugs, kindly create an issue, so we could work towards fixing it.

Support

Love this project, please feel free to buy me a coffee below:
Buy Me A Coffee