aqhome-data, aqhome-tool: more work on new protocol.
This commit is contained in:
@@ -231,7 +231,7 @@ AQH_MESSAGE *Utils2_WaitForResponseMsg(AQH_EVENT_LOOP *eventLoop, AQH_OBJECT *ep
|
||||
AQH_EventLoop_Run(eventLoop, 500);
|
||||
msg=AQH_Endpoint_GetNextMsgIn(epTcp);
|
||||
if (msg) {
|
||||
if (refMsgId==AQH_IpcMessage_GetRefMsgId(msg))
|
||||
if (refMsgId==0 || refMsgId==AQH_IpcMessage_GetRefMsgId(msg))
|
||||
return msg;
|
||||
else {
|
||||
uint16_t code;
|
||||
@@ -244,7 +244,7 @@ AQH_MESSAGE *Utils2_WaitForResponseMsg(AQH_EVENT_LOOP *eventLoop, AQH_OBJECT *ep
|
||||
|
||||
now=time(NULL);
|
||||
if (now-startTime>timeoutInSeconds) {
|
||||
DBG_ERROR(NULL, "Timeout");
|
||||
DBG_INFO(NULL, "Timeout");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user