diff --git a/tests/socketreceivetest.py b/tests/socketreceivetest.py index afe9210..9ead2da 100644 --- a/tests/socketreceivetest.py +++ b/tests/socketreceivetest.py @@ -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