Elipse Plant Manager — EPM Web API

Version 5.0.45

epmwebapi.datavaluejson

class DataValueJSON:

Class representing a DataValue.

DataValueJSON(value, statusCode, timestamp, dataTypeId=None)

Creates a new DataValue.

Parameters
  • value: Value of this DataValue.
  • statusCode: OPC UA status code.
  • timestamp: Timestamp of this DataValue.
  • dataTypeId: ID of data type. Default is None.
value: Union[datetime.datetime, int, bool, float, str]

Returns the value from this DataValue.

Returns

The value of this DataValue as a datetime.datetime, an int, a bool, a float, or a str.

statusCode: int

Returns an OPC UA status code (quality) for this DataValue.

Returns

An OPC UA status code.

timestamp: datetime.datetime

Returns the source timestamp from this DataValue.

Returns

A datetime.datetime value representing a source timestamp.

def toDict(self):

Returns this DataValueJSON object as a dictionary.

Returns

A dictionary containing value, statusCode (quality), and timestamp of this DataValue