First mess with these ESP8266 dodads and thus far they are impressing me.
I am (hopefully) making a clock and do not want to set the time so I figured I would wifi scan which I hope listens for beacon frames then extract the SSID to save and the time since epoch to give me date and time.
I do not want to connect to a specific wifi, just get any beacon frame that is passing and get the time from it. I need to remember the SSID in case the time is wrong so a button press will have it go off looking for a different SSID to get time data from.
Being crap at C my starting point is always to find something close and with google's help, modify it to do what i want.
There is a really simple example wifi scanner installed with the ESP8266 libraries located in ~/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266WiFi/examples/WiFiScan
so I looked at that then went off looking through the wifi header file where there is all kinds of information parsed from the packet data. Sadly the time is not parsed and I have no idea how to get it. I do not even know if the wifi scan is getting its info from the beacon frames or not.
Anyone been here or have some links to reading about it?