class documentation

class tagWAITCmd: (source)

Constructor: tagWAITCmd.unpack(data)

View In Hierarchy

Represents a WAIT command with a timeout.

Class Method unpack Unpacks a bytes sequence into a tagWAITCmd object.
Method pack Packs the tagWAITCmd object into a bytes sequence.
Class Variable timeout Undocumented
def unpack(cls, data: bytes) -> tagWAITCmd: (source)

Unpacks a bytes sequence into a tagWAITCmd object.

Parameters
data:bytesThe bytes to unpack, expected to be 4 bytes (1 unsigned int).
Returns
tagWAITCmdA tagWAITCmd object.
Raises
struct.errorIf the input bytes are not the expected size (4 bytes).
def pack(self) -> bytes: (source)

Packs the tagWAITCmd object into a bytes sequence.

Packs the timeout integer (uint32) into a byte string. Uses little-endian byte order.

Returns
bytesA bytes object representing the packed data (4 bytes).

Undocumented