Main Content

findDescription

Find OPC UA servers containing specified description

Description

matchingServers = findDescription(servers,searchText) searches among Servers and returns only those OPC UA servers whose Description property contains the character vector or string 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

See Also

Functions