-
Notifications
You must be signed in to change notification settings - Fork 0
Complete NTPClient for arduino with your country offset time
License
MhyrAskri/NTP-Client
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 0
No packages published