powermon.protocols.pi18 module

powermon / protocols / pi18.py

class powermon.protocols.pi18.PI18

Bases: AbstractProtocol

pi18 protocol handler

check_crc(response: str, command_definition: CommandDefinition = None)

crc check, override for now

get_full_command(command: str) bytes

generate the full command including prefix, crc and as needed

trim_response(response: str, command_definition: CommandDefinition = None) str

Remove extra characters from response