def nonDiscScanProcessSpawner(self,addr):
		while (self._nonDiscKeepScanning):
			result=pexpect.run("hcitool rssi "+addr,timeout=None)
			if "RSSI return value:" not in result:
				pexpect.run("hcitool cc "+addr,timeout=None)
			else:
				rssi=result.rstrip().split(": ")[1]
			
				if(addr in self._addrToRssi):
					if (rssi!=self._addrToRssi[addr]):
						self.send_payload(addr,rssi)
				else:
					self.send_payload(addr,rssi)
				if(self._settings.readTimeout_NonDisc>0):
					time.sleep(self._settings.readTimeout_NonDisc)
dataset/ETHPy150Open SteveAbb/Vestigo/Vestigo/scan.py/Scanner.nonDiscScanProcessSpawner/original