> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionCANstressConnect

# CANstressConnect

[Valid for](../../../Shared/FeatureAvailability.md):  CANoe DE

## Function Syntax

```
long CANstressConnect();
```

## Description

Establishes a connection between the CANstress software and the CANstress hardware.

## Parameters

—

## Return Values

* **0**: If successful.
* **-1**: In case of error (due to an internal error).
* **-2**: In case of error (due to an internal timeout during the connection establishment).

## Example

—
