UaClient_Session_BeginWrite with Timeout

Questions regarding the use of the ANSI C SDK for Server or Client development or integration into customer products ...

Moderator: uasdkc

Post Reply
nemethz
Full Member
Full Member
Posts: 9
Joined: 14 Mar 2017, 09:10

UaClient_Session_BeginWrite with Timeout

Post 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

User avatar
Support Team
Hero Member
Hero Member
Posts: 2522
Joined: 18 Mar 2011, 15:09

Re: UaClient_Session_BeginWrite with Timeout

Post 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.
Best regards
Unified Automation Support Team

Post Reply