class documentation
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 |
Unpacks a bytes sequence into a tagHomeCmd object.
Parameters | |
data:bytes | The bytes to unpack, expected to be 4 bytes (1 unsigned int). |
Returns | |
tagHomeCmd | A tagHomeCmd object. |
Raises | |
struct.error | If the input bytes are not the expected size (4 bytes). |
Packs the tagHomeCmd object into a bytes sequence.
Packs the reserved integer (uint32) into a byte string. Uses little-endian byte order.
Returns | |
bytes | A bytes object representing the packed data (4 bytes). |