opcua
Create OPC UA client object
Description
creates an OPC UA client associated with the server specified by
uaClient
= opcua(serverInfoObj
)serverInfoObj
. You can create server objects with the
opcuaserverinfo
function.
creates a client associated with the server referenced by the URL specified in
uaClient
= opcua(serverUrl
)serverUrl
.
creates an OPC UA client object associated with the server at port
uaClient
= opcua(hostname
,portnum
)portnum
on the host identified by hostname
.
By default, the client attempts to retrieve available connection configurations (called
Endpoints) from the server and chooses the most secure possible security settings from those
configurations. If the attempt to retrieve endpoints fails, an error is generated. You can
override the default settings by using setSecurityModel
to change the MessageSecurityMode
or
ChannelSecurityPolicy
settings.
Note
Security Considerations: To enable a secure communication with an OPC UA server, use a strong channel security policy and message security mode.
You can expose your system to security risks when you set the
MessageSecurityMode
and
ChannelSecurityPolicy
to "None"
using the
setSecurityModel
function. Use this setting only in a trusted
environment.
If you need to connect to an OPC UA server that does not support a security policy, request the server administrator to enable a strong channel security policy and message security mode for the server. These settings enable encryption and authentication and safeguard your data and operations.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2015b