Skip to main content

DoIP_SetTesterAdapter

Valid for: CANoe DE Note
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_SetTesterAdapter(char adapter[]);

Description

Sets the network interface to be used by the DoIP layer. This function must be called in on preStart.

Parameters

  • adapter: The name of the network adapter.

Return Values

Example

// Set the network adapter
char buffer[256];
DiagGetCommParameter("DoIP.TESTER_Adapter", 0, buffer, elcount(buffer));
DoIP_SetTesterAdapter(buffer);
DiagGetCommParameterDoIP_SetLocalIPaddress