Esempio n. 1
0
    def __init__(self, idVendor, idProduct):

        self._responses_cond = threading.Condition()
        self._responses = collections.deque()
        self._event_cond = threading.Condition()
        self._events = collections.deque()

        self._datas = queue.Queue()

        self.channels = {}

        self.ant = Ant(idVendor, idProduct)

        self._running = True

        self._worker_thread = threading.Thread(target=self._worker,
                                               name="ant.easy")
        self._worker_thread.start()