Sends a diagnostics request to the Modbus device (FC08).
Diagnostic sub-function code and data words.
An Effect resolving to a DiagnosticsResponse containing the echo sub-function and data.
Reads coils (digital outputs) from the Modbus device (FC01).
Starting address, quantity, and optional AbortSignal.
An Effect resolving to an array of boolean coil states.
Reads device identification from the Modbus device (FC43 / MEI type 14).
Read device ID code, starting object ID, and optional AbortSignal.
An Effect resolving to a DeviceIdentificationResponse with conformity level and objects.
Reads discrete inputs (digital inputs) from the Modbus device (FC02).
Starting address, quantity, and optional AbortSignal.
An Effect resolving to an array of boolean input states.
Reads the Modbus exception status (FC07).
Returns the contents of eight exception-status coils as a single byte.
An Effect resolving to the exception status byte value.
Reads the FIFO queue from the Modbus device (FC24).
FIFO pointer address and optional AbortSignal.
An Effect resolving to a FifoQueueResponse containing the queue values.
Reads file records from the Modbus device (FC20).
Array of file/sub-record read requests and optional AbortSignal.
An Effect resolving to an array of record data arrays.
Reads holding registers from the Modbus device (FC03).
Register address, quantity, and optional AbortSignal.
An Effect resolving to an array of 16-bit register values.
Reads input registers from the Modbus device (FC04).
Register address, quantity, and optional AbortSignal.
An Effect resolving to an array of 16-bit input register values.
Atomic read-write of multiple registers (FC23).
Performs a write operation and a read operation atomically within a single Modbus transaction.
Separate read and write addresses/quantities/values.
An Effect resolving to the read register values.
Returns an equivalent client whose operations use policy instead of
the one this client carries.
Replaces rather than composes, so an override cannot accidentally multiply
attempt counts. RetryPolicies.none() opts a call site out entirely.
yield* client.withRetry(RetryPolicies.none()).writeSingleCoil({ address: 0, value })
Writes file records to the Modbus device (FC21).
Array of file/sub-record write requests and optional AbortSignal.
An Effect that completes when the write is acknowledged.
Writes multiple consecutive coils (FC15).
Starting address, array of boolean values, and optional AbortSignal.
An Effect that completes when the write is acknowledged.
Writes multiple consecutive holding registers (FC16).
Starting address, array of values, and optional AbortSignal.
An Effect that completes when the write is acknowledged.
Writes a single coil (digital output) (FC05).
Coil address, boolean value, and optional AbortSignal.
An Effect that completes when the write is acknowledged.
Writes a single holding register (FC06).
Register address, value, and optional AbortSignal.
An Effect that completes when the write is acknowledged.
A Modbus client with the transport's resilience already applied.
Obtained from
transport.withClient(unitId). Every operation is guarded by the transport's circuit breaker, reports connection failures to the transport's reconnect supervisor, and carries whatever retry policy the transport or thewithClientcall attached.