long index;
long packet;
byte macAddress[6] = { 0x02, 0x00, 0x00, 0x00, 0x00, 0x01 };
// Form 1
index = C2xTestJoinSignalMatch("CAM", "header::protocolVersion", 2);
// Form 2
C2xTestJoinSignalMatch("DENM", "denm::situation::eventType::causeCode", 1, "Station1");
testWaitForAllJoinedEvents(1000);
// Form 3
C2xTestJoinSignalMatch("eth", "source", 6, macAddress);
// Form 4
C2xTestJoinSignalMatch("eth", "source", 6, macAddressStation2, "Station2");
// Form 5
C2xTestJoinSignalMatch("CAM", "cam.camParameters.lowFrequencyContainer.basicVehicleContainerLowFrequency.exteriorLights", "lowBeamHeadlightsOn", 1);
// Form 6
C2xTestJoinSignalMatch("CAM", "cam.camParameters.lowFrequencyContainer.basicVehicleContainerLowFrequency.exteriorLights", "lowBeamHeadlightsOn", 0, "Station2");
// Form 7
C2xTestJoinSignalMatch("CAM", "cam.camParameters.lowFrequencyContainer.basicVehicleContainerLowFrequency.exteriorLights", 7, 0);
// Form 8
C2xTestJoinSignalMatch("CAM", "cam.camParameters.lowFrequencyContainer.basicVehicleContainerLowFrequency.exteriorLights", 7, 0, "Station2");
if(testWaitForAllJoinedEvents(1500))
{
// Get the message for the first joined event
C2xTestGetWaitForMessage(index, packet);
}