Hi guys
There was a bug in Donatien's original library which meant if it failed to get the time from the server, it would reset the RTC anyway to a fixed timestamp at the end of July 2010:
This is what Waldermar is seeing. The NTP request is failing and the RTC is being set to that time.
In Segundo's NetServices library, this bug was fixed, so if the NTP request fails, the RTC is not reset, it will be left as is.
That's probably why Andy got a different result.
Waldemar - I'd check that you have ethernet and other net services (eg. HTTPClient) working before using the NTPClient.
Regards
Daniel
PS Hendrik has found a memory leak in NTPClient which will get fixed in Segundo's library at some point!
Hey there,
I just started off using mbed, and got NTPClient (http://mbed.org/cookbook/NTP-Client) from Donation Garnier working. The only thing that bothers me is, I keep getting "Sat Jul 24 19:33:34 2010" as latest time. I tried several servers, but nothing changed. What's happening there? I don't have a clue.
Ever heard of this?
Thanks guys.
Cheers! from Germany Stefan