|
@@ -295,7 +295,6 @@ receiveServiceResponse(UA_Client *client, void *response, const UA_DataType *res
|
|
return retval;
|
|
return retval;
|
|
}
|
|
}
|
|
|
|
|
|
-#include <stdio.h>
|
|
|
|
void
|
|
void
|
|
__UA_Client_Service(UA_Client *client, const void *request,
|
|
__UA_Client_Service(UA_Client *client, const void *request,
|
|
const UA_DataType *requestType, void *response,
|
|
const UA_DataType *requestType, void *response,
|
|
@@ -320,7 +319,6 @@ __UA_Client_Service(UA_Client *client, const void *request,
|
|
(client->config.timeout * UA_MSEC_TO_DATETIME);
|
|
(client->config.timeout * UA_MSEC_TO_DATETIME);
|
|
retval = receiveServiceResponse(client, response, responseType, maxDate, &requestId);
|
|
retval = receiveServiceResponse(client, response, responseType, maxDate, &requestId);
|
|
if (retval == UA_STATUSCODE_GOODNONCRITICALTIMEOUT){
|
|
if (retval == UA_STATUSCODE_GOODNONCRITICALTIMEOUT){
|
|
-printf("-----------------------------ICI1\n");
|
|
|
|
/* In synchronous service, if we have don't have a reply we need to close the connection */
|
|
/* In synchronous service, if we have don't have a reply we need to close the connection */
|
|
UA_Client_disconnect(client);
|
|
UA_Client_disconnect(client);
|
|
retval = UA_STATUSCODE_BADCONNECTIONCLOSED;
|
|
retval = UA_STATUSCODE_BADCONNECTIONCLOSED;
|