Main Content

findDescription

Find OPC UA servers containing specified description

Description

matchingServers = findDescription(serverInfo,searchText) searches among the specified serverInfo objects and returns only those server info objects whose corresponding OPC UA server description contains the character vector or string specified in searchText.

example

Examples

collapse all

Find all sample servers from the local host.

localServers = opcuaserverinfo('localhost');
sampleServers = findDescription(localServers,'Sample')
sampleServers = 
OPC UA ServerInfo 'UA Sample Server':

   Connection Information:
    Hostname: 'HOST2241'
        Port: 51210
   Endpoints: [1×11 opc.ua.EndpointDescription]

   Security Information:
    BestMessageSecurity: SignAndEncrypt
    BestChannelSecurity: Aes256_Sha256_RsaPss
         UserTokenTypes: {'Anonymous'  'Username'  'Certificate'}

Input Arguments

collapse all

Server information, specified as an array of opc.ua.ServerInfo objects.

Server description, specified as a string or character vector.

Output Arguments

collapse all

List of matching servers, returned as an array of ServerInfo objects.

Version History

Introduced in R2015b