From 9d597f3b90b15cac96bc4b1e194103dfaa37d026 Mon Sep 17 00:00:00 2001 From: Evangelos Oulis Date: Wed, 22 Jan 2020 14:56:09 +0200 Subject: [PATCH] Update v1.3 --- gatewayNode/parking.py | 3 ++- serverNode/__pycache__/serv.cpython-37.pyc | Bin 4198 -> 4197 bytes serverNode/serv.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gatewayNode/parking.py b/gatewayNode/parking.py index 8a0f778..01d0c98 100644 --- a/gatewayNode/parking.py +++ b/gatewayNode/parking.py @@ -46,6 +46,7 @@ if json_data != "" and json_data != None: try: # Check if node is Authenticated. "cookie if data['cookie'] != None: + cookie = data['cookie'] while 1: # For a while we request to get Parking Status # witch is a JSON object like [{"no": 1, "status": false}, {"no": 2, "status": true}, ..., {"no": n, "status": true}] @@ -63,7 +64,7 @@ if json_data != "" and json_data != None: if parkingStatus != prev_status: # If parking status changed from previous status # server would informed about this change. - data = """{"no":""" + parkingCode + ""","status":""" + parkingStatus + """}""" + data = """{"no":""" + parkingCode + ""","status":""" + parkingStatus + """, "cookie": \"""" + cookie + """\"}""" r = s.post(url = API_ENDPOINT, data = data) # IO : node prints to output the current diff --git a/serverNode/__pycache__/serv.cpython-37.pyc b/serverNode/__pycache__/serv.cpython-37.pyc index ccaa31c2005eeae6df63514da4c599eb20d8b1d8..04c479732cab17329d36545a9fada6a06e5cc12e 100644 GIT binary patch delta 45 zcmaE+@Kk}