3 unstable releases

0.2.1 Jan 25, 2021
0.2.0 Jan 25, 2021
0.1.0 Jan 25, 2021

#2 in #hotspots

Download history 110/week @ 2024-03-24 214/week @ 2024-03-31 34/week @ 2024-04-07 147/week @ 2024-04-14 116/week @ 2024-04-21 113/week @ 2024-04-28 55/week @ 2024-05-05 107/week @ 2024-05-12 78/week @ 2024-05-19 46/week @ 2024-05-26 53/week @ 2024-06-02 57/week @ 2024-06-09 64/week @ 2024-06-16 61/week @ 2024-06-23 50/week @ 2024-06-30 41/week @ 2024-07-07

221 downloads per month
Used in 2 crates

Apache-2.0

20KB
396 lines

tokio-wifiscanner

The project is a simple tokio wrapper around wifiscanner library.

Usage

This crate is on crates.io and can be used by adding tokio-wifiscanner to the dependencies in your project's Cargo.toml.

[dependencies]
tokio-wifiscanner = "0.2.*"

and this to your crate root:

extern crate tokio_wifiscanner;

Example

#[tokio::main(flavor = "current_thread")]
async fn main() {
    let networks = tokio_wifiscanner::scan().await.expect("Cannot scan network");
    for network in networks {
        println!(
            "{} {:15} {:10} {:4} {}",
            network.mac, network.ssid, network.channel, network.signal_level, network.security
        );
    }
}

Alternatively if you've cloned the Git repo, you can run the above example using: cargo run --example scan.


lib.rs:

A crate to list WiFi hotspots in your area.

As of v0.5.x now supports macOS, Linux and Windows. 🎉

Usage

This crate is on crates.io and can be used by adding tokio-wifiscanner to the dependencies in your project's Cargo.toml.

[dependencies]
tokio-wifiscanner = "0.2.*"

and this to your crate root:

extern crate tokio_wifiscanner;

Example

#[tokio::main(flavor = "current_thread")]
async fn main() {
   let networks = tokio_wifiscanner::scan().await.expect("Cannot scan network");
   for network in networks {
       println!(
           "{} {:15} {:10} {:4} {}",
           network.mac, network.ssid, network.channel, network.signal_level, network.security
       );
   }
}

Alternatively if you've cloned the the Git repo, you can run the above examples using: cargo run --example scan.

Dependencies

~5–17MB
~171K SLoC