Purpose

Terminates automatic transmission of a periodic TesterPresent message. Format

        
long ndStopPeriodicTesterPresent(
       TD1 *diagRef);

      

Input

diagRef

Specifies the diagnostic session handle, obtained from ndOpenDiagnosticOnCANFD and passed to subsequent diagnostic functions. Typically, it is not necessary to manipulate the elements of this struct manually. Output

Return Value

The return value indicates the function call status as a signed 32-bit integer.

Zero means the function executed successfully.

A negative value indicates an error, which means the function did not perform the expected behavior.

A positive value indicates a warning, which means the function performed as expected, but a condition arose that may require attention.

Use the ndStatusToString function to obtain a descriptive string for the return value.

Description

The automatic periodic transmission of a TesterPresent service initiated with ndStartPeriodicTesterPresent is terminated. If this function is not called explicitly, the transmission is stopped when the diagnostic session is terminated with ndCloseDiagnostic. When using the VW TP 2.0 transport protocol, calling ndVWTPDisconnect also stops the periodic TesterPresent transmission.