Skip to content

Complete NTPClient for arduino with your country offset time

License

Notifications You must be signed in to change notification settings

MhyrAskri/NTP-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How To Work


You just need to set your desired IP in line 4 and your desired port in line 5. Then in line 14, enter the hour and minute offset of your country instead of the entry of the SetOffset function in seconds. Then call the GetDateTime() function anywhere in the code, it will return a string consisting of the date and time at the moment. If you do not enter offset, you will see UTC Datetime.
I hope it will be useful for you.
If you are from Iran, the time.nist.gov site may not work sometimes; So preferably use an internal IP.

About

Complete NTPClient for arduino with your country offset time

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published