Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By cwilt
#36076 Question for the developer...

Am I correct that every time the time function is called that an NTP request is sent?
User avatar
By TassyJim
#36078
cwilt wrote:Question for the developer...

Am I correct that every time the time function is called that an NTP request is sent?


Not the developer but "Yes". That is why I did call to time() and saved the result into a variable to be sure the time doesn't change between calls to hour and minute.

For those having problems with the time not updating, add a serialprint statement in the [drawClock] routine and monitor the serial port.

I expect that the problem is with your browser caching the page. Try a page refresh.

Jim
User avatar
By Mmiscool
#36102 When you connect to any wifi network it attempts to get the current time. After that I believe it relights on the internal clock unless the time zone is changed.
User avatar
By TassyJim
#36121
Mmiscool wrote:When you connect to any wifi network it attempts to get the current time. After that I believe it relights on the internal clock unless the time zone is changed.


You are correct. It sets the time on powerup/connection then uses it's internal clock.
It will, I assume, use NTP on a regular basis to correct the time.

Jim