initial commit

This commit is contained in:
Juul
2025-07-15 23:37:54 +02:00
commit c188c00b43
6 changed files with 161 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
from time import sleep
import serial
INPUT_PORT = '/dev/ttyUSB0'
OUTPUT_PORT = '/dev/ttyUSB0'
dataInput = serial.Serial(INPUT_PORT, 115200, timeout=1)
dataOutput = serial.Serial(OUTPUT_PORT, 115200, timeout=1)
def verzend(telegram):
while True:
for line in telegram:
print(line)
dataOutput.write(line)
sleep(1)