# null

[Open topic with navigation](../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/KLine/Functions/CAPLfunctionKLineSetECUAddress.md)

[CAPL Functions](../../CAPLfunctions.md) » [K-Line](../CAPLfunctionsKLineOverview.md) » KLine\_SetECUAddress

# KLine\_SetECUAddress

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

## Function Syntax

```
long KLine_SetECUAddress(Byte ecuAddress)
```

## Description

Sets the address of the ECU.

## Parameters

* **ecuAddress**: Address of the ECU.

## Return Values

On success 0, otherwise a value less than 0.

## Example

—

[KLine\_SetTesterAddress](CAPLfunctionKLineSetTesterAddress.md) • [KLine\_SetFunctionalAddress](CAPLfunctionKLineSetFunctionalAddress.md)
