01 Overview
Sync wall time after the network is up.
- Use when: timestamps, TLS, scheduled jobs.
- Skip when: fully offline calendar accuracy (add an RTC).
Reach a server
Where time comes from when there is no RTC chip. Logs and TLS depend on it.
Official path: examples/protocols/sntp
Sync wall time after the network is up.
1. Get on the network.
2. Configure SNTP servers and start.
3. Wait until time is valid before TLS or schedules.
4. Retry on failure — never write business records with a fake clock.
中文
连上服务器
没有 RTC 芯片时,时间从网上来。日志和证书都靠它。
官方路径: examples/protocols/sntp
联网后同步网络时间。
1. 联网。
2. 配置 SNTP 服务器并启动。
3. 等时间有效后再做 TLS 或计划任务。
4. 失败要有重试,不能假时间写业务账。