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
, anint
, abool
, afloat
, or astr
.
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), andtimestamp
of this DataValue
Copyright © 2017–2024 Elipse Software Ltda. All rights reserved. Distributed under MIT License.