Crates.io | iwlib |
lib.rs | iwlib |
version | 0.1.1 |
source | src |
created_at | 2021-03-14 12:49:31.62853 |
updated_at | 2023-05-31 03:43:31.705785 |
description | Safe bindings to libiw library |
homepage | |
repository | https://github.com/psibi/iwlib-rs |
max_upload_size | |
id | 368768 |
size | 13,702 |
Provides safe bindings on top of libiw library.
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 })