Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release a new version to crates.io #48

Open
MeitarR opened this issue Feb 27, 2021 · 3 comments
Open

release a new version to crates.io #48

MeitarR opened this issue Feb 27, 2021 · 3 comments

Comments

@MeitarR
Copy link

MeitarR commented Feb 27, 2021

I was using 0.5.1 and tried to the example code

use wifiscanner;

fn main() {
    println!("{:?}", wifiscanner::scan());
}

and got the output

Ok([])

(while I know it can scan some APs)

So I started to look at the code and it looked good
then I cloned the repo and run the example code and got different (the expected one)

Err(CommandFailed(ExitStatus(ExitStatus(65280)), "command failed: Operation not permitted (-1)\n"))

So 0.5.1 has a bug that is fixed at main branch

@saillimited
Copy link

Me too. (俺也一样。。)

@tronch0
Copy link

tronch0 commented Dec 18, 2021

Yo Meitar so I dont understand, which version is good?
For me, the 0.5.1 version return empty array, and the main branch is returning this error:
Err(CommandFailed(ExitStatus(ExitStatus(65280)), "command failed: Operation not permitted (-1)\n"))

I need to hack the neighbours please help!

@MeitarR
Copy link
Author

MeitarR commented Dec 21, 2021

Yo Meitar so I dont understand, which version is good?
For me, the 0.5.1 version return empty array, and the main branch is returning this error:
Err(CommandFailed(ExitStatus(ExitStatus(65280)), "command failed: Operation not permitted (-1)\n"))

I need to hack the neighbours please help!

The main is the fixed one. You need to run the process as root to be able to scan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants