文章目录
- 1.函数介绍
- 2.实例
1.函数介绍
TestWaitForMessage——等待指定报文
long TestWaitForMessage(dbMessage aMessage, dword aTimeout);
long TestWaitForMessage(dword aMessageId, dword aTimeout);
long TestWaitForMessage(dword aTimeout);
若在aTimeout时间内等到了指定ID的报文,函数返回1,否则返回0;
2.实例
//long TestWaitForMessage(dword aTimeout);
void serve_1003_Req(byte response,byte server)
{
Diag_Req.dl