-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Versions
Python: 3.11+.png]
OS: Windows 11 Enterprise LTSC
Pymodbus: 3.8.0.dev (latest dev branch)
Description
The current pymodbus/server/simulator/README.rst is blank, and as noted in the TODO.rst file, there is a significant need to "Document simulator general" and "Document JSON".
Since the simulator is a complex tool involving a Modbus server, a Datastore, and a REST API, I propose to create a comprehensive README from scratch that will serve as the primary guide for this sub-package.
The new documentation will cover:
Architecture & Workflow: How the simulator initializes using the internal or custom setup.json.
Detailed JSON Schema: A complete reference for the setup.json structure, including server_list, device_list, and register definitions.
Web Console & API: Instructions for using the REST interface and the browser-based console (defaulting to port 8081).
Operational Integration: Practical examples using the pymodbus.simulator entry point to ensure a persistent and verifiable simulation environment.
This work aims to close the gaps identified by Jan Iversen regarding "silent starts" and user confusion when no registers are explicitly defined.