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.
pull/5598/head
Damien George 2020-01-31 23:54:11 +11:00
rodzic af88e70414
commit e3ff52863b
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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():