21 RETRIEVE THE CURRENT TIME FROM AN INTERNET TIME SERVER

When building projects that rely on keeping track of the current time (such as for logging data, creating planned events, or just making your own clocks), it’s common to use a real-time clock IC. For increased time and date accuracy, however, you can use an ESP32 Arduino-compatible board to retrieve the current time and date from an internet time server. Using the ESP32 also saves you the cost of an RTC IC or module and a separate Arduino or compatible board when building a new project and allows you to set your required time zone in the code, rather than in a separate interface. ...

Get Arduino for Arduinians now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.