Does anyone happen to know what the url for this is?
I can't seem to find what their NTS server URLs are.
This Australian NTS server (au.pool.ntp.org) works but it is giving 5:30AM or so when the official GMT is currently 2:30 am or so.
Does anyone happen to know what the url for this is?
I can't seem to find what their NTS server URLs are.
This Australian NTS server (au.pool.ntp.org) works but it is giving 5:30AM or so when the official GMT is currently 2:30 am or so.
NTS (NTP servers) typically provide UTC time which is very close to GMT. Use a search engine (I used Bing but you may prefer Google or others) to find servers.
I found a list of servers at NIST Internet Time Service
and
http://www.pool.ntp.org/en/use.html
was helpful as well.
Good Luck!
NTP uses UDP, and it will accept a domain name as the server parameter (not documented in the reference pages). Insure you evaluate the return value from beginPacket as 1 for success, and anything else (0 or negative number) as a fail.
This is from EthernetUdp.h.
// Start building up a packet to send to the remote host specific in host and port
// Returns 1 if successful, 0 if there was a problem resolving the hostname or port
virtual int beginPacket(const char *host, uint16_t port);
Anyone interested, I have a NIST version for ESP8266:
NIST time - date
Ray