sttp.transport.tssc package

Submodules

sttp.transport.tssc.decoder module

class sttp.transport.tssc.decoder.Decoder[source]

Bases: object

The decoder for the Time-Series Special Compression (TSSC) algorithm of STTP.

sequencenumber

SequenceNumber is the sequence used to synchronize encoding and decoding.

set_buffer(data: bytes) None[source]

Assigns the working buffer to use for decoding measurements.

try_get_measurement() Tuple[int32, int64, uint32, float32, bool, Exception | None][source]

sttp.transport.tssc.pointmetadata module

class sttp.transport.tssc.pointmetadata.CodeWords[source]

Bases: object

ENDOFSTREAM = 0
POINTIDXOR12 = 3
POINTIDXOR16 = 4
POINTIDXOR20 = 5
POINTIDXOR24 = 6
POINTIDXOR32 = 7
POINTIDXOR4 = 1
POINTIDXOR8 = 2
STATEFLAGS2 = 18
STATEFLAGS7BIT32 = 19
TIMEDELTA1FORWARD = 8
TIMEDELTA1REVERSE = 12
TIMEDELTA2FORWARD = 9
TIMEDELTA2REVERSE = 13
TIMEDELTA3FORWARD = 10
TIMEDELTA3REVERSE = 14
TIMEDELTA4FORWARD = 11
TIMEDELTA4REVERSE = 15
TIMESTAMP2 = 16
TIMEXOR7BIT = 17
VALUE1 = 20
VALUE2 = 21
VALUE3 = 22
VALUEXOR12 = 26
VALUEXOR16 = 27
VALUEXOR20 = 28
VALUEXOR24 = 29
VALUEXOR28 = 30
VALUEXOR32 = 31
VALUEXOR4 = 24
VALUEXOR8 = 25
VALUEZERO = 23
class sttp.transport.tssc.pointmetadata.PointMetadata(writebits: Callable[[int32, int32], None] | None, readbit: Callable[[], int32] | None, readbits5: Callable[[], int32] | None)[source]

Bases: object

read_code() Tuple[int32, Exception | None][source]
write_code(code: int32) Exception | None[source]

Module contents