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