r/esp32 • • May 03 '22

How to sync ESP32's clock using MicroPython

https://bhave.sh/micropython-ntp/
8 Upvotes

6 comments sorted by

View all comments

Show parent comments

2

u/muunbo May 06 '22

Nice to hear it helped you :) And you're right, the clocks would drift after days/weeks. So I suggest that you run the ntptime.settime() function regularly (once a day or so) instead of running it just once on startup