connect
Connect OPC UA client to server
Syntax
Description
connect(
connects the OPC UA client
uaClient
)uaClient
to its referenced server using anonymous user
authentication.
connect(
connects the OPC UA Client uaClient
,publicKeyFilename
,privateKeyFileName
,privateKeyPassword
)uaClient
to its server using the User
Certificate stored in the public and private key files referenced by
publicKeyFilename
in .DER
and
privateKeyFilename
in .PEM
format.
privateKeyPassword
is the password used to protect the Private Key
File. Private Key Files for OPC must be password protected.
When the client successfully connects to the server, the client object
Status
property is set to 'Connected'
, the first
level of the server namespace is retrieved, and various essential properties of the client
are read from the server.
If uaClient
is a vector of clients, and some but not all clients can
connect, a warning is issued. If no clients can connect, an error is generated. You can only
connect a vector of clients using the same username and password, or the same certificate
parameters. If you need to use different usernames and passwords for different servers, call
connect
on each of the clients individually.
Examples
Input Arguments
Version History
Introduced in R2015b