NTP Client for the mbed networking libraries. The small change to this version is that there can be only one cause for the return value zero.

Dependents:   WattEye

Fork of NTPClient by Donatien Garnier

Issue: get_timelastset always returns current time. (Closed: Invalid)

This test code always returns the current time. The expected result is that it would return the time when ntp.set_time( ) was last called. [Need to first verify that set_time is not being called too often]

    time_t tls = ntp.get_timelastset();
    tls = ntp.timelocal(&tls);
    pc.printf("  Last Set:  %s\r\n", ntp.ctime(&tls));

Edit: the line in the middle "... ntp.timelocal( )" fetches the current time. Removing that solves this - so it was an application coding error, not a library error.