def __init__(self, xbee): Worker.__init__(self, name="Uploader") self._xbee = xbee self._messages_session = None self._last_message_index = None now = time() self._next_data_time = now + RETRY_PERIOD self._next_messages_time = now
def __init__(self, xbee): Worker.__init__(self, name="TimeSender") self._xbee = xbee self._last = ""
def __init__(self, resolver): Worker.__init__(self, name="XBee") self._resolver = resolver self._sock = socket(AF_ZIGBEE, SOCK_DGRAM, ZBS_PROT_TRANSPORT) self._sock.bind(("", ENDPOINT, 0, 0)) self._buf = {} # node -> messages
def close(self): Worker.close(self) self._sock.close()
def __init__(self): Worker.__init__(self, name="Resolver") self._resolve_name = set() self._resolve_device_type = set() self._queue = Queue(MAX_QUEUE)