Skip to main content

C2xGetMessageHandle

Valid for: CANoe DE

Function Syntax

  • long C2xGetMessageHandle(char* dbMessage); // form 1
  • long C2xGetMessageHandle(char* stationName, char* dbMessage); //form 2
  • long C2xGetMessageHandle(uint64 stationID, long sequenceNumber); //form 3
  • long C2xGetMessageHandle(char* stationName, uint64 stationID, long sequenceNumber); //form 4

Description

This function returns the packet handle for a specified Car2x message. Form 3 & 4 only work for stations where one or more DENMs are active.

Parameters

  • dbMessage: Name of the message
  • stationName: Name of the specified station
  • stationID: Id of the station that sends multiple DENM messages
  • sequenceNumber: Sequence number of the specified DENM messages

Return Values

  • -1: General error, for example, functionality is not available
  • >0: Handle of the packet

Example