Function esp_idf_sys::esp_tls_conn_http_new_async

source ·
pub unsafe extern "C" fn esp_tls_conn_http_new_async(
    url: *const c_char,
    cfg: *const esp_tls_cfg_t,
    tls: *mut esp_tls_t,
) -> c_int
Expand description

@brief Create a new non-blocking TLS/SSL connection with a given “HTTP” url

The behaviour is same as esp_tls_conn_new_async() API. However this API accepts host’s url.

@param[in] url url of host. @param[in] cfg TLS configuration as esp_tls_cfg_t. @param[in] tls pointer to esp-tls as esp-tls handle.

@return - -1 If connection establishment fails. - 0 If connection establishment is in progress. - 1 If connection establishment is successful.