fix: Correct Modbus client class name in signals endpoint
Use correct class name 'ModbusClient' instead of 'ModbusTCPClient'
This commit is contained in:
parent
74a6f5e865
commit
4a3db6a3fc
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue