esp_http_client: Add option to use secure_element

Closes https://github.com/espressif/esp-idf/issues/10071
This commit is contained in:
Aditya Patwardhan
2022-11-01 13:45:22 +05:30
parent 3247cd05e4
commit ba43063314
3 changed files with 23 additions and 0 deletions

View File

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