Skip to content
toitlangPublic

About

Package: Synchronize your device time using the NTP protocol.

Topics

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

3 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

NTP

NTP (Network Time Protocol) client.

Fetches the current time from a NTP server (by default "pool.ntp.org").

This package does not update the system time.

Usage

import ntp
import esp32

main:
  result ::= ntp.synchronize
  if result:
    print "ntp: $result.adjustment ±$result.accuracy"
    esp32.adjust_real_time_clock result.adjustment

About

Package: Synchronize your device time using the NTP protocol.

Topics

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages