PushDCIData

Deprecated in 6.2.

Please use pushDCIData() method of DataCollectionTarget class instead.

PushDCIData(node, dciId, value, timestamp): int

Push new DCI value from script.

Table 1. Parameters

node

DataCollectionTarget

Node or other data collection target object instance.

dciId

Integer

DCI id for which new value will be pushed (DCI origin must be set to "Push" or "OpenTelemetry (OTLP)").

value

Integer or String

New value for DCI.

timestamp

Integer

Timestamp in milliseconds since epoch (1 Jan 1970 00:00:00 UTC). Optional, current time is used if not specified.

Return

1 on success, 0 on failure.

PushDCIData($node, 46, 13); // Push value "13" to DCI with id 46 using current time
PushDCIData($node, 46, 13, time() * 1000); // Push with explicit timestamp in milliseconds