cleanup server code

This commit is contained in:
Hannes Klinckaert 2020-09-08 20:23:17 +02:00
parent 864b346ad0
commit aa59f4d96d

View file

@ -4,7 +4,6 @@ from time import sleep
from dataclasses import dataclass
from datetime import datetime
import serial
import random
app = Flask(__name__)
shared_message_log = []
@ -107,4 +106,4 @@ def api():
if __name__ == '__main__':
thread = Thread(target=serial_reader, args=(shared_message_log, ))
thread.start()
app.run(debug=True, host='0.0.0.0')
app.run(debug=True, host='0.0.0.0')