Static ReadonlymakeScoped constructor effect for the service. v4 does not auto-generate a layer from this, so AsciiTransportService.make builds one explicitly.
Static ReadonlymakeCreates a Layer providing a live AsciiTransportService.
Serial ASCII options and optional retry, reconnect, and connect-timeout settings.
A layer whose scope opens the connection on first use and closes it on finalization.
StaticmakeCreates a Layer providing an in-memory mock AsciiTransportService for testing or development.
Accepts an array of SlaveDeviceDefinition values describing the simulated Modbus slaves and their register/coil maps.
Slave device definitions for the mock.
A factory that accepts transport, resilience, and mock-fault options and returns a layer for the mock service.
Scoped Effect service wrapping the
modbus-rsAsyncAsciiTransport for ASCII (serial) Modbus communication.The transport connection is opened lazily on the first call to
withClient(unitId)and automatically closed when the consuming scope finalizes.Clients are created per
unitIdvia AsyncAsciiTransport.createClient and cached, so repeated requests for the same unit ID reuse the same client.See
modbus-rsASCII transport.