Explorar o código

Add EndpointUrl to CreateSessionRequest (#768)

Stefan Profanter %!s(int64=8) %!d(string=hai) anos
pai
achega
1bb7b550fb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/client/ua_client.c

+ 1 - 0
src/client/ua_client.c

@@ -472,6 +472,7 @@ static UA_StatusCode SessionHandshake(UA_Client *client) {
     UA_ByteString_copy(&client->channel->clientNonce, &request.clientNonce);
     request.requestedSessionTimeout = 1200000;
     request.maxResponseMessageSize = UA_INT32_MAX;
+    UA_String_copy(&client->endpointUrl, &request.endpointUrl);
 
     UA_CreateSessionResponse response;
     UA_CreateSessionResponse_init(&response);