mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
attempt to fix endpoint
This commit is contained in:
@@ -27,8 +27,9 @@ def move():
|
||||
|
||||
@app.route('/data', methods=['GET'])
|
||||
def data():
|
||||
data = 0
|
||||
data = mqtt_client.subscribe("kobuki/data")
|
||||
if data:
|
||||
if data != 0:
|
||||
return jsonify({data})
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Reference in New Issue
Block a user