Step 5 - Allow Reception Of Messages
After successfully connecting to the VDA, the next step is to enable reception of messages using the nClientID returned from RP1210_ClientConnect ( ). When the call to RP1210_ClientConnect () is made, the API does not allow messages to pass, meaning RP1210_ReadMessage () would not return a message. This gives applications time to spin their read/write threads, etc. Below is a snippet of code that allows messages to pass. Note that some protocols must have specific filters set (i.e., Tester to ECM) such as OBDII/J1979 on ISO15765, but for a protocol such as CAN, J1939 or J1708/J1587, this example allows all messages to flow: