OPC_UA Endpoint
OPCUA Endpoint v0.28.0+ Periodically reads data from the OPC UA server and sends the data to the rule chain.
TIP
- This component is an extension component and requires the introduction of an additional extension library: rulego-components-iot (opens new window)
# Type
endpoint/opcua
# Startup 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 |
interval | string | Read task time configuration, supports cron expressions Example: @every 1m (every 1 minute) 0 0 0 * * * (triggers at midnight) | |
nodeIds | []string | Query node list Example: ["ns=2;s=Channel1.Device1.Tag1"] |
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.
# Routing Parameters
Only one route is allowed.
# Output Parameters
Input RuleMsg data for the rule chain, format as follows:
- data:Format is an array, each element contains the following fields:
Field | Type | Description |
---|---|---|
displayName | string | Display name |
nodeId | string | Node ID |
recordTime | string | Record time |
sourceTime | string | Source time |
value | any | Value |
quality | uint32 | Data quality |
floatValue | float64 | Float type value |
timestamp | string | Timestamp |
- dataType:JSON
- type:OPC_UA_DATA
Edit this page on GitHub (opens new window)
Last Updated: 2024/12/28, 14:51:12