Skip to main content

Type Alias: OpcUaNodeSpec

type OpcUaNodeSpec = {
node_id: string;
channel?: string;
sampling_interval?: number;
};

Defined in: livelink.clients/livelink.agent/sources/data/transports/OpcUaTransport.ts:30

One OPC UA variable to monitor, and the channel its samples are published on.

Properties

node_id

node_id: string;

Defined in: livelink.clients/livelink.agent/sources/data/transports/OpcUaTransport.ts:35

Identifier of the node to monitor, e.g. ns=3;s="DB_Line1"."Temperature" on a Siemens PLC or ns=2;i=1042 on a server using numeric identifiers.


channel?

optional channel?: string;

Defined in: livelink.clients/livelink.agent/sources/data/transports/OpcUaTransport.ts:44

Channel the samples of this node are published on. Defaults to OpcUaNodeSpec.node_id.

Worth setting: channel patterns match over /-separated segments, and a raw node id is a single opaque segment full of ;, = and quotes. Aliasing ns=3;s="DB1"."Temp" to plc/line1/temperature is what lets a mapping select it with channel: "plc/+/temperature".


sampling_interval?

optional sampling_interval?: number;

Defined in: livelink.clients/livelink.agent/sources/data/transports/OpcUaTransport.ts:51

How often the server samples this node, in milliseconds. Overrides OpcUaTransportConfig.sampling_interval for this node alone — the one knob worth setting per node, a fast counter and a slow temperature rarely deserving the same rate.