2 releases

0.1.1 May 31, 2023
0.1.0 Mar 14, 2021

#15 in #wireless

Download history 8/week @ 2024-06-22 5/week @ 2024-07-13 9/week @ 2024-07-20 21/week @ 2024-07-27 8/week @ 2024-08-03 23/week @ 2024-08-10 2/week @ 2024-08-17 2/week @ 2024-08-24 6/week @ 2024-08-31 7/week @ 2024-09-07 20/week @ 2024-09-14 39/week @ 2024-09-21 23/week @ 2024-09-28 15/week @ 2024-10-05

99 downloads per month
Used in 2 crates

MIT license

10KB
116 lines

iwlib

CI

Provides safe bindings on top of libiw library.

Usage

Currently it exposes minimal interfaces, any additional contributions welcome.

You can get the essid and it's quality using this:

use iwlib::*;

fn main() {
    let wireless_info = get_wireless_info("wlp0s20f3".to_string());
    println!("Wireless info: {:?}", wireless_info);
}

Executing the above code on my network gives me this:

$ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
     Running `target/debug/iwlib-helper`
Wireless info: Some(WirelessInfo { wi_essid: "ichigokurasaki_5hz", wi_quality: 50 })

Dependencies

~0–1.9MB
~37K SLoC