Skip to main content

Iso11783OPGetAttribute

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long Iso11783OPGetAttribute( dword ecuHandle, dword objectID, dword attributeID );

Description

The function returns a value of an object attribute from the local object pool. A Get Attribute command is not sent to the Virtual Terminal. The object must exist in the object pool and support the attribute ID.

Parameters

  • ecuHandle: Handle of the ECU (must be created with Iso11783CreateECU)
  • objectID: Object identifier of an object in the object pool
  • attributeID: Attribute identifier, see ISO11783-6

Return Values

  • Integer value of the object.
  • If a value of 0 is returned, you can check with the function Iso11783GetLastError if the function succeeded.

Example

LONG objType;
objType = Iso11783OPGetAttribute( handle, 1000, 0 );