-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
time.c and sntp.c doubt #4559
Comments
Hi, Just turn your router off (or disconnect internet cable) and test it yourself. |
Yes I tried and it continues to work properly. |
depends on which lwip version you use. but: you being curious about the inner workings is not an issue with esp arduino core ... please close this issue as it does not confirm to the strict rules that you intentionally ignored when opening and deleting the questionair. |
Once sntp is started (which is automatic with lwip2/STA and a dhcp server providing an NTP server address), NTP server is requested at start then every hour from inside lwIP/sntp. |
I'm sorry for the improper thread. |
@David8266 |
This delay is defined by
|
This is not an issue. Closing. |
Hi,
I am compiling a code on my ESP-12E to handle the heating of my house.
A fundamental variable is time.
I used the time.c function to get the time from NTP servers, as shown in the code below, and everything works properly. Every second the correct time and date is printed.
But I have a doubt about the method with which the time is maintained, and looking at the code contained in the library I honestly could not make it clear.
In practice I would like to know if every time the time parameter is requested it is always read by the ntp servers, or if there is an internal timer/ counter that add 1 seconds each time, leaving the update with the servers only when the ConfigTime function is called.
Thanks in advance for your answers.
MCVE Sketch
The text was updated successfully, but these errors were encountered: