fbiego / ESP32Time

An Arduino library for setting and retrieving internal RTC time on ESP32 boards
MIT License
212 stars 36 forks source link

What is the best way to use NTP in this library? #25

Closed rtek1000 closed 6 months ago

rtek1000 commented 1 year ago

Hello,

I managed to use NTP with the help of this other library:

https://github.com/arduino-libraries/NTPClient

rtc.setTime(timeClient.getEpochTime());

hpsaturn commented 11 months ago

You don't need libraries on ESP32 to handle the NTP requests. The Arduino Framework (Espressiff), is built with this support and internal libraries. For example I did this eInk clock using it 3 years ago:

https://github.com/hpsaturn/m5coreink-ntp-clock