mhmm brainrod
This commit is contained in:
@@ -30,7 +30,7 @@ def esp_online():
|
||||
print(f"ESP ONLINE von IP: {esp_ip}, roher IP: {sender_ip}")
|
||||
return jsonify({"status": "ok"})
|
||||
|
||||
@esp.route('/toggle-machine', methods=['GET'])
|
||||
@esp.route('/toggle-machine', methods=['POST'])
|
||||
def toggle_machine():
|
||||
print("ESP: toggle-machine")
|
||||
randID = random.randint(1000, 9999)
|
||||
|
||||
@@ -58,7 +58,7 @@ def mqtt_thread():
|
||||
#threading.Thread(target=send_data, daemon=True).start()
|
||||
|
||||
|
||||
threading.Thread(target=mqtt_thread, daemon=True).start()
|
||||
#threading.Thread(target=mqtt_thread, daemon=True).start()
|
||||
|
||||
if __name__ == '__main__':
|
||||
socketio.run(app, host='0.0.0.0', port=3060, allow_unsafe_werkzeug=True)
|
||||
|
||||
Reference in New Issue
Block a user