Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Read

Task for reading data from OPCUA Server.

Task version: 1.1.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

Mode : OpcOperationMode

Determines the mode for either reading specific nodes or browse existing nodes.

Possible values:

  • Read: Reads specific nodes specifyed in NodeIds parameter.

  • Browse: Browses existing nodes using StartNodeId parameter.

Default: Read Example: OpcOperationMode.ReadNodes

NodeIds : String[]

List of NodeIds to read from the OPC UA Server.

Default: - Example: [ "ns=2;i=1001", "ns=2;s=Temperature" ]

StartNodeId : String

NodeId of the node where browsing should be started.

Default: - Example: ns=2;s=Temperature

Name
Description

ServerName : String

OPC UA Server name or IP address.

Default: localhost Example: localhost

Port : Int32

Port to be used to connect to the OPC UA Server.

Default: 4080 Example: 4080

Path : String

Optional parameter to set a specific path to the server URL.

Default: - Example: path

AutoAcceptUntrustedCertificates : Boolean

Whether to accept untrusted/self-signed server certificates.

Set to false in production environments.

Default: True Example: true

Authentication : AuthenticationMode

Authentication to be used connecting to the OPC UA Server.

Possible values:

  • Anonymous: No authentication is used to connect.

  • UsernamePassword: Username and password authentication is used.

  • Certificate: Certificate authentication is used.

Default: UsernamePassword Example: AuthenticationMode.UsernamePassword

Username : String

Username for the authentication.

Default: - Example: user

🗝Password : String

Password for the authentication.

Default: - Example: pass

CertificatePath : String

Path to the certificate to be used to authenticate to OPC UA Server.

Default: - Example: C:\path\to\certificate

🗝CertificatePassword : String

Password for the certificate file.

Default: - Example: Password

PrivateKeyPath : String

Path to the private key. Used forr certificate authentication if .der or .crt typed certifications are being used.

Default: - Example: C:\path\to\privatekey

ConnectionTimeout : Int32

Connection timeout in seconds.

Default: 10 Example: 10

SessionTimeout : Int32

Session timeout in seconds.

Default: 60 Example: 60

SecurityMode : OpcMessageSecurityMode

Defines the OPC UA message security level applied to communication between client and server.

Controls whether messages are sent without security, digitally signed for integrity,

or both signed and encrypted for full confidentiality and protection against tampering.

Possible values:

  • None: No message security is applied. Messages are sent in plain text without signing or encryption.

This mode provides no confidentiality or integrity protection and should only be used in trusted environments such as development or isolated networks.

  • Sign: Messages are digitally signed to ensure data integrity and authenticity.

The content is not encrypted, meaning it can still be read in transit.

This mode protects against tampering but does not provide confidentiality.

  • SignAndEncrypt: Messages are both signed and encrypted.

This provides full confidentiality, integrity, and authentication of OPC UA communication.

This is the recommended mode for production and untrusted networks.

Default: None Example: OpcMessageSecurityMode.None

ApplicationCertificatePath : String

Optional path to a PFX/PKCS#12 file to use as the client application certificate

for establishing a secure channel. When left empty a temporary self-signed certificate

is generated for the duration of the task and discarded afterwards.

Requires ApplicationCertificatePassword if the PFX is password protected.

Default: - Example: C:\path\to\cert

🗝ApplicationCertificatePassword : String

Password for the PFX file specified in ApplicationCertificatePath.

Leave empty if the certificate has no password.

Default: - Example: passphrase

SecurityPolicy : OpcSecurityPolicy

Defines the cryptographic algorithm set used for securing OPC UA communication.

Includes encryption algorithms, hashing functions, and key exchange mechanisms.

The selected policy must be supported by the server endpoint and compatible with the chosen SecurityMode.

Possible values:

  • None: No security policy is applied.

Communication is unencrypted and unsigned.

This should only be used in development or fully trusted environments.

  • Basic256Sha256: Legacy security policy using RSA encryption with SHA-256 hashing.

Widely supported by industrial OPC UA servers and older PLC implementations.

  • Aes128Sha256RsaOaep: Modern security policy using AES-128 encryption, SHA-256 hashing, and RSA-OAEP key exchange.

Provides strong security and is widely used in current OPC UA implementations.

  • Aes256Sha256RsaPss: High-security policy using AES-256 encryption, SHA-256 hashing, and RSA-PSS signatures.

Designed for environments requiring maximum cryptographic strength and compliance.

Default: None Example: OpcSecurityPolicy.None

Name
Description

ApplicationName : String

Application name used when connecting to the OPC UA Server.

Default: Frends.OpcUa.Client Example: Frends.OpcUa.Client

PkiRootPath : String

The root directory path where the OPC UA client PKI store is located.

The SDK will create the following subdirectories automatically:

own — stores the auto-generated client application certificatetrusted — stores trusted server certificatesrejected — stores rejected server certificates

On first connect the SDK generates a self-signed application certificate and saves it

under {PkiRootPath}/own, which is then reused on subsequent runs.

Only applicable when OpcMessageSecurityMode is anything other than None.

Default: - Example: ./pki

ThrowErrorOnFailure : Boolean

Whether to throw an error on failure.

Default: True Example: true

ErrorMessageOnFailure : String

Overrides the error message on failure.

Default: - Example: Custom error message

Task Result

Name
Description

Success : Boolean

Indicates whether the read operation was successful. Example: true

NodeValues : Object

JSON array of node read results. Each element contains NodeId, Value, DataType, StatusCode, and SourceTimestamp. Example: { }

Error : Error

Error message if the operation failed. Example: object { string Message, Exception AdditionalInfo }

Error.Message : String

Summary of the error. Example: Unable to join strings.

Error.AdditionalInfo : Exception

Additional information about the error. Example: object { Exception AdditionalInfo }

Task Changelog

Changelog for Task Frends.Opcua.Read.

[1.1.0] - 2026-07-23

Fixed

  • Updated copyright information to comply with Frends platform standards.

[1.0.0] - 2026-05-18

Added

  • Initial implementation

Last updated

Was this helpful?