backend rework -full test 2
This commit is contained in:
@@ -6,7 +6,7 @@ import random
|
|||||||
import sqlite3
|
import sqlite3
|
||||||
import os
|
import os
|
||||||
from modules.persistence import esp_conn_infos
|
from modules.persistence import esp_conn_infos
|
||||||
import datetime
|
from datetime import datetime, timedelta
|
||||||
from modules.socketio import resend_static_data
|
from modules.socketio import resend_static_data
|
||||||
|
|
||||||
esp = Blueprint('eps', __name__, url_prefix='/unsecure/esp')
|
esp = Blueprint('eps', __name__, url_prefix='/unsecure/esp')
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ def monitor_esp_connection():
|
|||||||
threading.Thread(target=cleanup_old_commands, daemon=True).start()
|
threading.Thread(target=cleanup_old_commands, daemon=True).start()
|
||||||
threading.Thread(target=monitor_esp_connection, daemon=True).start()
|
threading.Thread(target=monitor_esp_connection, daemon=True).start()
|
||||||
|
|
||||||
#threading.Thread(target=mqtt_thread, daemon=True).start()
|
threading.Thread(target=mqtt_thread, daemon=True).start()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
#clear_commands_db()
|
#clear_commands_db()
|
||||||
|
|||||||
Reference in New Issue
Block a user