Доработка. Добавление номера устройства Modbus

This commit is contained in:
sasha80
2024-11-07 13:32:05 +03:00
parent fa436b1850
commit f4be31253b

View File

@@ -74,6 +74,9 @@ def run_sync_client(udp_addr, udp_port_rx, udp_port_tx, serial_port, serial_baud
if 'data' not in message:
message['data'] = []
if 'unit' not in message:
message['unit'] = unit_num
rc = False
if message['code'] == 'write':
data = message['data']