Commit 9e6f2b53 authored by Shrishailya Agashe's avatar Shrishailya Agashe
Browse files

Made some changes that I forgot to do last time

parent f6f84845
......@@ -17,9 +17,10 @@ myArduino = serial.Serial(port = comport, baudrate = 115200, timeout=1)
while True:
try:
incoming_stream = myArduino.readline()
#incoming_stream = incoming_stream.decode('utf-8')
incoming_stream = incoming_stream.decode('utf-8')
incoming_stream = incoming_stream.strip()
print(incoming_stream)
JSONObj = json.loads(incoming_stream)
print(JSONDict)
except:
print("keyboard Interrupt")
break
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment