https://github.com/psibi/iwlib-rs
Safe bindings to libiw library
https://github.com/psibi/iwlib-rs
Last synced: 12 months ago
JSON representation
Safe bindings to libiw library
- Host: GitHub
- URL: https://github.com/psibi/iwlib-rs
- Owner: psibi
- Created: 2021-03-14T10:42:03.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-02T17:20:31.000Z (almost 3 years ago)
- Last Synced: 2025-03-18T15:54:05.307Z (about 1 year ago)
- Language: Rust
- Size: 26.4 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iwlib
[](https://github.com/psibi/iwlib-rs/actions/workflows/ci.yml)
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:
``` rust
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:
``` shellsession
$ 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 })
```