From b180d15b1b04249735bf19aefd87e82152d78386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 00:49:04 +0100 Subject: [PATCH] print response MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.py b/client/main.py index 250a3e0..ef034eb 100644 --- a/client/main.py +++ b/client/main.py @@ -30,6 +30,7 @@ def register_tube(): # Register or reauthenticate the tube with the server try: response = requests.post(f'http://{SERVER_IP}:{SERVER_PORT}/register_tube', data={'mac_address': wlan_mac_address}) + print(response) data = response.json() if data.get('success'): print('Tube registered successfully.') @@ -53,7 +54,6 @@ def get_assigned_params(): def is_connected_to_wifi(): output = subprocess.check_output(['iwgetid']).decode() - print(output) return output.split('"')[1] # def update_led_strip(rgb_values, pixel, strip):