@flux-control/effect-modbus-rs
    Preparing search index...

    Class ModbusNotConnectedError

    Error indicating a transport operation was attempted before the connection was established or after it was closed.

    This is a local error — it is never returned by modbus-rs. It is thrown by the transport service when setRequestTimeout, clearRequestTimeout, or withClient is called before a successful connection.

    Connect by calling withClient(unitId) on the transport service. The connection is established lazily on the first call.

    ModbusNotConnectedError — Triggered when the transport is null.

    Hierarchy

    • YieldableError<this> & {} & Readonly<{ cause: Error; message: string }>
      • ModbusNotConnectedError
    Index
    • Parameters

      • args: { cause: Error; message: string }
        • Readonlycause: Error

          The original cause (typically a descriptive error).

        • Readonlymessage: string

          Human-readable explanation of the error.

      Returns ModbusNotConnectedError

    cause: Error

    The cause of the error.

    message: string

    Human-readable explanation of the error.