mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-16 04:22:22 +00:00
esp_http_client: Add option to use secure_element
Closes https://github.com/espressif/esp-idf/issues/10071
This commit is contained in:
@@ -31,6 +31,20 @@ To allow ESP HTTP client to take full advantage of persistent connections, one s
|
||||
|
||||
Check out the example functions ``http_rest_with_url`` and ``http_rest_with_hostname_path`` in the application example. Here, once the connection is created, multiple requests (``GET``, ``POST``, ``PUT``, etc.) are made before the connection is closed.
|
||||
|
||||
.. only:: esp32
|
||||
|
||||
Use Secure Element (ATECC608) for TLS
|
||||
_____________________________________
|
||||
|
||||
A secure element (ATECC608) can be also used for the underlying TLS connection in the HTTP client connection. Please refer to Secure Element with ESP-TLS section in the :doc:` ESP-TLS documentation</api-reference/protocols/esp_tls` for more details. The secure element support has to be first enabled in menuconfig through :ref:`CONFIG_ESP_TLS_USE_SECURE_ELEMENT`. Then the HTTP client can be configured to use secure element as follows:
|
||||
|
||||
.. code-block:: c
|
||||
|
||||
esp_http_client_config_t cfg = {
|
||||
/* other configurations options */
|
||||
.use_secure_element = true,
|
||||
};
|
||||
|
||||
HTTPS Request
|
||||
-------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user