Main Content

disconnect

Disconnect OPC UA client from server

Description

disconnect(uaClient) disconnects the OPC UA client uaClient from its server, and sets the client Status property to 'Disconnected'.

example

Examples

collapse all

Create a client, connect it to the OPC UA server and check connection status.

uaClient = opcua("opc.tcp://localhost:53530/OPCUA/SimulationServer");
connect(uaClient);
uaClient.Status
Connected

Disconnect the client and check status

disconnect(uaClient);
uaClient.Status
Disconnected

Input Arguments

collapse all

OPC UA client, specified as an OPC UA client object or array of objects.

Example: disconnect(uaClient)

Version History

Introduced in R2015b

See Also

Functions