pub unsafe extern "C" fn esp_tls_get_and_clear_error_type(
    h: *mut esp_tls_last_error,
    err_type: u32,
    error_code: *mut i32
) -> i32
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