python_client/read_accelerometer.py
@@ -1,7 +1,8 @@ #!/usr/bin/python3 #use as: read_accelerometer > output_file.dat with serial.Serial('/dev/ttyUSB1', 115200, timeout=0) as ser: line = ser.readline() print(line); import serial with serial.Serial('/dev/ttyUSB0', 115200) as ser: while(True): line = ser.readline() print(line.decode('UTF-8'));