Hi,
The simplest solution would be to store the time received over WiFi along with the uptime of the system at that time, and use the delta between that uptime and the current uptime to get the current time. This seems to be implemented in the POSIX clock_settime()/clock_gettime() functions.
You can find an example of using this functionality in this example:
Best regards,
Jørgen
Hi,
The simplest solution would be to store the time received over WiFi along with the uptime of the system at that time, and use the delta between that uptime and the current uptime to get the current time. This seems to be implemented in the POSIX clock_settime()/clock_gettime() functions.
You can find an example of using this functionality in this example:
Best regards,
Jørgen