# null

# Iso11783ECUGoOnline

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

## Function Syntax

```
dword Iso11783ECUGoOnline( dword ecuHandle, dword newAddress );
```

## Description

After this function has been called, the logical ECU logs on onto the CAN bus. It must be called separately for each logical ECU.

If it is not possible to log on the first time with Address Claiming, or if the node is "rejected" with a higher priority Address Claiming by the bus at a later point in time, the corresponding error message must be evaluated in [Iso11783AppErrorIndication](CAPLfunctionIso11783AppErrorIndication.md). If you want to make a network assignment over the network, the PG "CommandedAddress" can be sent to an ECU.

Use the Null Address (0xFE) to switch the ECU to offline mode. In that explicit case a "Cannot Claim" message ("Address Claim" PG from source address 0xFE) is sent once.

**Note**: It is not possible to claim the broadcast address 0xFF.

## Parameters

* **ecuHandle**: ECU handle
* **newAddress**: Address to be claimed or Null Address (0xFE) to go offline

## Return Values

* **0**: ok
* **2**: invalid ECU handle

## Example

```
Iso11783ECUGoOnline(ecuHdl, 0x06);
```
