class documentation
class tagAutoLevelingParams: (source)
Constructor: tagAutoLevelingParams.unpack(data)
Represents auto-leveling parameters.
Class Method | unpack |
Unpacks a bytes sequence into a tagAutoLevelingParams object. |
Method | pack |
Packs the tagAutoLevelingParams object into a bytes sequence. |
Class Variable | accuracy |
Undocumented |
Class Variable | is |
Undocumented |
Unpacks a bytes sequence into a tagAutoLevelingParams object.
Parameters | |
data:bytes | The bytes to unpack, expected to be 9 bytes (1 uint8 + 1 double). |
Returns | |
tagAutoLevelingParams | A tagAutoLevelingParams object. |
Raises | |
struct.error | If the input bytes are not the expected size (9 bytes). |
Packs the tagAutoLevelingParams object into a bytes sequence.
Packs the boolean (as a uint8) and the accuracy (double) into a byte string. Uses little-endian byte order.
Returns | |
bytes | A bytes object representing the packed data (1 byte + 8 bytes = 9 bytes). |