OmNtp
Introductionclass to keep a local clock synchronized from a server Member Functions
getTime(int &, int &, float &)public DiscussionGet the time of day in two handy integers and a float. getTime(int &, int &, int &)public DiscussionGet the time of day in three handy integers. getTimeString()public DiscussionGet the time of day in a handy string like HH:MM:SS. getTimeString()public Discussion(It's a static char[], by the way.) ntpDiscussionGet the last-created ntp instance, if any setLocalTimeZonepublic DiscussionIssue a request to an http service, the url you set with setTimeUrl(). setTimeUrlpublic DiscussionHttps not supported, just http. setTimeUrl(const char *)public DiscussionURL to a server under your control that gives the current time. setTimeUrl(const char *)public DiscussionOmNtp will deduce the timezone relative to NTP from it, also. setTimeZone(int)public DiscussionThis number gets added to UTC for your time zone. It ranges setTimeZone(int)public Discussionfrom -12 to +12. California in December needs -8. setWifiAvailablepublic DiscussionCall this after wifi properly established tickpublic DiscussionCall this in your loop(). Assumes about 20-50 ms interval. |