Skip to main content
Open topic with navigation

C2xGetStationHandleByStationName

CAPL Functions » Car2x » C2xGetStationHandle Valid for: CANoe DE

Function Syntax

long C2xGetStationHandle(long packetHandle);
long C2xGetStationHandle(char *dbNodeName);

Description

Retrieves an ITS station handle by the name of the ITS station. The handle can be used as input for the other functions of the Station API, for instance C2xAssignNodeToStation.

Parameters

  • stationName: Name of the station as displayed in the ITS Station Manager.

Return Values

  • 0: Station handle for parameter stationName not available
  • ≠0: Station handle

Example

on key 'a'
{
    long stationHdl;

    stationHdl = C2xGetStationHandleByStationName("Car1");
}
See Also