> ## 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.

# CAPLfunctionIso11783GetEcuState

# Iso11783GetEcuState

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

## Function Syntax

```plaintext theme={null}
dword Iso11783GetEcuState(dword ecuHandle);
dword Iso11783GetEcuState(dbNode dbNode);
```

## Description

Returns the current state of the ECU.

## Parameters

* **ecuHandle**: ECU handle
* **dbNode**: Node from database

## Return Values

* **0**: initialized
* **1**: claiming
* **2**: online
* **3**: offline

## Example

```plaintext theme={null}
if (Iso11783GetEcuState(handle) == 2) {
  write("ECU is online");
}
```
