disconnect (opcua)

Disconnect OPC UA client from its server

Syntax

disconnect(UaClient)

Description

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

Examples

Disconnect an OPC UA client and view its connection status.

s = opcuaserverinfo('localhost');
UaClient = opcua(s);
connect(UaClient);
UaClient.Status
Connected
disconnect(UaClient);
UaClient.Status
Disconnected

Introduced in R2015b