Ejemplo n.º 1
0
 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 
Ejemplo n.º 2
0
 def __init__(self, xbee):
     Worker.__init__(self, name="TimeSender")
     self._xbee = xbee
     self._last = ""
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 def close(self):
     Worker.close(self)
     self._sock.close()
Ejemplo n.º 5
0
 def __init__(self):
     Worker.__init__(self, name="Resolver")
     self._resolve_name = set()
     self._resolve_device_type = set()
     self._queue = Queue(MAX_QUEUE)