long result;
byte macAddress[6] = { 0x02, 0x00, 0x00, 0x00, 0x00, 0x01 };
// Form 1: Wait for occurrence of a Car2x message with application message "CAM" and a protocol version of 2
result = C2xTestWaitForSignalMatch("CAM", "header::protocolVersion", 2, 1000);
// Form 2: Wait for occurrence of a Car2x message from "Station1" with GeoNetworking version 1
result = C2xTestWaitForSignalMatch("geo_bh", "version", 1, "Station1", 1000);
// Form 3: Wait for occurrence of a Car2x message with the specified macAddress
C2xTestWaitForSignalMatch("eth", "source", 6, macAddress, 1000);
// Form 4: Wait for occurrence of Car2x message with the specified macAddress from "Station2"
C2xTestWaitForSignalMatch("eth", "source", 6, macAddressStation2, "Station2", 1000);
// Form 5: Wait for occurrence of a Car2x message with the CAM lowBeamHeadlights set to 1
C2xTestWaitForSignalMatch("CAM", "cam.camParameters.lowFrequencyContainer.basicVehicleContainerLowFrequency.exteriorLights", "lowBeamHeadlightsOn", 1, 1000);
// Form 6: Wait for occurrence of a Car2x message with the CAM lowBeamHeadlights set to 1 from "Station2"
C2xTestWaitForSignalMatch("CAM", "cam.camParameters.lowFrequencyContainer.basicVehicleContainerLowFrequency.exteriorLights", "lowBeamHeadlightsOn", 0, "Station2", 1000);
// Form 7: Wait for occurrence of a Car2x message in which the bit bitposition 7 in the token exteriorlights is 0.
C2xTestWaitForSignalMatch("CAM", "cam.camParameters.lowFrequencyContainer.basicVehicleContainerLowFrequency.exteriorLights", 7, 0, 1000);
// Form 8: Wait for occurrence of a Car2x message in which the bit bitposition 7 in the token exteriorlights is 0 and which is sent from "Station2".
C2xTestJoinSignalMatch("CAM", "cam.camParameters.lowFrequencyContainer.basicVehicleContainerLowFrequency.exteriorLights", 7, 0, "Station2", 1000);