docs: Update CN translation for several docs

This commit is contained in:
Shen Mengjing
2025-10-27 14:21:11 +08:00
parent 811e27118d
commit 4cd460a3eb
2 changed files with 1 additions and 3 deletions

View File

@@ -1,8 +1,6 @@
ESP-NETIF Programmers Manual
============================
:link_to_translation:`zh_CN:[中文]`
.. _esp_netif_set_ip:
Configure IP, Gateway, and DNS

View File

@@ -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