mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
test
This commit is contained in:
@@ -52,6 +52,13 @@ def control():
|
|||||||
def move():
|
def move():
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
direction = data.get("direction")
|
direction = data.get("direction")
|
||||||
|
|
||||||
|
db_connection = get_db()
|
||||||
|
cursor = db_connection.cursor()
|
||||||
|
cursor.execute("INSERT INTO command (direction) VALUES (%s)", (direction,))
|
||||||
|
db_connection.commit()
|
||||||
|
cursor.close()
|
||||||
|
db_connection.close()
|
||||||
|
|
||||||
# Verstuur de richting via MQTT
|
# Verstuur de richting via MQTT
|
||||||
if direction:
|
if direction:
|
||||||
|
Reference in New Issue
Block a user