From 5e4479863bf0ee90e08c2f7c707f00948d820288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 00:52:44 +0100 Subject: [PATCH] mac address to string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index ef55408..efcceaf 100644 --- a/server/app.py +++ b/server/app.py @@ -63,7 +63,7 @@ def register_tube(mac_address): @app.route('/register_tube', methods=['POST']) def register_tube_route(): mac_address = request.form.get('mac_address') - register_tube(mac_address) + register_tube(str(mac_address)) return jsonify({'success': True, 'message': 'Tube registered successfully.'})