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
setAttributeValue() is not working
Moderator: uasdkcpp
-
- Hero Member
- Posts: 26
- Joined: 22 Jun 2017, 09:41
- Support Team
- Hero Member
- Posts: 3068
- Joined: 18 Mar 2011, 15:09
Re: setAttributeValue() is not working
Hello Rafa Crespi,
setAttributeValue returns a UaStatus. Did you check the result? What status code do you get back?
setAttributeValue returns a UaStatus. Did you check the result? What status code do you get back?
Best regards
Unified Automation Support Team
Unified Automation Support Team
-
- Hero Member
- Posts: 26
- Joined: 22 Jun 2017, 09:41
Re: setAttributeValue() is not working
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í
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í