def poweroff(self):
        """
        shutdown the machine
        """
        command = const.CMD_POWEROFF
        command_string = b''
        response_size = 1032
        cmd_response = self.__send_command(command, command_string, response_size)
        if cmd_response.get('status'):
            self.is_connect = False
            self.next_uid = 1
            return True
        else:
            raise ZKErrorResponse("can't poweroff")
def poweroff ( self ) : command = const . CMD_POWEROFF command_string = b'' response_size = 1032 cmd_response = self . __send_command ( command , command_string , response_size ) if cmd_response . get ( 'status' ) : self . is_connect = False self . next_uid = 1 return True else : raise ZKErrorResponse ( "can't poweroff" )
shutdown the machine