Skip to main content
Open topic with navigation

PayloadPreSendInd

CAPL Functions » Smart Charging » CCS (Communication Setup) » Shared Callback Functions » PayloadPreSendInd Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

The callback is called each time a TPC/UDP packet containing a Vehicle2Grid or SECC Discovery message is about to be sent by the DO. It allows to peek for the payload and its length before sending. Additionally, the payload and by doing so also the length may be changed for the purpose of fault injection. It is available for the whole Distributed Object.

Parameters

  • payload: The UDP/TCP payload data (writable)
  • messageId: ID of the message to be sent. See MessageIDs for more information.
  • payloadLength: The length of the UDP/TCP payload at the time of the callback. Will automatically match the length of the buffer, once modified payload is passed back to the DO that is about to send this message.

Return Values

Example