08/03/2015
Is there a c client example for the ansi c stack ?
I need an example to read a tag via opc ua but under github there is only a server example.
In the Release 1.02.336.1 2015-12-03 there is a client and server example but there is some problem: the client always goes in disconnection.
Thank you
Best regards,
Andrea
The sample publisher (https://github.com/OPCFoundati…..ePublisher) is also an OPC UA Client. Just remove the publishing code.
It is quite simple but it shows how to use the stack API to connect, create a session, browse, and read a node.
08/03/2015
Thank you for the sample: I understood that a call to OpcUa_ClientApi_CreateSession and OpcUa_ClientApi_ActivateSession is required before a OpcUa_ClientApi_Read.
Regarding the release 1.02.336.1 I succeeded to make uatestclient work with uatestserver but I had to add two rows in client and server:
UaTestClient_g_pProxyStubConfiguration.iSerializer_MaxRecursionDepth=OPCUA_ENCODER_MAXRECURSIONDEPTH
UaTestServer_g_pProxyStubConfiguration.iSerializer_MaxRecursionDepth=OPCUA_ENCODER_MAXRECURSIONDEPTH
otherwise the OpcUa_Channel_Connect always returns an error.
Best regards,
Andrea
1 Guest(s)