Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/toitlang/pkg-ntp

Package: Synchronize your device time using the NTP protocol.
https://github.com/toitlang/pkg-ntp

esp32 ntp-client toit

Last synced: 11 days ago
JSON representation

Package: Synchronize your device time using the NTP protocol.

Awesome Lists containing this project

README

        

# 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
```