A crate to list WiFi hotspots in your area.
As of v0.4.x now supports OSX and Linux. Windows to follow.
Inspired by Maurice Svay's node-wifiscanner (https://github.com/mauricesvay/node-wifiscanner)
Tests shameless pilfered from Christian Kuster's node-wifi-scanner (https://github.com/ancasicolica/node-wifi-scanner)
Full documentation can be found here.
This crate is on crates.io and can be
used by adding wifiscanner
to the dependencies in your project's Cargo.toml
.
toml
[dependencies]
wifiscanner = "0.4.*"
and this to your crate root:
rust
extern crate wifiscanner;
rust
use wifiscanner;
println!("{:?}", wifiscanner::scan());
Alternatively if you've cloned the Git repo, you can run the above example
using: cargo run --example scan
.
Copyright 2019 Mark Sta Ana.
Licensed under the Apache License, Version 2.0