3 ms·
You sync to the NIST time servers (sample code available via linked page) via a cron job that invokes the script, whenever the IoT device is rebooted. 1. NIST
by disabled 7y ago
You sync to the NIST time servers (sample code available via linked page) via a cron job that invokes the script, whenever the IoT device is rebooted.
1. NIST Time Server Page: https://www.nist.gov/pml/time-and-frequency-division/services/internet-time-service-its https://www.nist.gov/pml/time-and-frequency-division/service...
2. Crontab @reboot function: https://superuser.com/questions/708149/how-to-use-reboot-in-etc-cron-d https://superuser.com/questions/708149/how-to-use-reboot-in-...
Make sure to always cite your references by comments. This is useful in case parts of your code become unintentionally obsolete. This also helps you and others proofread your work.