Skip to main content

diagGetLastResponse

Valid for: CANoe DE Note
The output object must first be declared with any desired qualifier path, however after use in this function it may correspond to any desired diagnostic service. Therefore extra caution should be exercised when accessing the object’s parameters.

Function Syntax

long diagGetLastResponse (diagRequest req, diagResponse respOut);
long diagGetLastResponse (diagResponse respOut);

Method Syntax

Method Syntax
long diagRequest::GetLastResponse (diagResponse respOut);
long diagResponse::GetLastResponse ();

Description

Saves the last response received (for the specified request) in the output object.

Parameters

  • req: Request
  • respOut: Output object for the received response

Return Values

Error code

Example

See diagGenerateKeyFromSeed