Good morning,
I'm using VisualFoxpro code to read values from an OPC-UA server, I use the same code successfully in other projects, but in the current one I'm encountering a problem that I can't understand; I attach the code snippet below;
basically the properties
EndpointDescriptor.UrlString contain "opc.tcp://10.0.0.3:30005/Marcom/S7.Net"
NodeDescriptor.NodeId.ExpandedText contain "nsu=urn:terminalsrv:MarcomOPCServerUAS7Net ;ns=1;s=Termosaldatrice.WO.RD.LifeBit
are valued correctly (check in debug)
The same values entered via the DEMO OPC-UA app work correctly
Despite this ErrorMessageBrief always contains the following message
"Status is not good: {BadNodeIdUnknown}. The node id refers to a node that does not exist in the server address space."
What can I do, check?
ReadArgumentsCicli=CreateObject("OpcLabs.BaseLib.Collections.ElasticVector")
ReadArgumentC="ReadArgumentsC"
&ReadArgumentC=CreateObject("OpcLabs.EasyOpc.UA.OperationModel.UAReadArguments")
&ReadArgumentC..EndpointDescriptor.UrlString=alltrim(this.uri)
&ReadArgumentC..NodeDescriptor.NodeId.ExpandedText=alltrim(this.node)+alltrim(&mnemonicletto)
if this.oParentObject.w_LAUTENTI="S"
&ReadArgumentC..EndpointDescriptor.UserIdentity.UserNameTokenInfo.UserName=alltrim(this.oParentObject.w_LUSER)
&ReadArgumentC..EndpointDescriptor.UserIdentity.UserNameTokenInfo.Password =alltrim(.w_LPASSWORD)
endif
ReadArgumentsCicli.Add(&ReadArgumentC)
ValueresultC=oClient.ReadValueList(ReadArgumentsCicli)
resultC=ValueresultC.Item[0]
error=""
error=resultC.ErrorMessageBrief"