This commit is contained in:
yohan 2024-06-08 11:17:21 +02:00
parent dc0934bb97
commit 288e371865

View File

@ -70,7 +70,8 @@ def init_serial(pPort):
init_serial(device)
if action != 'status':
for relay in relays:
ser.write(relay.encode('ascii')+action+'\r\n')
command = relay+action+'\r\n'
ser.write(command.encode('ascii'))
bytes = ser.readline()
#print ('Renvoie :\r\n' + bytes)