Пример #1
0
 def __init__(self, bglib, cmd_q, address):
     self.address = address2str(address)
     self.addr = address
     self.name = ''
     self.cmd_q = cmd_q
     self.bglib = bglib
     self.connection_handle = None
     self.connected = False
     self.services = []
     self.current_procedure = None
     self.custom_services = []
Пример #2
0
 def find_device(self, addr):
     for device in self.devices:
         if address2str(addr) == device.address:
             return device
     return None