Skip to content

Commit 71dc559

Browse files
minor fix for typo and consistency (#1946)
Co-authored-by: jan iversen <[email protected]>
1 parent b78163a commit 71dc559

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/source/library/simulator/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ Example "setup" configuration:
239239
**"co size"**, **"di size"**, **"hr size"**, **"ir size"**:
240240

241241
Define the size of each block.
242-
If using shared block the register list size will be the size of the biggest block (25 reegisters)
242+
If using shared block the register list size will be the size of the biggest block (25 registers)
243243
If not using shared block the register list size will be the sum of the 4 block sizes (70 registers).
244244

245245
**"shared blocks"**

pymodbus/server/simulator/http_server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,17 @@ class ModbusSimulatorServer:
9898
9999
Example::
100100
101-
from pymodbus.server import StartAsyncSimulatorServer
101+
from pymodbus.server import ModbusSimulatorServer
102102
103103
async def run():
104-
simulator = StartAsyncSimulatorServer(
104+
simulator = ModbusSimulatorServer(
105105
modbus_server="my server",
106106
modbus_device="my device",
107107
http_host="localhost",
108108
http_port=8080)
109-
await simulator.start()
109+
await simulator.run_forever(only_start=True)
110110
...
111-
await simulator.close()
111+
await simulator.stop()
112112
"""
113113

114114
def __init__(

0 commit comments

Comments
 (0)