Reading and setting time from a NTP server
Posted:
Sat Sep 03, 2016 3:22 am
by aphawk
One way to get the time directly from one NTP server, built in the time() function ?
Something like the user inform the address from the desired NTP server and all the time and date are set ... this will be very nice and can eliminate the use of one RTC clock IC.
Thanks !
Re: Reading and setting time from a NTP server
Posted:
Sat Sep 03, 2016 12:50 pm
by Mmiscool
I plan on making an update today to address this.
If you look at the following link
viewtopic.php?f=43&t=11510Some one made a mod to do this. I just added the code with a couple of small modifications to prevent possible problems by not having the third function argument.
Stay tuned. This will be part of the time.setup() function.
Re: Reading and setting time from a NTP server
Posted:
Sun Sep 04, 2016 7:56 pm
by aphawk
Mmiscool,
I have saw that link before, and I think that if you will modify the original function, maybe this mod can be made at the same time !
Very nice to hear that this can be implemented, I will stay tuned for sure !
Thanks !
Paulo
Re: Reading and setting time from a NTP server
Posted:
Sun Apr 09, 2017 12:50 pm
by edwin
Maybe a dumb qruestion but which time function are we talking about? From a specific library?