Hi, is it possible to get RTC time from performing a scan for visible wifi APs? I'm developing a low-power device and hoping I can wake, perform a wifi scan/discovery, and get RTC time then go back to sleep (without actually connecting to the AP)
Cheers
RTC time from wifi beacon, without connecting?
-
- Posts: 24
- Joined: Sun Nov 01, 2020 1:51 am
Re: RTC time from wifi beacon, without connecting?
I could be wrong but I don't think that information is actually available to a scan.
I see no reason why they would add it either.
I see no reason why they would add it either.
Re: RTC time from wifi beacon, without connecting?
And even if it was available, how can you be sure it has correct time?
-
- Posts: 9709
- Joined: Thu Nov 26, 2015 4:08 am
Re: RTC time from wifi beacon, without connecting?
I think you can use esp_wifi_set_vendor_ie_cb() to set a callback that gets called when a beacon comes in. The callback should give you access to the IE of the beacon, so if you can set up your AP to encode the current time in there, this should be able to pick it up.
Who is online
Users browsing this forum: No registered users and 60 guests