docs: Update CN translation for several docs

This commit is contained in:
Shen Mengjing
2025-10-30 14:39:18 +08:00
parent 811e27118d
commit 4cd460a3eb
2 changed files with 1 additions and 3 deletions
@@ -105,7 +105,7 @@ SNTP 时间同步
esp_sntp_config_t config = ESP_NETIF_SNTP_DEFAULT_CONFIG("pool.ntp.org");
esp_netif_sntp_init(&config);
一旦收到 SNTP 服务器的响应,此代码会自动执行时间同步。有时等待时间同步很有意义,调用 :cpp:func:`esp_netif_sntp_sync_wait()` 可实现此目的。应用也可以订阅时间同步事件(事件基座 ``NETIF_SNTP_EVENT``,事件 ID ``NETIF_SNTP_TIME_SYNC``):
一旦收到 SNTP 服务器的响应,此代码会自动执行时间同步。有时等待时间同步很有意义,调用 :cpp:func:`esp_netif_sntp_sync_wait()` 可实现此目的。应用也可以订阅时间同步完成时发布的事件(事件类型 ``NETIF_SNTP_EVENT``,事件 ID ``NETIF_SNTP_TIME_SYNC``)。事件数据是指向 :cpp:type:`esp_netif_sntp_time_sync_t` 的指针,其中包含已同步的 ``timeval``:
.. code-block:: c