ESP8266 NON OS SDK - WiFI Scan Open Networks, Null result?
Posted: Mon Apr 03, 2017 3:23 pm
Good Evening,
First post here, I have been reading through and getting lots of pointers on how to use the ESP8266 NON OS SDK.
One of my projects I am writing an wifi scanner that hops on open networks, sends a crafted DNS request to identify it's self to a "bogus" DNS server and then repeats.
Within my code I perform a network scan, I then filter these results and sort them by RSSI, storing the SSID and BSSID of the RSSI closest to 0.
Occasionally however the SSID and BSSID is blank, most of the time it is returned but occasionally there is no SSDI and no BSSID. I am wondering if this is because the copy to variables has not been complete before the os_printf that shows the values has been completed.
I have posted a gist here, https://gist.github.com/greglangford/b330aab78e1c47270a4282f9088da589 excuse the code I am by no means a C programmer but have some experience in high level OO languages. The lines which I reference in the gist is 31 and 55 my project can also be found on github here https://github.com/greglangford/esp8266_wifiscanner
First post here, I have been reading through and getting lots of pointers on how to use the ESP8266 NON OS SDK.
One of my projects I am writing an wifi scanner that hops on open networks, sends a crafted DNS request to identify it's self to a "bogus" DNS server and then repeats.
Within my code I perform a network scan, I then filter these results and sort them by RSSI, storing the SSID and BSSID of the RSSI closest to 0.
Occasionally however the SSID and BSSID is blank, most of the time it is returned but occasionally there is no SSDI and no BSSID. I am wondering if this is because the copy to variables has not been complete before the os_printf that shows the values has been completed.
I have posted a gist here, https://gist.github.com/greglangford/b330aab78e1c47270a4282f9088da589 excuse the code I am by no means a C programmer but have some experience in high level OO languages. The lines which I reference in the gist is 31 and 55 my project can also be found on github here https://github.com/greglangford/esp8266_wifiscanner