ShortInfo

class c104.ShortInfo

This class represents all specific short measurement point information

__init__(self: c104.ShortInfo, actual: float, quality: c104.Quality = c104.Quality(), recorded_at: Optional[datetime.datetime] = None) None

create a new short measurement info

Parameters:
  • actual (float) – Actual measurement value in 32-bit precision

  • quality (c104.Quality) – Quality information

  • recorded_at (Optional[datetime.datetime]) – Timestamp contained in the protocol message, or None if the protocol message type does not contain a timestamp.

Example

>>> short_info = c104.ShortInfo(actual=23.45, quality=c104.Quality.Invalid, recorded_at=datetime.datetime.utcnow())
property actual

the value (read-only)

Type:

float

property processed_at

timestamp with milliseconds of last local information processing (read-only)

Type:

datetime.datetime

property quality

the quality (read-only). The setter is available via point.quality=xyz

Type:

c104.Quality

property recorded_at

timestamp with milliseconds transported with the value itself or None (read-only)

Type:

Optional[int]

property value

maps to property actual (read-only). The setter is available via point.value=xyz

Type:

float