aboutsummaryrefslogtreecommitdiffstats
path: root/glutte_serial_web.py
diff options
context:
space:
mode:
Diffstat (limited to 'glutte_serial_web.py')
-rwxr-xr-xglutte_serial_web.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/glutte_serial_web.py b/glutte_serial_web.py
index 72bc6e4..9966646 100755
--- a/glutte_serial_web.py
+++ b/glutte_serial_web.py
@@ -28,11 +28,13 @@ from time import sleep
from flask import Flask, render_template
from flask_sockets import Sockets
import serialrx
+import adsl
app = Flask(__name__)
sockets = Sockets(app)
ser = serialrx.SerialRX()
+adsl = adsl.ADSL(ser)
@app.route('/')
@@ -66,6 +68,7 @@ def stream(socket):
ser.unregister_client(queue)
ser.start()
+adsl.start()
if __name__ == "__main__":
print("You're running in dev mode, only one client at a time will works ! Please use gunicorn to fix this :)")