Skip to content

Commit

Permalink
Update http_server.py (#2471)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChPfisterer authored Nov 24, 2024
1 parent 651bd61 commit 7c6436d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pymodbus/server/simulator/http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def __init__(
if "device_id" in server:
# Designated ModBus unit address. Will only serve data if the address matches
datastore = ModbusServerContext(slaves={int(server["device_id"]): self.datastore_context}, single=False)
del server["device_id"]
else:
# Will server any request regardless of addressing
datastore = ModbusServerContext(slaves=self.datastore_context, single=True)
Expand Down

0 comments on commit 7c6436d

Please sign in to comment.