esp_routes_basic and server comm

This commit is contained in:
derlole
2025-04-17 12:33:11 +00:00
parent 58f9d3b451
commit f8cf645325
5 changed files with 32 additions and 16 deletions

10
routes/esp_routes.py Normal file
View File

@@ -0,0 +1,10 @@
from flask import Blueprint, render_template, request, jsonify
import routes.shared as shared
esp = Blueprint('eps', __name__, url_prefix='/unsecure/esp')
@esp.route('/')
def fetch_command():
pCd = shared.pending_command
shared.reset_command()
return jsonify(pCd)