SystemClock NTP

Demonstrates various methods for keeping the system clock updated from a Network Time Server using the NtpClient class.

The Timezone class is used to convert between UTC and local times, accounting for daylight savings.

The SolarCalculator class is used to calculate times of next sunrise and sunset, which you might want to automate activation of lights, for example.

References

SoC support

  • esp32

  • esp32c2

  • esp32c3

  • esp32s2

  • esp32s3

  • esp8266

  • host

  • rp2040