OPCUAClient_Connect
(FUN)
FUNCTION OPCUAClient_Connect : RTS_IEC_HANDLE
Connect an OPC UA client to a server. The create session can be used to send services to the OPC UA server. The endpoint in the connection configuration should only contain the user token policy that must be used to connect to the server.
- InOut:
Scope
Name
Type
Comment
Return
OPCUAClient_Connect
RTS_IEC_HANDLE
A handle to the connection itself.
Input
hClient
RTS_IEC_HANDLE
Handle of the client which should be used to create the connection.
pConnectionConfiguration
POINTER TO OPCUAClientConnectionConfiguration
The configuration of the connection. Contains the endpoint to connect to and the timeouts.
connectionCallback
IOPCUAClientConnectionCallback
A callbackinterface which is called on connection state changes or to retrieve user tokes and to verify the servers certificate.