embedblocks/time-service

1.0.3

Latest
uploaded 1 day ago
Timestamp service for ESP32 that works without a dedicated RTC module. Starts from build time on every boot, then corrects via SNTP sync or manual set — whichever suits the application. All corrections are explicit and observable via jump callbacks, safe for logging systems.

2 examples

  • offline
    This example demonstrates `time_service` in a no-network environment, using manually set time and printing timestamps every two seconds.
    3.01 KB
  • online
    Demonstrates time_service with SNTP synchronization over WiFi, initializing from the build timestamp and logging timestamps continuously.
    2.96 KB