receive last data
This commit is contained in:
parent
c7fa00906d
commit
9ff7ac13e0
1 changed files with 4 additions and 2 deletions
|
@ -21,9 +21,11 @@ while True:
|
|||
try:
|
||||
data = client.recv( 1024 ).decode( 'utf-8' )
|
||||
if data:
|
||||
splitdata=data.split(",")
|
||||
lastdata=data.split('\n')
|
||||
splitdata=lastdata[-2].split(",")
|
||||
print("lastdata="+str(lastdata))
|
||||
|
||||
print("Received :", repr(data))
|
||||
#print("Received :", repr(data))
|
||||
print(splitdata)
|
||||
except socket.error:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue