setAttributeValue() is not working

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

Moderator: uasdkcpp

Post Reply
RafaelCrespi
Hero Member
Hero Member
Posts: 26
Joined: 22 Jun 2017, 09:41

setAttributeValue() is not working

Post by RafaelCrespi »

Hello everyone,

I have myNodeManager that inherits from NodeManagerBase and I would like to write the attributes values of a UaNode myNode.

I am trying to use myNode-> setAttributeValue (Session * mySession, OpcUa_UInt32 attributeID, const UaDataValue & value, OpcUa_True) and although the method returns status.isGood (), I do not see any change in the values ​​of the attributes when I check it.

Could it be a problem of access rights? Is there any way to do it?

Thank you in advance,

Rafa Crespi

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

Re: setAttributeValue() is not working

Post by Support Team »

Hello Rafa Crespi,

setAttributeValue returns a UaStatus. Did you check the result? What status code do you get back?
Best regards
Unified Automation Support Team

RafaelCrespi
Hero Member
Hero Member
Posts: 26
Joined: 22 Jun 2017, 09:41

Re: setAttributeValue() is not working

Post by RafaelCrespi »

Hello,

Yes, I checked the UaStatus and it was "0". Finnally I have not used this approach on my solution

Thanks for the answer,

Rafa Crespí

Post Reply