def METHOD_NAME(self):
    """
    Thread running function
    """
    try:
        while self.running:
            # Parse incoming data
            c = self.ser.readline()
            if len(c) > 0:
                # Callback function on new message
                self.callback(c)
    except StopIteration:
        pass