def __init__(self, callback, bt_device_id, device_filter, packet_filter):
        """Construct interface object."""
        # do import here so that the package can be used in parsing-only mode (no bluez required)
        self.bluez = import_module('bluetooth._bluetooth')

        threading.Thread.__init__(self)
        self.daemon = False
        self.keep_going = True
        self.callback = callback

        # number of the bt device (hciX)
        self.bt_device_id = bt_device_id
        # list of beacons to monitor
        self.device_filter = device_filter
        self.mode = get_mode(device_filter)
        # list of packet types to monitor
        self.packet_filter = packet_filter
        # bluetooth socket
        self.socket = None
        # keep track of Eddystone Beacon <-> bt addr mapping
        self.eddystone_mappings = []
def __init__ ( self , callback , bt_device_id , device_filter , packet_filter ) : self . bluez = import_module ( 'bluetooth._bluetooth' ) threading . Thread . __init__ ( self ) self . daemon = False self . keep_going = True self . callback = callback self . bt_device_id = bt_device_id self . device_filter = device_filter self . mode = get_mode ( device_filter ) self . packet_filter = packet_filter self . socket = None self . eddystone_mappings = [ ]
Construct interface object.