We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08848b7 commit 6177a64Copy full SHA for 6177a64
utils/solarman_tcp_proxy.py
@@ -46,9 +46,9 @@ async def handle_client(
46
unit_id = await reader.readexactly(1)
47
pdu = await reader.readexactly(length - 1) # length includes unit_id
48
49
- slave_id = b'\x01'
+ slave_id = b"\x01"
50
modbus_rtu = slave_id + pdu + get_crc(slave_id + pdu)
51
-
+
52
try:
53
# Convert RTU back to TCP
54
reply_rtu = await solarmanv5.send_raw_modbus_frame(modbus_rtu)
0 commit comments