← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.py b/main.py
index 7362778..0e7e008 100644
--- a/main.py
+++ b/main.py
@@ -35,7 +35,10 @@ print("Connected to %s." % client_info[0])
while client_sock:
read = client_sock.recv(1024)
read = read.decode("utf-8").strip('\n')
- print(read)
+ print("Received: %s" % read)
+
+ sock.send("Acknowledge: " + read)
+ print("Sent acknowledge")
if read == "0": # Do nothing
GPIO.output(P1, False)