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

revise

parent cf93dff2
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ class CoapClient():
if distance < h:
ad = 0
else:
ad = sqrt(distance * distance - h * h)
ad = math.sqrt(distance * distance - h * h)
payload = {
'rpuuid' : self.myuuid,
......
......@@ -50,7 +50,6 @@ class RpNodeInfoResource(Resource):
return self, response
def postRpNodeInfoInDB(self, info): # complete
info = info['rpMAC']
cursor = self.collection.find({'rpMAC' : info['rpMAC']})
if len(list(cursor)) == 1:
rpuuid = cursor[0]['rpuuid']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment