Skip to main content

C2xSendMsg

CAPL Functions » Car2x » C2xSendMsg Valid for: CANoe DE

Function Syntax

  • long C2xSendMsg(char* dbMessage); //form 1
  • long C2xSendMsg(char* dbMessage, char* stationName); //form 2
  • long C2xSendMsg (long packetHandle); // form 3
  • long C2xSendMsg (char stationName[], long packetHandle); // form 4

Description

Send the message with the specified message name.

Parameters

  • dbMessage: Name of the message to send.
  • stationName: Name of the sending station.
  • packetHandle: Packet handle of the message to check.

Return Values

Example

long packetHdl = -1;
C2xSendMsg("CAM");

packetHdl = C2xGetMessageHandle (1,1);
C2xSendMsg (packetHdl);

C2xSendMsg ("BasicNode",packetHdl);

See Also