Skip to main content

AvbGetLastErrorText

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

dword AvbGetLastErrorText(dword bufferLength, char buffer[]);

Description

Function to retrieve the last error which occurs in the AVB IL as string. The call of the AvbGetLastErrorText function does not reset the saved error text.

Parameters

  • bufferLength: Number of characters.
  • buffer: Buffer receiving the error text.

Return Values

Number of copied characters.

Example

char buffer[1024];
dword listenerHandle;

// open a listener
listenerHandle = AvbOpenListener();

// check if last function was executed successfully
if ((AvbGetLastErrorText(elcount(buffer), buffer)) != 0)
{
  write("AVB IL error occurred: %s", buffer);
}
See Also
  • AvbAccept
  • AvbCloseListener
  • AvbCloseTalker
  • AvbConnect
  • AvbGetLastError
  • AvbGetLastErrorText
  • AvbGetMediaType
  • AvbGetProtocol
  • AvbGetStreamId
  • AvbGetStreamSourceAddress
  • AvbGetStreamUniqueId
  • AvbILControlInit
  • AvbILControlResume
  • AvbILControlStart
  • AvbILControlStop
  • AvbILControlWait
  • AvbListen
  • AvbOpenListener
  • AvbOpenTalker
  • AvbReceive
  • AvbSend
  • AvbSetMediaType
  • AvbSetProperty
  • AvbSetProtocol
  • AvbSetVerbosity
  • OnAvbConnect
  • OnAvbListen
  • OnAvbReceive
  • OnAvbSend
  • OnAvbSendPrepare
  • OnPtpSendPrepare
  • PtpSetProperty
  • PtpSimulationTimespanFromPtpTimespan
  • PtpTimeFromSimulationTime
  • PtpTimeNow