Chapter 4. Software framework
Does ESP32 support PCI-E protocol?
No, it doesn’t.
4.5 Protocols
4.5.1 ESP-TLS
When testing RTOS SDK mqtt/ssl_mutual_auth with ESP8266, the server connection failed. Why?
• The failure of SSL connection may due to insucient memory of ESP8266.
• Please use the master version of ESP8266-RTOS-SDK to test this example, since it supports dynamic memory
allocation in menucong so as to reduce the usage of memory peak. The specic action is: menucong ->
Component config -> mbedTLS -> (type “Y”to enable) Using dynamic TX /RX buffer ->
(type“Y”to enable) Free SSL peer certificate after its usage -> (type“Y”to enable)
Free certificate, key and DHM data after its usage.
Can ESP HTTPS skip the server certicate check?
• Yes, if you enable the following options in menucong.
– Menu path: (Top) -> Component config -> ESP-TLS -> Allow potentially in-
secure options
– Menu path: (Top) -> Component config -> ESP-TLS -> Allow potentially in-
secure options -> Skip server certificate verification by default
• Besides, make sure that the cert_pem member variable is not set in the esp_http_client_config_t
structure. Otherwise, the server certicate will still be veried with this CA certicate.
• If you want to test HTTP OTA at the same time, you need to enable the Menu path: (Top) -> Compo-
nent config -> ESP HTTPS OTA -> Allow HTTP for OTA option in menucong.
How to set the esp_tls_conn_read API in ESP-TLS to non-blocking mode? Or is there any other way
to implement non-blocking?
• You can set non_block to true in the esp_tls_cfg_t structure in esp_tls.h to achieve non-blocking.
• Alternatively, you can call esp_transport_connect_async to achieve non-blocking.
What are the TLS versions supported by ESP-IDF?
• The recommended TLS protocol in ESP-IDF is the Mbed TLS protocol.
• ESP-IDF v5.0 and later no longer support SSL 3.0, TLS 1.0 and TLS 1.1, but only support TLS 1.2 and TLS
1.3.
Espressif Systems 90
Submit Document Feedback
Release master