Skip to content
Snippets Groups Projects
Commit c507e213 authored by Server (Shared Users)'s avatar Server (Shared Users)
Browse files

revise

parent 6fa694dd
Branches
No related tags found
No related merge requests found
......@@ -139,6 +139,7 @@ class CoapClient():
path = "/bleInfoPath"
payload = []
temp = []
path = "coap://" + self.ip + path
host, port, path = parse_uri(path)
......@@ -153,9 +154,12 @@ class CoapClient():
try:
while True :
payload = []
temp = []
returnedList = blescan.parse_events(self.sock, 100)
for beacon in returnedList:
beaconInfo = [str(x) for x in beacon.split(',') if x.strip()]
if not beaconInfo[0] in temp:
temp.append(beaconInfo[0])
if beaconInfo[1][:8] == "52528282":
print("scanned : "+ str(beaconInfo))
regiRelThread = threading.Thread(target = self.regiRelWithNewPi, args=([beaconInfo]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment