def send_payload(self,addr,rssi):
		if(addr in self.getAddresses("all")):
			self._addrToRssi[addr]=rssi;
			if(addr in self.getAddresses("ble")):
				type="BLE"
			elif(addr in self.getAddresses("disc")):
				type="Discoverable"
			else:
				type="Non-Discoverable"
		
			if((type=="BLE" and self._settings.scanMode_LE) or (type=="Discoverable" and self._settings.scanMode_Disc) or (type=="Non-Discoverable" and self._settings.scanMode_NonDisc)):
				try:
					payload={"reader":self._settings.baseServer_Reader,"name":self.getAddresses("all")[addr]["name"],"address":addr,"rssi":rssi,"type":type}
					self.log("Sending payload to: "+self._settings.baseServer_URL)
					self.log("Payload:")
					self.log(json.dumps(payload,indent=4))
					headers = {'content-type': 'application/json'}
					resp = requests.post(self._settings.baseServer_URL, data=json.dumps(payload), headers=headers,timeout=int(self._settings.baseServer_Timeout))
					self.log("Resp: "+str(resp.status_code))
				except Exception, error:
					self.log("Error with request: "+str(error))
dataset/ETHPy150Open SteveAbb/Vestigo/Vestigo/scan.py/Scanner.send_payload/original