Skip to content

Commit d5161cb

Browse files
committed
Merge branch 'contrib/github_pr_17652_v5.5' into 'release/v5.5'
fix(esp_tls_conn_new_sync): Fix `esp_tls_conn_new_sync`'s doc to reflect its implementation (GitHub PR) (v5.5) See merge request espressif/esp-idf!42329
2 parents 1a3e0eb + f5edf57 commit d5161cb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

components/esp-tls/esp_tls.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,12 @@ esp_tls_t *esp_tls_conn_http_new(const char *url, const esp_tls_cfg_t *cfg) __at
408408
* @param[in] hostname Hostname of the host.
409409
* @param[in] hostlen Length of hostname.
410410
* @param[in] port Port number of the host.
411-
* @param[in] cfg TLS configuration as esp_tls_cfg_t. If you wish to open
412-
* non-TLS connection, keep this NULL. For TLS connection,
413-
* a pass pointer to esp_tls_cfg_t. At a minimum, this
414-
* structure should be zero-initialized.
411+
* @param[in] cfg TLS configuration as esp_tls_cfg_t. For a TLS
412+
* connection, pass a pointer to a esp_tls_cfg_t. For a
413+
* plain TCP connection, pass a pointer to a
414+
* esp_tls_cfg_t with is_plain_tcp set to true. At a
415+
* minimum, this pointer should be not NULL and the
416+
* structure should be zero-initialized
415417
* @param[in] tls Pointer to esp-tls as esp-tls handle.
416418
*
417419
* @return

0 commit comments

Comments
 (0)