MycilaNTP
A simple and efficient NTP library for ESP32 / Arduino
Basic Usage
Setup:
Mycila::NTP.setTimezone("Europe/Paris")
Mycila::NTP.setNTPServer("pool.ntp.org")
Then query state:
Mycila::NTP.isSynced();
Mycila::NTP.getTimezoneInfo();
A=It is also possible to manually sync the time:
const timeval tv = {sec, millis};
Mycila::NTP.sync(tv);