UaClient Read does not return server status code

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

Moderator: uasdkc

Post Reply
flapointe
Jr. Member
Jr. Member
Posts: 2
Joined: 21 Nov 2017, 15:46

UaClient Read does not return server status code

Post 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

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

Re: UaClient Read does not return server status code

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

Post Reply