mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
docs: Upadte CN translations
This commit is contained in:
@@ -114,6 +114,8 @@ IoT 设备通常需要检查远程服务器是否可用。如果服务器离线
|
||||
|
||||
- :example:`protocols/icmp_echo` 演示了如何实现一个简单的 ping 命令行工具,使用 ICMP 回显请求数据包测试远程主机在 IP 网络上的可达性。
|
||||
|
||||
- :example:`protocols/icmp/pmtu_probe` 演示了如何使用 ICMP 回显请求探测路径 MTU,并通过 :cpp:func:`esp_netif_set_mtu` 将探测结果应用到活动接口。
|
||||
|
||||
API 参考
|
||||
--------------
|
||||
|
||||
|
||||
@@ -176,6 +176,8 @@ ESP-IDF 中的示例使用 :doc:`/api-reference/protocols/esp_tls`,为访问
|
||||
|
||||
如需直接使用 Mbed TLS API,请参考示例 :example:`protocols/https_mbedtls`。该示例演示了如何用 Mbed TLS 创建 HTTPS 连接。具体做法是配置安全的套接字,并使用证书包进行验证。
|
||||
|
||||
:example:`protocols/smtp_client` 示例演示了如何使用 Mbed TLS API,通过带有 STARTTLS 的 SMTP 发送电子邮件(包括附件)。
|
||||
|
||||
|
||||
重要配置
|
||||
--------
|
||||
|
||||
@@ -26,13 +26,13 @@ ESP-MQTT 是 `MQTT <https://mqtt.org/>`__ 协议客户端的实现,属于轻
|
||||
|
||||
ESP-IDF 中提供了两个参考示例:
|
||||
|
||||
- 基于 TLS 的 MQTT 通信(证书包模式):``examples/protocols/mqtt``
|
||||
- 基于 TLS 的 MQTT 通信(证书包模式)::example:`protocols/mqtt`
|
||||
|
||||
- 默认使用 ESP-IDF 证书包验证代理服务器。
|
||||
- 默认代理地址指向 ``mqtts://test.mosquitto.org:8886`` (采用 Let's Encrypt 证书链)。
|
||||
- 替代方案可配置 Mosquitto CA 证书并改用 ``mqtts://test.mosquitto.org:8883`` 地址。
|
||||
|
||||
- 基于 TLS 的 MQTT 5.0 通信(证书包模式):``examples/protocols/mqtt5``
|
||||
- 基于 TLS 的 MQTT 5.0 通信(证书包模式)::example:`protocols/mqtt5`
|
||||
|
||||
- 使用 MQTT v5.0 协议,通过 TLS 传输并借助证书包完成验证。
|
||||
- 默认代理地址指向 ``mqtts://test.mosquitto.org:8886``。
|
||||
|
||||
Reference in New Issue
Block a user