Getting Date & Time From NTP Server With ESP8266 NodeMCU

By on January 24, 2020
Pin It

 

 

Every once in a while you’ll come across an idea where keeping time a prime concern. For example, imagine a relay that has to be activated at a certain time or a data logger that has to store values at precise intervals.

The first thing that comes in your mind is to use an RTC (Real Time Clock) chip. But these chips are not perfectly accurate so, you need to do manual adjustments over and over again to keep them synchronized.

The solution here is to use Network Time Protocol (NTP). If your ESP8266 project has access to the Internet, you can get date and time (with a precision within a few milliseconds of UTC) for FREE. You don’t need any additional hardware.

 

More info

About Emanuele Signoretta

Studying electronics and communication engineering at Politecnico di Torino. Electronics, IT and Open Source enthusiast.

Leave a Reply

Your email address will not be published. Required fields are marked *