MycilaNTP
A simple and efficient NTP library for ESP32 / Arduino
Basic Usage
Setup:
Mycila::NTP.setTimeZone("Europe/Paris");
Mycila::NTP.sync("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);