The Awsm Dvlprz Blog

Tales of awesomazing adventures

Most examples for setting the RTC on an ESP32 use WiFi or Ethernet connection and the builtin SNTP library or the NTPClient library. However, if a device operates in an environment without WiFi over 3G (as in our case), setting the RTC is not so straightforward.

This is just a quick note to understand the workings of timeservers and synchronizing the RTC using SNTP over TCP and UDP connections.

Continue reading...