diff --git a/UDP-client-server.py b/UDP-client-server.py index 1e9ed8abc784de2d5898c5fcf3b888f599d1ddb1..fbab2a39fffbf11a96f8fb6a3a2339a5604e138a 100755 --- a/UDP-client-server.py +++ b/UDP-client-server.py @@ -160,7 +160,7 @@ def udp_client_send(UDP_DEST_IP, UDP_DEST_PORT, padding)).encode("utf-8"), (UDP_DEST_IP, UDP_DEST_PORT)) packet_count_snd = packet_count_snd + 1 -#WAIT 5SEC FOR ALL PACKETS TO ARRIVE +#WAIT FOR ALL PACKETS TO ARRIVE packet_wait_time = 3 time.sleep(packet_wait_time) # Perhaps create a custom object where we store the statistics? @@ -234,10 +234,10 @@ def udp_client_send(UDP_DEST_IP, UDP_DEST_PORT, print("MOS: ", mos) post = { - #"timestamp" : int(time.time()), + #"timestamp" : int(time.time()), #Not needed since first 4bits of _id is timestamp - "stability" : mos, - "position" : False # Position appended here + "stability" : mos, + "position" : False # Position appended here } DBTableStability.insert(post);