opcuaserverinfo
Query host for installed OPC UA servers
Description
queries the specified host for its installed OPC UA servers. serverInfo
= opcuaserverinfo(hostname
)hostname
must be the host name or IP address of the local machine or a remote machine on the same
local network.
Note
Before running opcuaserverinfo
to query a host, you must set up
a Local Discovery Service (LDS) on that host, as described in Install a Local
Discovery Service for OPC UA Server Discovery.
queries the Discovery Service located at the URL serverInfo
= opcuaserverinfo(discoveryUrl
)discoveryUrl
.
discoveryUrl
must use the opc.tcp
protocol specified
by the syntax "opc.tcp://hostname:port/Url"
. Use the
discoveryUrl
when your server's OPC UA Discovery Service uses a
nonstandard port number (by default 4840).
serverInfo
is returned as an OPC UA ServerInfo object, or an array of
these objects, containing the read-only properties Description
,
Hostname
, Port
, and
Endpoints
. Endpoints
contains a list of
available endpoints for the server, as an EndpointDescription
array.
Endpoints
includes information about the security models supported by
each endpoint and the user authentication available on that endpoint.
Use the opcua
function to create an OPC UA client object directly
from an opc.ua.ServerInfo
object.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2015b