Page 1 of 1

UaClient_Session_BeginWrite with Timeout

Posted: 26 Jul 2018, 18:35
by nemethz
Hi,

Can you help me, how can I use UaClient_Session_BeginWrite function with setting timeout.
I know I have to set UaClient_ServiceSettings, but there are variables I don't know how to use, eg. the RequestHandle.
An example program would be great!

Thanks

Re: UaClient_Session_BeginWrite with Timeout

Posted: 20 Sep 2018, 09:54
by Support Team
Hello nemethz,

by default, the CallTimeout of the session is used for all service calls. If you want to set a different CallTimeout, simply create a UaClient_ServiceSettings structure, initialize it with UaClient_ServiceSettings_Initialize, set the desired CallTimeout and pass it to UaClient_Session_BeginWrite. All other members of the UaClient_ServiceSettings structure are ignored if you don't modify them after UaClient_ServiceSettings_Initialize.