def process_modbus_message(self, input_msg):
    address = input_msg[0]
    self.statistic_handler.process_start_message(address)
    (failure, retries, output_message) = self.msg_handler.process_msg(input_msg)
    if (failure != 0):
        output_msg = '@'
        self.statistic_handler.log_bad_message(address, retries)
    else:
        self.statistic_handler.log_good_message(address, retries)
    self.statistic_handler.process_end_message()
    return output_message
def process_modbus_message(self, input_msg):
    address = input_msg[0]
    self.statistic_handler.process_start_message(address)
    (failure, retries, output_message) = self.msg_handler.process_msg(input_msg)
    if (failure != 0):
        output_msg = '@'
        self.statistic_handler.log_bad_message(address, retries)
    else:
        self.statistic_handler.log_good_message(address, retries)
    self.statistic_handler.process_end_message()
    return output_message