def ValueUpdate(self, text):
        if text == self.waitStr:
            self.waitStr = None
            self.waitFlag.set()
            return
        header = text[0:4]
        state = text[5:].decode('utf-8')
        self.lastMessage[header] = state
        ttEvent = self.ttEvents.get(header, None)
        if ttEvent is not None:
            if type(ttEvent) == type({}):
                eventString = ttEvent.get(state, None)
                if eventString is not None:
                    self.TriggerEvent(eventString)
                else:
                    self.TriggerEvent(header, [state])
            elif type(ttEvent) == type(()):
                suffix2 = ttEvent[1].get(state, None)
                if suffix2 is not None:
                    self.TriggerEvent(ttEvent[0] + "." + suffix2)
                else:
                    self.TriggerEvent(ttEvent[0] + "." + str(state))
            else:
                if state == "":
                    self.TriggerEvent(ttEvent)
                else:
                    self.TriggerEvent(ttEvent, [state])
            return
        else:
            self.TriggerEvent(header, [state])