Skip to content

Commit f5edf57

Browse files
jaredponnAshish285
authored andcommitted
fix(esp_tls_conn_new_sync): Fix esp_tls_conn_new_sync's doc to reflect its implementation
Closes espressif#17652 Closes espressif#17598
1 parent 07e9bf4 commit f5edf57

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)