fix: Correct Modbus client class name in signals endpoint

Use correct class name 'ModbusClient' instead of 'ModbusTCPClient'
This commit is contained in:
openhands 2025-11-01 20:24:04 +00:00
parent 74a6f5e865
commit 4a3db6a3fc
1 changed files with 2 additions and 2 deletions

View File

@ -718,10 +718,10 @@ async def get_signals():
# Try to use real protocol data for Modbus, fallback for OPC UA # Try to use real protocol data for Modbus, fallback for OPC UA
try: try:
from .protocol_clients import ModbusTCPClient from .protocol_clients import ModbusClient
# Create Modbus client # Create Modbus client
modbus_client = ModbusTCPClient( modbus_client = ModbusClient(
host="localhost", host="localhost",
port=502, port=502,
unit_id=1 unit_id=1