From f27539746e2cbda544766de1a12dc6606c976173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 26 Mar 2022 20:32:24 +0100 Subject: [PATCH] removed socket temp --- main.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index 9ed918c..a0f2655 100644 --- a/main.py +++ b/main.py @@ -100,15 +100,15 @@ if __name__ == '__main__': GPIO.add_event_detect(13, GPIO.RISING, callback=power_toggle, bouncetime=300) GPIO.add_event_detect(19, GPIO.RISING, callback=change_idle_mode, bouncetime=300) - with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: - s.bind((SOCKET_BIND_IP, SOCKET_BIND_PORT)) - s.listen() - conn, addr = s.accept() + # with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: + # s.bind((SOCKET_BIND_IP, SOCKET_BIND_PORT)) + # s.listen() + # conn, addr = s.accept() try: while True: - socket_data = conn.recv(1024) - print(socket_data) - print(type(socket_data)) + # socket_data = conn.recv(1024) + # print(socket_data) + # print(type(socket_data)) if led_power == True: if check_internet() == False: blink(strip, Color(255,0,0), Color(255,255,255))