Function esp_idf_svc::hal::sys::esp_tls_conn_http_new_async

source ·
pub unsafe extern "C" fn esp_tls_conn_http_new_async(
    url: *const i8,
    cfg: *const esp_tls_cfg,
    tls: *mut esp_tls,
) -> i32
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.