OPC_UA Read
x/opcuaRead
Component: v0.28.0+ OPC UA Read component, used to read data from an OPC UA server. It can read data from a single node or multiple nodes.
Additional extension library required: rulego-components-iot (opens new window)
# Configuration
Field | Type | Description | Default |
---|---|---|---|
server | string | OPC UA server address | None |
policy | string | Security policy, options include: None, Basic128Rsa15, Basic256, Basic256Sha256 | None |
mode | string | Communication mode, options include: None, Sign, SignAndEncrypt | None |
auth | string | Authentication method, options: Anonymous, UserName, Certificate | Anonymous |
username | string | Username (required when auth is UserName ) | None |
password | string | Password (required when auth is UserName ) | None |
certFile | string | Certificate file path (required when auth is Certificate ) | None |
certKeyFile | string | Private key file path (required when auth is Certificate ) | None |
Security Policy (policy) Options Meaning:
- None: No security policy is used.
- Basic128Rsa15: Uses basic 128-bit encryption and RSA15 signing.
- Basic256: Uses basic 256-bit encryption.
- Basic256Sha256: Uses basic 256-bit encryption and SHA256 signing.
Communication Mode (mode) Options Meaning:
- None: No mode is used.
- Sign: Message signing.
- SignAndEncrypt: Message signing and encryption.
Query Node List Obtained from Message Payload, Format:
[
"ns=3;i=1003",
"ns=3;i=1005"
]
1
2
3
4
2
3
4
# Relation Type
- Success: Execution is successful, the message is sent to the
Success
chain. - Failure: Execution fails, the message is sent to the
Failure
chain.
# Execution Result
The query result is reassigned to msg.Data
and passed to the next node through the Success
chain, format:
[
{
"displayName": "ns=3;i=1003",
"floatValue": 0,
"nodeId": "ns=3;i=1003",
"quality": 0,
"recordTime": "0001-01-01T00:00:00Z",
"sourceTime": "0001-01-01T00:00:00Z",
"timestamp": "0001-01-01T00:00:00Z",
}
]
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
Edit this page on GitHub (opens new window)
Last Updated: 2024/12/28, 14:51:12