diff options
| author | Edvin <[email protected]> | 2025-04-09 11:30:06 +0200 |
|---|---|---|
| committer | Edvin <[email protected]> | 2025-04-09 11:30:06 +0200 |
| commit | 59b0200a59969bdbabd3273e5e1de0f325a3fc85 (patch) | |
| tree | 41b943cb19677d28d78aebee47350a96895f15d2 /main.py | |
| parent | 85635af1852b29e33ee56535d71bdf20d700b77e (diff) | |
Added acknowledge
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |
