Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » ISO11783 Node Layer » Iso11783PDDGetLastErrorText

Iso11783PDDGetLastErrorText

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long Iso11783PDDGetLastErrorText( dword bufferSize, char buffer[] );

Description

This function returns as a string the error description of the function of this node layer most recently executed.

Parameters

  • bufferSize: Size of the buffer into which the error text is copied
  • buffer: Buffer in which error text is copied

Return Values

Number of characters copied

Example

char text[256];

value = Iso11783PDDGetValue ( ecuHandle, PD::AppRateSignal, 0;

if (Iso11783PDDGetLastError () != 0) {
  Iso11783PDDGetLastErrorText( elCount(text), text );
  write( "ERROR: %s", text );
}