def __init__(self, iface='hci0'): self.iface = iface self.devid = HCI.hcistr2devid(self.iface) try: self.hci_bdaddr = HCI(iface).read_bdaddr()['BD_ADDR'].upper() except Exception as e: logger.error("{}".format(e)) exit(1)
def __init__(self, hci='hci0', microbit_devpaths=None): """ hci - HCI device for scaning LE devices and LL features. microbit_devpaths - When sniffing advertising physical channel PDU, we need at least one micro:bit. """ self.hci = hci self.devid = HCI.hcistr2devid(self.hci) self.microbit_devpaths = microbit_devpaths
def __init__(self, iface='hci0'): self.iface = iface self.devid = HCI.hcistr2devid(self.iface)