Skip to content

Library for ESP8266 to get time from NTP servers using SNTP protocol

Notifications You must be signed in to change notification settings

lz1aam/SNTPtime

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SNTPtime

Library for ESP8266 to get time from NTP servers using SNTP protocol

This library is based on the native SNTP implementation of espressif. It has two main functions:

setSNTPtime: This function reads the actual time from a NTP server and sets the internal ESP RTC to UTC getTime: This function reads the ESP internal clock, adjust it to the time zone and eventually to summer time and fills the structure dateTime. This function does not need network connection, but is reset during deep sleep. Pay attention: the internal RTC is not very precise and has to be synchrinized from time to time with a NTP server.

About

Library for ESP8266 to get time from NTP servers using SNTP protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%