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

revise coapclient

parent 07cd63cd
No related branches found
No related tags found
No related merge requests found
...@@ -114,10 +114,7 @@ class CoapClient(): ...@@ -114,10 +114,7 @@ class CoapClient():
response = client.put(path, json.dumps(payload)) response = client.put(path, json.dumps(payload))
print((response.pretty_print())) print((response.pretty_print()))
if json.loads(response.payload)['operate'] == 0: # Postion 계산이 불가능한 경우 if json.loads(response.payload)['operate'] == 0: # Postion 계산이 불가능한 경우
client.stop() print("impossible position calculation")
self.clearMyData()
print("RpNode Exit and delete my data in DB")
sys.exit(1)
except KeyboardInterrupt: except KeyboardInterrupt:
print("obtainMyID Stop") print("obtainMyID Stop")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment