Page 1 of 1

UaClient Read does not return server status code

Posted: 15 Dec 2017, 14:59
by flapointe
Hi,

The status code in the result(DataValue) from a UaClient_Session_BeginRead(...) is not as expected.

I am doing read operations on a server variables with status code "Uncertain" and the result status code is good. (But the same scenario returns "Uncertain" when using subscriptions! As expected.)

Is there somehting I am missing or a fix for this ?

Thank you,
FĂ©lix

Re: UaClient Read does not return server status code

Posted: 20 Dec 2017, 14:13
by Support Team
Hello flapointe,

the StatusCode returned in a read response is not being altered by the SDK, so the server returns the value like that. Please use UaExpert to check if a read of the variable returns something different than when subscribing to it. The Attribute window of UaExpert shows the read result, dragging the item into the DA view shows the value that is returned by subscribing to the item. If the server returns different StatusCodes in the two scenarios, it might be a bug in the server.