Skip to main content

DoIP_ConnectToVehicle

Valid for: CANoe DE Note The function must not be called in an on prestart handler. The following DoIP CAPL function is only available with the modeling library DoIP.dll and eventually an appropriate implementation of the CAPL Callback Interface. Information about the DoIP DLL and the CAPL Callback Interface you find here:

Function Syntax

void DoIP_ConnectToVehicle();

Description

Tries to connect to the configured vehicle. A vehicle identification phase may be started to retrieve the vehicle IP address.

Parameters

Return Values

Example

// If key is pressed, connect to vehicle
On key 'c'
{
  DoIP_ConnectToVehicle();
}
DoIP_VehicleConnectedIndDoIP_CloseConnection