Connect OPC UA client to server
connect( connects the OPC UA client
UaClient to its referenced server using anonymous user authentication.
OPC Toolbox™ currently supports only unsecured connections.
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.
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.
disconnnect function to disconnect the client
from the server.
Locate an OPC UA server and connect a client to it.
s = opcuaserverinfo('localhost'); UaClient = opcua(s); connect(UaClient);
UaClient— OPC UA client
OPC UA client, specified as an OPC UA client object or array of objects.