diff options
author | Damien George <damien.p.george@gmail.com> | 2020-01-31 23:54:11 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-01-31 23:54:11 +1100 |
commit | e3ff52863ba927b75fce1b219145f921134b49f6 (patch) | |
tree | eb34fcc44f4f9f5a0fa077b6039bf183be5b76d8 | |
parent | af88e70414061d868a248d1735f26e645d36844c (diff) |
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.
-rw-r--r-- | ports/esp8266/modules/ntptime.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/esp8266/modules/ntptime.py b/ports/esp8266/modules/ntptime.py index 1a1da6535..0f512100c 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(): |