Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/toitlang/pkg-ntp
- Owner: toitlang
- License: mit
- Created: 2022-01-04T05:36:44.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-04T13:59:51.000Z (7 months ago)
- Last Synced: 2024-07-30T20:55:07.849Z (3 months ago)
- Topics: esp32, ntp-client, toit
- Language: Toit
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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 esp32main:
result ::= ntp.synchronize
if result:
print "ntp: $result.adjustment ±$result.accuracy"
esp32.adjust_real_time_clock result.adjustment
```