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

Is there anyway to get scan wifi result in other format? #37

Open
suijunqiang opened this issue Sep 2, 2019 · 5 comments
Open

Is there anyway to get scan wifi result in other format? #37

suijunqiang opened this issue Sep 2, 2019 · 5 comments

Comments

@suijunqiang
Copy link

Hello,

Is there anyway to get wifi scan result in other format?
Currently your lib return a string but hard to parse into Json or other format, so it's not easy to show the results as ListView on the Android UI.

Thanks & Best Regards
Sui
2019-09-02

@suijunqiang
Copy link
Author

for more detail the scan results is "Parcelable" list.

@ThanosFisherman
Copy link
Owner

ThanosFisherman commented Sep 2, 2019

Scan results are returned in a List<ScanResult> Just like the normal Android WiFi scan. I don't see any spacial difficulty parsing those into JSON format. What other formats would you recommend?

@suijunqiang
Copy link
Author

@ThanosFisherman
First of all, thanks for sharing your amazing project & such quick response.
I commandant to use JSON, would you please give me demo code in your example?

Thanks & Best Regards
Sui

@ThanosFisherman
Copy link
Owner

Have a look at the README file here

@suijunqiang
Copy link
Author

@ThanosFisherman
Yep, I see you have demo in the section of Scanning for WiFi Networks, in fact it has been contained all information that what I need..
How ever, I need some items such as SSID/BSSID/Level and try to show them on the UI, and it seems hard to extract from ScanResult.

Thanks anyway.
Sui

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

2 participants