We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ca6173 commit 9a4dbe7Copy full SHA for 9a4dbe7
README.rst
@@ -70,7 +70,7 @@ Usage Example
70
wifi.radio.connect(wifi_ssid, wifi_password)
71
72
pool = adafruit_connection_manager.get_radio_socketpool(wifi.radio)
73
- ntp = adafruit_ntp.NTP(pool, tz_offset=0, cache_offset=3600)
+ ntp = adafruit_ntp.NTP(pool, tz_offset=0, cache_seconds=3600)
74
75
while True:
76
print(ntp.datetime)
examples/ntp_simpletest.py
@@ -20,7 +20,7 @@
20
wifi.radio.connect(secrets["ssid"], secrets["password"])
21
22
pool = socketpool.SocketPool(wifi.radio)
23
-ntp = adafruit_ntp.NTP(pool, tz_offset=0, cache_offset=3600)
+ntp = adafruit_ntp.NTP(pool, tz_offset=0, cache_seconds=3600)
24
25
26
0 commit comments