davydnorris wrote:quackmore wrote:...
Why do you wait 1 second before checking for the next channel?
I'm not - at this point I am not manually initiating any scans, I'm just dropping the channel and trying again. Anything you see there is Espressif's code doing the scanning.
I actually do use the manual custom scan several times. I have a config web app that runs in the unit and I scan all the available Wi-fi points to populate a list for the UI.
I also use that same list to geolocate the unit via the Google Geolocation API - my units are deployed in cities with lots of wifi points and lots of GPS shadows so wifi based triangulation works brilliantly. I can usually get within 10m or so of the actual location, and then I bring up a map in the config app with a pin for precise position refinement.
@quackmore I've just reread your note and see that I entirely misread the second part of it! You weren't asking *me* a question, you were answering your own!
Now I understand the second part and it's a great idea! Right now I just drop the channel info and let Espressif scan for me, but doing my own optimised channel scan as next step may speed things up a lot. I'll put that idea into the list to try!!
Please keep us up to date if you do investigate this!