Sorted WiFi Scan

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
GiCe_1962491
Level 3
Level 3
10 replies posted 10 questions asked 5 replies posted

Hi Folks,

My application needs to scan for APs around.

I used the snip code of scan to see how to handle it and so far so good.

My app also needs to store the result of the scan such that it can be returned later on hence, I had to bind the number of scan results that I can save to 20.

Now, my concern is the following: How does the scan operate? Does it scans by channels? Therefore, there are risks that if I have more than 20 APs around and some in the last channels, I would never be able to see them?

Is there any way to specify to the SDK that I want results returned sorted by RSSI? Such that I show only the 20 closer to my device? That would be perfect!

Thank you for your support and let me know if you need more information.

GCerto

BCM4343W - STM32F412

0 Likes
1 Solution
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

You can sort the scan result in application layer with whatever logic you want.

View solution in original post

2 Replies
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

You can sort the scan result in application layer with whatever logic you want.

Ok, so no native way to do so, it needs to be done in the application.

Thank you!

0 Likes