Closed mattdm closed 2 months ago
Yes, #20 switched it to work with native wifi (CPython-like UDP).
ESP32SPI has esp.get_time()
. If there is a connection to the internet, the ESP32 will get the time in the background after (I think) about 15 seconds) and keep it's internal clock up to date. For LAN-only it may not work since the NTP server is probably hard-coded. But you can do an ESP32SPI-compatible UDP NTP implementation from an old version of this library.
Closed by #32
I found #16, which seems somewhat ironic. I have the Adafruit matrix portal, but I want to actually use the NTP server on my local network rather than the web API the example code seems to lean on. As a simple test, I'm doing
(Line 62, which triggers the error, is the
ntp.datetime
call.)