OnSocketReceivedInd
CAPL Functions » Smart Charging » CCS (Communication Setup) » Shared Callback Functions » OnSocketReceivedInd Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
The callback is called each time a TCP/UDP packet containing a Vehicle2Grid or SECC Discovery message is received on the socket by the DO. It allows to query the payload and its length as well as for the source and destination port. It is available for the whole Distributed Object.Parameters
- messageId: The id of the received message contained in the packet. See MessageIDs for more information.
- sourcePort: The source port of the received packet.
- destinationPort: The destination port of the received packet.
- payload: The payload of the received packet.
- payloadLength: The length of the payload of the received packet.