From e3ff52863ba927b75fce1b219145f921134b49f6 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 31 Jan 2020 23:54:11 +1100 Subject: [PATCH] esp8266/modules/ntptime.py: Add comment about configuring NTP host. The ability to change the host is a frequently requested feature, so explicitly document how it can be achieved using the existing code. See issues #2121, #4385, #4622, #5122, #5536. --- ports/esp8266/modules/ntptime.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/esp8266/modules/ntptime.py b/ports/esp8266/modules/ntptime.py index 1a1da65357..0f512100c8 100644 --- a/ports/esp8266/modules/ntptime.py +++ b/ports/esp8266/modules/ntptime.py @@ -10,6 +10,7 @@ except: # (date(2000, 1, 1) - date(1900, 1, 1)).days * 24*60*60 NTP_DELTA = 3155673600 +# The NTP host can be configured at runtime by doing: ntptime.host = 'myhost.org' host = "pool.ntp.org" def time():