class documentation

class tagHomeCmd: (source)

Constructor: tagHomeCmd.unpack(data)

View In Hierarchy

Represents a home command with a reserved integer field.

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

Unpacks a bytes sequence into a tagHomeCmd object.

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

Packs the tagHomeCmd object into a bytes sequence.

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

Returns
bytesA bytes object representing the packed data (4 bytes).
reserved: int = (source)

Undocumented