The server binds to the specified host and port, handling incoming
Modbus requests via the provided ServerHandlers. The connection
is automatically shut down when the consuming scope finalizes.
Parameters
options: TcpServerOptions
Server bind options (host, port, unit ID).
handlers: ServerHandlers
Callback functions that handle incoming Modbus requests.
A scoped Layer that starts a Modbus TCP server.
The server binds to the specified host and port, handling incoming Modbus requests via the provided ServerHandlers. The connection is automatically shut down when the consuming scope finalizes.