From d9b67442e64e19334abe86d206db2c4677863b84 Mon Sep 17 00:00:00 2001 From: Marcus Date: Wed, 2 Aug 2023 01:07:51 +0200 Subject: [PATCH] add link --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 5dc86a2..2dbb044 100755 --- a/main.py +++ b/main.py @@ -7,6 +7,8 @@ ser = serial.Serial('/dev/ttyACM0', baudrate = 9600, timeout = 1) #time.sleep(3) +# https://stackoverflow.com/questions/13017840/using-pyserial-is-it-possible-to-wait-for-data + while 1: # { "command": "switch", "arg": "one", "state": "off"} userInput = input('> ')