def start_scan(args): vendors.load() scanner = SmarterScanner(args.mac,args.hci).withDelegate(ScanReceiver(args)) if args.timeout == 0: print("@ Continuous scanning [%d dBm of sensitivity] ...\n" % args.sensitivity) else: print("@ Scanning for %ds [%d dBm of sensitivity] ...\n" % ( args.timeout, args.sensitivity )) return scanner.scan(args.timeout)
def start_scan(args): vendors.load() scanner = SmarterScanner(args.mac,args.hci).withDelegate(ScanReceiver(args)) if args.timeout == 0: print "@ Continuous scanning [%d dBm of sensitivity] ...\n" % args.sensitivity else: print "@ Scanning for %ds [%d dBm of sensitivity] ...\n" % ( args.timeout, args.sensitivity ) return scanner.scan(args.timeout)
def start_scan(self): """ Start the scan for new devices """ vendors.load() self.scanner = SmarterScanner(self.args.mac,self.args.hci, self.args) if self.args.timeout == 0: print("@ Continuous scanning [%d dBm of sensitivity] ...\n" % self.args.sensitivity) else: print("@ Scanning for %ds [%d dBm of sensitivity] ...\n" % ( self.args.timeout, self.args.sensitivity )) self.devices = self.scanner.scan(self.args.timeout)