pub unsafe extern "C" fn esp_tls_get_and_clear_error_type(
    h: esp_tls_error_handle_t,
    err_type: esp_tls_error_type_t,
    error_code: *mut c_int
) -> esp_err_t
Expand description

@brief Returns the last error captured in esp_tls of a specific type The error information is cleared internally upon return

@param[in] h esp-tls error handle. @param[in] err_type specific error type @param[out] error_code last error code returned from mbedtls api (set to zero if none) This pointer could be NULL if caller does not care about esp_tls_code @return - ESP_ERR_INVALID_STATE if invalid parameters - ESP_OK if a valid error returned and was cleared