Skip to main content

C2xParsePacket

Open topic with navigation CAPL Functions » Car2x » C2xParsePacket

Function Syntax

Description

Reinterprets the packet after externally defined binary payload data has been assigned to the packet. When parts of the packet are already available as byte array from external sources, for example gateways or traffic intersection geometry design tools (for MAP packet), these binary byte arrays can be applied to the packet by using C2xSetTokenData function. Here mentioned are byte arrays representing the whole header payload parts like wsmp_t/data, dsmp/data or btp/data and not the data of specific concrete payload tokens. By calling C2xParsePacket the packet will be reinterpreted, so directly after the call the values of each token existed in external data are accessible (see the example). This function fails when the external data applied to the packet cannot be successfully interpreted by using database message definitions.

Parameters

  • packet: Handle of a packet that has been created with C2xInitPacket or was obtained via callback function parameter.

Return Values

Example

See Also