send new line
This commit is contained in:
parent
338490e887
commit
0efec9c593
1
main.py
1
main.py
@ -161,6 +161,7 @@ def application(env, start_response):
|
|||||||
|
|
||||||
start_response("200 OK", [('Content-Type', 'application/json')])
|
start_response("200 OK", [('Content-Type', 'application/json')])
|
||||||
print(arduino.write(message.encode()))
|
print(arduino.write(message.encode()))
|
||||||
|
arduino.write(b'\n')
|
||||||
return [json.dumps(message).encode()]
|
return [json.dumps(message).encode()]
|
||||||
|
|
||||||
if env["PATH_INFO"] == "/temps.json":
|
if env["PATH_INFO"] == "/temps.json":
|
||||||
|
Loading…
Reference in New Issue
Block a user